fixed #2019
This commit is contained in:
parent
84a4a95dbf
commit
9f5a643a16
2 changed files with 6 additions and 0 deletions
|
@ -111,6 +111,7 @@
|
||||||
if (item.disabled) return;
|
if (item.disabled) return;
|
||||||
const index = this.checkedKeys.indexOf(item.key);
|
const index = this.checkedKeys.indexOf(item.key);
|
||||||
index > -1 ? this.checkedKeys.splice(index, 1) : this.checkedKeys.push(item.key);
|
index > -1 ? this.checkedKeys.splice(index, 1) : this.checkedKeys.push(item.key);
|
||||||
|
this.$parent.handleCheckedKeys();
|
||||||
},
|
},
|
||||||
updateFilteredData () {
|
updateFilteredData () {
|
||||||
this.showItems = this.data;
|
this.showItems = this.data;
|
||||||
|
|
|
@ -238,6 +238,11 @@
|
||||||
},
|
},
|
||||||
handleRightCheckedKeysChange (keys) {
|
handleRightCheckedKeysChange (keys) {
|
||||||
this.rightCheckedKeys = keys;
|
this.rightCheckedKeys = keys;
|
||||||
|
},
|
||||||
|
handleCheckedKeys () {
|
||||||
|
const sourceSelectedKeys = this.getValidKeys('left');
|
||||||
|
const targetSelectedKeys = this.getValidKeys('right');
|
||||||
|
this.$emit('on-selected-change', sourceSelectedKeys, targetSelectedKeys);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue