Browse Source

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

pull/388/head
Vben 6 years ago
parent
commit
a405de8d20
  1. 9
      src/components/Tree/src/index.vue

9
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;
});

Loading…
Cancel
Save