ztxkutils 2.5.7 → 2.6.0

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.js CHANGED
@@ -2,13 +2,12 @@ export { c as authority } from './authority-fad2028d.js';
2
2
  export { d as dataModel } from './dataModel-1fbaff40.js';
3
3
  export { t as tools } from './tools-d8a41730.js';
4
4
  export { v as validate } from './validate-e43b3240.js';
5
- export { r as request } from './request-d385a629.js';
5
+ export { r as request } from './request-af3b5774.js';
6
6
  export { r as reqUrl } from './reqUrl-eb6532ce.js';
7
7
  import './tslib.es6-f9459658.js';
8
8
  import 'dayjs';
9
9
  import 'number-precision';
10
10
  import 'axios';
11
11
  import 'ztxkui';
12
- import './_commonjsHelpers-bdec4bbd.js';
13
- import './crypto.js';
12
+ import './crypto-c481f616.js';
14
13
  import 'crypto';
package/dist/print.d.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  /**
2
2
  * 添加水印
3
3
  */
4
- export declare function addWaterHandle({ waterText, waterClassName }?: {
5
- waterText: string;
6
- waterClassName: string;
4
+ export declare function addWaterHandle({ waterText, waterClassName, isPrintWater, }?: {
5
+ waterText?: string;
6
+ waterClassName?: string;
7
+ isPrintWater?: boolean;
7
8
  }): void;
9
+ export declare function removeWaterHandle(): void;
8
10
  /**
9
11
  * 打印页面
10
12
  * hiddenClassNames 需要隐藏的样式 默认有hiddenPrint
@@ -14,11 +16,9 @@ interface IParams {
14
16
  hiddenClassNames?: string[];
15
17
  }
16
18
  export declare function printCurrentDom({ hiddenClassNames }?: IParams): void;
17
- /**
18
- * html转pdf
19
- */
20
- export declare function htmlToPdf({ dom, pdfName, }: {
19
+ export declare function htmlToPdf({ pageClassName, dom, pdfName, }: {
20
+ pageClassName?: string;
21
21
  dom: HTMLElement;
22
22
  pdfName: string;
23
- }): void;
23
+ }): Promise<void>;
24
24
  export {};