Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 457 Bytes

README.md

File metadata and controls

19 lines (18 loc) · 457 Bytes

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