perf(BasicTree): 获取treeData改写成函数

This commit is contained in:
invalid w 2023-11-09 09:56:11 +08:00
parent caf1783525
commit 748b99b18f
2 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@
}); });
const instance: TreeActionType = { const instance: TreeActionType = {
treeData: treeDataRef, getTreeData: () => treeDataRef,
setExpandedKeys, setExpandedKeys,
getExpandedKeys, getExpandedKeys,
setSelectedKeys, setSelectedKeys,

View File

@ -171,7 +171,7 @@ export interface InsertNodeParams {
} }
export interface TreeActionType { export interface TreeActionType {
treeData: Ref<TreeDataItem[]>; getTreeData: () => Ref<TreeDataItem[]>;
checkAll: (checkAll: boolean) => void; checkAll: (checkAll: boolean) => void;
expandAll: (expandAll: boolean) => void; expandAll: (expandAll: boolean) => void;
setExpandedKeys: (keys: KeyType[]) => void; setExpandedKeys: (keys: KeyType[]) => void;