Skip to content

Commit

Permalink
Fix slot's class prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
kyvg committed Dec 18, 2023
1 parent 85b9e3e commit b76270c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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),
}) : (
<div
Expand Down

0 comments on commit b76270c

Please sign in to comment.