Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a3b5152

Browse files
committed
feat: setExpand API返回Promise
1 parent 2a8d8f5 commit a3b5152

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/hooks/usePublicTreeAPI.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ITreeNodeOptions } from "../store/tree-node"
55
import { FilterFunctionType } from "../store/tree-store"
66
import { 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+
returnnonReactive.store.setExpand(key, value, expandParent)
8787
}
8888
function setExpandKeys(keys: TreeNodeKeyType[], value: boolean): void {
8989
nonReactive.store.setExpandKeys(keys, value)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /