Table tree support on-row-dbclick

This commit is contained in:
梁灏 2020-01-06 17:35:50 +08:00
parent cb6477e080
commit 20fb34b2b0
2 changed files with 12 additions and 3 deletions

View file

@ -682,9 +682,13 @@
this.$emit('on-row-click', JSON.parse(JSON.stringify(this.cloneData[_index])), _index);
}
},
dblclickCurrentRow (_index) {
this.highlightCurrentRow (_index);
this.$emit('on-row-dblclick', JSON.parse(JSON.stringify(this.cloneData[_index])), _index);
dblclickCurrentRow (_index, rowKey) {
this.highlightCurrentRow (_index, rowKey);
if (rowKey) {
this.$emit('on-row-dblclick', JSON.parse(JSON.stringify(this.getCloneDataByRowKey(rowKey))));
} else {
this.$emit('on-row-dblclick', JSON.parse(JSON.stringify(this.cloneData[_index])), _index);
}
},
getSelection () {
let selectionIndexes = [];