update ruoyi-ui/src/components/FileUpload/index.vue.

pull/138/head
exiace 4 years ago committed by Gitee
parent fa75346763
commit 3c5ac8687a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -13,15 +13,17 @@
class="upload-file-uploader"
ref="upload"
>
<!-- 上传按钮 -->
<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.replaceAll(".","") }}</b> </template>
的文件
</div>
<el-button size="mini" type="primary" slot="reference">选取文件</el-button>
</el-popover>
</el-upload>
<!-- 文件列表 -->

Loading…
Cancel
Save