vue-toast-demo-hut

1.0.2 • Public • Published

vue-toast-demo-hut

a mobile toast plugin for vue

Usage

//导入
import ToastDemo from 'vue-toast-demo-hut'
 
Vue.use(ToastDemo);
 
//弹出 "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)

Dependents (0)

Package Sidebar

Install

npm i vue-toast-demo-hut

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

48.2 kB

Total Files

8

Last publish

Collaborators

  • hutchins