1.0.2 • Published 6 years ago

wc-checkbox v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

基于 Vue 的 checkbox 效果

Install

npm i wc-checkbox --save-dev

Usage

import wcCheckbox from 'wc-checkbox'
import 'wc-checkbox/style.css'
Vue.use(wcCheckbox);
<wc-checkbox v-model="check">
	label text
</wc-checkbox>

Config

v-model="check"	获取当前 checkbox 的状态, Boolean
disabled	设置当前 checkbox 是否可选, 默认 false
shape	设置当前 checkbox 显示为圆形还是正方形, 默认 圆形
active	设置当前 checkbox 未选中状态的边框颜色, 和选中状态的背景颜色, 默认为蓝色

Introduction

样式基于 element-ui. 在此基础上面添加了一些功能.

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago