mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
perf(BasicTree): 获取treeData改写成函数
This commit is contained in:
parent
caf1783525
commit
748b99b18f
@ -320,7 +320,7 @@
|
||||
});
|
||||
|
||||
const instance: TreeActionType = {
|
||||
treeData: treeDataRef,
|
||||
getTreeData: () => treeDataRef,
|
||||
setExpandedKeys,
|
||||
getExpandedKeys,
|
||||
setSelectedKeys,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user