Skip to content

Commit

Permalink
fix: link fix
Browse files Browse the repository at this point in the history
  • Loading branch information
modbender authored and modbender committed Jul 25, 2024
1 parent 5a79301 commit 3319cbc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<template>
<main>
Main Content
<button @click="test">Open Snackbar</button>
<button @click="test">
Open Snackbar
</button>
<NuxtSnackbar />
</main>
</template>
Expand Down
10 changes: 8 additions & 2 deletions src/runtime/components/NuxtSnackbar.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<template>
<Vue3Snackbar v-bind="snackbarOptions">
<template v-for="(_, name) in $slots" #[name]="slotData">
<slot :name="name" v-bind="slotData" />
<template
v-for="(_, name) in $slots"
#[name]="slotData"
>
<slot
:name="name"
v-bind="slotData"
/>
</template>
</Vue3Snackbar>
</template>
Expand Down

0 comments on commit 3319cbc

Please sign in to comment.