UNPKG

693 BTypeScriptView Raw
1import * as React from 'react';
2interface TitleEventEntity {
3 key: string;
4 domEvent: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
5}
6export interface SubMenuProps {
7 className?: string;
8 disabled?: boolean;
9 level?: number;
10 title?: React.ReactNode;
11 icon?: React.ReactNode;
12 style?: React.CSSProperties;
13 onTitleClick?: (e: TitleEventEntity) => void;
14 onTitleMouseEnter?: (e: TitleEventEntity) => void;
15 onTitleMouseLeave?: (e: TitleEventEntity) => void;
16 popupOffset?: [number, number];
17 popupClassName?: string;
18 children?: React.ReactNode;
19}
20declare function SubMenu(props: SubMenuProps): JSX.Element;
21export default SubMenu;