数据列表
吴少文 2023/4/14 vue
# 数据列表
数据列表展示组件
# 示例

# 组件属性
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|---|---|---|---|---|
| routeUrl | 跳转链接 | string | --- | -- |
| idKey | 主键id对应的字段 | string | -- | -- |
| productNameKey | 商品名称对应的字段 | string | -- | -- |
| productPriceKey | 商品价格对应的字段 | string | -- | -- |
| productUnitKey | 商品单位对应的字段 | string | -- | -- |
| productDateKey | 商品时间的字段 | string | -- | -- |
| itemStyle | 自定义每个数据样式,例如:'color: red;' | string | -- | -- |
| data | 数据 | array | -- | -- |
# data数据结构
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|---|---|---|---|---|
| idKey | 动态配置的id | string | -- | -- |
| productNameKey | 动态配置的商品名称 | string | -- | -- |
| productPriceKey | 动态配置的商品价格 | string | -- | -- |
| productUnitKey | 动态配置的商品单位 | string | -- | -- |
| productDateKey | 动态配置的商品时间 | string | -- | -- |