Descriptions 详情列表
TIP
Descriptions 组件对应 GvDescriptions。以列表形式展示多个字段。下方示例可直接交互,点击「显示代码」查看源码。
基础用法
API
Descriptions Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| prop | 对应 itemData 中的字段 | string | — |
| label | 标签文本 | string | — |
| span | 设置列数 | number | 1 |
| labelWidth | 设置label宽度 | string | - |
| contentWidth | 设置内容宽度 | string | - |
| width | 设置列宽度 | number|string | - |
| align | 列的内容对齐方式 | left | center | right | left |
| className | 自定义列类名 | string | — |
| formatter | 内容格式化函数 | (value: any, itemData: Recordable<any>) => string | — |
| render | 自定义渲染函数 | (value: any, itemData: Recordable<any>) => any | — |
| dicType | 字典类型 | string | — |