File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,11 @@ import "./node_modules/build/bee-checkbox.css"
36
36
37
37
38
38
## API
39
+
40
+ ## Checkbox
41
+
39
42
| 参数| 说明| 类型| 默认值|
40
- | --- | ---- | --- | --- ---|
43
+ | :-- | : ---| :-- | : ---|
41
44
| className| 类名| string| -|
42
45
| color| one of: ` primary ` ` success ` ` info ` ` error ` ` warning ` ` dark ` | string| ''|
43
46
| disabled| 是否可用| bool| false|
@@ -47,6 +50,16 @@ import "./node_modules/build/bee-checkbox.css"
47
50
| indeterminate| 部分选中| bool| -|
48
51
| onDoubleClick| 双击事件| function| function(checked, event){}|
49
52
| onClick| 单击事件| function| function(event){}|
53
+ | value| 选中的值,需配合CheckboxGroup使用| string| -|
54
+
55
+
56
+ ## CheckboxGroup
57
+
58
+ | 参数| 说明| 类型| 默认值|
59
+ | :--| :---| :--| :---|
60
+ | className| 类名| string| -|
61
+ | onChange| 监听改变| function| -|
62
+ | value| 设置默认值| array| [ ] |
50
63
51
64
#### 开发调试
52
65
Original file line number Diff line number Diff line change 6
6
7
7
### API
8
8
9
+ ## Checkbox
10
+
9
11
| 参数| 说明| 类型| 默认值|
10
12
| :--| :---| :--| :---|
11
13
| className| 类名| string| -|
17
19
| indeterminate| 部分选中| bool| -|
18
20
| onDoubleClick| 双击事件| function| function(checked, event){}|
19
21
| onClick| 单击事件| function| function(event){}|
22
+ | value| 选中的值,需配合CheckboxGroup使用| string| -|
23
+
24
+
25
+ ## CheckboxGroup
26
+
27
+ | 参数| 说明| 类型| 默认值|
28
+ | :--| :---| :--| :---|
29
+ | className| 类名| string| -|
30
+ | onChange| 监听改变| function| -|
31
+ | value| 设置默认值| array| [ ] |
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " bee-checkbox" ,
3
- "version" : " 1.2.1 " ,
3
+ "version" : " 1.2.2 " ,
4
4
"description" : " checkbox ui component for react" ,
5
5
"keywords" : [
6
6
" react" ,
You can’t perform that action at this time.
0 commit comments