vg-print-vue2 1.0.312 → 1.0.313
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 +46 -4
- package/package.json +1 -2
package/dist/vg-print-vue2.es.js
CHANGED
|
@@ -65400,6 +65400,44 @@ ${i18n.__("转大小写")}
|
|
|
65400
65400
|
} else {
|
|
65401
65401
|
target.css("background-color", "");
|
|
65402
65402
|
}
|
|
65403
|
+
}, e.prototype._sgtSyncHostHeight = function(host, syncOptionHeight) {
|
|
65404
|
+
if (!(host && host.length))
|
|
65405
|
+
return;
|
|
65406
|
+
var content3 = host.find(".hiprint-printElement-html-content");
|
|
65407
|
+
var wrapper = host.find(".html-content-wrapper");
|
|
65408
|
+
var table = wrapper.find("table.hiprint-static-grid-table").first();
|
|
65409
|
+
if (!content3.length || !wrapper.length || !table.length)
|
|
65410
|
+
return;
|
|
65411
|
+
wrapper.css({
|
|
65412
|
+
display: "block",
|
|
65413
|
+
width: "100%",
|
|
65414
|
+
height: "auto",
|
|
65415
|
+
minHeight: "0",
|
|
65416
|
+
overflow: "visible"
|
|
65417
|
+
});
|
|
65418
|
+
content3.css({
|
|
65419
|
+
height: "auto",
|
|
65420
|
+
minHeight: "0",
|
|
65421
|
+
overflow: "visible"
|
|
65422
|
+
});
|
|
65423
|
+
table.css({
|
|
65424
|
+
height: "auto"
|
|
65425
|
+
});
|
|
65426
|
+
var measuredPx = Math.max(table.outerHeight(true) || 0, wrapper.outerHeight(true) || 0);
|
|
65427
|
+
if (!(measuredPx > 0))
|
|
65428
|
+
return;
|
|
65429
|
+
var measuredPt = Math.round(hinnn.px.toPt(measuredPx) * 1e3) / 1e3;
|
|
65430
|
+
host.css({
|
|
65431
|
+
height: measuredPt + "pt",
|
|
65432
|
+
minHeight: measuredPt + "pt",
|
|
65433
|
+
overflow: "visible"
|
|
65434
|
+
});
|
|
65435
|
+
if (syncOptionHeight && this.options) {
|
|
65436
|
+
if (typeof this.options.setHeight === "function")
|
|
65437
|
+
this.options.setHeight(measuredPt);
|
|
65438
|
+
else
|
|
65439
|
+
this.options.height = measuredPt;
|
|
65440
|
+
}
|
|
65403
65441
|
}, e.prototype.updateDesignViewFromOptions = function() {
|
|
65404
65442
|
if (this.designTarget) {
|
|
65405
65443
|
var t4 = this._currenttemplateData;
|
|
@@ -65479,6 +65517,7 @@ ${i18n.__("转大小写")}
|
|
|
65479
65517
|
contentWrapper2.html(this._sgtRenderHtml(isDesignMode2, rawData2));
|
|
65480
65518
|
this._sgtBindDesignEvents(this.designTarget, isDesignMode2);
|
|
65481
65519
|
this.updateTargetStyle(content3);
|
|
65520
|
+
this._sgtSyncHostHeight(this.designTarget, isDesignMode2);
|
|
65482
65521
|
this.syncGalleryDesignBounds();
|
|
65483
65522
|
return;
|
|
65484
65523
|
}
|
|
@@ -65900,7 +65939,7 @@ ${i18n.__("转大小写")}
|
|
|
65900
65939
|
if (style.textWrap === "nowrap")
|
|
65901
65940
|
tdStyle += "white-space:nowrap;";
|
|
65902
65941
|
if (style.textWrap === "wrap")
|
|
65903
|
-
tdStyle += "white-space:pre-wrap;word-break:break-word;";
|
|
65942
|
+
tdStyle += "white-space:pre-wrap;word-break:break-word;overflow:visible;text-overflow:clip;";
|
|
65904
65943
|
}
|
|
65905
65944
|
if (style.fontFamily)
|
|
65906
65945
|
tdStyle += "font-family:" + style.fontFamily + ";";
|
|
@@ -67577,10 +67616,11 @@ ${i18n.__("转大小写")}
|
|
|
67577
67616
|
n3.prepend('<div class="hiprint-printElement-table-handle"></div>');
|
|
67578
67617
|
}
|
|
67579
67618
|
n3.addClass("hiprint-printElement-staticGridTable");
|
|
67580
|
-
contentWrapper2.css({ display: "block", width: "100%", height: "
|
|
67619
|
+
contentWrapper2.css({ display: "block", width: "100%", height: "auto", overflow: "visible" });
|
|
67581
67620
|
contentWrapper2.html(this._sgtRenderHtml(isDesignMode2, rawData2));
|
|
67582
67621
|
this._sgtBindDesignEvents(n3, isDesignMode2);
|
|
67583
67622
|
this.updateTargetStyle(content3);
|
|
67623
|
+
this._sgtSyncHostHeight(n3, isDesignMode2);
|
|
67584
67624
|
return n3;
|
|
67585
67625
|
}
|
|
67586
67626
|
if (isDesignMode2) {
|
|
@@ -67738,6 +67778,9 @@ ${i18n.__("转大小写")}
|
|
|
67738
67778
|
}
|
|
67739
67779
|
s.css({ height: "auto" });
|
|
67740
67780
|
s.find(".hiprint-printElement-html-content,.hiprint-printElement-w2html-content,.hiprint-printElement-e2table-content").css({ height: "auto", "min-height": "0", overflow: "visible" });
|
|
67781
|
+
if (this.printElementType && this.printElementType.type === "staticGridTable") {
|
|
67782
|
+
this._sgtSyncHostHeight(s, false);
|
|
67783
|
+
}
|
|
67741
67784
|
if (e && "placeholder" == em) {
|
|
67742
67785
|
var __placeholderHeight = this.options && this.options.displayHeight ? this.options.displayHeight() : this.options && this.options.getHeight ? this.options.getHeight() + "pt" : "";
|
|
67743
67786
|
if (__placeholderHeight) {
|
|
@@ -77248,7 +77291,7 @@ async function ensureHttpClient() {
|
|
|
77248
77291
|
}
|
|
77249
77292
|
const name = "vg-print-vue2";
|
|
77250
77293
|
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";
|
|
77251
|
-
const version = "1.0.
|
|
77294
|
+
const version = "1.0.313";
|
|
77252
77295
|
const author = "gmcSimple";
|
|
77253
77296
|
const license = "MIT";
|
|
77254
77297
|
const main = "dist/vg-print-vue2.cjs.js";
|
|
@@ -77329,7 +77372,6 @@ const dependencies = {
|
|
|
77329
77372
|
canvg: "^3.0.10",
|
|
77330
77373
|
jquery: "^3.7.1",
|
|
77331
77374
|
jsbarcode: "^3.11.5",
|
|
77332
|
-
json5: "^2.2.3",
|
|
77333
77375
|
jspdf: "^2.5.1",
|
|
77334
77376
|
nzh: "^1.0.8",
|
|
77335
77377
|
"vue-ls": "^3.2.2"
|
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.313",
|
|
5
5
|
"author": "gmcSimple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/vg-print-vue2.cjs.js",
|
|
@@ -83,7 +83,6 @@
|
|
|
83
83
|
"canvg": "^3.0.10",
|
|
84
84
|
"jquery": "^3.7.1",
|
|
85
85
|
"jsbarcode": "^3.11.5",
|
|
86
|
-
"json5": "^2.2.3",
|
|
87
86
|
"jspdf": "^2.5.1",
|
|
88
87
|
"nzh": "^1.0.8",
|
|
89
88
|
"vue-ls": "^3.2.2"
|