File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { ITreeNodeOptions } from "../store/tree-node"
5
5
import { FilterFunctionType } from "../store/tree-store"
6
6
import { TreeProps } from "../components/Tree.vue"
7
7
8
- type IUsePublicTreeAPIProps = Required < Pick < TreeProps ,
8
+ type IUsePublicTreeAPIProps = Required < Pick < TreeProps ,
9
9
'selectable' |
10
10
'checkable' |
11
11
'separator' |
@@ -82,8 +82,8 @@ export const usePublicTreeAPI = (
82
82
key : TreeNodeKeyType ,
83
83
value : boolean ,
84
84
expandParent : boolean = true
85
- ) : void {
86
- nonReactive . store . setExpand ( key , value , expandParent )
85
+ ) : Promise < void > {
86
+ return nonReactive . store . setExpand ( key , value , expandParent )
87
87
}
88
88
function setExpandKeys ( keys : TreeNodeKeyType [ ] , value : boolean ) : void {
89
89
nonReactive . store . setExpandKeys ( keys , value )
You can’t perform that action at this time.
0 commit comments