let that = this
// 列表插槽传参
window.deviceList=[] // 绑定变量
window.showDialog = (row) => { // 绑定事件
that.infoId = row
that.deviceList = window.deviceList
that.devDialogVisible = true
}
slot: (row) => {
return `
<div class="mine-table-row" onClick="showDialog('${window.deviceList=row.adInfoBindDeviceList}')">
${row.adInfoBindDeviceList.length}
</div>
`
},
在Vue中还未实现动态绑定,该操作尽量少用