h-toast
v1.0.4
Published
h-toast is a mobile toast plugin for vue.js
Readme
h-toast
vue.js 移动端 alert 组件
使用方法
options:
{
txt: "", // 提示文字
style: "", // 样式
duration: 1000 // 延时,默认1000, 为0时,不消失
} var Toast = require('h-toast');
Vue.use(Toast);Basic use:
vm.$toast('提示信息内容');
vm.$toast({
txt: "this is red Toast",
duration: 2000,
style: "background-color: rgba(0,0,0,.8)"
});