add a event @on-select-cancel to Table. #705

This commit is contained in:
Rijn 2017-07-07 13:01:49 -05:00
parent e4767e5a90
commit b0f1c61f8e
2 changed files with 13 additions and 4 deletions

View file

@ -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) {