export type AppItemType = { id: string; routerPrefix: string; version: string; status: 0 | 1 | 2; //App状态1:正常,2:下架,0:删除,微应用下架或者删除时对应的功能项全部停用 resource: string[]; //App对应脚本静态资源文件路径[js,css] icon: string; name: string; ext?: any; }; export type FeatureItemType = { id: string; appId: string; name: string; status: 0 | 1 | 2; //功能项状态1,正常,2,停用,0删除,当App更新了版后是可能出现功能项缩减的情况 type: 1 | 2 | 3; //功能类型1:实际菜单,2:权限,3:虚拟分组 interfaceCodes: string[]; icon: string; routeUrl: string; sort: number; children?: FeatureItemType[]; parentId?: string; level?: number; }; export type BSConfigType = { systemLogo: string; systemName: string; parterLogo: string[]; loginBG: string; icp: string[]; openSocket: boolean; chromeDownloadUrl: string; AppTimeOut: number; shortcut: string; download: { chrome: string; player: string }; [key: string]: any; }; export type ThemeInfoType = { vars: { [key: string]: string[] }; style: { menuType: 'inline' | 'horizontal'; hasTab: boolean; }; }; export type ConfigKey = 'app' | 'feature' | 'featureIds' | 'bs' | 'theme'; export type ConfigJOSN = { app: { [key: string]: AppItemType }; features: FeatureItemType[]; featureIds: string[]; bs: BSConfigType; theme: ThemeInfoType; registerAppConfig: (conf: AppItemType[]) => void; registerFeatrueIds: (conf: string[]) => void; registerBSConfig: (conf: BSConfigType) => void; registerPlatformFeature: (conf: FeatureItemType[]) => void; registerThemeConfig: (conf: ThemeInfoType) => void; getThemeVarValue: (themeKey: string) => string; [key: string]: any; };