docs(select): append api of value prop

This commit is contained in:
unix
2020-04-11 16:45:52 +08:00
parent ad59d8a35c
commit f0d85ee320
2 changed files with 3 additions and 1 deletions

View File

@@ -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` |

View File

@@ -74,6 +74,7 @@ export const meta = {
| 属性 | 描述 | 类型 | 推荐值 | 默认
| ---------- | ---------- | ---- | -------------- | ------ |
| **value** | 手动设置选择器的值 | `string` | - | - |
| **initialValue** | 选择器初始值 | `string` | - | - |
| **placeholder** | 占位文本内容 | `string` | - | - |
| **size** | 选择器组件大小 | `NormalSizes` | `'mini', 'small', 'medium', 'large'` | `medium` |