naive-ui/demo/documentation/components/radio/zhCN/index.md

53 lines
1.1 KiB
Markdown
Raw Normal View History

2020-02-04 17:18:32 +08:00
# 单选 Radio
<!--single-column-->
我还小的时候,很喜欢听收音机,比如 FM 106.8 或者 FM 92.1。
## 演示
```demo
basic
group
button-group
```
## V-model
### Radio V-model
|Prop|Event|
|-|-|
|checked-value|change|
### Radio Group V-model
|Prop|Event|
|-|-|
|value|change|
## Props
### Radio Props
2020-02-07 23:40:07 +08:00
|名称|类型|默认值|说明|
2020-02-04 17:18:32 +08:00
|-|-|-|-|
|checked-value|`string \| number \| boolean`|`null`||
|value|`string \| number \| boolean`|`null`||
|disabled|`boolean`|`false`||
### Radio Button Props
2020-02-07 23:40:07 +08:00
|名称|类型|默认值|说明|
2020-02-04 17:18:32 +08:00
|-|-|-|-|
|checked-value|`string \| number \| boolean`|`null`||
|value|`string \| number \| boolean`|`null`||
|disabled|`boolean`|`false`||
### Radio Group Props
2020-02-07 23:40:07 +08:00
|名称|类型|默认值|说明|
2020-02-04 17:18:32 +08:00
|-|-|-|-|
|size|`'small' \| 'medium' \| 'large'`|`small`||
|value|`string \| number \| boolean`|`null`||
|disabled|`boolean`|`false`||
## Events
### Radio, Radio Button Events
2020-02-07 23:40:07 +08:00
|名称|参数|说明|
2020-02-04 17:18:32 +08:00
|-|-|-|
|change|`(checkedValue: string \| number \| boolean)`||
### Radio Group Events
2020-02-07 23:40:07 +08:00
|名称|参数|说明|
2020-02-04 17:18:32 +08:00
|-|-|-|
|change|`(checkedValue: string \| number \| boolean)`||