Skip to content

Commit

Permalink
fix(Tree): 修复 remote 模式 expandedKeys 变化时,没有正确修改 node.isExpanded (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
1zumii authored Jun 20, 2024
1 parent 8a0a036 commit fc87810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tree/useCurrentData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default ({
// 缓存每个节点的展开状态,性能更优
keys.forEach((key) => {
const node = nodeList.get(key);
if (node.hasChildren) {
if (!node.isLeaf) {
node.isExpanded.value = expandedKeys.includes(key);
}
const indexPath = node.indexPath;
Expand Down

0 comments on commit fc87810

Please sign in to comment.