feat ui设计稿bug修复
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user