vuegems / vue-my-toasts

🍞 Provide your component and let us toast the rest

Home Page:https://vue-my-toasts.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The duration in TimerMixin can't be set

Heromyth opened this issue · comments

The settings for duration does not works:

app.use(plugin, {
  component: TailwindComponent,
  options: {
    position: 'bottom-right',
    duration: 10000   // The bug is here
  },
})

I have found it out:

    createToast(status = 'base') {
      this.$toasts[status](randomElement(messages), {
        title: 'My toast title',
        duration: 10000
      })
    },