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

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,
},