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

@@ -86,43 +86,44 @@ onMounted(() => {
.contract {
padding-bottom: @spacing-xxl;
// 横幅:设计 41/46 实测 y72..251(179 设计px → 138 CSS)白底通栏
// 横幅:设计 31ee32fc y72..251(1920×179)白底通栏
// 标题盒顶 96(ink 104)、副标语盒顶 161.5(ink 171)、横幅底 251
&__head {
padding: 25px 0 33px;
padding: 24px 0 52px;
background: @white;
// 标题/副标语相对内容区左缩进 42 设计px × 0.77 ≈ 32(容器自带 16)
// 标题/副标语落 x112 → 内容区左缘 70 + 42
.container {
padding-left: 48px;
padding-left: 42px;
}
}
&__title {
font-size: @font-size-xxl; // 28px = 设计 36 × 0.77
font-size: 36px;
font-weight: 700;
line-height: 1.4;
color: @home-ink; // 复用同值 token(横幅标题设计实取 @contract-ink)
line-height: 52px;
color: @contract-ink;
}
&__slogan {
margin-top: 12px; // 设计 15 × 0.77
font-size: 18px; // 设计 24 × 0.77
margin-top: 13.5px;
font-size: 24px;
font-weight: 500;
line-height: 1.5;
line-height: 37px;
color: @contract-muted;
}
}
// 内容白卡(设计 46:x70..1850 圆角白卡,无阴影)——显式 .contract 前缀抬高覆写优先级
// 内容白卡(设计 31ee32fc:x70 y271 1780×992 圆角白卡,无阴影)
.contract .contract__card {
margin-top: 15px; // 横幅底 → 卡片顶:设计 20 × 0.77
padding: 40px 48px 44px; // 卡片内缩:设计 51/64/59 × 0.77
margin-top: 20px; // 横幅底 251 → 卡顶 271
padding: 51px 64px 59px; // 搜索框 x134 = 70+64;表格 x135
border-radius: @radius-lg;
background: @white;
// 搜索行并入卡片:去掉 FilterPanel 自带的卡面,按设计 41 重排控件
// 搜索行并入卡片:去掉 FilterPanel 自带的卡面
:deep(.filter-panel) {
margin-bottom: 30px; // 搜索行 → 表格:设计 39 × 0.77
margin-bottom: 39px; // 搜索框底 371 → 表头 411
padding: 0;
border-radius: 0;
background: transparent;
@@ -134,16 +135,30 @@ onMounted(() => {
}
:deep(.filter-panel__bar) {
gap: 6px;
}
gap: 8px;
// 设计:重置 x816、搜索 x940。搜索框右缘 726 →
// 重置 816(margin 90 − 12 padding = 78)、搜索 940(margin 52 − 12 = 40)
.filter-panel__btn {
margin-left: 78px;
}
.filter-panel__btn--primary {
margin-left: 40px;
} }
// 搜索框 134,322 592×49;占位 20/400 #999999
:deep(.filter-panel__input) {
flex: 1;
width: auto;
height: 30px; // 设计 38 × 0.77
flex: 0 0 592px;
width: 592px;
max-width: none;
margin-right: 0;
height: 49px;
border-color: transparent;
border-radius: 0;
background: @input-bg;
font-size: 11px; // 设计 13 → 可读下限
font-size: 20px;
box-sizing: border-box;
}
:deep(.filter-panel__input::placeholder) {
@@ -154,15 +169,17 @@ onMounted(() => {
border-color: @primary-strong;
}
// 设计 41 按钮序为「重置 | 搜索」,组件内 DOM 序相反,用 order 对齐
// 设计按钮:重置 x816、搜索 x940,均 20/400 纯文字(DOM 序相反,用 order 对齐)
:deep(.filter-panel__btn) {
order: 1;
height: 30px;
padding: 0 16px;
min-width: 0;
height: 29px;
padding: 0 12px;
border: none;
background: @contract-reset-bg;
color: @text-color;
font-size: 11px; // 设计 12 → 可读下限
border-radius: 0;
background: transparent;
color: @contract-placeholder;
font-size: 20px;
}
:deep(.filter-panel__btn:hover) {
@@ -172,32 +189,33 @@ onMounted(() => {
:deep(.filter-panel__btn--primary) {
order: 2;
background: @primary-strong;
color: @white;
border-radius: 0;
background: transparent;
color: @contract-accent;
}
:deep(.filter-panel__btn--primary:hover) {
background: @primary-color;
color: @white;
background: transparent;
color: @primary-color;
}
// 分页(设计 46:右对齐、方角小页码、当前页实底蓝)
// 分页(设计:右对齐,页码 ink 1180/1181,`<上一页` x1388、`下一页>` x1740)
:deep(.pagination) {
justify-content: flex-end;
gap: 8px; // 设计 10 × 0.77
gap: 10px;
padding: 0;
margin-top: 22px; // 表格底 → 分页:设计 28 × 0.77
margin-top: 28px;
}
:deep(.pagination__btn) {
min-width: 31px; // 设计 40 × 0.77
height: 20px; // 设计 26 × 0.77
min-width: 40px;
height: 26px;
padding: 0 4px;
border: 1px solid @contract-line;
border-radius: 0;
background: @white;
color: @contract-line;
font-size: 11px; // 设计 14 → 可读下限
font-size: 14px;
}
:deep(.pagination__btn:hover:not(:disabled):not(.is-ellipsis)) {