This commit is contained in:
zombieJ 2019-01-28 13:29:20 +08:00 committed by GitHub
parent 3e85e51b58
commit 8838bd602d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<SubMenuProps, any> {