emit pass multiple parameters

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

 

Subassembly:

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

 

 


Parent component:

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


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

Guess you like

Origin www.cnblogs.com/lhuser/p/12053835.html