From b76270c51a6d2dbb6412b12e134a5c7db30b439f Mon Sep 17 00:00:00 2001 From: kyvg Date: Mon, 18 Dec 2023 16:59:43 +0200 Subject: [PATCH] Fix slot's class prop type --- src/components/Notifications.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Notifications.tsx b/src/components/Notifications.tsx index 1eb6e3b..540f2e2 100644 --- a/src/components/Notifications.tsx +++ b/src/components/Notifications.tsx @@ -25,7 +25,7 @@ type Emit = { } type Slots = SlotsType<{ - body?: (props: { class: string, item: HTMLAttributes['class'], close: () => void }) => any; + body?: (props: { class: HTMLAttributes['class'], item: NotificationItem, close: () => void }) => any; }> export default defineComponent({ @@ -387,7 +387,7 @@ export default defineComponent({ { slots.body ? slots.body({ item, - class: [props.classes, item.type].join(''), + class: [props.classes, item.type], close: () => destroy(item), }) : (