Merge pull request #445 from jikkai/fix/tree-checking-disabled-node
fix: disabled node can be checked
This commit is contained in:
commit
27427ac418
1 changed files with 5 additions and 1 deletions
|
@ -174,8 +174,12 @@
|
||||||
if (this.checkStrictly) return;
|
if (this.checkStrictly) return;
|
||||||
|
|
||||||
for (let key in changes) {
|
for (let key in changes) {
|
||||||
|
if (key === 'checked' && node.disabled) {
|
||||||
|
this.$set(node, key, node.checked);
|
||||||
|
} else {
|
||||||
this.$set(node, key, changes[key]);
|
this.$set(node, key, changes[key]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (node[this.childrenKey]) {
|
if (node[this.childrenKey]) {
|
||||||
node[this.childrenKey].forEach(child => {
|
node[this.childrenKey].forEach(child => {
|
||||||
this.updateTreeDown(child, changes);
|
this.updateTreeDown(child, changes);
|
||||||
|
|
Loading…
Add table
Reference in a new issue