From a9d38ffca3d8db5ef94451754cd6e178aec4393b Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 24 Sep 2020 12:36:43 +0300 Subject: [PATCH] Edit demo update --- src/views/datatable/DataTableEditDemo.vue | 167 +++++++++++----------- 1 file changed, 82 insertions(+), 85 deletions(-) diff --git a/src/views/datatable/DataTableEditDemo.vue b/src/views/datatable/DataTableEditDemo.vue index b80f6dbfc..116732c2c 100755 --- a/src/views/datatable/DataTableEditDemo.vue +++ b/src/views/datatable/DataTableEditDemo.vue @@ -16,12 +16,12 @@ @@ -38,7 +38,7 @@ @@ -47,10 +47,10 @@
Advanced Cell Editing

Custom implementation with validations, dynamic columns and reverting values with the escape key.

- + @@ -62,12 +62,12 @@ @row-edit-init="onRowEditInit" @row-edit-cancel="onRowEditCancel"> @@ -84,7 +84,7 @@ @@ -97,92 +97,89 @@ import ProductService from '../../service/ProductService'; -import Vue from 'vue'; export default { data() { @@ -240,7 +237,7 @@ export default { this.editingCellRows[props.index] = {...props.data}; } - this.editingCellRows[props.index][props.column.field] = newValue; + this.editingCellRows[props.index][props.column.props.field] = newValue; }, isPositiveInteger(val) { let str = String(val); @@ -353,7 +350,7 @@ export default { this.editingCellRows[props.index] = {...props.data}; } - this.editingCellRows[props.index][props.column.field] = newValue; + this.editingCellRows[props.index][props.column.props.field] = newValue; }, isPositiveInteger(val) { let str = String(val);