chore(Toaster): move slot first

This commit is contained in:
Benjamin Canac
2024-04-11 14:39:57 +02:00
parent 74feb3a8cb
commit 432256dc67
2 changed files with 62 additions and 62 deletions

View File

@@ -77,6 +77,8 @@ function getOffset (index: number) {
<template>
<ToastProvider :swipe-direction="swipeDirection" v-bind="providerProps">
<slot />
<UToast
v-for="(toast, index) of toasts"
:key="toast.id"
@@ -112,7 +114,5 @@ function getOffset (index: number) {
@mouseenter="hovered = true"
@mouseleave="hovered = false"
/>
<slot />
</ToastProvider>
</template>