export interface ViewRenderingCallbacks { onReady?: () => void; } export interface UBAOptions { /** * 嵌入 DataFinder 的应用 ID */ appId: number; /** * DataFinder 应用的路径 * * - 默认是 `'/datafinder'` */ basePath?: string; /** * 接入方来源,用于数据统计 */ from?: string; /** * 是否需要 minibase 的重定向 */ needsMinibaseRedirect?: boolean; /** * 额外携带的 search params */ customSearchParams?: Record; /** * 自定义嵌入页面内请求的 headers */ customRequestHeaders?: Record; } /** * 渲染 DataFinder 页面的相关参数 */ export interface ViewRenderingOptions extends Partial { /** * 如传入了 dorToken,则会通过 dorToken 作为鉴权方式渲染页面 * dor-token 是rangers鉴权方式,对内项目不支持 */ dorToken?: string; /** * 渲染 iframe 节点时的自定义 attrs。 * * 默认为 `{ width: '100%', height: '100%', frameBorder: '0' }` */ iframeAttrs?: Partial>; /** * 嵌入页面的域名 * * 例如你需要接入 https://xxx.volces.com 提供的 Finder 页面,请传入 "https://xxx.volces.com" * * - 置空则默认为同域,并使用当前页面的域名 */ customDomain?: string; }