# DetailFields

[返回目录](../README.md)

`detailFields` 控制产品详情页参数区展示顺序和字段。

```json
{
  "detailFields": [
    { "source": "Size", "target": "size", "sort": 10 },
    { "source": "Shape", "target": "shape", "sort": 20 },
    { "source": "Material", "target": "material", "sort": 30 },
    { "source": "Weight", "target": "weight", "sort": 40 }
  ]
}
```

## source

字段名或已有显示名。会通过 `attributeMappings` 解析到接口属性 code。

## target

接口属性 code。不传时通过 `attributeMappings[source]` 解析。

## label

显示名。不传时优先使用 `aliases.attributes[target]` 或接口返回字段名。

## group

分组名。当前主要保留给扩展使用。

## unit

覆盖接口返回的单位。

## sort

排序权重，越小越靠前。

## showempty

空值是否仍显示。默认不显示。
