We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a8d8f5 commit a3b5152Copy full SHA for a3b5152
src/hooks/usePublicTreeAPI.ts
@@ -5,7 +5,7 @@ import { ITreeNodeOptions } from "../store/tree-node"
5
import { FilterFunctionType } from "../store/tree-store"
6
import { TreeProps } from "../components/Tree.vue"
7
8
-type IUsePublicTreeAPIProps = Required<Pick<TreeProps,
+type IUsePublicTreeAPIProps = Required<Pick<TreeProps,
9
'selectable' |
10
'checkable' |
11
'separator' |
@@ -82,8 +82,8 @@ export const usePublicTreeAPI = (
82
key: TreeNodeKeyType,
83
value: boolean,
84
expandParent: boolean = true
85
- ): void {
86
- nonReactive.store.setExpand(key, value, expandParent)
+ ): Promise<void> {
+ return nonReactive.store.setExpand(key, value, expandParent)
87
}
88
function setExpandKeys(keys: TreeNodeKeyType[], value: boolean): void {
89
nonReactive.store.setExpandKeys(keys, value)
0 commit comments