@gonsin/gview 2.0.105 → 2.0.107
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.
- package/dist/index.mjs +4401 -4367
- package/dist/types/utils/download.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 获取文件名
|
|
3
|
+
* @param {string} disposition
|
|
4
|
+
*/
|
|
5
|
+
export declare function getFileNameFromContentDisposition(disposition: string): string | null;
|
|
1
6
|
/**
|
|
2
7
|
* @description: 下载文件方法
|
|
3
8
|
* @param {string} url
|
|
4
9
|
* @param {string} filename
|
|
5
10
|
*/
|
|
6
|
-
export declare function downloadFile(url: string, downloadFilename?: string, type?: "file" | "blob"): void;
|
|
11
|
+
export declare function downloadFile(url: string, downloadFilename?: string, type?: "file" | "blob", props?: any): void;
|