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.
- package/dist/print.js +5 -6
- 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{' +
|
8931
|
-
? "." + waterClassName
|
8932
|
-
: '
|
8933
|
-
|
8934
|
-
|
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) {
|