0.0.1 • Published 4 years ago

vue-toast-sky v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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

参数名必选类型说明
messagestring提示文字
typestring提示类型 info,success,warning,error
durationnumber显示时间,默认3000