import * as React from "react"; export interface Props { /** * 默认前缀 * * **/ prefixCls: string; /** * 子菜单菜单项 * **/ children?: React.ReactNode | any; /** * 唯一标志 * * @default null **/ menuKey: string; /** * 子菜单标题 * * @default null **/ title: React.ReactNode; /** * 子菜单级数 * * @default null **/ level: number; /** * 一级是否有icon * * @default false **/ hasIcon?: boolean; /** * 已选中 * * @default "" **/ selectedKey: string; /** * 已展开 * * @default [] **/ openKeys: Array; /** * 点击选项 * * @default (hasChildren:boolean,key:string) =>{} **/ clickMenu: (hasChildren: boolean, key: string, onShow?: boolean) => void; /** * 点击选项 * * @default (hasChildren:boolean,key:string) =>{} **/ mouseMenu: (onShow: boolean) => void; /** * 跳转链接 * **/ href: string; /** * 自定义Item * **/ navItem: ((...args: any[]) => any) | false | undefined; /** * * **/ menuData: any; /** * * 是否有鼠标悬停事件 **/ onMouse: boolean; /** * * 是否展示节点 **/ onShow: boolean; } export interface State { } export declare class Submenu extends React.Component { constructor(props: Props); clickMenu: (e: any, hasChildren: any, key: any) => void; mouseOverMenu: (e: any, hasChildren: any, key: any) => void; isChildrenSelect: (children: any) => boolean; renderItem: () => any; render(): JSX.Element; }