修改导入显示问题

v1.4.0
于肖磊 2025-08-11 17:06:52 +08:00
parent 2e78fedd64
commit 8d93cf462b
1 changed files with 15 additions and 4 deletions

View File

@ -14,8 +14,8 @@
</template>
<div class="url-value-content ptb-16 flex-col gap-16">
<div v-if="temp_active == '1'" class="h flex-row jc-c align-c">
<div class="import-content">
<el-upload v-model:file-list="file_list" action="#" :accept="exts_text" :show-file-list="false" :auto-upload="false" :on-change="upload_change">
<div class="import-content flex-col align-c jc-c">
<el-upload v-model:file-list="file_list" action="#" class="import-btn-box" :accept="exts_text" drag :show-file-list="false" :auto-upload="false" :on-change="upload_change">
<template #trigger>
<div class="import-btn">
<icon name="upload-file" color="primary"></icon>
@ -121,7 +121,7 @@
<span class="dialog-footer">
<div v-if="temp_active == '1'">
<el-button class="plr-28 ptb-10" @click="close_event"></el-button>
<el-button class="plr-28 ptb-10" type="primary" @click="confirm_event"></el-button>
<el-button class="plr-28 ptb-10" :disabled="file_list.length <= 0" type="primary" @click="confirm_event"></el-button>
</div>
<div v-else class="flex-row jc-e">
<el-pagination :disabled="is_disabled" :current-page="form.page" background :page-size="form.page_size" :pager-count="5" layout="prev, pager, next" :total="form.data_total" @current-change="current_page_change" />
@ -352,10 +352,21 @@ const confirm_event = () => {
}
.import-content {
text-align: center;
.import-btn-box {
width: 14.2rem;
height: 14.2rem;
:deep(.el-upload-dragger) {
display: flex;
align-items: center;
justify-content: center;
padding: 0 !important;
border: 0;
}
}
.import-btn {
display: flex;
width: 14rem;
height: 14rem;
display: flex;
justify-content: center;
align-items: center;
font-size: 7rem;