/** * 路由切换器 组件 * * TODO: * 1. 添加 ICON 支持,showIcon, RouteIcon 请求中 LoadingIcon 之类的 * 2. 增加 可编辑/固定 模式 * 3. 将组件转为 纯 react 组件,容易控制 */ import { MenuItem, MenuDivider } from 'amis/lib/components/ContextMenu'; import React from 'react'; import { RouteItem } from "../../routes/types"; export declare type RouteMenuItem = Array; export declare type TabItem = Partial> & { pathname: string; label: string; id?: string | number; shared?: boolean; isRoot?: boolean; active?: boolean; state?: string; }; declare const _default: React.ComponentClass | (Pick & { wrappedComponentRef?: ((instance: any) => void) | React.RefObject | null | undefined; }), any> & import("react-router").WithRouterStatics; export default _default;