Explorar o código

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

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