fix(tree): Modify the shouldVirtualizeFlatTree function to support virtualization for non-empty trees.

This commit is contained in:
t8y2
2026-05-12 01:12:18 +08:00
parent ab1b4ae227
commit 8cf0f612d4
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -27,5 +27,5 @@ export function flattenTree(nodes: TreeNode[]): FlatTreeNode[] {
}
export function shouldVirtualizeFlatTree(count: number): boolean {
return count >= 100;
return count > 0;
}