vue element 中自定义传值

一直以来都不知道如何传自定义的值,一直只会默认的,今天终于找到方法了。

比如这个上传图片的控件,想带当前的index过去,就这样写。其它的类似

:http-request="(file,fileList)=>{ taskAccessoryUpload(file,fileList, index)}"
 
 
   另一种
    changDepart(val) {
      console.log(val, "班组点击",this.$refs["depart"].currentLabels );
      this.form.departCode = val;
      this.form.departName = this.$refs["depart"].currentLabels;
    },
原文地址:https://www.cnblogs.com/wqing/p/11609387.html