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 năm trước cách đây
mục cha
commit
6443850aa3
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;
       }
     },