Commit 33f90b4f by liimin

优化

1 parent 9410552a
......@@ -217,7 +217,12 @@ export default function LeadDetail({ params }: { params: PageParams }) {
{ key: 'seller', label: '推荐销售顾问', children: display(data.sellerName) },
{ key: 'owner', label: '车主姓名', children: display(data.carOwnerName) },
{ key: 'phone', label: '车主电话', children: display(data.carOwnerPhone) },
{ key: 'model', label: '评估品牌车型', span: 2, children: model(data) },
{
key: 'model',
label: '评估品牌车型',
span: 2,
children: <span className="uc-detail-long-value">{model(data)}</span>,
},
{
key: 'latest',
label: '最近跟进时间',
......
......@@ -195,6 +195,16 @@
.uc-detail-descriptions .ant-descriptions-row:last-child > td {
padding-bottom: 0;
}
/* 跨列长值(如评估品牌车型)限制在单列值区宽度内换行,避免一行铺满整表、视觉侵入右列。
span=2 让 td 横跨整行,单靠 overflow-wrap:anywhere 因宽度充裕不会换行,必须给值本身上限。
360px ≈ 单列值区宽度(表格半宽 432px - 标签 112px - 单元格内距);窄屏列数为 1 时 max-width
自然失效于更宽的容器,不会把文本挤成竖条。 */
.uc-detail-descriptions .uc-detail-long-value {
display: inline-block;
max-width: 360px;
overflow-wrap: anywhere;
vertical-align: top;
}
/* ---- 时间线:8px 圆点 + 1px 竖线,替代粗左边框块 ---- */
.uc-detail-timeline {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!