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

This commit is contained in:
Vben 2021-03-12 23:10:37 +08:00
parent 7a6c87f8c1
commit a405de8d20

View File

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