elment-ui_upload回显
作者:互联网
组件代码
显示文件属性:file-list="fileList"
<el-form-item v-show="isshow" label="附件" prop="type">
<el-upload
class="upload-demo"
:action="fileAPI"
:on-preview="handlePreview"
:on-remove="handleRemove"
:on-success="handlePreview"
:file-list="fileList"
list-type="picture"
:limit="1"
>
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
</el-upload>
</el-form-item>
修改回显的时候判断修改对象给file-list添加一个成员就可以了
修改和添加直接根据修改提交对象的内容就可以了
标签:回显,list,elment,修改,添加,ui,file,上传 来源: https://www.cnblogs.com/nuo010/p/15576781.html