From 0fa4446d08b80711c59a4bf58c491e88eb3766c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Le=20Ma=C3=AEtre?= Date: Sat, 1 Mar 2025 06:35:37 +0100 Subject: [PATCH] feat: add open prop slot on AlertDialog --- packages/core/src/AlertDialog/AlertDialogRoot.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/core/src/AlertDialog/AlertDialogRoot.vue b/packages/core/src/AlertDialog/AlertDialogRoot.vue index 41a543c3b..78c21d75f 100644 --- a/packages/core/src/AlertDialog/AlertDialogRoot.vue +++ b/packages/core/src/AlertDialog/AlertDialogRoot.vue @@ -15,6 +15,12 @@ import { useForwardExpose, useForwardPropsEmits } from '@/shared' const props = defineProps() const emits = defineEmits() +defineSlots<{ + default: (props: { + /** Current open state */ + open: typeof forwarded.value.open + }) => any +}>() const forwarded = useForwardPropsEmits(props, emits) useForwardExpose() @@ -24,6 +30,6 @@ useForwardExpose() v-bind="forwarded" :modal="true" > - +