|
|
@ -196,7 +196,7 @@ |
|
|
|
:is-new="rowMeta.new" |
|
|
|
:is-new="rowMeta.new" |
|
|
|
v-on="$listeners" |
|
|
|
v-on="$listeners" |
|
|
|
@updateCol="(...args) => updateCol(...args, columnObj.bt && meta.columns.find( c => c.cn === columnObj.bt.cn), col, row)" |
|
|
|
@updateCol="(...args) => updateCol(...args, columnObj.bt && meta.columns.find( c => c.cn === columnObj.bt.cn), col, row)" |
|
|
|
@saveRow="onCellValueChange(col, row, columnObj)" |
|
|
|
@saveRow="onCellValueChange(col, row, columnObj, true)" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<editable-cell |
|
|
|
<editable-cell |
|
|
@ -215,10 +215,10 @@ |
|
|
|
:db-alias="nodes.dbAlias" |
|
|
|
:db-alias="nodes.dbAlias" |
|
|
|
:is-locked="isLocked" |
|
|
|
:is-locked="isLocked" |
|
|
|
:is-public="isPublicView" |
|
|
|
:is-public="isPublicView" |
|
|
|
@save="editEnabled = {}" |
|
|
|
@save="editEnabled = {};" |
|
|
|
@cancel="editEnabled = {}" |
|
|
|
@cancel="editEnabled = {};" |
|
|
|
@update="onCellValueChange(col, row, columnObj)" |
|
|
|
@update="onCellValueChange(col, row, columnObj, false)" |
|
|
|
@change="onCellValueChange(col, row, columnObj)" |
|
|
|
@blur="onCellValueChange(col, row, columnObj, true)" |
|
|
|
@navigateToNext="navigateToNext" |
|
|
|
@navigateToNext="navigateToNext" |
|
|
|
@navigateToPrev="navigateToPrev" |
|
|
|
@navigateToPrev="navigateToPrev" |
|
|
|
/> |
|
|
|
/> |
|
|
@ -413,7 +413,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
updateCol(row, column, value, columnObj, colIndex, rowIndex) { |
|
|
|
updateCol(row, column, value, columnObj, colIndex, rowIndex) { |
|
|
|
this.$set(row, column, value) |
|
|
|
this.$set(row, column, value) |
|
|
|
this.onCellValueChange(colIndex, rowIndex, columnObj) |
|
|
|
this.onCellValueChange(colIndex, rowIndex, columnObj, true) |
|
|
|
}, |
|
|
|
}, |
|
|
|
calculateColumnWidth() { |
|
|
|
calculateColumnWidth() { |
|
|
|
// setTimeout(() => { |
|
|
|
// setTimeout(() => { |
|
|
@ -501,7 +501,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
this.$set(rowObj, columnObj._cn, null) |
|
|
|
this.$set(rowObj, columnObj._cn, null) |
|
|
|
// update/save cell value |
|
|
|
// update/save cell value |
|
|
|
this.onCellValueChange(this.selected.col, this.selected.row, columnObj) |
|
|
|
this.onCellValueChange(this.selected.col, this.selected.row, columnObj, true) |
|
|
|
} |
|
|
|
} |
|
|
|
break |
|
|
|
break |
|
|
|
// left |
|
|
|
// left |
|
|
@ -597,8 +597,8 @@ export default { |
|
|
|
showRowContextMenu($event, rowObj, rowMeta, row, ...rest) { |
|
|
|
showRowContextMenu($event, rowObj, rowMeta, row, ...rest) { |
|
|
|
this.$emit('showRowContextMenu', $event, rowObj, rowMeta, row, ...rest) |
|
|
|
this.$emit('showRowContextMenu', $event, rowObj, rowMeta, row, ...rest) |
|
|
|
}, |
|
|
|
}, |
|
|
|
onCellValueChange(col, row, column, ev) { |
|
|
|
onCellValueChange(col, row, column, saved) { |
|
|
|
this.$emit('onCellValueChange', col, row, column, ev) |
|
|
|
this.$emit('onCellValueChange', col, row, column, saved) |
|
|
|
}, |
|
|
|
}, |
|
|
|
navigateToNext() { |
|
|
|
navigateToNext() { |
|
|
|
if (this.selected.row < this.rowLength - 1) { |
|
|
|
if (this.selected.row < this.rowLength - 1) { |
|
|
|