Skip to content

Commit 9d372fd

Browse files
committed
docs: update checkbox api
1 parent 3d83df3 commit 9d372fd

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

components/checkbox/index.en-US.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
| checked | Specifies whether the checkbox is selected. | boolean | false |
99
| defaultChecked | Specifies the initial state: whether or not the checkbox is selected. | boolean | false |
1010
| disabled | Disable checkbox | boolean | false |
11-
| onChange | The callback function that is triggered when the state changes. | Function(e:Event) | - |
11+
12+
### events
13+
| Events Name | Description | Arguments |
14+
| --- | --- | --- |
15+
| change | The callback function that is triggered when the state changes. | Function(e:Event) |
1216

1317
### Checkbox Group
1418

@@ -18,7 +22,11 @@
1822
| disabled | Disable all checkboxes | boolean | false |
1923
| options | Specifies options | string\[] | \[] |
2024
| value | Used for setting the currently selected value. | string\[] | \[] |
21-
| onChange | The callback function that is triggered when the state changes. | Function(checkedValue) | - |
25+
26+
### events
27+
| Events Name | Description | Arguments |
28+
| --- | --- | --- |
29+
| change | The callback function that is triggered when the state changes. | Function(checkedValue) |
2230

2331
## Methods
2432

components/checkbox/index.zh-CN.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
| checked | 指定当前是否选中 | boolean | false |
99
| defaultChecked | 初始是否选中 | boolean | false |
1010
| indeterminate | 设置 indeterminate 状态,只负责样式控制 | boolean | false |
11-
| onChange | 变化时回调函数 | Function(e:Event) | - |
11+
12+
13+
### 事件
14+
| 事件名称 | 说明 | 回调参数 |
15+
| --- | --- | --- |
16+
| change | 变化时回调函数 | Function(e:Event) | - |
17+
1218

1319
### Checkbox Group
1420

@@ -19,6 +25,11 @@
1925
| value | 指定选中的选项 | string\[] | \[] |
2026
| onChange | 变化时回调函数 | Function(checkedValue) | - |
2127

28+
### 事件
29+
| 事件名称 | 说明 | 回调参数 |
30+
| --- | --- | --- |
31+
| change | 变化时回调函数 | Function(checkedValue) | - |
32+
2233
## 方法
2334

2435
### Checkbox

0 commit comments

Comments
 (0)