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

1.html

<el-form-item label="附件上传" prop="" >
    <!--:file-list="item.fileList"-->
    <el-upload
        class=""
        action="#"
        list-type="picture-card"
        :on-preview="handlePictureCardPreview"
        :before-upload="beforeLogoUpload"
        :http-request="uploadFile"
        :on-remove="(file, fileList) => {handleRemove(file, fileList, index)}"
    >
        <el-button size="small" type="primary" style="margin-left:-35px;" @click="markIndex(index)">点击上传</el-button>
    </el-upload>

2.script

handleRemove(file, fileList,fileIndex){}
发布了76 篇原创文章 · 获赞 19 · 访问量 27万+

猜你喜欢

转载自blog.csdn.net/tyjlearning/article/details/105642223