/** * iframe 环境中的路由跳转工具 * 用于在 iframe 环境中通过父级的 viewTab 方法进行路由跳转 */ /** * 检查是否在 iframe 环境中且父级支持 viewTab * @returns {boolean} 是否支持 viewTab */ export function isViewTabSupported(): boolean; /** * 从父级 iframe 获取参数 * @returns {Record} 参数对象 */ export function getParentParams(): Record; /** * 在 URL 后追加参数 * @param {string} url - 原始 URL * @param {string} param - 要追加的参数(格式:key=value) * @returns {string} 追加参数后的 URL */ export function appendUrlParam(url: string, param: string): string; /** * 关闭父级标签页 * @param {string} url - 标签页 URL * @param {string} type - 标签页类型(默认:'IFRAME') */ export function closeParentTab(url: string, type?: string): void; /** * ViewTab 配置选项 * @typedef {Object} ViewTabOptions * @property {Object} [uumsFunction] - UUMS 功能配置 * @property {string} [uumsFunction.functionCode] - 功能代码 * @property {string} [uumsFunction.sourceSystem] - 来源系统 * @property {boolean} [appendIsUap=true] - 是否在 URL 后追加 isUap=true 参数 */ /** * 在 iframe 环境中打开新标签页(通过父级的 viewTab 方法) * @param {string} title - 标签页标题 * @param {string} url - 要打开的 URL * @param {string} [viewType='iframe'] - 视图类型,默认为 'iframe' * @param {Record | null} [params=null] - 参数对象 * @param {ViewTabOptions} [options={}] - 配置选项 * @returns {boolean} 是否成功调用 viewTab,如果不在 iframe 环境中返回 false */ export function viewTab(title: string, url: string, viewType?: string | undefined, params?: Record | null | undefined, options?: ViewTabOptions | undefined): boolean; /** * 智能路由跳转:优先使用 viewTab,否则使用普通跳转 * @param {string} title - 标签页标题(仅在 iframe 环境中使用) * @param {string} url - 要打开的 URL * @param {string} [viewType='iframe'] - 视图类型(仅在 iframe 环境中使用) * @param {Record | null} [params=null] - 参数对象(仅在 iframe 环境中使用) * @param {ViewTabOptions} [options={}] - 配置选项(仅在 iframe 环境中使用) */ export function navigate(title: string, url: string, viewType?: string | undefined, params?: Record | null | undefined, options?: ViewTabOptions | undefined): void; /** * ViewTab 配置选项 */ export type ViewTabOptions = { /** * - UUMS 功能配置 */ uumsFunction?: { /** * - 功能代码 */ functionCode?: string | undefined; /** * - 来源系统 */ sourceSystem?: string | undefined; } | undefined; /** * - 是否在 URL 后追加 isUap=true 参数 */ appendIsUap?: boolean | undefined; };