From 44f4bf07ee5e2bc6b11262f06abd767c4554d72b Mon Sep 17 00:00:00 2001 From: Typed SIGTERM Date: Fri, 15 Aug 2025 21:29:03 +0800 Subject: [PATCH 1/5] feat(Modal): pass `animating` prop to slots --- src/runtime/components/Modal.vue | 62 ++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 22 deletions(-) diff --git a/src/runtime/components/Modal.vue b/src/runtime/components/Modal.vue index 228e335ba5..f6e7de121d 100644 --- a/src/runtime/components/Modal.vue +++ b/src/runtime/components/Modal.vue @@ -60,20 +60,20 @@ export interface ModalEmits extends DialogRootEmits { } export interface ModalSlots { - default(props: { open: boolean }): any - content(props: { close: () => void }): any - header(props: { close: () => void }): any - title(props?: {}): any - description(props?: {}): any - actions(props?: {}): any - close(props: { close: () => void, ui: { [K in keyof Required]: (props?: Record) => string } }): any - body(props: { close: () => void }): any - footer(props: { close: () => void }): any + default(props: { open: boolean, animating: boolean }): any + content(props: { close: () => void, animating: boolean }): any + header(props: { close: () => void, animating: boolean }): any + title(props: { animating: boolean }): any + description(props: { animating: boolean }): any + actions(props: { animating: boolean }): any + close(props: { close: () => void, ui: { [K in keyof Required]: (props?: Record) => string }, animating: boolean }): any + body(props: { close: () => void, animating: boolean }): any + footer(props: { close: () => void, animating: boolean }): any }