Skip to content

Commit

Permalink
perf(BasicTree): 获取treeData改写成函数
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjue666 committed Nov 9, 2023
1 parent caf1783 commit 748b99b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Tree/src/BasicTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
});
const instance: TreeActionType = {
treeData: treeDataRef,
getTreeData: () => treeDataRef,
setExpandedKeys,
getExpandedKeys,
setSelectedKeys,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tree/src/types/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export interface InsertNodeParams {
}

export interface TreeActionType {
treeData: Ref<TreeDataItem[]>;
getTreeData: () => Ref<TreeDataItem[]>;
checkAll: (checkAll: boolean) => void;
expandAll: (expandAll: boolean) => void;
setExpandedKeys: (keys: KeyType[]) => void;
Expand Down

0 comments on commit 748b99b

Please sign in to comment.