VUE 子组件向父组件传多个值

子组件

子组件通过$emit触发父组件中的自定义函数,第一个值为自定义函数名,后面的参数是向父组件传的值

搜索

emitGetList(){             
   this.$emit('refreshList',this.cityValue,this.amount,this.requires);
 },

父组件



 getDate(city,industry,Lstyle,amount,requires){
      this.cityValue = city
      this.industry = industry
      this.Lstyle = Lstyle
      this.amount = amount
      this.requires = requires
      this.getList()
},

 

你可能感兴趣的:(vue)