如下图所示:
代码实现:
<a-upload accept=".png, .jpg, .jpeg"
name="file" :multiple="false" :before-upload="beforeUpload"
:customRequest="data=>customRequest(data,'left')"
:show-upload-list="false">
<i class="iconfont iconedit-fill"></i>
</a-upload>
格式具体时:accept=".png, .jpg, .jpeg"
;
格式为变量时::accept= "fileFormat"
;