Pre Merge pull request !138 from exiace/N/A

This commit is contained in:
exiace 2022-01-19 02:34:45 +00:00 committed by Gitee
commit 220ed657b3
1 changed files with 11 additions and 9 deletions

View File

@ -13,15 +13,17 @@
class="upload-file-uploader" class="upload-file-uploader"
ref="upload" ref="upload"
> >
<!-- 上传按钮 -->
<el-button size="mini" type="primary">选取文件</el-button> <el-popover placement="right" width="250" trigger="hover" :disabled="!showTip">
<!-- 上传提示 --> <div style="font-size:12px" >
<div class="el-upload__tip" slot="tip" v-if="showTip">
请上传 请上传
<template v-if="fileSize"> 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b> </template> <template v-if="fileSize"> 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b> <br> </template>
<template v-if="fileType"> 格式为 <b style="color: #f56c6c">{{ fileType.join("/") }}</b> </template> <template v-if="fileType"> 格式为 <b style="color: #f56c6c">{{ fileType.replaceAll(".","") }}</b> </template>
的文件 的文件
</div> </div>
<el-button size="mini" type="primary" slot="reference">选取文件</el-button>
</el-popover>
</el-upload> </el-upload>
<!-- 文件列表 --> <!-- 文件列表 -->