Commit 05f490efdcb5679ebaa7e6541226c44c370171b6

Authored by Aresn
Committed by GitHub
1 parent b84c8cc4

Update tree.vue

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
src/components/tree/tree.vue
... ... @@ -146,10 +146,12 @@
146 146 return this.flatState.filter(obj => obj.node.checked).map(obj => obj.node);
147 147 },
148 148 updateTreeDown(node, changes = {}) {
  149 + if (this.checkStrictly) return;
  150 +
149 151 for (let key in changes) {
150 152 this.$set(node, key, changes[key]);
151 153 }
152   - if (node[this.childrenKey] && !this.checkStrictly) {
  154 + if (node[this.childrenKey]) {
153 155 node[this.childrenKey].forEach(child => {
154 156 this.updateTreeDown(child, changes);
155 157 });
... ...