import * as React from 'react'; import PropTypes from 'prop-types'; import { SubMenu as RcSubMenu } from 'rc-menu'; import classNames from 'classnames'; class SubMenu extends React.Component { static contextTypes = { antdMenuTheme: PropTypes.string, }; private subMenu: any; onKeyDown = (e: React.MouseEvent) => { this.subMenu.onKeyDown(e); } saveSubMenu = (subMenu: any) => { this.subMenu = subMenu; } render() { const { rootPrefixCls, className } = this.props; const theme = this.context.antdMenuTheme; return ( ); } } export default SubMenu;