1.1.0 • Published 5 years ago

vue-mtoast v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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}) //失败
}