element UI upload组件上传附件格式限制

2021-01-20 18:14

阅读:810

标签:handle   prim   person   ima   pre   avatar   hand   text   false   

upload
   :action="uploadUrl"
   ref="upload"
   :multiple="false"
   :on-change="fileChange"
   :before-upload="beforeUpload"
   :on-success="handleAvatarSuccess"
   :on-preview="file_click"
   class="upload-demo"
   list-type="text"
   accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
   :file-list="uploadForm.personFileList"
   :auto-upload="false">
   "small" type="primary">选择文件
"tip" class="el-upload__tip">class="el-icon-warning" style="color:red;margin-right:5px">单个文件不超过5MB
accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF" //accept支持上传文件格式

 

element UI upload组件上传附件格式限制

标签:handle   prim   person   ima   pre   avatar   hand   text   false   

原文地址:https://www.cnblogs.com/zhangyezi/p/13304455.html


评论


亲,登录后才可以留言!