|
|
@ -16,14 +16,17 @@
|
|
|
|
v-if="!disabled"
|
|
|
|
v-if="!disabled"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<!-- 上传按钮 -->
|
|
|
|
<!-- 上传按钮 -->
|
|
|
|
<el-button size="mini" type="primary">选取文件</el-button>
|
|
|
|
<el-popover placement="right" width="250" trigger="hover" :disabled="!showTip">
|
|
|
|
<!-- 上传提示 -->
|
|
|
|
<!-- 上传提示 -->
|
|
|
|
<div class="el-upload__tip" slot="tip" v-if="showTip">
|
|
|
|
<div style="font-size:12px;">
|
|
|
|
请上传
|
|
|
|
请上传
|
|
|
|
<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.join("/") }}</b> </template>
|
|
|
|
的文件
|
|
|
|
的文件
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-button size="mini" type="primary" slot="reference">选取文件</el-button>
|
|
|
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
|
|
|
|
</el-upload>
|
|
|
|
</el-upload>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 文件列表 -->
|
|
|
|
<!-- 文件列表 -->
|
|
|
|