上传文件限一个
This commit is contained in:
parent
d92cf6925f
commit
133553b6a1
|
@ -151,6 +151,7 @@
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
|
:maxCount="1"
|
||||||
>
|
>
|
||||||
<a-button
|
<a-button
|
||||||
style="
|
style="
|
||||||
|
@ -172,6 +173,10 @@
|
||||||
<span style="font-size: 14px; color: #999">
|
<span style="font-size: 14px; color: #999">
|
||||||
支持doc、docx、jpg、png、jpeg、pdf、xlxs、ppt类型文件
|
支持doc、docx、jpg、png、jpeg、pdf、xlxs、ppt类型文件
|
||||||
</span>
|
</span>
|
||||||
|
<div v-if="fileList.length < 1">
|
||||||
|
<plus-outlined />
|
||||||
|
<div style="margin-top: 8px">上传限一个文件</div>
|
||||||
|
</div>
|
||||||
</a-upload>
|
</a-upload>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue