@uiw-admin/plugins
Version:
18 lines (17 loc) • 642 B
TypeScript
import { RoutersProps, ModelType, RouteModels } from './interface';
export * from './babel';
export * from './rematch';
/**
* @description 生成的映射json文件格式
* {
* path:[
* {name:"",path:"....path"}
* ]
* }
* */
/** 把数组扁平化 */
export declare const getRoutesList: (data?: RoutersProps[], list?: RoutersProps[]) => RoutersProps[];
export declare const getRouteMapModels: (routes: RoutersProps[], modelsData: ModelType[]) => RouteModels;
/** 转 首字母大写 */
export declare const getToUpperCase: (valus: string) => string;
export declare const getJsonToString: (key: string, value: string) => string;