Open amchconsult opened 2 years ago
You can just use
npm i awesome-notifications
@import 'awesome-notifications/dist/style.css'
import AWN from 'awesome-notifications'
const app = createApp(App)
app.config.globalProperties.$awn = new AWN({
position: 'top-right',
minDurations: { 'async-block': 100 },
durations: { global: 2000, alert: 4000 },
})
And then how to invoque from components?
tried this this.$awn.success('Your custom message')
but get undefined
do you plan to do a vue 3 version? thank you