@alicloud/console-components
Version:
Alibaba Cloud React Components
47 lines (46 loc) • 3.06 kB
TypeScript
import React from 'react';
import type { NavProps } from '@alifd/next/types/nav';
declare const _default: React.ForwardRefExoticComponent<NavProps & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<NavProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
menu: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu>;
getChildContext(): {
prefix: string;
mode: "inline" | "popup";
iconOnly: any;
iconOnlyWidth: string | number;
iconTextOnly: boolean;
hasTooltip: boolean;
hasArrow: boolean;
};
getMenuRef: React.LegacyRef<import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu>>;
render(): React.JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<NavProps>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<NavProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<NavProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<NavProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<NavProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<NavProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<NavProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<NavProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<NavProps>, nextState: Readonly<{}>, nextContext: any): void;
}, {}> & {
Item: typeof import("@alifd/next/types/nav/item").default;
Group: typeof import("@alifd/next/types/nav/group").default;
SubNav: typeof import("@alifd/next/types/nav/sub-nav").default;
PopupItem: typeof import("@alifd/next/types/nav/popup-item").default;
Divider: typeof import("@alifd/next/types/menu/view/divider").default;
}, {}>;
export default _default;
export type { NavProps, GroupProps as NavGroupProps, ItemProps as NavItemProps, PopupItemProps as NavPopupItemProps, SubNavProps, } from '@alifd/next/types/nav';