Commit a405de8d authored by Vben's avatar Vben

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

parent 7a6c87f8
...@@ -205,8 +205,17 @@ ...@@ -205,8 +205,17 @@
watchEffect(() => { watchEffect(() => {
treeDataRef.value = props.treeData as TreeItem[]; treeDataRef.value = props.treeData as TreeItem[];
});
watchEffect(() => {
state.expandedKeys = props.expandedKeys; state.expandedKeys = props.expandedKeys;
});
watchEffect(() => {
state.selectedKeys = props.selectedKeys; state.selectedKeys = props.selectedKeys;
});
watchEffect(() => {
state.checkedKeys = props.checkedKeys; state.checkedKeys = props.checkedKeys;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment