0.0.1 • Published 4 years ago
vue-toast-sky v0.0.1
install
npm install vue-toast-sky -S
//main.js
import toast from 'vue-toast-sky'
Vue.use(toast)
The first method of use
this.$toast('你好啊')
The second method of use
this.$toast({
message: '你好啊',
type: 'warning',
duration: 5000
})
options
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
message | 是 | string | 提示文字 |
type | 否 | string | 提示类型 info,success,warning,error |
duration | 否 | number | 显示时间,默认3000 |
0.0.1
4 years ago