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

View File

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