Skip to content

Commit 8ba8983

Browse files
committed
fix: table customRow events not work #3121
1 parent 196d2dc commit 8ba8983

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

antdv-demo

components/vc-table/src/TableRow.jsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,19 @@ const TableRow = {
248248
...rowProps,
249249
style,
250250
onClick: e => {
251-
this.onRowClick(e, rowProps.click);
251+
this.onRowClick(e, rowProps.onClick);
252252
},
253253
onDblclick: e => {
254-
this.onRowDoubleClick(e, rowProps.dblclick);
254+
this.onRowDoubleClick(e, rowProps.onDblclick);
255255
},
256256
onMouseenter: e => {
257-
this.onMouseEnter(e, rowProps.mouseenter);
257+
this.onMouseEnter(e, rowProps.onMouseenter);
258258
},
259259
onMouseleave: e => {
260-
this.onMouseLeave(e, rowProps.mouseleave);
260+
this.onMouseLeave(e, rowProps.onMouseleave);
261261
},
262262
onContextmenu: e => {
263-
this.onContextMenu(e, rowProps.contextmenu);
263+
this.onContextMenu(e, rowProps.onContextmenu);
264264
},
265265
class: rowClassName,
266266
'data-row-key': rowKey,

0 commit comments

Comments
 (0)