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

@@ -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>