Commit 05f490efdcb5679ebaa7e6541226c44c370171b6
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,10 +146,12 @@ | ||
146 | return this.flatState.filter(obj => obj.node.checked).map(obj => obj.node); | 146 | return this.flatState.filter(obj => obj.node.checked).map(obj => obj.node); |
147 | }, | 147 | }, |
148 | updateTreeDown(node, changes = {}) { | 148 | updateTreeDown(node, changes = {}) { |
149 | + if (this.checkStrictly) return; | ||
150 | + | ||
149 | for (let key in changes) { | 151 | for (let key in changes) { |
150 | this.$set(node, key, changes[key]); | 152 | this.$set(node, key, changes[key]); |
151 | } | 153 | } |
152 | - if (node[this.childrenKey] && !this.checkStrictly) { | 154 | + if (node[this.childrenKey]) { |
153 | node[this.childrenKey].forEach(child => { | 155 | node[this.childrenKey].forEach(child => { |
154 | this.updateTreeDown(child, changes); | 156 | this.updateTreeDown(child, changes); |
155 | }); | 157 | }); |