import React from 'react'; import { MenuListProps } from './MenuList'; import { PopoverProps } from '../Popover/Popover'; import { PaperProps } from '../Paper/Paper'; export interface MenuProps extends PopoverProps { children?: React.ReactNode; open?: boolean; onEnter?: (element: HTMLElement) => void; onRequestClose?: () => void; MenuListProps?: MenuListProps; PaperProps?: PaperProps; contentAnchorElTarget?: 'item' | 'list'; preventAutoFocus?: boolean; id?: string; paperRef?: (paper: HTMLElement) => void; minWidth?: number; dense?: boolean; color?: string; textStyle?: React.CSSProperties; } export declare function syncWidth(anchorElement: HTMLElement, target?: HTMLElement): void; /** * 菜单组件 * * @ReactComponent */ declare class Menu extends React.Component { static defaultProps: { contentAnchorElTarget: string; }; componentDidMount(): void; componentDidUpdate(prevProps: MenuProps): void; getContentAnchorEl: () => any; menuList: any; focus: () => void; handleEnter: (element: HTMLElement) => void; handleListKeyDown: (event: any, key: any) => void; render(): JSX.Element; } export default Menu;