瀏覽代碼

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 年之前
父節點
當前提交
6443850aa3
共有 1 個文件被更改,包括 4 次插入0 次删除
  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;
       }
     },