element-ui upload组件 onchange事件 传自定义参数

 <el-upload
    class="upload-demo"
    list-type="picture"
    accept="image/*"
    :show-file-list="false"
    :multiple="false"
    :auto-upload="false"
    action="https://jsonplaceholder.typicode.com/posts/"
    :on-change="(file, fileList) => {handleChange(file, fileList, item)}"
    :on-preview="handlePreview">
    <a size="small" type="primary">点击修改</a>
</el-upload>
 
 
 
其中item为自定义参数
posted @ 2019-09-18 14:28  Mr_R  阅读(6299)  评论(0编辑  收藏  举报