emit传多个参数

https://blog.csdn.net/lxy123456780/article/details/87811113

 

子组件:

this.$emit('closeChange',false,true);

 

 


父组件:

<posilCom @closeChange="closeCom(arguments)"></posilCom>


closeCom(msg) {
this.msg1 = msg[0];
this.msg2 = msg[1];
}

posted @ 2019-12-17 12:31  Daniel_Lu  阅读(3758)  评论(0编辑  收藏  举报