0.0.5 • Published 6 years ago

vue-toast-cyan v0.0.5

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

vue-toast-cyan

a mobile toast plugin for vue.

Usage

  //first import plugin  
  import VueToast from 'vue-toast-cyan';  
  //and register the plugin on vue.  
  Vue.use(VueToast);  
  //last , you can call it .  
  this.$toast.show("hello,toast_show");  
  this.$toast.success("hello,toast_success");  
  this.$toast.info("hello,toast_info");  
  this.$toast.error("hello,toast_error");  
  // or  
  this.$toast.show("hello,toast",{  
    duration:3000  
  });  
  // or  
  this.$toast.show("hello,toast",function(){  
      //to-do   
  });  

show

  • 弹出toast_show弹框

    npm.io

  • 弹出toast_success弹框

    npm.io

  • 弹出toast_info弹框

    npm.io

  • 弹出toast_error弹框

    npm.io