打印组件修改

This commit is contained in:
yanran200830
2024-10-29 18:08:38 +08:00
parent 6618242f7f
commit b4c3e3796f
3 changed files with 49 additions and 16 deletions

View File

@@ -7466,10 +7466,11 @@
}, t.prototype.mathroundToporleft = function (t) {
var e = p.a.instance.movingDistance;
return Math.round(t / e) * e
}, t.prototype.appendDesignPrintElement = function (t, e, i) {
}, t.prototype.appendDesignPrintElement = function (t, e, i, className) {
e.setCurrenttemplateData(void 0);
var n = e.getDesignTarget(t);
n.addClass("design"), i && e.initSizeByHtml(n), t.append(n)
const isAddClass = !!e.options.field
n.addClass(`design ${isAddClass ? 'dynamicField' : ''}`), i && e.initSizeByHtml(n), t.append(n)
}, t.prototype.createNewPage = function (t, e) {
t = new T(this.templateId, this.index, this.watermarkOptions, this.panelPageRule, this.scale, this.width, this.height, this.paperHeader, this.paperFooter, this.paperNumberLeft, this.paperNumberTop, this.paperNumberDisabled, this.paperNumberContinue, this.paperNumberFormat, t, e);
return t.setFooter(this.firstPaperFooter, this.evenPaperFooter, this.oddPaperFooter, this.lastPaperFooter), t.setOffset(this.leftOffset, this.topOffset), t