2020-02-04 17:52:31 +08:00
|
|
|
|
# 复选框 Checkbox
|
|
|
|
|
哟,哟,Check it out。
|
|
|
|
|
## 演示
|
|
|
|
|
```demo
|
|
|
|
|
basic
|
|
|
|
|
group
|
|
|
|
|
grid
|
|
|
|
|
indeterminate
|
|
|
|
|
controlled
|
|
|
|
|
event
|
|
|
|
|
```
|
|
|
|
|
## V-model
|
|
|
|
|
### Checkbox V-model
|
|
|
|
|
|Prop|Event|
|
|
|
|
|
|-|-|
|
|
|
|
|
|change|checked|
|
|
|
|
|
|
|
|
|
|
### Checkbox Group V-model
|
|
|
|
|
|Prop|Event|
|
|
|
|
|
|-|-|
|
|
|
|
|
|change|value|
|
|
|
|
|
|
|
|
|
|
## Props
|
|
|
|
|
### Checkbox Props
|
2020-02-07 23:40:07 +08:00
|
|
|
|
|名称|类型|默认值|说明|
|
2020-02-04 17:52:31 +08:00
|
|
|
|
|-|-|-|-|
|
|
|
|
|
|value|`string \| number`|`null`||
|
|
|
|
|
|checked|`boolean`|`false`||
|
|
|
|
|
|disabled|`boolean`|`false`||
|
|
|
|
|
|
|
|
|
|
### Checkbox Group Props
|
2020-02-07 23:40:07 +08:00
|
|
|
|
|名称|类型|默认值|说明|
|
2020-02-04 17:52:31 +08:00
|
|
|
|
|-|-|-|-|
|
|
|
|
|
|value|`Array<string \| number>`|`null`||
|
|
|
|
|
|disabled|`boolean`|`false`||
|
|
|
|
|
|
|
|
|
|
## Slots
|
|
|
|
|
### Checkbox Slots
|
2020-02-07 23:40:07 +08:00
|
|
|
|
|名称|参数|说明|
|
2020-02-04 17:52:31 +08:00
|
|
|
|
|-|-|-|
|
|
|
|
|
|default|`()`||
|
|
|
|
|
|
|
|
|
|
### Checkbox Group Slots
|
2020-02-07 23:40:07 +08:00
|
|
|
|
|名称|参数|说明|
|
2020-02-04 17:52:31 +08:00
|
|
|
|
|-|-|-|
|
|
|
|
|
|default|`()`||
|
|
|
|
|
|
|
|
|
|
## Events
|
|
|
|
|
### Checkbox Events
|
2020-02-07 23:40:07 +08:00
|
|
|
|
|名称|参数|说明|
|
2020-02-04 17:52:31 +08:00
|
|
|
|
|-|-|-|
|
|
|
|
|
|change|`(checked: boolean)`||
|
|
|
|
|
|
|
|
|
|
### Checkbox Group Events
|
2020-02-07 23:40:07 +08:00
|
|
|
|
|名称|参数|说明|
|
2020-02-04 17:52:31 +08:00
|
|
|
|
|-|-|-|
|
|
|
|
|
|change|`(value: string \| number)`||
|