【Vue】以RuoYi框架前端为例,ElementUI封装图片上传组件——将图片信息转成base64后提交到后端保存 - action="
action="#"
list-type="picture-card"
accept=".png, .jpeg, .jpg" 拼多多帮助力入口
:limit="limit"
:on-change="handleChange"
:on-remove="handleRemove"
:on-preview="handlePictureCardPreview"
:on-exceed="handleExceed"
:file-list="fileList"
:class="{hide: this.fileList.length >= this.limit}"
:show-file-list="true"
:auto-upload="false">
:src="previewDialogImageUrl" alt="">,Vue