fix: cell disappear on edit in one column tables

This commit is contained in:
Fabio Di Stasio 2021-12-08 10:37:23 +01:00
parent 35cb7e1dc4
commit aaa5549609
2 changed files with 10 additions and 3 deletions

View File

@ -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: {

View File

@ -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 () {