美文网首页vueJs使用
关于elementui的el-upload等携带自定义参数的问题

关于elementui的el-upload等携带自定义参数的问题

作者: 记录学习生活 | 来源:发表于2021-05-08 14:12 被阅读0次

以下方法适用于使用v-for循环出的多个文件/图片上传组件(el-upload)的区分或者多个上传组件通过传递参数进行区分区分
文档:on-success 文件上传成功时的钩子 返回的参数为function(response, file, fileList)
我记得table组件里的也是这样用的

:before-upload="(file) => { return beforeAvatarUpload(file,index)}"
:on-success="(response, file, fileList)=>{return handleAvatarSuccess(response, file, fileList,index)}"

相关文章

网友评论

    本文标题:关于elementui的el-upload等携带自定义参数的问题

    本文链接:https://www.haomeiwen.com/subject/gaeudltx.html