fix(components): [el-dialog] fix emits (#3375)

This commit is contained in:
三咲智子 2021-09-13 13:19:06 +08:00 committed by GitHub
parent f538abae77
commit 1079e9afe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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