1.0.0 • Published 5 years ago

vue-switch-tool v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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

  1. 在vue中引入组件 import switchele from 'wzqcomponent';

  2. 进行组件祖册 components: {switchele},

  3. 应用组件

<switchele v-model="value1" activeColor="#13ce66" inactiveColor="#ff4949" @change="readVal"/>
activeColor:点击之后颜色
inactiveColor:点击之前的颜色
@change:可监听事件