1.0.4 • Published 5 years ago
vue-toast-sharic v1.0.4
vue-toast-sharic
基于vue开发的弹窗提示插件。
API
- mes: String : 弹窗内容
- timeout: Number, default: 2000 : 弹窗持续时间
- callback: Function : 弹窗结束回调函数
NPM
npm install vue-toast-sharic --save
main调用示例
import Toast from 'vue-toast-sharic'
Vue.use(Toast)
组件中调用示例
this.$toast({mes: 'Hello World!'})
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.