<n-data-table
ref="table"
remote
:columns="columns"
:data="listData"
:pagination="pagination"
:row-key="row => row.msgId"
:row-props="rowProps"
@update:page-size="updatePageSize"
@update:page="updatePage"
/>
//-----------------------------------------------------------
const rowProps = (row: { msgId: string }) => {
return {
style: 'cursor: pointer;',
onClick: () => {
console.log(row.msgId)
}
}
}
Naive ui 表格点击行跳转
最新推荐文章于 2025-02-18 11:12:59 发布