上传文件限一个

This commit is contained in:
gaoyuanwei 2022-07-22 16:51:00 +08:00
parent d92cf6925f
commit 133553b6a1
1 changed files with 5 additions and 0 deletions

View File

@ -151,6 +151,7 @@
:headers="headers"
@change="handleChange"
:before-upload="beforeUpload"
:maxCount="1"
>
<a-button
style="
@ -172,6 +173,10 @@
<span style="font-size: 14px; color: #999">
支持docdocxjpgpngjpegpdfxlxsppt类型文件
</span>
<div v-if="fileList.length < 1">
<plus-outlined />
<div style="margin-top: 8px">上传限一个文件</div>
</div>
</a-upload>
</a-form-item>