Browse Source

Tree: make checkStrictly responsive (#10867)

* Tree: fix model.TreeStore.checkStrictly doesn't change along with the change of tree.props.checkStrictly

* Update tree.vue
Weimengxi 7 years ago
parent
commit
6443850aa3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/tree/src/tree.vue

+ 4 - 0
packages/tree/src/tree.vue

@@ -162,6 +162,10 @@
         Array.prototype.forEach.call(val, (checkbox) => {
           checkbox.setAttribute('tabindex', -1);
         });
+      },
+
+      checkStrictly(newVal) {
+        this.store.checkStrictly = newVal;
       }
     },