fix(components): [el-popconfirm] fix onConfirm and onCancel type bug (#5948)

This commit is contained in:
virgosoy 2022-02-11 09:17:45 +08:00 committed by GitHub
parent f3e9e53f3d
commit 3a7ba03171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,10 +45,10 @@ export const popconfirmProps = buildProps({
default: 200,
},
onConfirm: {
type: definePropType<(e: Event) => Promise<boolean> | boolean>(Function),
type: definePropType<(e: Event) => Promise<void> | void>(Function),
},
onCancel: {
type: definePropType<(e: Event) => Promise<boolean> | boolean>(Function),
type: definePropType<(e: Event) => Promise<void> | void>(Function),
},
teleported: useTooltipContentProps.teleported,
} as const)