diff --git a/src/components/tables/edit.vue b/src/components/tables/edit.vue index e1066efce..22649bc05 100644 --- a/src/components/tables/edit.vue +++ b/src/components/tables/edit.vue @@ -49,6 +49,7 @@ export default { .tables-edit-con{ position: relative; height: 100%; + min-height: 20px; .value-con{ vertical-align: middle; } diff --git a/src/components/tables/tables.vue b/src/components/tables/tables.vue index 8b9d461cf..36fc2dda1 100644 --- a/src/components/tables/tables.vue +++ b/src/components/tables/tables.vue @@ -154,10 +154,14 @@ export default { methods: { suportEdit (item, index) { item.render = (h, params) => { + let originValue = this.insideTableData[params.index][params.column.key] + if (originValue && !this.edittingText) { + this.edittingText = originValue + } return h(TablesEdit, { props: { params: params, - value: this.insideTableData[params.index][params.column.key], + value: originValue, edittingCellId: this.edittingCellId, editable: this.editable },