vg-print-vue2 1.0.511 → 1.0.512
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/vg-print-vue2.es.js +14 -1
- package/package.json +1 -1
package/dist/vg-print-vue2.es.js
CHANGED
|
@@ -71020,6 +71020,12 @@ ${i18n.__("转大小写")}
|
|
|
71020
71020
|
this.index = t4.index, this.name = t4.name, this.nameField = t4.nameField, this.width = t4.width, this.height = t4.height, this.paperType = t4.paperType, this.paperHeader = t4.paperHeader, this.paperFooter = t4.paperFooter;
|
|
71021
71021
|
this.designPaper.width = o.a.mm.toPt(t4.width), this.designPaper.height = o.a.mm.toPt(this.height), this.designPaper.paperType = this.paperType, this.designPaper.paperHeader = this.paperHeader, this.designPaper.paperFooter = this.paperFooter;
|
|
71022
71022
|
this.designPaper.mmheight = t4.height, this.designPaper.mmwidth = t4.width;
|
|
71023
|
+
if (this.designPaper.target && this.designPaper.target.length) {
|
|
71024
|
+
this.designPaper.target.css("width", t4.width + "mm");
|
|
71025
|
+
this.designPaper.target.css("height", t4.height - p.a.instance.paperHeightTrim + "mm");
|
|
71026
|
+
this.designPaper.target.attr("original-height", t4.height);
|
|
71027
|
+
}
|
|
71028
|
+
this.designPaper.contentHeight = this.designPaper.paperFooter - this.designPaper.paperHeader;
|
|
71023
71029
|
this.designPaper.headerLinetarget.css("top", (this.paperHeader || -1) + "pt"), 0 == this.paperHeader ? this.designPaper.headerLinetarget.addClass("hideheaderLinetarget") : this.designPaper.headerLinetarget.removeClass("hideheaderLinetarget");
|
|
71024
71030
|
this.designPaper.footerLinetarget.css("top", parseInt(this.paperFooter.toString()) + "pt"), this.paperFooter >= this.designPaper.height ? (this.designPaper.footerLinetarget.css("top", t4.height - p.a.instance.paperHeightTrim + "mm"), this.designPaper.footerLinetarget.addClass("hidefooterLinetarget")) : this.designPaper.footerLinetarget.removeClass("hidefooterLinetarget");
|
|
71025
71031
|
this.watermarkOptions = t4.watermarkOptions || {};
|
|
@@ -71323,10 +71329,17 @@ ${i18n.__("转大小写")}
|
|
|
71323
71329
|
if (!Number.isFinite(dx))
|
|
71324
71330
|
dx = 0;
|
|
71325
71331
|
var imgLeft = contentLeftPt + dx;
|
|
71332
|
+
if (typeof img.setCurrenttemplateData === "function")
|
|
71333
|
+
img.setCurrenttemplateData(printData4);
|
|
71326
71334
|
var imgData = img.getData(printData4) || "";
|
|
71335
|
+
var emptyDisplayMode = typeof img.getEmptyDataDisplayMode === "function" ? img.getEmptyDataDisplayMode(imgData) : "";
|
|
71336
|
+
if (emptyDisplayMode === "collapse")
|
|
71337
|
+
return;
|
|
71327
71338
|
var target = img.createTarget(img.getTitle(), imgData, paper.index);
|
|
71328
71339
|
img.updateTargetSize(target);
|
|
71329
71340
|
img.css(target, imgData);
|
|
71341
|
+
if (emptyDisplayMode === "placeholder")
|
|
71342
|
+
target.css("visibility", "hidden");
|
|
71330
71343
|
var imgH = 0;
|
|
71331
71344
|
try {
|
|
71332
71345
|
imgH = Number(img.options.getHeight ? img.options.getHeight() : img.options.height) || 0;
|
|
@@ -77887,7 +77900,7 @@ async function ensureHttpClient() {
|
|
|
77887
77900
|
}
|
|
77888
77901
|
const name = "vg-print-vue2";
|
|
77889
77902
|
const description = "vg-print supports visual drag and drop design templates, with functions such as previewing and exporting PDFs/images. Silent printing can be achieved in conjunction with a dedicated client";
|
|
77890
|
-
const version = "1.0.
|
|
77903
|
+
const version = "1.0.512";
|
|
77891
77904
|
const author = "gmcSimple";
|
|
77892
77905
|
const license = "MIT";
|
|
77893
77906
|
const main = "dist/vg-print-vue2.cjs.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vg-print-vue2",
|
|
3
3
|
"description": "vg-print supports visual drag and drop design templates, with functions such as previewing and exporting PDFs/images. Silent printing can be achieved in conjunction with a dedicated client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.512",
|
|
5
5
|
"author": "gmcSimple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/vg-print-vue2.cjs.js",
|