vue-mtoast

1.1.0 • Public • Published

vue-mtoast

Usage

Install:

npm i vue-mtoast --save

Import:

import MToast from 'vue-mtoast'
Vue.use(MToast)

Example:

<button @click="toast">点击</button>

toast() {
    this.$toast("hello") //基本用法
}
toast() {
    this.$toast("hello",{duration: 1000}) //自定义持续时间
}
toast() {
    this.$toast.success("hello",{duration: 1000}) //成功
}
toast() {
    this.$toast.error("hello",{duration: 1000}) //失败
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i vue-mtoast

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

124 kB

Total Files

13

Last publish

Collaborators

  • flymoth