0.0.4 • Published 6 years ago

tz-vue-toast v0.0.4

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

tz-vue-toast Toast插件

Installation

npm

$ npm install tz-vue-toast --save-dev

or

script

<script src="build/tz-vue-toast.min.js"></script>

Usage

import Vue from 'vue'
import TZVueToast from 'tz-vue-toast'
Vue.use(TZVueToast)
new Vue({
  el: '#app',
  mounted: function () {
    // Vue prototype function
    this.$showToast({
      text: 'test',
      duration: 1500 // auto disappear time, default: 2000
    });
    // Syntactic sugar
    this.$showToast('test');
  }
})

Build Setup

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago