vue-z-toast
v1.2.2
Published
a toast plugin for vue
Downloads
14
Readme
vue-z-toast
vue的toast插件
Usage
install package
yarn add vue-z-toastornpm install vue-z-toastregister
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
messagetoast 内容durationtoast 持续时间,默认 2000msstyleObjtoast 样式,默认{ color: 'red', backgroundColor: 'rgba(125, 43, 86, .4)' }, 关于styleObj请参考vue 文档(与内联 style 绑定(Binding Inline Styles))
