|
|
@ -13,7 +13,9 @@ Checkbox. |
|
|
|
|
|
|
|
## API |
|
|
|
|
|
|
|
### Checkbox |
|
|
|
### Props |
|
|
|
|
|
|
|
#### Checkbox |
|
|
|
|
|
|
|
| Property | Description | Type | Default | |
|
|
|
| -------- | ----------- | ---- | ------- | |
|
|
@ -21,9 +23,10 @@ Checkbox. |
|
|
|
| checked | Specifies whether the checkbox is selected. | boolean | false | |
|
|
|
| defaultChecked | Specifies the initial state: whether or not the checkbox is selected. | boolean | false | |
|
|
|
| disabled | Disable checkbox | boolean | false | |
|
|
|
| indeterminate | indeterminate checked state of checkbox | boolean | false | |
|
|
|
| onChange | The callback function that is triggered when the state changes. | Function(e:Event) | - | |
|
|
|
|
|
|
|
### Checkbox Group |
|
|
|
#### Checkbox Group |
|
|
|
|
|
|
|
| Property | Description | Type | Default | |
|
|
|
| -------- | ----------- | ---- | ------- | |
|
|
@ -33,11 +36,11 @@ Checkbox. |
|
|
|
| value | Used for setting the currently selected value. | string\[] | \[] | |
|
|
|
| onChange | The callback function that is triggered when the state changes. | Function(checkedValue) | - | |
|
|
|
|
|
|
|
## Methods |
|
|
|
### Methods |
|
|
|
|
|
|
|
### Checkbox |
|
|
|
#### Checkbox |
|
|
|
|
|
|
|
| Name | Description | |
|
|
|
| ---- | ----------- | |
|
|
|
| blur() | remove focus | |
|
|
|
| focus() | get focus | |
|
|
|
| blur() | remove focus | |
|
|
|