feat(Notification): support html with title and description slots (#431)

This commit is contained in:
Benjamin Canac
2023-07-20 11:58:43 +02:00
committed by GitHub
parent 9fc786eda0
commit df455db3ca
5 changed files with 71 additions and 4 deletions

View File

@@ -7,7 +7,11 @@
:class="notification.click && 'cursor-pointer'"
@click="notification.click && notification.click(notification)"
@close="toast.remove(notification.id)"
/>
>
<template v-for="(_, name) in $slots" #[name]="slotData">
<slot :name="name" v-bind="slotData" />
</template>
</UNotification>
</div>
</div>
</div>