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為自定義參數


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM