Skip to content

joe20182/vue-toast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vue-toast

toast global component

usage:
clone this repo to your vue-cli project
and then in your main.js

import Toast from './xxx/toast'
Vue.use(Toast)

in your vue components

/**
 * this.$toast(text[, duration])
 * the duration is set to be 3000ms by default
 */
this.$toast('gonna disappear in 2 secs', 2000)

img-1