fix(Tree): beforeRightClick type (#2968)

This commit is contained in:
Li Kui 2023-08-16 21:34:57 +08:00 committed by GitHub
parent b660f96220
commit 2c74e790cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ export const treeProps = buildProps({
},
beforeRightClick: {
type: Function as PropType<(...arg: any) => ContextMenuItem[] | ContextMenuOptions>,
type: Function as PropType<(...arg: any) => Promise<ContextMenuItem[] | ContextMenuOptions>>,
default: undefined,
},