Skip to content

Commit

Permalink
Merge pull request #68 from motea927/feat/dynamic-position
Browse files Browse the repository at this point in the history
feat: support dynamic position
  • Loading branch information
xiaoluoboding authored May 7, 2024
2 parents 27ee934 + 55102c4 commit 543a767
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/Toaster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,21 @@
<template
v-for="(toast, idx) in toasts.filter(
(toast) =>
(!toast.position && index === 0) || toast.position === position
(!toast.position && index === 0) || toast.position === pos
)"
:key="toast.id"
>
<Toast
:index="idx"
:toast="toast"
:duration="toastOptions?.duration ?? duration"
:class="toastOptions?.class"
:class="toastOptions?.class ?? ''"
:descriptionClass="toastOptions?.descriptionClass"
:invert="invert"
:visibleToasts="visibleToasts"
:closeButton="toastOptions?.closeButton ?? closeButton"
:interacting="interacting"
:position="position"
:position="pos"
:style="toastOptions?.style"
:unstyled="toastOptions?.unstyled"
:classes="toastOptions?.classes"
Expand Down

0 comments on commit 543a767

Please sign in to comment.