@ovine/core
Version:
Build flexible admin system with json.
23 lines (22 loc) • 679 B
TypeScript
/**
* 路由切换器 组件
*
* TODO:
* 1. 添加 ICON 支持,showIcon, RouteIcon 请求中 LoadingIcon 之类的
* 2. 增加 可编辑/固定 模式
* 3. 将组件转为 纯 react 组件,容易控制
*/
import { MenuItem, MenuDivider } from 'amis/lib/components/ContextMenu';
import { RouteItem } from "../../routes/types";
export declare type RouteMenuItem = Array<MenuItem | MenuDivider>;
export declare type TabItem = Partial<Omit<RouteItem, 'id'>> & {
pathname: string;
label: string;
id?: string | number;
shared?: boolean;
isRoot?: boolean;
active?: boolean;
state?: string;
};
declare const _default: any;
export default _default;