perf(BasicTree): 获取treeData改写成函数
parent
39e2b66435
commit
1092addb5e
|
@ -297,7 +297,7 @@ export default defineComponent({
|
|||
})
|
||||
|
||||
const instance: TreeActionType = {
|
||||
treeData: treeDataRef,
|
||||
getTreeData: () => treeDataRef,
|
||||
setExpandedKeys,
|
||||
getExpandedKeys,
|
||||
setSelectedKeys,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue