Update tree.vue
This commit is contained in:
parent
b84c8cc4a4
commit
05f490efdc
1 changed files with 3 additions and 1 deletions
|
@ -146,10 +146,12 @@
|
||||||
return this.flatState.filter(obj => obj.node.checked).map(obj => obj.node);
|
return this.flatState.filter(obj => obj.node.checked).map(obj => obj.node);
|
||||||
},
|
},
|
||||||
updateTreeDown(node, changes = {}) {
|
updateTreeDown(node, changes = {}) {
|
||||||
|
if (this.checkStrictly) return;
|
||||||
|
|
||||||
for (let key in changes) {
|
for (let key in changes) {
|
||||||
this.$set(node, key, changes[key]);
|
this.$set(node, key, changes[key]);
|
||||||
}
|
}
|
||||||
if (node[this.childrenKey] && !this.checkStrictly) {
|
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