mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
Properly type onMouseEnter and onMouseLeave events
This commit is contained in:
parent
991b47f421
commit
dfc9b24c98
@ -13,8 +13,8 @@ interface MenuItemProps {
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
onClick?: (param: ClickParam) => void;
|
||||
onMouseEnter?: (event: string, e: MouseEvent) => void;
|
||||
onMouseLeave?: (event: string, e: MouseEvent) => void;
|
||||
onMouseEnter?: (e: { key: string; domEvent: MouseEvent }) => void;
|
||||
onMouseLeave?: (e: { key: string; domEvent: MouseEvent }) => void;
|
||||
}
|
||||
|
||||
class MenuItem extends React.Component<MenuItemProps, any> {
|
||||
|
Loading…
Reference in New Issue
Block a user