添加 md 描述,和 demo

This commit is contained in:
sin 2019-03-07 22:01:37 +08:00
parent f628bac565
commit 820bee626c
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,19 @@
---
title: DictionaryValueSelect
subtitle: 字典 value 选择
---
次组件跟使用 Antd extends Select使用方法跟 Select 一样
## API
### DescriptionList
| 参数 | 说明 | 类型 | 默认值 |
|----------|------------------------------------------|-------------|-------|
| dataKey | 数据列表 | string | [] |
### Demo
```jsx harmony
<DictionaryValueSelect dataKey="gender" defaultValue={1} />
```

View File

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