mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +08:00
fix(components): [el-dialog] fix emits (#3375)
This commit is contained in:
parent
f538abae77
commit
1079e9afe6
@ -81,10 +81,10 @@ export const dialogProps = {
|
||||
export type DialogProps = ExtractPropTypes<typeof dialogProps>
|
||||
|
||||
export const dialogEmits = {
|
||||
open: () => undefined,
|
||||
opened: () => undefined,
|
||||
close: () => undefined,
|
||||
closed: () => undefined,
|
||||
open: () => true,
|
||||
opened: () => true,
|
||||
close: () => true,
|
||||
closed: () => true,
|
||||
[UPDATE_MODEL_EVENT]: (value: boolean) => typeof value === 'boolean',
|
||||
}
|
||||
export type DialogEmits = typeof dialogEmits
|
||||
|
Loading…
Reference in New Issue
Block a user