table: Correct onRow event handlers to receive a MouseEvent instead of SyntheticEvent

This commit is contained in:
Thomas Ladd 2019-09-19 16:51:08 -05:00 committed by 偏右
parent 1d8c6f8d82
commit 3e4fd43a07

View File

@ -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
}