feat ui设计稿

This commit is contained in:
Ironsp
2026-09-30 15:55:36 +08:00
parent ce8210fb3f
commit 9ab6253c81
102 changed files with 4855 additions and 2359 deletions

View File

@@ -30,7 +30,7 @@ const emit = defineEmits<{
>
<div class="project-files__info">
<span class="project-files__name" :title="file.name">{{ file.name }}</span>
<span class="project-files__meta text-secondary">
<span class="project-files__meta">
{{ formatFileSize(file.size) }} · {{ file.uploadTime }}
</span>
</div>
@@ -60,27 +60,36 @@ const emit = defineEmits<{
.project-files {
.flex(column, flex-start, stretch);
gap: @spacing-base;
padding: @spacing-lg @spacing-xl;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-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;
}
}
&__list {
.flex(column, flex-start, stretch);
gap: @spacing-sm;
// 设计 11:行间距 15 设计px × 0.77
gap: 12px;
}
// 设计 11:整行通铺 #F7F8FA 浅底、圆角 ≈8 设计px,无描边
&__item {
.flex(row, space-between);
gap: @spacing-base;
padding: @spacing-sm @spacing-base;
border: 1px solid @border-color;
border-radius: @radius-base;
background: @bg-color-light;
padding: 6px 16px;
border: none;
border-radius: 6px;
background: @finance-row-bg;
}
&__info {
@@ -89,25 +98,31 @@ const emit = defineEmits<{
min-width: 0;
}
// 设计 11:文件名 13 设计px、副行 11 设计px #9CA3AF
&__name {
font-size: @font-size-base;
font-size: 11px;
line-height: 15px;
color: @heading-color;
.ellipsis();
}
&__meta {
font-size: @font-size-sm;
font-size: 11px;
line-height: 15px;
color: @text-color-disabled;
}
&__actions {
.flex(row, center);
gap: @spacing-sm;
// 设计 11:「预览 / 下载」间距 14 设计px × 0.77
gap: 12px;
flex-shrink: 0;
}
// 设计 11:行内操作是灰色纯文字(非蓝色),删除保持警示红
&__btn {
font-size: @font-size-sm;
color: @primary-color;
font-size: 12px;
color: @text-color-secondary;
transition: opacity 0.2s;
&:hover {