You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
## API
|
|
|
|
### Checkbox
|
|
|
|
| 参数 | 说明 | 类型 | 默认值 |
|
|
| --- | --- | --- | --- |
|
|
| autoFocus | 自动获取焦点 | boolean | false |
|
|
| checked | 指定当前是否选中 | boolean | false |
|
|
| defaultChecked | 初始是否选中 | boolean | false |
|
|
| indeterminate | 设置 indeterminate 状态,只负责样式控制 | boolean | false |
|
|
|
|
|
|
### 事件
|
|
| 事件名称 | 说明 | 回调参数 |
|
|
| --- | --- | --- |
|
|
| change | 变化时回调函数 | Function(e:Event) | - |
|
|
|
|
|
|
### Checkbox Group
|
|
|
|
| 参数 | 说明 | 类型 | 默认值 |
|
|
| --- | --- | --- | --- |
|
|
| defaultValue | 默认选中的选项 | string\[] | \[] |
|
|
| options | 指定可选项 | string\[] | \[] |
|
|
| value | 指定选中的选项 | string\[] | \[] |
|
|
| onChange | 变化时回调函数 | Function(checkedValue) | - |
|
|
|
|
### 事件
|
|
| 事件名称 | 说明 | 回调参数 |
|
|
| --- | --- | --- |
|
|
| change | 变化时回调函数 | Function(checkedValue) | - |
|
|
|
|
## 方法
|
|
|
|
### Checkbox
|
|
|
|
| 名称 | 描述 |
|
|
| --- | --- |
|
|
| blur() | 移除焦点 |
|
|
| focus() | 获取焦点 |
|