fix: table customRow events not work #3121

pull/3128/head
tanjinzhou 2020-11-05 13:11:38 +08:00
parent 196d2dc8a5
commit 8ba8983353
2 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit 171eade4fef1877d8c6c458fae1858319a19a05c Subproject commit bef135d01e96fadf80f7a09c7cd26b18aa6d71d8

View File

@ -248,19 +248,19 @@ const TableRow = {
...rowProps, ...rowProps,
style, style,
onClick: e => { onClick: e => {
this.onRowClick(e, rowProps.click); this.onRowClick(e, rowProps.onClick);
}, },
onDblclick: e => { onDblclick: e => {
this.onRowDoubleClick(e, rowProps.dblclick); this.onRowDoubleClick(e, rowProps.onDblclick);
}, },
onMouseenter: e => { onMouseenter: e => {
this.onMouseEnter(e, rowProps.mouseenter); this.onMouseEnter(e, rowProps.onMouseenter);
}, },
onMouseleave: e => { onMouseleave: e => {
this.onMouseLeave(e, rowProps.mouseleave); this.onMouseLeave(e, rowProps.onMouseleave);
}, },
onContextmenu: e => { onContextmenu: e => {
this.onContextMenu(e, rowProps.contextmenu); this.onContextMenu(e, rowProps.onContextmenu);
}, },
class: rowClassName, class: rowClassName,
'data-row-key': rowKey, 'data-row-key': rowKey,