mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 12:38:58 +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;
|
className?: string;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
onClick?: (param: ClickParam) => void;
|
onClick?: (param: ClickParam) => void;
|
||||||
onMouseEnter?: (event: string, e: MouseEvent) => void;
|
onMouseEnter?: (e: { key: string; domEvent: MouseEvent }) => void;
|
||||||
onMouseLeave?: (event: string, e: MouseEvent) => void;
|
onMouseLeave?: (e: { key: string; domEvent: MouseEvent }) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
class MenuItem extends React.Component<MenuItemProps, any> {
|
class MenuItem extends React.Component<MenuItemProps, any> {
|
||||||
|
Loading…
Reference in New Issue
Block a user