import { Children } from 'react'; import cx from 'classnames'; import CommonMenu from './CommonMenu'; export default class PopupMenu extends CommonMenu { handleClick = (e, specKey) => { const { onClick } = this.props; onClick(e, specKey); }; onSubMenuClick = () => { if (this.props.onSubMenuClick) { this.props.onSubMenuClick(this.props.specKey); } }; renderSubMenuItems = (component, index) => { if (!component) { return null; } const { specKey } = this.props; return this.renderCommonMenuItem(component, index, specKey); }; render() { const { children, visible, overlayCx } = this.props; if (!visible) { return null; } return ( ); } }