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

This commit is contained in:
exiace 2024-01-11 07:47:48 +00:00 committed by Gitee
commit a4c605e58f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 11 additions and 8 deletions

View File

@ -15,14 +15,17 @@
ref="fileUpload"
>
<!-- 上传按钮 -->
<el-button size="mini" type="primary">选取文件</el-button>
<!-- 上传提示 -->
<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="fileType"> 格式为 <b style="color: #f56c6c">{{ fileType.join("/") }}</b> </template>
的文件
</div>
<el-popover placement="right" width="250" trigger="hover" :disabled="!showTip">
<!-- 上传提示 -->
<div style="font-size:12px;">
请上传
<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>
的文件
</div>
<el-button size="mini" type="primary" slot="reference">选取文件</el-button>
</el-popover>
</el-upload>
<!-- 文件列表 -->