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

pull/40/MERGE
xingyu 2023-11-09 11:34:19 +08:00
parent 39e2b66435
commit 1092addb5e
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ export default defineComponent({
})
const instance: TreeActionType = {
treeData: treeDataRef,
getTreeData: () => treeDataRef,
setExpandedKeys,
getExpandedKeys,
setSelectedKeys,

View File

@ -165,7 +165,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