ztxkutils 2.5.6 → 2.5.7

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/print.d.ts CHANGED
@@ -10,7 +10,7 @@ export declare function addWaterHandle({ waterText, waterClassName }?: {
10
10
  * hiddenClassNames 需要隐藏的样式 默认有hiddenPrint
11
11
  */
12
12
  interface IParams {
13
- /** 需要隐藏的样式类名 ['test', 'test1] */
13
+ /** 需要隐藏的样式类名 ['.test', '.test1] */
14
14
  hiddenClassNames?: string[];
15
15
  }
16
16
  export declare function printCurrentDom({ hiddenClassNames }?: IParams): void;
package/dist/print.js CHANGED
@@ -8945,7 +8945,8 @@ function printCurrentDom(_a) {
8945
8945
  styleDom.setAttribute('type', 'text/css');
8946
8946
  styleDom.setAttribute('id', 'print-style-dom-110011');
8947
8947
  styleDom.innerText = "@media print{ " + __spreadArray$1(__spreadArray$1([], hiddenClassNames), [
8948
- 'hiddenPrint',
8948
+ '.hiddenPrint',
8949
+ '.hidden-print-footer',
8949
8950
  ]).join(',') + " { display: none; } }";
8950
8951
  document.head.appendChild(styleDom);
8951
8952
  window.print();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.5.6",
3
+ "version": "2.5.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",