解决方法:
@change="checked=>方法名(checked,你想传的额外参数...)
举例:el-checkbox组件中,应用@change方法进行传参
<el-checkbox @change="checked=>checkRow(checked, scope.row)"></el-checkbox>
checkRow(checked,row) {
console.log(`checked:${checked}`)
console.log(’row‘)
},
2024-01-19 16:49:22
解决方法:
@change="checked=>方法名(checked,你想传的额外参数...)
举例:el-checkbox组件中,应用@change方法进行传参
<el-checkbox @change="checked=>checkRow(checked, scope.row)"></el-checkbox>
checkRow(checked,row) {
console.log(`checked:${checked}`)
console.log(’row‘)
},
下一篇:本地IDEA链接远程Hadoop