mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
improve select doc
This commit is contained in:
parent
28765d4811
commit
00dd1d5f07
@ -11,7 +11,6 @@ Radio.
|
||||
- Used to select a single state in multiple options.
|
||||
- The different between Select, Radio is visible to user, it can facilitate users in the comparison of choice. So, when you want to use Radio, option should not be too much.
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### Radio
|
||||
|
@ -12,7 +12,6 @@ title: Radio
|
||||
- 用于在多个备选项中选中单个状态。
|
||||
- 和 Select 的区别是,Radio 所有选项默认可见,方便用户在比较中选择,因此选项不宜过多。
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### Radio
|
||||
|
@ -8,7 +8,10 @@ A Selector similar to Select2.
|
||||
|
||||
## When To Use
|
||||
|
||||
A dropdown menu for choosing, an elegant alternative to the native select component.
|
||||
- A dropdown menu for choosing, an elegant alternative to the native select component.
|
||||
- [Radio](/components/radio/) is a better solution when options amount is too little (less than or equal 3).
|
||||
|
||||
## API
|
||||
|
||||
```html
|
||||
<Select>
|
||||
@ -16,8 +19,6 @@ A dropdown menu for choosing, an elegant alternative to the native select compon
|
||||
</Select>
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Select props
|
||||
|
||||
| Property | Description | Type | Default |
|
||||
|
@ -9,7 +9,10 @@ title: Select
|
||||
|
||||
## 何时使用
|
||||
|
||||
弹出一个下拉菜单给用户选择操作,用于代替原生的选择器,或者需要一个更优雅的多选器时。
|
||||
- 弹出一个下拉菜单给用户选择操作,用于代替原生的选择器,或者需要一个更优雅的多选器时。
|
||||
- 当选项少时,建议直接将选项平铺,使用 [Radio](/components/radio/) 是更好的选择。
|
||||
|
||||
## API
|
||||
|
||||
```html
|
||||
<Select>
|
||||
@ -17,8 +20,6 @@ title: Select
|
||||
</Select>
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Select props
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|
Loading…
Reference in New Issue
Block a user