diff --git a/components/menu/SubMenu.tsx b/components/menu/SubMenu.tsx index 264396358d..6a18ad6b80 100644 --- a/components/menu/SubMenu.tsx +++ b/components/menu/SubMenu.tsx @@ -3,12 +3,17 @@ import * as PropTypes from 'prop-types'; import { SubMenu as RcSubMenu } from 'rc-menu'; import classNames from 'classnames'; +interface TitleClickEntity { + key: string; + domEvent: Event; +} + export interface SubMenuProps { rootPrefixCls?: string; className?: string; disabled?: boolean; title?: React.ReactNode; - onTitleClick?: (key: string, domEvent?: Event) => void; + onTitleClick?: (clickEntity: TitleClickEntity) => void; } class SubMenu extends React.Component {