2.0.11 • Published 4 years ago

bee-checkbox v2.0.11

Weekly downloads
258
License
MIT
Repository
github
Last release
4 years ago

bee-checkbox

npm version Build Status Coverage Status

复选框

使用

使用单独的bee-checkbox包

组件引入

先进行下载bee-checkbox包

npm install --save bee-checkbox

组件调用

import Checkbox from 'bee-checkbox';

React.render(<div>
        <Checkbox colors="primary" />
</div>, document.getElementById('target'));

样式引入

  • 可以使用link引入dist目录下bee-checkbox.css
<link rel="stylesheet" href="./node_modules/build/bee-checkbox.css">
  • 可以在js中import样式
import "./node_modules/src/Checkbox.scss"
//或是
import "./node_modules/build/bee-checkbox.css"

API

Checkbox

参数说明类型默认值
className类名string-
colorone of: primary success info danger warning darkstring''
disabled是否可用boolfalse
onChange监听改变function-
defaultChecked默认是否选中boolfalse
checked是否选中bool-
indeterminate部分选中bool-
onDoubleClick双击事件functionfunction(checked, event){}
onClick单击事件functionfunction(event){}
value选中的值,需配合CheckboxGroup使用string-
inverse设置选中为红色填充boolfalse

CheckboxGroup

参数说明类型默认值
className类名string-
onChange监听改变function-
value设置默认值array[]
disabled是否可用boolfalse

已支持的键盘操作

按键功能
space选中/反选Checkbox

开发调试

$ git clone https://github.com/tinper-bee/bee-checkbox
$ cd bee-checkbox
$ npm install
$ npm run dev
2.0.11

4 years ago

2.0.10

4 years ago

2.0.9-alpha.1

4 years ago

2.0.9-alpha.0

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

5 years ago

2.0.7-alpha.0

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.5-alpha.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago