feat ui设计稿bug修复

This commit is contained in:
Ironsp
2026-10-01 10:53:13 +08:00
parent 9ab6253c81
commit 1601bdd82c
89 changed files with 4741 additions and 3652 deletions

View File

@@ -153,94 +153,133 @@ function onDeleteFile(): void {
</template>
<style lang="less" scoped>
// 设计稿实测(1920,1:1):横幅 (70,342) 1780×96 底 #FDEEEE;
// 标题 (96,367.5) 17/700 #D93025;说明 (96,395.5) 13/400 #4B5563;
// 区块标题 (82,468) 15/700;字段标签 (63.5,508) 13/500 #1F2937(整行铺满 → 实际落 x70);
// 只读框 (70,533) 1780×39 底 #F3F4F6 描边 #DDE1E7;文本域 (70,615) 1780×130;
// 附件标题 (70,768.5) 13/500 + 提示 (149,769.5) 11/400 #9CA3AF + 「上传文档」(1801.4,769) 12/500;
// 文件行 (70,805) 1780×55 #F7F8FA;操作 (1628,968)/(1754,968) 15/500 白字 —— 底部按钮。
.project-after-sales {
.flex(column, flex-start, stretch);
gap: @spacing-base;
// 设计 10:售后信息区块直接落在白底页面上,无外层卡片
padding: 0;
// ── 顶部工单横幅:浅红底、无图标块(设计 10 实取 #FDEEEE) ──
// ── 顶部工单横幅 ──
// 页签分割线 317 → 横幅顶 342(25)
&__banner {
.flex(row, flex-start, center);
margin-bottom: 16px;
padding: 12px 20px;
border-radius: 6px;
background: @project-banner-bg;
height: 96px;
box-sizing: border-box;
margin-top: 25px;
padding-left: 26px; // 文字 x96 = 内容区 x70 + 26
border-radius: 0;
background: @project-banner-soft;
}
&__banner-text {
.flex(column, flex-start, stretch);
gap: 6px;
min-width: 0;
}
// 设计 10:标题 17 设计px × 0.77 ≈ 13px / 700 红
// 横幅标题 17/700,行高 22(顶 367.5 = 横幅 342 + 25.5)
&__banner-title {
font-size: 13px;
margin: 0;
padding-top: 0;
font-size: 17px;
font-weight: 700;
line-height: 22px;
color: @project-banner-title;
line-height: 1.3;
}
// 设计 10:说明 13 设计px × 0.77 ≈ 11px #4B5563
// 说明 13/400(顶 395.5 = 标题底 389.5 + 6)
&__banner-desc {
font-size: 11px;
color: @text-color;
margin-top: 6px;
font-size: 13px;
font-weight: 400;
line-height: 17px;
color: @project-cell;
}
// ── 「售后信息」区块标题:竖条 + 缩进(与其它页签一致) ──
// ── 「售后信息」区块标题 ──
&__title {
.section-title();
margin-top: 0;
padding-left: 9px;
font-size: 12px;
padding-left: 12px; // 文字落 x82
font-size: 15px;
font-weight: 700;
line-height: 20px;
&::before {
width: 3px;
height: 15px;
width: 4px;
height: 20px;
}
}
// 横幅底 438 → 标题 468;标题底 488 → 字段。
// 后代表达式:紧邻横幅的标题额外上抬 —— 用统一节距表达(见下方 padding)
&__banner + &__title {
margin-top: 30px;
}
// 标题盒底 484.5 → 首标签盒顶 505(20.5)
&__title + &__field {
margin-top: 20.5px;
}
&__field {
.flex(column, flex-start, stretch);
gap: 6px;
gap: 5px; // 标签盒底 528 → 只读框顶 533
}
// 设计 10:标签与提示同行,间距 14 设计px × 0.77
// 框底 → 下一标签盒顶:ro1 底 572 → 标签2 586.5(14.5);ro2 底 745 → 标签3 765(20)
&__field + &__field {
margin-top: 14.5px;
}
// 第三个字段(附件)上距略大:设计 ro2 底 745 → 标签3 768.5
// 注意:字段在 section 里是第 3/4/5 个子元素(前面还有 banner、title),所以是 nth-child(5)
&__field:nth-child(5) {
margin-top: 23px;
gap: 20px; // 标签行盒底 785 → 首行附件 805
}
// 设计:标签与提示同行
&__field-head {
.flex(row, flex-start, baseline);
gap: 11px;
.flex(row, flex-start, center);
gap: 14px; // 149 − (70+65) = 14
}
// 设计 10:提示 11 设计px #9CA3AF
&__field-hint {
font-size: 11px;
color: @text-color-disabled;
line-height: 15px;
color: @project-muted;
}
// 设计 10:字段标签 13 设计px × 0.77 ≈ 11px / 500
// 字段标签 13/500
&__label {
font-size: 11px;
font-size: 13px;
font-weight: 500;
color: @heading-color;
line-height: 20px;
color: @project-ink;
}
// 只读展示(设计 10:灰底圆角实底框,无描边)
// 只读展示:设计 1780×39、底 #F3F4F6、描边 1px #DDE1E7、圆角 8
&__readonly {
min-height: 36px;
padding: 0 12px;
border: none;
border-radius: 6px;
background: @input-bg;
color: @text-color;
font-size: 11px;
line-height: 36px;
.flex(row, flex-start, center);
min-height: 39px;
padding: 0 13px; // 值 x83 = 内容区 70 + 13
border: 1px solid @project-input-border;
border-radius: 8px;
background: @project-field-bg;
color: @project-cell;
font-size: 13px;
line-height: 17px;
box-sizing: border-box;
&--block {
min-height: 104px;
padding: 12px;
line-height: 1.7;
display: block;
min-height: 130px;
padding: 10px 13px;
line-height: 20px;
white-space: pre-wrap;
word-break: break-word;
}
@@ -248,7 +287,7 @@ function onDeleteFile(): void {
&__none {
padding: @spacing-sm 0;
font-size: @font-size-sm;
font-size: 13px;
}
&__blank {
@@ -257,36 +296,36 @@ function onDeleteFile(): void {
}
&__blank-text {
font-size: @font-size-base;
font-size: @font-size-body;
}
// 设计 10:按钮组贴右,间距 34 设计px × 0.77
// 末行附件 925(870+55)→ 按钮盒顶 955(30)
&__actions {
.flex(row, flex-end, center);
gap: 24px;
margin-top: 8px;
gap: 42px; // 1754 − (1628+84) = 42
margin-top: 30px;
}
// 设计 10:高 ≈36 设计px × 0.77、圆角 ≈8 设计px、文字 15 设计px × 0.77
&__btn {
height: 28px;
padding: 0 14px;
border-radius: 6px;
font-size: 12px;
height: 38px;
padding: 0 18px;
border-radius: 8px;
font-size: 15px;
font-weight: 500;
line-height: 20px;
cursor: pointer;
transition: all 0.2s;
// 「取消售后」= 品牌蓝(设计 10 实取 #1F67EF)
&--primary {
border: none;
background: @primary-color;
background: @project-accent;
color: @white;
&:hover {
background: @primary-hover;
background: @primary-color;
}
}
// 「申请售后」= 红(设计 10 实取 #E3464B)
&--apply {
border: none;
background: @project-apply;
@@ -298,36 +337,39 @@ function onDeleteFile(): void {
}
}
// 设计 10:附件行 = #F7F8FA 圆角行、灰字操作(公共 FileList,仅本页覆写外观)
// 附件行:公共 FileList 外观覆写(设计 1780×55、底 #F7F8FA、圆角 8)
:deep(.file-list) {
gap: 12px;
gap: 10px;
}
:deep(.file-list__item) {
padding: 6px 14px;
height: 55px;
box-sizing: border-box;
padding: 0 5.7px 0 16px;
border: none;
border-radius: 6px;
border-radius: 8px;
background: @finance-row-bg;
}
:deep(.file-list__name) {
font-size: 11px;
line-height: 15px;
font-size: 13px;
line-height: 17px;
}
:deep(.file-list__meta) {
font-size: 11px;
line-height: 15px;
color: @text-color-disabled;
color: @project-muted;
}
:deep(.file-list__actions) {
gap: 12px;
gap: 14px;
}
:deep(.file-list__btn) {
font-size: 12px;
color: @text-color-secondary;
line-height: 16px;
color: @project-label;
}
:deep(.file-list__btn--danger) {

View File

@@ -18,6 +18,8 @@ const emit = defineEmits<{
<template>
<section class="project-files">
<!-- 设计稿(785b3eb8)本页签**没有区块标题**,文件行直接起于分割线下方 24px;
标题只保留给读屏,视觉隐藏。 -->
<h2 class="project-files__title">
项目文件
</h2>
@@ -57,72 +59,73 @@ const emit = defineEmits<{
</template>
<style lang="less" scoped>
// 设计稿实测(1920,1:1):无区块标题,文件行直接起于 (70,342);
// 行 1780×55 底 #F7F8FA、接缝 10;类型徽标 (87,352) 33×21;文件名 (130,352) 13px;
// 副行 (130,372) 11px #9CA3AF;操作 (1748,361) 12px #6B7280(预览 / 下载),右缘 x1845。
.project-files {
.flex(column, flex-start, stretch);
gap: @spacing-base;
// 设计 11:项目文件区块直接落在白底页面上,无卡片
padding: 0;
// 设计稿无可见标题:仅读屏可读(不占位)
&__title {
.section-title();
// 设计 11:竖条 4×20 设计px、文字 15 设计px/700
padding-left: 9px;
font-size: 12px;
font-weight: 700;
&::before {
width: 3px;
height: 15px;
}
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
&__list {
.flex(column, flex-start, stretch);
// 设计 11:行间距 15 设计px × 0.77
gap: 12px;
gap: 10px;
margin-top: 24px; // 分割线 317 → 首行顶 342(785b3eb8)
}
// 设计 11:整行通铺 #F7F8FA 浅底、圆角 ≈8 设计px,无描边
// 整行通铺 #F7F8FA、圆角 8,行高 55(内容 35 + 上下 10)
&__item {
.flex(row, space-between);
.flex(row, space-between, center);
gap: @spacing-base;
padding: 6px 16px;
border: none;
border-radius: 6px;
height: 55px;
box-sizing: border-box;
padding: 0 5.6px 0 17px; // 徽标左缘 87 = 内容区 70 + 17;操作右缘 1845 = 1850 − 5
border-radius: 8px;
background: @finance-row-bg;
}
&__info {
.flex(column, flex-start, stretch);
gap: 2px;
gap: 3px;
min-width: 0;
}
// 设计 11:文件名 13 设计px、副行 11 设计px #9CA3AF
&__name {
font-size: 11px;
line-height: 15px;
color: @heading-color;
max-width: 1410px;
font-size: 13px;
line-height: 17px;
color: @project-ink;
.ellipsis();
}
&__meta {
font-size: 11px;
line-height: 15px;
color: @text-color-disabled;
color: @project-muted;
}
&__actions {
.flex(row, center);
// 设计 11:「预览 / 下载」间距 14 设计px × 0.77
gap: 12px;
.flex(row, flex-end, center);
gap: 14px; // 1748.39 → 1805.33 实测节距 57/40 → 用文字宽 + 14
flex-shrink: 0;
}
// 设计 11:行内操作是灰色纯文字(非蓝色),删除保持警示红
&__btn {
flex-shrink: 0;
font-size: 12px;
color: @text-color-secondary;
line-height: 16px;
color: @project-label;
transition: opacity 0.2s;
&:hover {
@@ -135,7 +138,7 @@ const emit = defineEmits<{
}
&__empty {
font-size: @font-size-base;
font-size: @font-size-body;
}
}
</style>

View File

@@ -165,54 +165,84 @@ function fileMeta(file: FileInfo): string {
</template>
<style lang="less" scoped>
// 设计稿实测(1920,1:1):标题 (82,342) 15/700;计划卡 (70,380) 372×139 / (70,533) 372×144 /
// (70,691) 372×116,描边 1px #F0F1F3、圆角 13;期次名 (89,398) 14/700;状态 (378,400) 11/500;
// 字段行 (89,426) 11/400 #6B7280;金额 (341.33,453) 20/700;「立即支付」通栏 372×34 #F59E0B;
// 发票记录标题 (82,841)、合同文件标题 (82,1033);文件行 1780×55 #F7F8FA。
.project-finance {
.flex(column, flex-start, stretch);
gap: @spacing-base;
// 设计 09:合同财务区块直接落在白底页面上,无外层卡片
padding: 0;
// 区块标题:与「项目进度/项目文件/售后信息」同款(12px/700 + 左侧蓝色竖条)
// 分割线 317 → 「付款计划」盒 339(ink 342,843103b2)
&__title {
.section-title();
padding-left: 9px;
font-size: 12px;
margin-top: 22px;
padding-left: 12px;
font-size: 15px;
font-weight: 700;
line-height: 20px;
&::before {
width: 3px;
height: 15px;
width: 4px;
height: 20px;
}
}
// 只读回落态(后端未重启、响应无 bills)的说明行
&__note {
font-size: @font-size-sm;
// 首区块标题盒底 359 → 首张卡顶 380
&__title:first-child + &__plans {
margin-top: 21px;
}
// 区块间距:付款计划卡底 807 → 「发票记录」盒 838(31);发票行底 999 → 「合同文件」盒 1030(31)
&__plans + &__title,
&__files + &__title {
margin-top: 31px;
}
// 区块标题盒底 → 首行顶:838+20 → 879(21);1030+20 → 1071(21)
&__title + &__files,
&__title + &__file {
margin-top: 21px;
}
// ---------- 付款计划 ----------
// 设计稿:卡片**竖排单列、定宽左对齐**(不是横排多列网格)
// 卡片竖排单列、定宽 372 左对齐;卡间距 14(380→533→691 实测 153/158,扣卡高)
&__plans {
.flex(column, flex-start, flex-start);
// 设计 09:卡片间距 13 设计px × 0.77
gap: 10px;
gap: 14px;
}
// 设计 09:白底 + 1px #F0F1F3 描边、圆角 ≈13 设计px,定宽竖排
// 白底 + 1px #F0F1F3 描边、圆角 13,定宽 372;内容内缩 19/17
&__plan {
.flex(column, flex-start, stretch);
gap: @spacing-sm;
width: @finance-card-width;
padding: 14px 15px;
position: relative;
width: 372px;
padding: 17px 19px 17px;
border: 1px solid @project-divider;
border-radius: @finance-card-radius;
border-radius: 13px;
background: @white;
box-sizing: border-box;
gap: 0; // 段间距全部走显式 margin,避免 gap 与 margin 叠加
// 带「立即支付」时按钮贴卡片下缘:底部不留内边距
&:has(.project-finance__pay) {
padding-bottom: 0;
}
// 两条字段、无支付按钮(卡3):底距 17(设计卡高 116 = 2+17+19+8+53+17)
&:not(:has(.project-finance__field:nth-child(3))):not(:has(.project-finance__pay)) {
padding-bottom: 17px;
}
// 三条字段、无支付按钮(卡1):底距 15(设计卡高 139 = 2+17+19+8+78+15)
&:has(.project-finance__field:nth-child(3)):not(:has(.project-finance__pay)) {
padding-bottom: 15px;
}
// 三态配色(浅底徽标 + 同色系金额)
&.is-paid {
.project-finance__badge {
background: @tag-success-bg;
color: @finance-paid;
}
@@ -223,7 +253,6 @@ function fileMeta(file: FileInfo): string {
&.is-pending {
.project-finance__badge {
background: @tag-warning-bg;
color: @tag-warning-text;
}
@@ -234,8 +263,7 @@ function fileMeta(file: FileInfo): string {
&.is-idle {
.project-finance__badge {
background: @tag-info-bg;
color: @text-color-secondary;
color: @project-label;
}
.project-finance__amount {
@@ -249,61 +277,90 @@ function fileMeta(file: FileInfo): string {
gap: @spacing-sm;
}
// 设计 09:期次标题 14 设计px × 0.77 ≈ 11px / 700
// 期次标题 14/700,行高 19(顶 398 = 卡内 380+18)
&__plan-name {
font-size: 11px;
font-size: 14px;
font-weight: 700;
color: @heading-color;
line-height: 19px;
color: @project-ink;
.ellipsis();
}
// 状态徽标:浅底彩色字(设计 09:约 57×22 设计px、圆角 4 设计px、11px 字)
// 状态纯文字(设计 11/500)
&__badge {
.flex(row, center, center);
flex-shrink: 0;
padding: 3px 10px;
border-radius: @radius-sm;
margin-top: 2px;
font-size: 11px;
line-height: 16px;
line-height: 15px;
white-space: nowrap;
}
// 金额是**文本覆盖层**,不参与卡高:设计里它压在字段区右侧、与首字段行齐平
// (ink 453 = 卡顶 380 + 73;字段盒顶 424 + 29)。必须 absolute,否则 26 高的
// 行盒会把 __plan-body 撑高,三张卡分别虚高 8/8/0。
&__plan-body {
.flex(row, space-between, center);
.flex(row, space-between, flex-start);
position: relative;
margin-top: 8px; // 期次行盒底 416 → 字段块顶 424
gap: @spacing-base;
}
// 字段块按内容定高(3 行 78 / 2 行 53),行距由绝对偏移给,避免 margin 叠加。
// 设计:卡1 424→502(3 行 0/23/61),卡2 564→617、卡3 729→782(2 行 0/23)。
&__fields {
.flex(column, flex-start, stretch);
gap: 4px;
position: relative;
flex: 0 0 auto;
min-width: 0;
// 3 行时块高 78,2 行时 53
height: 53px;
&:has(> :nth-child(3)) {
height: 78px;
}
}
&__field {
position: absolute;
left: 0;
right: 0;
font-size: 11px;
line-height: 16px;
color: @finance-meta-color;
line-height: 15px;
color: @project-label;
.ellipsis();
// 字段行距:426 → 449 → 487(相对块顶 0 / 23 / 61)
&:nth-child(1) { top: 0; }
&:nth-child(2) { top: 23px; }
&:nth-child(3) { top: 61px; }
}
// 金额:设计稿在卡片**右侧**、字号最大且随状态变色(20 设计px × 0.77 ≈ 15px)
// 金额 20/700:设计 ink 453(卡顶 380 + 73),相对首字段行盒顶(424)再下移 29
&__amount {
position: absolute;
top: 29px;
right: 0;
flex-shrink: 0;
font-size: 15px;
font-size: 20px;
font-weight: 700;
line-height: 22px;
line-height: 26px;
white-space: nowrap;
}
// 「立即支付」:设计稿是卡内**满宽**金色按钮,通铺到卡片左右下缘
// 「立即支付」:设计卡内通铺 370×34、贴卡片下缘。
// 卡2:字段块底 617 → 按钮顶 642(间距 25),按钮底 676,卡底 677。
&__pay {
height: 28px;
margin: 0 -15px -14px;
height: 34px;
margin: 11px -19px 0;
border: none;
border-radius: 0 0 @finance-card-radius @finance-card-radius;
border-radius: 0 0 13px 13px;
background: @finance-pending;
color: @white;
font-size: 12px;
line-height: 34px;
cursor: pointer;
transition: background 0.2s;
@@ -314,31 +371,34 @@ function fileMeta(file: FileInfo): string {
// ---------- 发票 / 合同文件 ----------
// 发票行间距 10(879→944 / 1071→1136)
&__files {
.flex(column, flex-start, stretch);
gap: 12px;
gap: 10px;
margin: 0;
padding: 0;
list-style: none;
}
// 设计稿:整行通铺 #F7F8FA 浅底、圆角 ≈8 设计px(区别于卡片)
// 整行通铺 #F7F8FA、圆角 8,行高 55
&__file {
.flex(row, space-between, center);
gap: @spacing-sm;
padding: 6px 14px;
border-radius: 6px;
gap: @spacing-base;
height: 55px;
box-sizing: border-box;
padding: 0 5.7px 0 16px; // 徽标左缘 86 = 内容区 70 + 16;操作右缘 x1845
border-radius: 8px;
background: @finance-row-bg;
}
// 文件类型标识:按后缀着色的小方块(与需求提报页附件行同一套色板)
// 文件类型方块(设计 ≈33×21)
&__file-badge {
.flex(row, center, center);
flex-shrink: 0;
width: 34px;
height: 20px;
width: 33px;
height: 21px;
border-radius: @radius-sm;
font-size: 11px;
font-size: 9px;
font-weight: 700;
letter-spacing: 0.2px;
}
@@ -346,35 +406,35 @@ function fileMeta(file: FileInfo): string {
&__file-info {
.flex(column, flex-start, stretch);
flex: 1;
gap: 2px;
gap: 3px;
min-width: 0;
}
&__file-name {
font-size: 11px;
line-height: 15px;
color: @heading-color;
max-width: 1410px;
font-size: 13px;
line-height: 17px;
color: @project-ink;
.ellipsis();
}
&__file-meta {
font-size: 11px;
line-height: 15px;
color: @text-color-disabled;
color: @project-muted;
}
&__file-actions {
.flex(row, flex-end, center);
gap: 12px;
gap: 14px;
flex-shrink: 0;
}
// 设计 09:行内操作是灰色纯文字(非蓝色)
&__act {
.flex(row, center, center);
gap: 4px;
flex-shrink: 0;
font-size: 12px;
color: @text-color-secondary;
line-height: 16px;
color: @project-label;
cursor: pointer;
transition: color 0.2s;
@@ -384,7 +444,7 @@ function fileMeta(file: FileInfo): string {
}
&__empty {
font-size: @font-size-base;
font-size: @font-size-body;
}
}
</style>

View File

@@ -65,60 +65,58 @@ function businessTypeText(project: Project): string {
</template>
<style lang="less" scoped>
// 设计稿实测(1920,1:1):logo 方块 (70,196) 64×64、圆角 16;
// 标题 ink (142,212) 19/700 #1F2937;字段行 ink (142,245) 11px,标签 #6B7280 / 值 #1F2937;
// 状态 ink (1802,225.5) 16/700 #024FFF。整块 195..262(67 高),其后页签行 278 起(+16)。
.project-info-card {
.flex(row, flex-start, center);
gap: 14px;
// 设计 09:标识 + 文字 + 右侧状态直接排在白底页面上,无卡片底/阴影/内边距
padding: 0;
.flex(row, flex-start, flex-start);
gap: 8px; // 142 − (70 + 64) = 8
height: 67px;
box-sizing: border-box;
&__logo {
.flex(row, center, center);
flex-shrink: 0;
// 设计 09:方块 ≈56 设计px × 0.77,浅灰底、圆角 ≈12 设计px × 0.77
width: 44px;
height: 44px;
border-radius: 12px;
flex: 0 0 64px;
width: 64px;
height: 64px;
margin-top: 1px; // 196 − 195
border-radius: 16px;
background: @project-logo-bg;
}
// 设计 09:方块内只有蓝色「</>」文字,无描边徽标框
// 方块内只有蓝色「</>」文字(设计 20/400 #024FFF)
&__logo-badge {
.flex(row, center, center);
width: auto;
height: auto;
border: none;
border-radius: 0;
color: @project-accent;
font-family: inherit;
font-size: 15px;
font-size: 20px;
font-weight: 400;
letter-spacing: 0;
line-height: 26px;
}
&__main {
.flex(column, flex-start, stretch);
flex: 1;
min-width: 0;
gap: 6px;
}
// 设计 09:主标题 19 设计px × 0.77 ≈ 15px / 700
// 标题 19/700、行盒 25:ink 212 → box 209(块顶 195 + 14)
&__name {
font-size: 15px;
margin: 14px 0 0;
font-size: 19px;
font-weight: 700;
line-height: 1.2;
color: @heading-color;
line-height: 25px;
color: @project-ink;
.ellipsis();
}
// 设计稿:三个字段是**单行**「标签:值」,等距排布(11px 小字号不跟缩)
// 字段行 11/15:ink 245 → box 243(标题盒底 234 + 9)
&__meta {
.flex(row, flex-start, center);
flex-wrap: wrap;
gap: 20px;
margin-top: 9px;
font-size: 11px;
font-weight: 500;
color: @heading-color;
line-height: 15px;
color: @project-value;
}
&__meta-item {
@@ -127,16 +125,18 @@ function businessTypeText(project: Project): string {
}
&__label {
color: @text-color-secondary;
color: @project-label;
font-style: normal;
font-weight: 400;
}
// 设计 09:右侧状态是纯文字,16 设计px × 0.77 ≈ 12px / 700
// 状态纯文字 16/700:ink 225.5 → box 222.5(块顶 195 + 27.5);右缘超出内容区 21.6
&__status {
flex-shrink: 0;
font-size: 12px;
margin: 27.5px -21.6px 0 0;
font-size: 16px;
font-weight: 700;
line-height: 21px;
&.is-active {
color: @project-accent;
@@ -151,7 +151,7 @@ function businessTypeText(project: Project): string {
}
&.is-idle {
color: @text-color-secondary;
color: @project-muted;
}
}
}

View File

@@ -61,33 +61,36 @@ function linkDone(index: number): boolean {
</template>
<style lang="less" scoped>
// 节点列宽 = 设计稿相邻节点中心距(356 设计px × 0.77 ≈ 274px)
@milestone-node-width: 274px;
@milestone-dot-size: 18px;
// 设计稿实测(1920,1:1;5865c6d9 −14 基准 ⇒ 统一后 +14):
// 标题 ink 471 15/700;首列中心 x261(步距 356)、已完成实心点 26(x235..261,顶 y509);
// 连接线 356×3(y520);名称 ink 541 12;说明 ink 561 10;待开始线 #E5E7EB、已完成 #22C55E。
@milestone-dot: 26px;
@milestone-line-h: 3px;
.project-milestones {
.flex(column, flex-start, stretch);
// 设计 13:里程碑区块直接落在白底页面上,无卡片
padding: 0;
&__title {
.section-title();
// 设计 13:竖条 4×20 设计px、文字 15 设计px/700
padding-left: 9px;
font-size: 12px;
margin-top: 35px; // 起止时间盒底 433 → 标题盒 468
padding-left: 12px;
font-size: 15px;
font-weight: 700;
line-height: 20px;
&::before {
width: 3px;
height: 15px;
width: 4px;
height: 20px;
}
}
// 设计稿:轨迹从容器左缘起、**固定节距**左对齐(不铺满整宽)
// 起止时间盒底 433 → 「项目进度(里程碑)」盒 468(ink 471)→ 圆点顶 509
&__track {
.flex(row, flex-start, flex-start);
margin-top: 16px;
padding-bottom: @spacing-xs;
margin-top: 0;
padding-top: 21px; // 标题盒底 488 → 圆点顶 509
padding-bottom: 0;
overflow-x: auto;
.scrollbar();
}
@@ -95,18 +98,18 @@ function linkDone(index: number): boolean {
&__node {
position: relative;
.flex(column, flex-start, center);
flex: 0 0 @milestone-node-width;
flex: 0 0 @milestone-node;
min-width: 0;
// 圆点之间的连接线:从本节点圆点右缘连到下一节点圆点左缘
// 连接线:y506(圆点顶 495 起第 11px),x248 → 604(下一节点 x426 起 178 宽)
&:not(:last-child)::after {
content: '';
position: absolute;
top: (@milestone-dot-size / 2 - 1px);
left: calc(50% + @milestone-dot-size / 2);
width: calc(100% - @milestone-dot-size);
height: 2px;
background: @milestone-line;
top: (@milestone-dot / 2 - @milestone-line-h / 2); // 13 − 1.5 = 11.5
left: calc(50% + 13px); // 261 → 248 再 +13 = 当前中心 +13
width: @milestone-node; // 覆盖到下一节点左缘
height: @milestone-line-h;
background: @milestone-ring;
}
&.is-link-done:not(:last-child)::after {
@@ -118,17 +121,15 @@ function linkDone(index: number): boolean {
.flex(row, center, center);
position: relative;
z-index: 1;
width: @milestone-dot-size;
height: @milestone-dot-size;
width: @milestone-dot;
height: @milestone-dot;
border: 3px solid @milestone-idle;
border-radius: @radius-round;
background: @white;
box-sizing: border-box;
// 设计 13:已完成圆点略小(20 设计px)、实心绿
// 已完成:实心绿点(设计 (235,495) 26×26,勾白 11)
.is-done & {
width: 16px;
height: 16px;
border-color: @milestone-done;
background: @milestone-done;
}
@@ -140,17 +141,19 @@ function linkDone(index: number): boolean {
}
&__check {
width: 10px;
height: 10px;
width: 11px;
height: 11px;
}
// 圆点底 521 → 名称顶 527(12px 字 line-height 16)
&__name {
margin-top: @spacing-sm;
max-width: 100%;
margin-top: 6px;
max-width: calc(@milestone-node - 16px);
font-size: 12px;
font-weight: 400;
line-height: 16px;
text-align: center;
color: @text-color;
color: @project-cell;
.multi-ellipsis(2);
.is-done & {
@@ -163,18 +166,20 @@ function linkDone(index: number): boolean {
}
}
// 名称底 543 → 说明顶 547(10px 字 line-height 14)
&__sub {
margin-top: @spacing-xs;
max-width: 100%;
font-size: 11px;
margin-top: 4px;
max-width: calc(@milestone-node - 16px);
font-size: 10px;
line-height: 14px;
text-align: center;
color: @text-color-disabled;
color: @milestone-idle-text;
.multi-ellipsis(2);
}
&__empty {
margin-top: @spacing-base;
font-size: @font-size-base;
font-size: @font-size-body;
}
}
</style>

View File

@@ -44,45 +44,54 @@ function clampPercent(value: number): number {
</template>
<style lang="less" scoped>
// 设计稿实测(1920,1:1;5865c6d9 为 −14 基准,此处统一到主流基准 ⇒ 全部 +14):
// 「开发进度」ink 324 15/700;「总体进度」ink 372 12/400 #6B7280;「65%」ink 364 20/700 #024FFF;
// 进度条 (70,402) 1780×6、填充 1157 #024FFF、轨道 #EDEFF2;起止时间 ink 420 11/400 #9CA3AF。
.project-progress {
.flex(column, flex-start, stretch);
// 设计 13:开发进度区块直接落在白底页面上,无卡片
padding: 0;
// 分割线 317 → 标题 box 321
&__title {
.section-title();
// 设计 13:竖条 4×20 设计px、文字 15 设计px/700,条→文间距 8 设计px
padding-left: 9px;
font-size: 12px;
margin-top: 4px;
padding-left: 12px; // 文字落 x82 = 内容区 x70 + 12
font-size: 15px;
font-weight: 700;
line-height: 20px;
&::before {
width: 3px;
height: 15px;
width: 4px;
height: 20px;
}
}
// 设计 13:正文与容器左缘对齐(只有标题被竖条顶出一级)
// 标题盒 321..341 → 「总体进度」盒 370(12/16)
&__head {
.flex(row, space-between, center);
margin-top: 20px;
.flex(row, space-between, baseline);
margin-top: 29px;
}
&__label {
font-size: 12px;
line-height: 16px;
color: @project-label;
}
// 设计 13:「65%」20 设计px × 0.77 ≈ 15px / 700
// 「65%」20/700:ink 364 → 行盒 361,相对 head 行顶 370 上移 9
&__percent {
font-size: 15px;
margin-top: -9px;
font-size: 20px;
font-weight: 700;
line-height: 26px;
color: @project-accent;
}
// 说明盒 370..386 → 轨道顶 402
&__track {
position: relative;
height: 5px;
margin: 12px 0 0;
height: 6px;
margin: 14px 0 0;
border-radius: @radius-round;
background: @project-track;
}
@@ -94,25 +103,13 @@ function clampPercent(value: number): number {
transition: width 0.3s;
}
// 设计 13:末端白底蓝环圆点 ≈15 设计px × 0.77
&__knob {
position: absolute;
top: 50%;
width: 12px;
height: 12px;
border: 2px solid @project-accent;
border-radius: @radius-round;
background: @white;
transform: translate(-50%, -50%);
box-sizing: border-box;
}
// 轨道底 408 → 起止时间盒 418(11/15,ink 420)
&__range {
.flex(row, space-between, center);
margin-top: 10px;
font-size: 11px;
// 设计 13:起止时间 (156,163,175)
color: @text-color-disabled;
line-height: 15px;
color: @project-muted;
}
}
</style>

View File

@@ -33,75 +33,80 @@ defineProps<Props>()
</template>
<style lang="less" scoped>
// 设计稿实测:头像直径 64 设计px、相邻头像中心距 99 设计px → ×0.77 得 49px / 76px(取整 48 / 间距 28)
@team-avatar-size: 48px;
@team-avatar-gap: 28px;
// 设计稿实测(1920,1:1;5865c6d9 −14 基准 ⇒ 统一后 +14):
// 标题 ink 617 15/700;头像直径 64、首列左缘 x66.5(中心 98.5)、相邻中心距 99 → 间距 35;
// 姓名 ink 734 16/600 #1F2937;角色 ink 761 12/400 #9CA3AF。
.project-team {
.flex(column, flex-start, stretch);
// 设计 13:项目团队区块直接落在白底页面上,无卡片
padding: 0;
&__title {
.section-title();
// 设计 13:竖条 4×20 设计px、文字 15 设计px/700
padding-left: 9px;
font-size: 12px;
margin-top: 42px; // 里程碑说明盒底 575 → 标题盒 614(ink 617)
padding-left: 12px;
font-size: 15px;
font-weight: 700;
line-height: 20px;
&::before {
width: 3px;
height: 15px;
width: 4px;
height: 20px;
}
}
// 标题盒底 634 → 头像顶 670(中心 y702)
&__list {
.flex(row, flex-start, flex-start);
flex-wrap: wrap;
gap: @spacing-base @team-avatar-gap;
margin-top: 16px;
gap: 32px @team-gap;
margin-top: 33px;
margin-left: -3.5px; // 首列左缘 66.5 = 内容区 70 − 3.5
}
&__item {
.flex(column, flex-start, center);
width: @team-avatar-size;
width: @team-size;
}
// 设计 13:头像 = 品牌蓝实底圆 + 白色单字(16 设计px × 0.77 ≈ 12px)
// 品牌蓝实底圆 + 白色单字(设计 16/400)
&__avatar {
.flex(row, center, center);
width: @team-avatar-size;
height: @team-avatar-size;
width: @team-size;
height: @team-size;
border-radius: @radius-round;
background: @team-avatar-bg;
color: @white;
font-size: 12px;
font-size: 16px;
font-weight: 400;
line-height: 22px;
}
// 设计 13:姓名 16 设计px/600,角色 12 设计px #9CA3AF
// 头像底 734 → 姓名 ink 734
&__name {
margin-top: 16px;
margin-top: 0;
max-width: 100%;
font-size: 12px;
font-size: 16px;
font-weight: 600;
color: @heading-color;
line-height: 22px;
color: @project-ink;
text-align: center;
.ellipsis();
}
// 姓名盒底 756 → 角色盒 759(12/19,ink 761)
&__role {
margin-top: @spacing-xs;
margin-top: 3px;
max-width: 100%;
font-size: 12px;
line-height: 19px;
text-align: center;
color: @text-color-disabled;
color: @project-muted;
.ellipsis();
}
&__empty {
margin-top: @spacing-base;
font-size: @font-size-base;
font-size: @font-size-body;
}
}
</style>