feat: 走查-交互逻辑调整

This commit is contained in:
rd
2025-07-05 14:27:07 +08:00
parent 12f81cdfc4
commit 9b8e96a2e5
15 changed files with 141 additions and 71 deletions

View File

@ -33,7 +33,15 @@
:custom-request="handleUpload"
accept=".xlsx,.xls,.docx,.doc"
:show-file-list="false"
/>
>
<template #upload-button>
<div class="upload-box">
<icon-plus size="14" class="mb-16px" />
<span class="text mb-4px">点击或拖拽文件到此处上传</span>
<span class="tip">支持 xls, xlsx格式</span>
</div>
</template>
</a-upload>
</template>
<template v-else>
<div class="flex items-center">
@ -44,7 +52,7 @@
}"
>
<div class="flex items-center">
<icon-file size="16" />
<icon-file size="16" class="flex-shrink-0" />
<span class="name ml-8px">{{ fileName }}</span>
</div>
<span

View File

@ -46,6 +46,36 @@
margin-bottom: 16px;
}
}
.upload-box {
display: flex;
height: 120px;
padding: 0 16px;
flex-direction: column;
justify-content: center;
align-items: center;
border-radius: 2px;
border: 1px dashed var(--Border-1, #d7d7d9);
background: var(--BG-200, #f2f3f5);
.text {
color: var(--Text-1, #211f24);
text-align: center;
font-family: 'PingFang SC';
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 22px;
}
.tip {
color: var(--Text-3, #737478);
text-align: center;
font-family: 'PuHuiTi-Regular';
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 20px;
}
}
}
.upload-dragger {
border: 1px dashed #d9d9d9;