export type GlobalConfig = { /** * 路由基准路径 */ basename?: string; }; type BoardMenuItem = { /** * 菜单项的 key 值,必须唯一 */ key: string; /** * 菜单项的图标路径,不支持网络图片,支持主题变量配置。 */ iconPath: string; /** * 菜单项的标题,支持多语言。 */ text: string; }; type BoardMenus = BoardMenuItem[]; export type TyGlobalConfig = { /** * 变量配置文件路径 */ themeLocation: string; /** * 全局配置 */ window: { /** * 窗口的背景色 * 默认值: #ffffff */ backgroundColor?: string; /** * 底部窗口的背景色,仅 iOS 支持 * 默认值: #ffffff */ backgroundColorBottom?: string; /** * 顶部窗口的背景色,仅 iOS 支持 * 默认值: #ffffff */ backgroundColorTop?: string; /** * 下拉 loading 的样式,仅支持 dark / light * 默认值: dark */ backgroundTextStyle?: 'dark' | 'light' | string; /** * 自定义导航栏,只保留右上角胶囊按钮 * 默认值: false */ custom?: boolean; /** * 是否开启全局的下拉刷新 * 默认值: false */ enablePullDownRefresh?: boolean; /** * 导航栏背景颜色,如 #000000 * 默认值: #ffffff */ navigationBarBackgroundColor?: string; /** * 导航栏标题颜色,仅支持 black / white * 默认值: black */ navigationBarTextStyle?: 'black' | 'white' | string; /** * 导航栏标题文字内容 */ navigationBarTitleText?: string; /** * default 默认样式 custom 自定义导航栏,只保留右上角胶囊按钮 * 默认值: default */ navigationStyle?: string; /** * 是否隐藏右上角胶囊按钮 * 默认值: false */ hideMenuButton?: boolean; /** * 页面上拉触底事件触发时距页面底部距离,单位为 px * 默认值: 50 */ onReachBottomDistance?: number; /** * 自定义菜单配置, 容器版本 ≥ 2.3.0 */ boardMenus?: BoardMenus; /** * 屏幕旋转设置,默认值为portrait(竖屏),可选landscape(横屏), auto 自动 * 默认值: portrait */ pageOrientation?: string; }; }; export type WebGlobalConfig = { window: { backgroundColor: string; navigationBarTitleText: string; }; }; export {};