update upload

This commit is contained in:
lb 2023-02-08 09:05:35 +08:00
parent 4dff2473e5
commit 64274e0743
2 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<template>
<el-popover placement="right" :title="title" width="300" trigger="hover" class="mt-2">
<el-popover placement="right" :title="title" width="300" trigger="hover" class="">
<!-- <div slot="content"> -->
<ul style="max-height: 100px; overflow-y: auto" class="filelist">
<li v-for="(file, index) in filteredList" :key="index">
@ -30,10 +30,8 @@
</div>
<!-- </div> -->
<el-button v-if="label" type="text" slot="reference" class="">{{ label }}</el-button>
<el-button v-else type="text" slot="reference" class="el-icon-folder-opened" style="margin-left: 16px; width: 32px; height: 32px">
已上传文件</el-button
>
<div v-if="label" slot="reference" class="">{{ label }}</div>
<div v-else slot="reference" class="el-icon-folder-opened" style="margin-left: 24px; cursor: pointer;"> 已上传文件</div>
</el-popover>
</template>

View File

@ -1,5 +1,5 @@
<template>
<div>
<div class="" style="position: relative;">
<el-upload
:disabled="disabled"
name="files"
@ -19,8 +19,8 @@
</transition>
</div>
<FileList :file-list="fileList" />
</el-upload>
<FileList :file-list="fileList" style="display: inline-block; position: absolute; top: 0; left: 72px;" />
</div>
</template>