npm.io
1.0.0 • Published 7 years ago

vue-switch-tool

Licence
MIT
Version
1.0.0
Deps
1
Size
80 kB
Vulns
1
Weekly
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

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

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

  4. 应用组件

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