fix(modal): add onUpdate:open prop (#6876)

pull/6917/head
Konv Suu 2023-08-30 16:18:54 +08:00 committed by GitHub
parent 3c05b7704b
commit 418d8b33dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ export const modalProps = () => ({
onOk: Function as PropType<(e: MouseEvent) => void>,
onCancel: Function as PropType<(e: MouseEvent) => void>,
'onUpdate:visible': Function as PropType<(visible: boolean) => void>,
onChange: Function as PropType<(visible: boolean) => void>,
'onUpdate:open': Function as PropType<(open: boolean) => void>,
onChange: Function as PropType<(open: boolean) => void>,
afterClose: Function as PropType<() => void>,
centered: { type: Boolean, default: undefined },
width: [String, Number],