@farris/x-ui 0.1.6 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ export interface RuntimeAttachmentLike {
10
10
  /** 得到用于发起 GET 下载请求的 href(相对路径或绝对 URL) */
11
11
  export declare function resolveHrefForAttachmentDownload(target: RuntimeAttachmentLike): string | undefined;
12
12
  /**
13
- * GET 二进制并触发浏览器下载;失败时降级为新开页。
13
+ * GET 二进制并触发浏览器下载;失败时降级为同源 URL 下载(不新开页)。
14
14
  * `fileName` 仅作锚点文件名提示,服务端 `Content-Disposition` 优先。
15
15
  */
16
16
  export declare function triggerAttachmentDownload(href: string, fileName: string): Promise<void>;
@@ -14,6 +14,8 @@ export interface DynamicComponentConfig {
14
14
  fileRe?: string;
15
15
  /** 打开后落位目标面板,默认 'preview' */
16
16
  target?: 'preview' | 'previewExtra';
17
+ /** 重复打开时替换已有标签页数据(而非仅切换) */
18
+ replace?: boolean;
17
19
  }
18
20
  export interface DynamicComponentAssistantMessagePayload {
19
21
  messageId: string;