1.0.0 • Published 7 years ago
vue-toast-c v1.0.0
vue-toast-c
基于vue开发的弹窗提示插件。
API
- mes: String : 弹窗内容
- timeout: Number, default: 2000 : 弹窗持续时间
- callback: Function : 弹窗结束回调函数
NPM
npm install vue-toast-c --save
main调用示例
import Toast from 'vue-toast-c'
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.
1.0.0
7 years ago