<checkbox-group
v-model="props.row"
@change="(newVal, oldVal) => { change(props.row, newVal, oldVal); }"
>
</checkbox-group>
const change = (row, newVal, oldVal) => {
console.log(row, newVal, oldVal);
}
<checkbox-group
v-model="props.row"
@change="(newVal, oldVal) => { change(props.row, newVal, oldVal); }"
>
</checkbox-group>
const change = (row, newVal, oldVal) => {
console.log(row, newVal, oldVal);
}
本文标题:VUE第三方组件默认方法事件中,如何一起传入默认参数和自定义参数
本文链接:https://www.haomeiwen.com/subject/fvclcdtx.html
网友评论