Skip to content

Commit

Permalink
fix(tree): ebsure the expansion is functioning properly close #362
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Mar 12, 2021
1 parent 7a6c87f commit a405de8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Tree/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit a405de8

Please sign in to comment.