1.0.0 • Published 5 years ago
vue-switch-tool v1.0.0
vue-switch-tool
A Vue.js project
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. 安装组件 进行npm install vue-switch-tool --save
在vue中引入组件 import switchele from 'wzqcomponent';
进行组件祖册 components: {switchele},
应用组件
<switchele v-model="value1" activeColor="#13ce66" inactiveColor="#ff4949" @change="readVal"/>
activeColor:点击之后颜色
inactiveColor:点击之前的颜色
@change:可监听事件
1.0.0
5 years ago