import React from 'react'; import { PartialAll } from './interface'; export declare const BaseColor = "#1890ff"; export declare const cssVar: { gap: string; componentColor: string; borderColorSplit: string; border: string; primaryColor: string; linkColor: string; formLabelWidth: string; borderRadius: string; }; interface IGlobalConfig { /** * @description 服务端环境 * @default java */ environment: 'java' | 'net'; /** * @description 平台api接口地址 */ apiUrl: { /** * @description app自定义表单UI元数据接口 */ appCustomFormUrl: string; /** * @description apc自定义表单UI元数据接口 */ pcCustomFormUrl: string; /** * @description 系统表单UI元数据接口 */ individualUIContent: string; /** * @description 多模式下系统表单UI元数据接口 */ individualUIContentByMenu: [string, string, string]; /** * @description 二开脚本地址接口 */ userDefScript: [string, string]; /** * @description 灵动菜单数据接口 */ floatMenu: string; /** * @description 多语言接口 */ languageInfo: string; /** * @description 登录信息接口 */ appInfo: string; /** * @description 打印接口的根路径 */ printRoot: string; /** * @description 附件接口的根路径 */ appAttachmentRoot: string; }; default: { tableConfig: { /** * @description 自定义批量操作工具栏信息区域, false 时不显示(在checkbox选择模式下有效) * @default true */ tableAlertRender: boolean; /** * @description 表头行高 * @default 39 */ headerHeight: number; /** * @description 表体行高 * @default 32 */ rowHeight: number; /** * @description header的高级菜单, 列隐藏或显示功能 * @default true */ headerMenu: boolean; /** * @description 数据在单元格的显示位置 * @default left */ align: 'left' | 'center' | 'right'; /** * @description 表头默认是否开启浮窗提示 * @default true */ headerTooltip: boolean; /** * @description 单元格默认是否开启浮窗提示 * @default false */ tooltip: boolean | 'render'; }; helpConfig: { /** * @description 弹出帮助的宽度 * @default 1000 */ width: number; /** * @description 弹出帮助的高度 * @default 600 */ height: number; }; /** * @description 金额数值精度 * @default {} */ precision: { prc?: number; amt?: number; qty?: number; rate?: number; amount?: number; }; /** * @description 默认主题 * @default BaseColor */ theme: string; }; iconScriptUrl: string; disableDva: boolean; themeOptions: Array<{ id: string; text: string; rtBgColor: string; }>; /** * 加密相关参数 */ cryptoDefaultParams: { keyStr: string; mode: any; encodePadding: any; decodePadding: any; }; } export type CryptoParamsType = Partial; declare function getGlobalConfig(): IGlobalConfig; type ConfigParam = PartialAll | ((config: T) => T); declare function setGlobalConfig(config?: ConfigParam): void; /** * 注入全局用户信息(登录信息) */ declare function injectGlobalInfo(cache?: boolean): Promise | undefined>; export interface IRegisterComponentOptions { /** * 是否帮助组件 */ isHelp?: boolean; /** * 是否多选帮助 */ multiple?: boolean; } /** * 注册外部组件 * @param Components * @param options */ declare function registerComponent(Components: Record>, options?: IRegisterComponentOptions & { platform?: 'pc' | 'app'; }): void; declare function getRegisterComponent(type?: string, platform?: string, candidate?: string): any; export { getRegisterComponent, registerComponent, getGlobalConfig, setGlobalConfig, injectGlobalInfo };