ztxkutils 2.5.7 → 2.5.8

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/dist/print.js +5 -6
  2. package/package.json +1 -1
package/dist/print.js CHANGED
@@ -8927,12 +8927,11 @@ function addWaterHandle(_a) {
8927
8927
  styleDom.setAttribute('type', 'text/css');
8928
8928
  styleDom.setAttribute('id', 'water-style-dom-110011');
8929
8929
  styleDom.innerText =
8930
- '@media print{' + waterClassName
8931
- ? "." + waterClassName
8932
- : 'body' +
8933
- ' {background: url(' +
8934
- canvas.toDataURL('image/png') +
8935
- ') left top repeat;}}';
8930
+ '@media print{' +
8931
+ (waterClassName ? "." + waterClassName : 'body') +
8932
+ ' {background: url(' +
8933
+ canvas.toDataURL('image/png') +
8934
+ ') left top repeat;}}';
8936
8935
  document.head.appendChild(styleDom);
8937
8936
  }
8938
8937
  function printCurrentDom(_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.5.7",
3
+ "version": "2.5.8",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",