From 418d8b33ddd76bdd501371273f5a0c44f198e090 Mon Sep 17 00:00:00 2001 From: Konv Suu <2583695112@qq.com> Date: Wed, 30 Aug 2023 16:18:54 +0800 Subject: [PATCH] fix(modal): add onUpdate:open prop (#6876) --- components/modal/Modal.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index e469f0e1e..0e749a7d6 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -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],