用 event.target.closest('.ant-table-row-cell-break-word').textContent 获取
{
title: "ECP",
dataIndex: "ecp",
scopedSlots: { customRender: "ecp" },
customRender(_, row) {
return {
child: row.ecp,
attrs: {
rowSpan: row.ecpRowSpan
}
}
},
customCell: row => {
return {
on: {
click: event => {
let value = event.target.closest('.ant-table-row-cell-break-word').textContent
console.log(value)
}
}
}
}
},