mirror of
https://github.com/zhigang1992/react.git
synced 2026-01-31 09:08:41 +08:00
docs(select): append api of value prop
This commit is contained in:
@@ -75,7 +75,8 @@ Display a dropdown list of items.
|
||||
|
||||
| Attribute | Description | Type | Accepted values | Default
|
||||
| ---------- | ---------- | ---- | -------------- | ------ |
|
||||
| **initialValue** | selected value | `string` | - | - |
|
||||
| **value** | selected value | `string` | - | - |
|
||||
| **initialValue** | initial value | `string` | - | - |
|
||||
| **placeholder** | placeholder string | `string` | - | - |
|
||||
| **size** | select component size | `NormalSizes` | `'mini', 'small', 'medium', 'large'` | `medium` |
|
||||
| **icon** | icon component | `ReactNode` | - | `SVG Component` |
|
||||
|
||||
@@ -74,6 +74,7 @@ export const meta = {
|
||||
|
||||
| 属性 | 描述 | 类型 | 推荐值 | 默认
|
||||
| ---------- | ---------- | ---- | -------------- | ------ |
|
||||
| **value** | 手动设置选择器的值 | `string` | - | - |
|
||||
| **initialValue** | 选择器初始值 | `string` | - | - |
|
||||
| **placeholder** | 占位文本内容 | `string` | - | - |
|
||||
| **size** | 选择器组件大小 | `NormalSizes` | `'mini', 'small', 'medium', 'large'` | `medium` |
|
||||
|
||||
Reference in New Issue
Block a user