element-ui @change add custom parameter

element-ui event of change the default parameter value is a value, such as drop-down box change event of default parameter values ​​are selected value, but the actual project we want to pass more than that of the general argument, if the direct two additional parameters may not get to, then need to default parameter name parameter can be replaced by $ event,

// The first parameter is the default value parameter, the second is our own want the incoming parameters

@change='selectChange($event,scope.row)'

 

Or use the second method:

@change='(val)=>selectChange(value,scope.row)'

Guess you like

Origin www.cnblogs.com/knuzy/p/11097150.html