vue-min-toast
v1.0.8
Published
A mobile toast plugin for vue.
Downloads
13
Maintainers
Readme
vue-min-toast
A mobile toast plugin for vue.
How to use
It's simple.
//first import plugin
import VueMToast from 'vue-min-toast'
//and register the plugin on vue.
Vue.use(VueMToast)
//last , you can call it .
this.$toast.show("hello,toast")
or
this.$toast.show("hello,toast",{
duration:3000
})
or
this.$toast.show("hello,toast",function(){
// to-do
// callback
})
```vue bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# run e2e tests
npm run e2e
# run all tests
npm test