-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
2.0.0-rc.1
Environment
win10,firefox83.0,vue3.0.2,vue-cli4.5.8,ts3.9.3
Reproduction link
https://github.com/vueComponent/ant-design-vue/
Steps to reproduce
<a-table
:row-selection="rowSelection"
:columns="columns"
:data-source="tabledata"
:rowKey="record => record.name"
:customRow="rowClick"
bordered
>
</a-table>
methods: {
rowClick(record, index){
return {
on: {
click: () => {
console.log('点击行内容record' record);
console.log('序号索引index' index);
}
}
}
},
}
What is expected?
To work normally, click to get row data.
What is actually happening?
Property not fired, unable to get data
Click the row and check the box to get the row data.This function is commonly used. Can it be encapsulated?