@zjlab-fe/util 0.2.5 → 0.2.6

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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
  * @param options.precision {number} 可选,精度(小数点后最多保留几位),默认是0,即没有小数点
15
15
  * @param options.showByte {boolean} 可选,是否是展示字节单位,默认是false
16
16
  */
17
- export declare function formatNumber(total: number, options?: {
17
+ function formatNumber(total: number, options?: {
18
18
  locale?: string;
19
19
  precision?: number;
20
20
  showByte?: boolean;
@@ -31,8 +31,9 @@ export declare function formatNumber(total: number, options?: {
31
31
  * @param url {string} 文件url
32
32
  * @param openWindow {bool} 可选,是否是新开标签页下载
33
33
  * @param message {object} 可选,如果传入,需要传入antd或者antdv的message
34
+ * @param headers {Record<string, string>} 可选,自定义请求头
34
35
  */
35
- function downloadFile(url: string, openWindow?: boolean, message?: any): void;
36
+ function downloadFile(url: string, openWindow?: boolean, message?: any, headers?: Record<string, string>): void;
36
37
  ```
37
38
 
38
39
  ### 提取文件类型
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zjlab-fe/util",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",