优化配送订单状态记录显示

This commit is contained in:
czl231
2026-08-15 12:07:55 +08:00
parent 45cf524df8
commit beb0e0f1af
4 changed files with 14 additions and 1 deletions

View File

@@ -28,7 +28,7 @@
v-for="column in collection.columns"
:key="column"
:title="resourceFieldLabel(definition, column, collection.key)"
:width="column.includes('identity') ? 220 : 160"
:width="collectionColumnWidth(column)"
ellipsis
tooltip
>
@@ -78,6 +78,13 @@ type DetailEntry = {
identityValue: string;
};
/** 统一关联记录表列宽:日期时间列保持紧凑,唯一标识列保留完整复制空间。 */
function collectionColumnWidth(column: string) {
if (column.endsWith('_at')) return 150;
if (column.includes('identity')) return 220;
return 160;
}
const entries = computed<DetailEntry[]>(() => {
const row = primaryRecord(props.detail);
const excluded = new Set([