Skip to content

Commit

Permalink
docs: Update Radio docs (#38957)
Browse files Browse the repository at this point in the history
* Update index.en-US.md

* Update index.zh-CN.md

* Apply suggestions from code review

Co-authored-by: afc163 <afc163@gmail.com>
  • Loading branch information
Sagie501 and afc163 committed Nov 24, 2022
1 parent 5037708 commit 3bdd9d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/radio/index.en-US.md
Expand Up @@ -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&lt;{ label: string value: string disabled?: boolean }> | - | |
| options | Set children optional | string\[] \| number\[] \| Array&lt;{ 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 | - | |
Expand Down
2 changes: 1 addition & 1 deletion components/radio/index.zh-CN.md
Expand Up @@ -51,7 +51,7 @@ demo:
| defaultValue | 默认选中的值 | any | - | | |
| disabled | 禁选所有子单选器 | boolean | false | | |
| name | RadioGroup 下所有 `input[type="radio"]``name` 属性 | string | - | | |
| options | 以配置形式设置子元素 | string\[] \| number\[] \| Array&lt;{ label: string value: string disabled?: boolean }> | - | | |
| options | 以配置形式设置子元素 | string\[] \| number\[] \| Array&lt;{ label: ReactNode; value: string; disabled?: boolean; }> | - | | |
| optionType | 用于设置 Radio `options` 类型 | `default` \| `button` | `default` | 4.4.0 | |
| size | 大小,只对按钮样式生效 | `large` \| `middle` \| `small` | - | | |
| value | 用于设置当前选中的值 | any | - | | |
Expand Down

0 comments on commit 3bdd9d0

Please sign in to comment.