Browse Source
docs: Update Radio docs (#38957)
* Update index.en-US.md
* Update index.zh-CN.md
* Apply suggestions from code review
Co-authored-by: afc163 <afc163@gmail.com>
pull/38979/head
Sagie501
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
components/radio/index.en-US.md
-
components/radio/index.zh-CN.md
|
|
@ -50,7 +50,7 @@ Radio group can wrap a group of `Radio`。 |
|
|
|
| defaultValue | Default selected value | any | - | | |
|
|
|
| disabled | Disable all radio buttons | boolean | false | | |
|
|
|
| name | The `name` property of all `input[type="radio"]` children | string | - | | |
|
|
|
| options | Set children optional | string\[] \| number\[] \| Array<{ label: string value: string disabled?: boolean }> | - | | |
|
|
|
| options | Set children optional | string\[] \| number\[] \| Array<{ label: ReactNode; value: string; disabled?: boolean; }> | - | | |
|
|
|
| optionType | Set Radio optionType | `default` \| `button` | `default` | 4.4.0 | |
|
|
|
| size | The size of radio button style | `large` \| `middle` \| `small` | - | | |
|
|
|
| value | Used for setting the currently selected value | any | - | | |
|
|
|
|
|
@ -51,7 +51,7 @@ demo: |
|
|
|
| defaultValue | 默认选中的值 | any | - | | | |
|
|
|
| disabled | 禁选所有子单选器 | boolean | false | | | |
|
|
|
| name | RadioGroup 下所有 `input[type="radio"]` 的 `name` 属性 | string | - | | | |
|
|
|
| options | 以配置形式设置子元素 | string\[] \| number\[] \| Array<{ label: string value: string disabled?: boolean }> | - | | | |
|
|
|
| options | 以配置形式设置子元素 | string\[] \| number\[] \| Array<{ label: ReactNode; value: string; disabled?: boolean; }> | - | | | |
|
|
|
| optionType | 用于设置 Radio `options` 类型 | `default` \| `button` | `default` | 4.4.0 | | |
|
|
|
| size | 大小,只对按钮样式生效 | `large` \| `middle` \| `small` | - | | | |
|
|
|
| value | 用于设置当前选中的值 | any | - | | | |
|
|
|