mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-08 07:48:40 +01:00
fix: cell disappear on edit in one column tables
This commit is contained in:
parent
35cb7e1dc4
commit
aaa5549609
@ -62,7 +62,7 @@
|
||||
v-if="resultsWithRows[resultsetIndex] && resultsWithRows[resultsetIndex].rows"
|
||||
ref="resultTable"
|
||||
:items="sortedResults"
|
||||
:item-height="23"
|
||||
:item-height="rowHeight"
|
||||
class="tbody"
|
||||
:visible-height="resultsSize"
|
||||
:scroll-element="scrollElement"
|
||||
@ -71,6 +71,7 @@
|
||||
<WorkspaceTabQueryTableRow
|
||||
v-for="row in items"
|
||||
:key="row._antares_id"
|
||||
:item-height="rowHeight"
|
||||
:row="row"
|
||||
:fields="fieldsObj"
|
||||
:key-usage="keyUsage"
|
||||
@ -142,7 +143,8 @@ export default {
|
||||
currentSort: '',
|
||||
currentSortDir: 'asc',
|
||||
resultsetIndex: 0,
|
||||
scrollElement: null
|
||||
scrollElement: null,
|
||||
rowHeight: 23
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<div class="tr" @click="selectRow($event, row._antares_id)">
|
||||
<div
|
||||
class="tr"
|
||||
:style="{height: itemHeight+'px'}"
|
||||
@click="selectRow($event, row._antares_id)"
|
||||
>
|
||||
<div
|
||||
v-for="(col, cKey) in row"
|
||||
v-show="cKey !== '_antares_id'"
|
||||
@ -261,6 +265,7 @@ export default {
|
||||
row: Object,
|
||||
fields: Object,
|
||||
keyUsage: Array,
|
||||
itemHeight: Number,
|
||||
elementType: { type: String, default: 'table' }
|
||||
},
|
||||
data () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user