mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-24 11:05:17 +08:00
fix(components): [el-popconfirm] fix onConfirm and onCancel type bug (#5948)
This commit is contained in:
parent
f3e9e53f3d
commit
3a7ba03171
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user