Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
6443850aa3
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;
       }
     },