1.0.4 • Published 6 years ago
h-toast v1.0.4
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)"
});