import * as React from "react"; import { ConfigConsumerProps } from "../Config"; interface IDropdownItemProps { /** * 自定义class * * @default "hover" **/ className?: string; /** * 是否可用 * * @default false **/ disabled?: boolean; /** * 触发菜单打开事件 * * @default () => null **/ onItemSelect?: (...args: any[]) => void; /** * 子内容 * * **/ children: React.ReactChild | React.ReactChild[]; /** * 多级下拉时的父级内容 * * **/ content?: React.ReactNode; /** * 默认前缀 * * @default "lg" **/ prefixCls?: string; /** * 索引 * * @default **/ itemIndex?: string; /** * * 当前索引 * * @default **/ currIndex?: string; [key: string]: any; } interface IState { visible: boolean; } export default class DropdownItem extends React.PureComponent { private timer; static defaultProps: { className: string; disabled: boolean; onItemSelect: () => null; }; constructor(props: any); componentWillUnmount(): void; handleSelect: (e: any) => void; showChild: (visible: any) => void; renderItem: (prefixCls: any) => JSX.Element; renderChild: (prefixCls: any) => JSX.Element; renderDropdownItem: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export {};