add a event @on-select-cancel to Table. #705
This commit is contained in:
parent
e4767e5a90
commit
b0f1c61f8e
2 changed files with 13 additions and 4 deletions
|
@ -404,9 +404,7 @@
|
|||
this.objData[_index]._isChecked = status;
|
||||
|
||||
const selection = this.getSelection();
|
||||
if (status) {
|
||||
this.$emit('on-select', selection, JSON.parse(JSON.stringify(this.data[_index])));
|
||||
}
|
||||
this.$emit(status ? 'on-select' : 'on-select-cancel', selection, JSON.parse(JSON.stringify(this.data[_index])));
|
||||
this.$emit('on-selection-change', selection);
|
||||
},
|
||||
toggleExpand (_index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue