2019-10-11 17:01:23 +08:00
|
|
|
# Checkbox
|
2020-01-28 14:29:11 +08:00
|
|
|
Yo, yo, check it out.
|
|
|
|
## Demos
|
2019-10-11 17:01:23 +08:00
|
|
|
```demo
|
|
|
|
basic
|
|
|
|
group
|
|
|
|
grid
|
|
|
|
indeterminate
|
|
|
|
controlled
|
|
|
|
event
|
2020-01-28 14:29:11 +08:00
|
|
|
```
|
|
|
|
## V-model
|
2020-02-04 17:52:31 +08:00
|
|
|
### Checkbox V-model
|
2020-01-28 14:29:11 +08:00
|
|
|
|Prop|Event|
|
|
|
|
|-|-|
|
|
|
|
|change|checked|
|
|
|
|
|
2020-02-04 17:52:31 +08:00
|
|
|
### Checkbox Group V-model
|
2020-01-28 14:29:11 +08:00
|
|
|
|Prop|Event|
|
|
|
|
|-|-|
|
|
|
|
|change|value|
|
|
|
|
|
|
|
|
## Props
|
2020-02-04 17:52:31 +08:00
|
|
|
### Checkbox Props
|
2020-01-28 14:29:11 +08:00
|
|
|
|Name|Type|Default|Description|
|
|
|
|
|-|-|-|-|
|
|
|
|
|value|`string \| number`|`null`||
|
|
|
|
|checked|`boolean`|`false`||
|
|
|
|
|disabled|`boolean`|`false`||
|
|
|
|
|
2020-02-04 17:52:31 +08:00
|
|
|
### Checkbox Group Props
|
2020-01-28 14:29:11 +08:00
|
|
|
|Name|Type|Default|Description|
|
|
|
|
|-|-|-|-|
|
2020-02-04 17:52:31 +08:00
|
|
|
|value|`Array<string \| number>`|`null`||
|
2020-01-28 14:29:11 +08:00
|
|
|
|disabled|`boolean`|`false`||
|
|
|
|
|
|
|
|
## Slots
|
2020-02-04 17:52:31 +08:00
|
|
|
### Checkbox Slots
|
2020-01-28 14:29:11 +08:00
|
|
|
|Name|Parameters|Description|
|
|
|
|
|-|-|-|
|
2020-01-30 23:54:06 +08:00
|
|
|
|default|`()`||
|
2020-01-28 14:29:11 +08:00
|
|
|
|
2020-02-04 17:52:31 +08:00
|
|
|
### Checkbox Group Slots
|
2020-01-28 14:29:11 +08:00
|
|
|
|Name|Parameters|Description|
|
|
|
|
|-|-|-|
|
2020-01-30 23:54:06 +08:00
|
|
|
|default|`()`||
|
2020-01-28 14:29:11 +08:00
|
|
|
|
|
|
|
## Events
|
2020-02-04 17:52:31 +08:00
|
|
|
### Checkbox Events
|
2020-01-28 14:29:11 +08:00
|
|
|
|Name|Parameters|Description|
|
|
|
|
|-|-|-|
|
2020-01-30 23:54:06 +08:00
|
|
|
|change|`(checked: boolean)`||
|
2020-01-28 14:29:11 +08:00
|
|
|
|
2020-02-04 17:52:31 +08:00
|
|
|
### Checkbox Group Events
|
2020-01-28 14:29:11 +08:00
|
|
|
|Name|Paramaters|Description|
|
|
|
|
|-|-|-|
|
2020-01-30 23:54:06 +08:00
|
|
|
|change|`(value: string \| number)`||
|