vue-z-toast
v1.2.2
Published
a toast plugin for vue
Downloads
20
Readme
vue-z-toast
vue的toast插件
Usage
install package
yarn add vue-z-toast
ornpm install vue-z-toast
register
import VueZToast from 'vue-z-toast' import 'vue-z-toast/dist/index.min.css' ... Vue.use(VueZToast)
use
... this.$toast('toast', 2500, { color: 'red', backgroundColor: 'rgba(125, 43, 86, .4)' }) ...
options
message
toast 内容duration
toast 持续时间,默认 2000msstyleObj
toast 样式,默认{ color: 'red', backgroundColor: 'rgba(125, 43, 86, .4)' }
, 关于styleObj
请参考vue 文档(与内联 style 绑定(Binding Inline Styles))