添加 md 描述,和 demo
parent
f628bac565
commit
820bee626c
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: DictionaryValueSelect
|
||||
subtitle: 字典 value 选择
|
||||
---
|
||||
|
||||
次组件跟使用 Antd extends Select,使用方法跟 Select 一样
|
||||
|
||||
## API
|
||||
|
||||
### DescriptionList
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|----------|------------------------------------------|-------------|-------|
|
||||
| dataKey | 数据列表 | string | [] |
|
||||
|
||||
### Demo
|
||||
```jsx harmony
|
||||
<DictionaryValueSelect dataKey="gender" defaultValue={1} />
|
||||
```
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: DictionaryValueText
|
||||
subtitle: 获取字典 value 显示值
|
||||
---
|
||||
|
||||
## API
|
||||
|
||||
### DescriptionList
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|----------|------------------------------------------|-------------|-------|
|
||||
| dataKey | key config配置的 | string | [] |
|
||||
| value | 显示的值 | string number | [] |
|
||||
|
||||
|
||||
### Demo
|
||||
```jsx harmony
|
||||
<DictionaryValueText dataKey="gender" value="1" />
|
||||
```
|
Loading…
Reference in New Issue