pull/1196/head^2
mertsincan 2021-05-17 02:21:31 +03:00
parent aed0d5eed2
commit 2b9a2de321
1 changed files with 4 additions and 4 deletions

View File

@ -324,7 +324,7 @@ export default {
d_columnOrder: null, d_columnOrder: null,
d_editingRowKeys: null, d_editingRowKeys: null,
d_filters: this.cloneFilters(this.filters), d_filters: this.cloneFilters(this.filters),
editingCells: [] d_editingCells: []
}; };
}, },
rowTouched: false, rowTouched: false,
@ -1526,14 +1526,14 @@ export default {
}, },
onEditingCellChange(event) { onEditingCellChange(event) {
let { rowIndex, cellIndex, editing } = event; let { rowIndex, cellIndex, editing } = event;
let _editingCells = [...this.editingCells]; let _editingCells = [...this.d_editingCells];
if (editing) if (editing)
_editingCells.push({ rowIndex, cellIndex }); _editingCells.push({ rowIndex, cellIndex });
else else
_editingCells = _editingCells.filter(cell => !(cell.rowIndex === rowIndex && cell.cellIndex === cellIndex)); _editingCells = _editingCells.filter(cell => !(cell.rowIndex === rowIndex && cell.cellIndex === cellIndex));
this.editingCells = _editingCells; this.d_editingCells = _editingCells;
this.$emit('value-change', this.processedData); this.$emit('value-change', this.processedData);
}, },
onRowEditInit(event) { onRowEditInit(event) {
@ -1725,7 +1725,7 @@ export default {
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object; return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
}, },
hasEditingCell() { hasEditingCell() {
return this.editingCells && this.editingCells.length !== 0; return this.d_editingCells && this.d_editingCells.length !== 0;
}, },
processedData() { processedData() {
let data = this.value || []; let data = this.value || [];