1.在使用第三方框架时候,需要拿到内嵌的参数,又需要传我们自己的参数 例如:element UI
<el-tree @check="(...event)=>{ getCheckedVals(event,scope.row) }" :default-checked-keys="scope.row.userIdList" ref="tree" :data="dataTree" show-checkbox default-expand-all node-key="organiId" :props="defaultProps"> </el-tree>
2.@check事件被触发时,使用...合并check事件传给我们的参数,scope.row是我们自己的参数,
这样既可以拿到check事件的参数,也可以传我们自定义的参数