[vue] vue自定义事件中父组件怎么接收子组件的多个参数?
Activity
xyfll7 commentedon Jun 28, 2019
传递一个对象出去
webread commentedon Jul 17, 2019
this.$emit("eventName",data)
data为一个对象
StitchC commentedon Oct 5, 2019
子组件传递多个参数,父组件用展开运算符获取
fireairforce commentedon Oct 5, 2019
父组件那边用解构赋值取。。。
Vue-protoType commentedon Jan 14, 2020
使用.sync也可以实现传多个参数
liushengguang commentedon Apr 29, 2020
子组件传递一个对象,父组件用展开运算符获取参数
MoMoOwO commentedon Sep 24, 2020
this.$emit("eventName",data)
data 对象或数组都可以的。
radio-qq commentedon Dec 31, 2020
https://www.cnblogs.com/lalalagq/p/9901139.html