<a-table
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange, columnWidth: 40 }"
:columns="columns"
:data-source="LXRlist"
:scroll="{ x: 1600, y:selectShow?'calc(100vh - 376px)':'calc(100vh - 276px)' }"
:pagination="false"
@change="handleTableChange"
size="small"
class="custom-table"
:customRow='LXRclick'
>
:customRow=‘LXRclick’ 写一个事件
LXRclick(record, index) {
return {
on: {
click: () => {
console.log(record,index);
this.OpenDetail(record)
}
dblclick: (event) => {},//双击
contextmenu: (event) => {},
mouseenter: (event) => {}, // 鼠标移入行
mouseleave: (event) => {} // 鼠标移出行
}
}
},