优化字典 select 和 text
This commit is contained in:
@@ -7,18 +7,15 @@ subtitle: 描述列表
|
||||
|
||||
## API
|
||||
|
||||
### DescriptionList
|
||||
### DictionarySelect
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|----------|------------------------------------------|-------------|-------|
|
||||
| list | 数据列表 | DictionObject[] | [] |
|
||||
|
||||
### DictionObject
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|----------|------------------------------------------|-------------|-------|
|
||||
| text | 显示的文字 | string | - |
|
||||
| value | 选择后的值 | string number boolean | - |
|
||||
|
||||
| dicKey | 字典key值 | string[] | [] |
|
||||
| defaultValue | 来自 antd Select组件 | string、number、boolean | [] |
|
||||
|
||||
### Demo
|
||||
```jsx harmony
|
||||
<DictionarySelect dicKey="gender" defaultValue="1" />
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user