- 记录项目antd-vue版本1.7.8
- 个人笔记记录


handleClickRow(record, index){
return {
on: {
click: (event) => {
const rowElement = event.target.closest("tr");
const lastCellElement = rowElement.lastElementChild;
const clickedCellElement = event.target.closest("td");
const isLastColumn = clickedCellElement === lastCellElement;
if (!isLastColumn) {
console.log(recore, index)
}
}
}
}
},
handleClickRow(record, index){
return {
on: {
click: (event) => {
const lastColumnIndex = this.columns.length - 1;
const isLastColumn = event.target.cellIndex === lastColumnIndex;
if (!isLastColumn) {
this.handleAdd('look', record)
}
}
}
}
},
原文链接
blog.csdn.net/meichaoWen/…