子组件emit出来的事件带有1到2个参数,在父组件中怎么传递其他参数,且保留子组件的参数,记得有2中方式,求教
子组件this.$emit('submit', arg1, arg2)
父组件<some-cmp @submit='doSomething'>确定</some-cmp>
doSomething后面怎么传参,除了接收arg1、arg2,再添加一个arg3
@submit='(arg1, arg2) => doSomething(arg1,arg2, arg3)'
2.1m questions
2.1m answers
60 comments
57.0k users