Ver código fonte

fix(tree): ebsure the expansion is functioning properly close #362

Vben 4 anos atrás
pai
commit
a405de8d20
1 arquivos alterados com 9 adições e 0 exclusões
  1. 9 0
      src/components/Tree/src/index.vue

+ 9 - 0
src/components/Tree/src/index.vue

@@ -205,8 +205,17 @@
 
       watchEffect(() => {
         treeDataRef.value = props.treeData as TreeItem[];
+      });
+
+      watchEffect(() => {
         state.expandedKeys = props.expandedKeys;
+      });
+
+      watchEffect(() => {
         state.selectedKeys = props.selectedKeys;
+      });
+
+      watchEffect(() => {
         state.checkedKeys = props.checkedKeys;
       });