1.0.0 • Published 6 years ago
vue-hints v1.0.0
vue-hints
a mobile toast plugin for vue
Usage
//导入
import hints from 'vue-hints'
Vue.use(hints);
//弹出 "hello toast" 的提示
this.$toast.show("hello toast",{});
//延迟3秒后弹出 "hello toast" 的提示
this.$toast.show("hello toast",{
duration:3000
});
//回调函数
this.$toast.show("hello toast",{
duration:3000
},function(){
//...
});
注意
//option必须存在且为对象
this.$toast.show(message,option,callback)
1.0.0
6 years ago