mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
table: Correct onRow event handlers to receive a MouseEvent instead of SyntheticEvent
This commit is contained in:
parent
1d8c6f8d82
commit
3e4fd43a07
@ -134,11 +134,11 @@ export interface TableCurrentDataSource<T> {
|
||||
}
|
||||
|
||||
export interface TableEventListeners {
|
||||
onClick?: (arg: React.SyntheticEvent) => void;
|
||||
onDoubleClick?: (arg: React.SyntheticEvent) => void;
|
||||
onContextMenu?: (arg: React.SyntheticEvent) => void;
|
||||
onMouseEnter?: (arg: React.SyntheticEvent) => void;
|
||||
onMouseLeave?: (arg: React.SyntheticEvent) => void;
|
||||
onClick?: (arg: React.MouseEvent) => void;
|
||||
onDoubleClick?: (arg: React.MouseEvent) => void;
|
||||
onContextMenu?: (arg: React.MouseEvent) => void;
|
||||
onMouseEnter?: (arg: React.MouseEvent) => void;
|
||||
onMouseLeave?: (arg: React.MouseEvent) => void;
|
||||
[name: string]: any; // https://github.com/ant-design/ant-design/issues/17245#issuecomment-504807714
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user