1.1.6 • Published 5 years ago
vue-toast-x v1.1.6
基于vue的全局toast提示
NPM
npm install vue-toast-x
Example
import Toast form 'vue-toast-x'
vue.use(Toast)
new Vue({
methods: {
showFn () {
this.$toast('我是提示语!', 5000, 'fade');
}
}
})
Api
参数
Name | Type | Default | Description |
---|---|---|---|
msg | String | "vertical" | 字符串 |
duration | Number | 3000 | 单位毫秒(ms) |
type | String | "spread" | 所有动画类型:spread(张开);fade(渐隐);upFade(从上向下渐隐) |