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"
55import { FilterFunctionType } from "../store/tree-store"
66import { TreeProps } from "../components/Tree.vue"
77
8- type IUsePublicTreeAPIProps = Required < Pick < TreeProps ,
8+ type IUsePublicTreeAPIProps = Required < Pick < TreeProps ,
99 'selectable' |
1010 'checkable' |
1111 'separator' |
@@ -82,8 +82,8 @@ export const usePublicTreeAPI = (
8282 key : TreeNodeKeyType ,
8383 value : boolean ,
8484 expandParent : boolean = true
85- ) : void {
86- nonReactive . store . setExpand ( key , value , expandParent )
85+ ) : Promise < void > {
86+ return nonReactive . store . setExpand ( key , value , expandParent )
8787 }
8888 function setExpandKeys ( keys : TreeNodeKeyType [ ] , value : boolean ) : void {
8989 nonReactive . store . setExpandKeys ( keys , value )
You can’t perform that action at this time.
0 commit comments