yh-hiprint 2.3.1 → 2.3.3
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/HiprintDesigner.vue +5 -5
- package/column-field.js +1 -3
- package/designer.vue +4 -4
- package/font-size.js +2 -3
- package/index.js +1 -2
- package/libs/hiprint.bundle.js +331 -335
- package/libs/jquery.js +1 -2
- package/libs/jsbarcode/JsBarcode.js +251 -0
- package/libs/jsbarcode/barcodes/Barcode.js +17 -0
- package/libs/jsbarcode/barcodes/CODE128/CODE128.js +167 -0
- package/libs/jsbarcode/barcodes/CODE128/CODE128A.js +42 -0
- package/libs/jsbarcode/barcodes/CODE128/CODE128B.js +42 -0
- package/libs/jsbarcode/barcodes/CODE128/CODE128C.js +42 -0
- package/libs/jsbarcode/barcodes/CODE128/CODE128_AUTO.js +41 -0
- package/libs/jsbarcode/barcodes/CODE128/auto.js +73 -0
- package/libs/jsbarcode/barcodes/CODE128/constants.js +54 -0
- package/libs/jsbarcode/barcodes/CODE128/index.js +29 -0
- package/libs/jsbarcode/barcodes/CODE39/index.js +105 -0
- package/libs/jsbarcode/barcodes/EAN_UPC/EAN.js +92 -0
- package/libs/jsbarcode/barcodes/EAN_UPC/EAN13.js +119 -0
- package/libs/jsbarcode/barcodes/EAN_UPC/EAN2.js +58 -0
- package/libs/jsbarcode/barcodes/EAN_UPC/EAN5.js +65 -0
- package/libs/jsbarcode/barcodes/EAN_UPC/EAN8.js +81 -0
- package/libs/jsbarcode/barcodes/EAN_UPC/UPC.js +165 -0
- package/libs/jsbarcode/barcodes/EAN_UPC/UPCE.js +185 -0
- package/libs/jsbarcode/barcodes/EAN_UPC/constants.js +30 -0
- package/libs/jsbarcode/barcodes/EAN_UPC/encoder.js +27 -0
- package/libs/jsbarcode/barcodes/EAN_UPC/index.js +39 -0
- package/libs/jsbarcode/barcodes/GenericBarcode/index.js +55 -0
- package/libs/jsbarcode/barcodes/ITF/ITF.js +69 -0
- package/libs/jsbarcode/barcodes/ITF/ITF14.js +55 -0
- package/libs/jsbarcode/barcodes/ITF/constants.js +9 -0
- package/libs/jsbarcode/barcodes/ITF/index.js +19 -0
- package/libs/jsbarcode/barcodes/MSI/MSI.js +74 -0
- package/libs/jsbarcode/barcodes/MSI/MSI10.js +33 -0
- package/libs/jsbarcode/barcodes/MSI/MSI1010.js +35 -0
- package/libs/jsbarcode/barcodes/MSI/MSI11.js +33 -0
- package/libs/jsbarcode/barcodes/MSI/MSI1110.js +35 -0
- package/libs/jsbarcode/barcodes/MSI/checksums.js +29 -0
- package/libs/jsbarcode/barcodes/MSI/index.js +34 -0
- package/libs/jsbarcode/barcodes/codabar/index.js +92 -0
- package/libs/jsbarcode/barcodes/index.js +33 -0
- package/libs/jsbarcode/barcodes/index.tmp.js +33 -0
- package/libs/jsbarcode/barcodes/pharmacode/index.js +73 -0
- package/libs/jsbarcode/exceptions/ErrorHandler.js +54 -0
- package/libs/jsbarcode/exceptions/exceptions.js +67 -0
- package/libs/jsbarcode/help/fixOptions.js +17 -0
- package/libs/jsbarcode/help/getOptionsFromElement.js +41 -0
- package/libs/jsbarcode/help/getRenderProperties.js +108 -0
- package/libs/jsbarcode/help/linearizeEncodings.js +27 -0
- package/libs/jsbarcode/help/merge.js +11 -0
- package/libs/jsbarcode/help/optionsFromStrings.js +27 -0
- package/libs/jsbarcode/options/defaults.js +28 -0
- package/libs/jsbarcode/renderers/canvas.js +158 -0
- package/libs/jsbarcode/renderers/index.js +21 -0
- package/libs/jsbarcode/renderers/object.js +30 -0
- package/libs/jsbarcode/renderers/shared.js +101 -0
- package/libs/jsbarcode/renderers/svg.js +189 -0
- package/libs/plugins/jquery.hiwprint.js +9 -10
- package/libs/plugins/jquery.minicolors.js +65 -66
- package/package.json +1 -3
- package/z-index.js +2 -3
package/libs/hiprint.bundle.js
CHANGED
|
@@ -35,9 +35,8 @@ function _typeof (obj) {
|
|
|
35
35
|
/**
|
|
36
36
|
* import 相关资源
|
|
37
37
|
*/
|
|
38
|
-
import $ from "./jquery";
|
|
39
38
|
// js颜色选择
|
|
40
|
-
import "./plugins/jquery.minicolors";
|
|
39
|
+
import "./plugins/jquery.minicolors.js";
|
|
41
40
|
// 条形码
|
|
42
41
|
import JsBarcode from "jsbarcode";
|
|
43
42
|
// 二维码
|
|
@@ -57,8 +56,6 @@ import { Canvg } from "canvg";
|
|
|
57
56
|
// 默认自定义拖拽列表
|
|
58
57
|
import defaultTypeProvider from "./etypes/default-etyps-provider";
|
|
59
58
|
|
|
60
|
-
const jQuery = $;
|
|
61
|
-
|
|
62
59
|
window.autoConnect = true;
|
|
63
60
|
|
|
64
61
|
var hiprint = (function (t) {
|
|
@@ -184,10 +181,10 @@ var hiprint = (function (t) {
|
|
|
184
181
|
})),
|
|
185
182
|
(hinnn.form = {
|
|
186
183
|
serialize: function serialize (t) {
|
|
187
|
-
var e =
|
|
184
|
+
var e = hiprintJQuery(t).serializeArray(),
|
|
188
185
|
n = {};
|
|
189
186
|
return (
|
|
190
|
-
|
|
187
|
+
hiprintJQuery.each(e, function () {
|
|
191
188
|
n[this.name] ? ("[object Array]" == Object.prototype.toString.call(n[this.name]) ? n[this.name].push(this.value) : (n[this.name] = [n[this.name], this.value])) : (n[this.name] = this.value);
|
|
192
189
|
}),
|
|
193
190
|
n
|
|
@@ -420,7 +417,7 @@ var hiprint = (function (t) {
|
|
|
420
417
|
|
|
421
418
|
return (
|
|
422
419
|
(t.prototype.init = function (t) {
|
|
423
|
-
t &&
|
|
420
|
+
t && hiprintJQuery.extend(this, t);
|
|
424
421
|
}),
|
|
425
422
|
(t.prototype.on = function (t, c) {
|
|
426
423
|
hinnn.event.on(t, c);
|
|
@@ -438,7 +435,7 @@ var hiprint = (function (t) {
|
|
|
438
435
|
return (
|
|
439
436
|
t._instance ||
|
|
440
437
|
((t._instance = new t()),
|
|
441
|
-
window.HIPRINT_CONFIG &&
|
|
438
|
+
window.HIPRINT_CONFIG && hiprintJQuery.extend(t._instance, HIPRINT_CONFIG),
|
|
442
439
|
t._instance.optionItems &&
|
|
443
440
|
t._instance.optionItems.forEach(function (t) {
|
|
444
441
|
i.a.registerItem(new t());
|
|
@@ -567,7 +564,7 @@ var hiprint = (function (t) {
|
|
|
567
564
|
});
|
|
568
565
|
}),
|
|
569
566
|
(t.prototype.imageToBase64 = function (t) {
|
|
570
|
-
if (-1 ==
|
|
567
|
+
if (-1 == hiprintJQuery(t).attr("src").indexOf("base64"))
|
|
571
568
|
try {
|
|
572
569
|
var e = document.createElement("canvas"),
|
|
573
570
|
n = new Image();
|
|
@@ -584,7 +581,7 @@ var hiprint = (function (t) {
|
|
|
584
581
|
(t.prototype.transformImg = function (t) {
|
|
585
582
|
var e = this;
|
|
586
583
|
t.map(function (t, n) {
|
|
587
|
-
e.imageToBase64(
|
|
584
|
+
e.imageToBase64(hiprintJQuery(n));
|
|
588
585
|
});
|
|
589
586
|
}),
|
|
590
587
|
(t.prototype.getPrintTemplateById = function (e) {
|
|
@@ -774,7 +771,7 @@ var hiprint = (function (t) {
|
|
|
774
771
|
}),
|
|
775
772
|
(BasePrintElement.prototype.SetProxyTargetOption = function (t) {
|
|
776
773
|
this.options.getPrintElementOptionEntity();
|
|
777
|
-
|
|
774
|
+
hiprintJQuery.extend(this.options, t);
|
|
778
775
|
this.copyFromType();
|
|
779
776
|
}),
|
|
780
777
|
(BasePrintElement.prototype.showInPage = function (t, e) {
|
|
@@ -1381,13 +1378,13 @@ var hiprint = (function (t) {
|
|
|
1381
1378
|
: t;
|
|
1382
1379
|
}),
|
|
1383
1380
|
(BasePrintElement.prototype.createTempContainer = function () {
|
|
1384
|
-
this.removeTempContainer(),
|
|
1381
|
+
this.removeTempContainer(), hiprintJQuery("body").append(hiprintJQuery('<div class="hiprint_temp_Container hiprint-printPaper" style="overflow:hidden;height: 0px;box-sizing: border-box;"></div>'));
|
|
1385
1382
|
}),
|
|
1386
1383
|
(BasePrintElement.prototype.removeTempContainer = function () {
|
|
1387
|
-
|
|
1384
|
+
hiprintJQuery(".hiprint_temp_Container").remove();
|
|
1388
1385
|
}),
|
|
1389
1386
|
(BasePrintElement.prototype.getTempContainer = function () {
|
|
1390
|
-
return
|
|
1387
|
+
return hiprintJQuery(".hiprint_temp_Container");
|
|
1391
1388
|
}),
|
|
1392
1389
|
(BasePrintElement.prototype.isHeaderOrFooter = function () {
|
|
1393
1390
|
return this.options.getTopInDesign() < this.panel.paperHeader || this.options.getTopInDesign() >= this.panel.paperFooter;
|
|
@@ -1405,16 +1402,16 @@ var hiprint = (function (t) {
|
|
|
1405
1402
|
this.printElementType && this.printElementType.onRendered && this.printElementType.onRendered(e, this.options, t.getTarget());
|
|
1406
1403
|
}),
|
|
1407
1404
|
(BasePrintElement.prototype.createLineOfPosition = function (t) {
|
|
1408
|
-
var e =
|
|
1409
|
-
topPos =
|
|
1410
|
-
n =
|
|
1411
|
-
leftPos =
|
|
1412
|
-
i =
|
|
1413
|
-
o =
|
|
1405
|
+
var e = hiprintJQuery(".toplineOfPosition.id" + this.id),
|
|
1406
|
+
topPos = hiprintJQuery(".topPosition.id" + this.id),
|
|
1407
|
+
n = hiprintJQuery(".leftlineOfPosition.id" + this.id),
|
|
1408
|
+
leftPos = hiprintJQuery(".leftPosition.id" + this.id),
|
|
1409
|
+
i = hiprintJQuery(".rightlineOfPosition.id" + this.id),
|
|
1410
|
+
o = hiprintJQuery(".bottomlineOfPosition.id" + this.id);
|
|
1414
1411
|
var config = _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance;
|
|
1415
1412
|
if (e.length) e.css("top", this.options.displayTop(true));
|
|
1416
1413
|
else {
|
|
1417
|
-
var e =
|
|
1414
|
+
var e = hiprintJQuery('<div class="toplineOfPosition id' + this.id + '" style="position: absolute; width: 100%;"></div>');
|
|
1418
1415
|
e.css("top", this.options.displayTop(true)), e.css("width", t.displayWidth()), this.designTarget.parents(".hiprint-printPaper-content").append(e);
|
|
1419
1416
|
}
|
|
1420
1417
|
if (config.showPosition) {
|
|
@@ -1429,7 +1426,7 @@ var hiprint = (function (t) {
|
|
|
1429
1426
|
}
|
|
1430
1427
|
this.designTarget.find(".size-box") && this.designTarget.find(".size-box").toggleClass("hide", true);
|
|
1431
1428
|
} else {
|
|
1432
|
-
var topPos =
|
|
1429
|
+
var topPos = hiprintJQuery('<div class="topPosition id' + this.id + '" style="position: absolute;"></div>');
|
|
1433
1430
|
topPos.toggleClass("topPosition-lineMode", config.positionLineMode);
|
|
1434
1431
|
topPos.text(this.options.posTop() + (config.positionUnit ? "pt" : ""));
|
|
1435
1432
|
if (config.positionLineMode) {
|
|
@@ -1444,7 +1441,7 @@ var hiprint = (function (t) {
|
|
|
1444
1441
|
}
|
|
1445
1442
|
if (n.length) n.css("left", this.options.displayLeft(true));
|
|
1446
1443
|
else {
|
|
1447
|
-
var r =
|
|
1444
|
+
var r = hiprintJQuery('<div class="leftlineOfPosition id' + this.id + '" style="position: absolute;height: 100%;"></div>');
|
|
1448
1445
|
r.css("left", this.options.displayLeft(true)), r.css("height", t.displayHeight()), this.designTarget.parents(".hiprint-printPaper-content").append(r);
|
|
1449
1446
|
}
|
|
1450
1447
|
if (config.showPosition) {
|
|
@@ -1458,7 +1455,7 @@ var hiprint = (function (t) {
|
|
|
1458
1455
|
leftPos.css("top", this.options.posTop() + 2 + "pt");
|
|
1459
1456
|
}
|
|
1460
1457
|
} else {
|
|
1461
|
-
var leftPos =
|
|
1458
|
+
var leftPos = hiprintJQuery('<div class="leftPosition id' + this.id + '" style="position: absolute;"></div>');
|
|
1462
1459
|
leftPos.text(this.options.posLeft() + (config.positionUnit ? "pt" : ""));
|
|
1463
1460
|
leftPos.toggleClass("leftPosition-lineMode", config.positionLineMode);
|
|
1464
1461
|
if (config.positionLineMode) {
|
|
@@ -1472,17 +1469,17 @@ var hiprint = (function (t) {
|
|
|
1472
1469
|
}
|
|
1473
1470
|
if (i.length) i.css("left", this.options.getLeft() + this.options.getWidth() + "pt");
|
|
1474
1471
|
else {
|
|
1475
|
-
var a =
|
|
1472
|
+
var a = hiprintJQuery('<div class="rightlineOfPosition id' + this.id + '" style="position: absolute;height: 100%;"></div>');
|
|
1476
1473
|
a.css("left", this.options.getLeft() + this.options.getWidth() + "pt"), a.css("height", t.displayHeight()), this.designTarget.parents(".hiprint-printPaper-content").append(a);
|
|
1477
1474
|
}
|
|
1478
1475
|
if (o.length) o.css("top", this.options.getTop() + this.options.getHeight() + "pt");
|
|
1479
1476
|
else {
|
|
1480
|
-
var p =
|
|
1477
|
+
var p = hiprintJQuery('<div class="bottomlineOfPosition id' + this.id + '" style="position: absolute;width: 100%;"></div>');
|
|
1481
1478
|
p.css("top", this.options.getTop() + this.options.getHeight() + "pt"), p.css("width", t.displayWidth()), this.designTarget.parents(".hiprint-printPaper-content").append(p);
|
|
1482
1479
|
}
|
|
1483
1480
|
}),
|
|
1484
1481
|
(BasePrintElement.prototype.removeLineOfPosition = function () {
|
|
1485
|
-
|
|
1482
|
+
hiprintJQuery(".toplineOfPosition.id" + this.id).remove(), hiprintJQuery(".topPosition.id" + this.id).remove(), this.designTarget.find(".size-box") && this.designTarget.find(".size-box").toggleClass("hide", false), hiprintJQuery(".leftlineOfPosition.id" + this.id).remove(), hiprintJQuery(".leftPosition.id" + this.id).remove(), hiprintJQuery(".rightlineOfPosition.id" + this.id).remove(), hiprintJQuery(".bottomlineOfPosition.id" + this.id).remove();
|
|
1486
1483
|
}),
|
|
1487
1484
|
(BasePrintElement.prototype.getFontList = function () {
|
|
1488
1485
|
var t = this.options.fontList;
|
|
@@ -1520,9 +1517,9 @@ var hiprint = (function (t) {
|
|
|
1520
1517
|
try {
|
|
1521
1518
|
var n = this;
|
|
1522
1519
|
// 使用textarea 存储复制的元素信息
|
|
1523
|
-
var copyArea =
|
|
1524
|
-
if (!copyArea.length) copyArea =
|
|
1525
|
-
|
|
1520
|
+
var copyArea = hiprintJQuery("#copyArea");
|
|
1521
|
+
if (!copyArea.length) copyArea = hiprintJQuery('<textarea id="copyArea" style="position: absolute; left: 0px; top: 0px;opacity: 0"></textarea>');
|
|
1522
|
+
hiprintJQuery("body").append(copyArea);
|
|
1526
1523
|
var json = JSON.stringify({
|
|
1527
1524
|
options: n.options,
|
|
1528
1525
|
printElementType: n.printElementType,
|
|
@@ -1670,8 +1667,8 @@ var hiprint = (function (t) {
|
|
|
1670
1667
|
w = this.designTarget[0].offsetWidth,
|
|
1671
1668
|
x2 = x1 + w,
|
|
1672
1669
|
y2 = y1 + h,
|
|
1673
|
-
ex1 =
|
|
1674
|
-
ey1 =
|
|
1670
|
+
ex1 = hiprintJQuery(t.target[0]).position().left / ptr,
|
|
1671
|
+
ey1 = hiprintJQuery(t.target[0]).position().top / ptr,
|
|
1675
1672
|
eh = t.target[0].offsetHeight,
|
|
1676
1673
|
ew = t.target[0].offsetWidth,
|
|
1677
1674
|
ex2 = ex1 + ew,
|
|
@@ -1697,7 +1694,7 @@ var hiprint = (function (t) {
|
|
|
1697
1694
|
|
|
1698
1695
|
return (
|
|
1699
1696
|
(t.prototype.init = function (t) {
|
|
1700
|
-
(this.target =
|
|
1697
|
+
(this.target = hiprintJQuery('<input type="text" class="hitable-editor-text" value="" />')), t.getTarget().append(this.target), this.target.focus();
|
|
1701
1698
|
}),
|
|
1702
1699
|
(t.prototype.getValue = function () {
|
|
1703
1700
|
return this.target.val();
|
|
@@ -1741,7 +1738,7 @@ var hiprint = (function (t) {
|
|
|
1741
1738
|
}
|
|
1742
1739
|
}),
|
|
1743
1740
|
(n += " </select>");
|
|
1744
|
-
(this.target =
|
|
1741
|
+
(this.target = hiprintJQuery(n)), i.getTarget().append(this.target), this.target.focus();
|
|
1745
1742
|
}),
|
|
1746
1743
|
(t.prototype.getValue = function () {
|
|
1747
1744
|
var val = this.target.val();
|
|
@@ -1786,10 +1783,10 @@ var hiprint = (function (t) {
|
|
|
1786
1783
|
configurable: !0,
|
|
1787
1784
|
}),
|
|
1788
1785
|
(t.prototype.createEditor = function (t) {
|
|
1789
|
-
return
|
|
1786
|
+
return hiprintJQuery.extend({}, o.Instance[t]);
|
|
1790
1787
|
}),
|
|
1791
1788
|
(t.prototype.createSelect = function (t) {
|
|
1792
|
-
return
|
|
1789
|
+
return hiprintJQuery.extend({}, o2.Instance[t]);
|
|
1793
1790
|
}),
|
|
1794
1791
|
t
|
|
1795
1792
|
);
|
|
@@ -1823,13 +1820,13 @@ var hiprint = (function (t) {
|
|
|
1823
1820
|
t.getTarget().html(""),
|
|
1824
1821
|
this.editor.init(e.tableOptions.options.fields, t),
|
|
1825
1822
|
this.editor.setValue(this.field || ""),
|
|
1826
|
-
|
|
1823
|
+
hiprintJQuery(this.editor.target).keydown(function (n) {
|
|
1827
1824
|
13 == n.keyCode && e.endEdit(t);
|
|
1828
1825
|
}),
|
|
1829
|
-
|
|
1826
|
+
hiprintJQuery(this.editor.target).change(function (n) {
|
|
1830
1827
|
e.endEdit(t);
|
|
1831
1828
|
}),
|
|
1832
|
-
|
|
1829
|
+
hiprintJQuery(this.editor.target).blur(function (n) {
|
|
1833
1830
|
e.endEdit(t);
|
|
1834
1831
|
});
|
|
1835
1832
|
} else {
|
|
@@ -1837,10 +1834,10 @@ var hiprint = (function (t) {
|
|
|
1837
1834
|
t.getTarget().html(""),
|
|
1838
1835
|
this.editor.init(t),
|
|
1839
1836
|
(this.title || this.field) && (this.tableOptions.options.isEnableEditField ? this.editor.setValue((this.title || "") + "#" + (this.field || "")) : this.editor.setValue(this.title || "")),
|
|
1840
|
-
|
|
1837
|
+
hiprintJQuery(this.editor.target).keydown(function (n) {
|
|
1841
1838
|
13 == n.keyCode && e.endEdit(t);
|
|
1842
1839
|
}),
|
|
1843
|
-
|
|
1840
|
+
hiprintJQuery(this.editor.target).blur(function (n) {
|
|
1844
1841
|
e.endEdit(t);
|
|
1845
1842
|
}),
|
|
1846
1843
|
this.tableOptions.editingCell && this.tableOptions.editingCell.id != t.id && this.tableOptions.editingCell.innerElement.endEdit(this.tableOptions.editingCell),
|
|
@@ -2029,16 +2026,16 @@ var hiprint = (function (t) {
|
|
|
2029
2026
|
(TableExcelHelper.createTableHead = function (t, e) {
|
|
2030
2027
|
for (
|
|
2031
2028
|
var n = TableExcelHelper.reconsitutionTableColumnTree(t),
|
|
2032
|
-
i =
|
|
2029
|
+
i = hiprintJQuery("<thead></thead>"),
|
|
2033
2030
|
o = TableExcelHelper.getColumnsWidth(n, e),
|
|
2034
2031
|
r = function r (t) {
|
|
2035
|
-
var e =
|
|
2032
|
+
var e = hiprintJQuery("<tr></tr>");
|
|
2036
2033
|
n[t]
|
|
2037
2034
|
.filter(function (t) {
|
|
2038
2035
|
return t.checked;
|
|
2039
2036
|
})
|
|
2040
2037
|
.forEach(function (t) {
|
|
2041
|
-
var n =
|
|
2038
|
+
var n = hiprintJQuery("<td></td>");
|
|
2042
2039
|
t.id && n.attr("id", t.id), t.columnId && n.attr("column-id", t.columnId), (t.align || t.halign) && n.css("text-align", t.halign || t.align), t.vAlign && n.css("vertical-align", t.vAlign), t.colspan > 1 && n.attr("colspan", t.colspan), t.rowspan > 1 && n.attr("rowspan", t.rowspan), n.html(t.title), o[t.id] ? ((t.hasWidth = !0), (t.targetWidth = o[t.id]), n.attr("haswidth", "haswidth"), n.css("width", o[t.id] + "pt")) : (t.hasWidth = !1);
|
|
2043
2040
|
var s = TableExcelHelper.getHeaderStyler(t);
|
|
2044
2041
|
if (s) {
|
|
@@ -2063,7 +2060,7 @@ var hiprint = (function (t) {
|
|
|
2063
2060
|
}),
|
|
2064
2061
|
(TableExcelHelper.createTableFooter = function (t, e, n, i, o, r) {
|
|
2065
2062
|
// n=>options e=>表格所有数据 o=>所有打印数据 r=>表格每页数据
|
|
2066
|
-
var a =
|
|
2063
|
+
var a = hiprintJQuery("<tfoot></tfoot>"),
|
|
2067
2064
|
p = this.getFooterFormatter(n, i);
|
|
2068
2065
|
var tst = this.tableSummaryTitle;
|
|
2069
2066
|
let tSumData = n.tableFooterRepeat == "last" ? e : r;
|
|
@@ -2075,7 +2072,7 @@ var hiprint = (function (t) {
|
|
|
2075
2072
|
return column.tableSummary;
|
|
2076
2073
|
})
|
|
2077
2074
|
) {
|
|
2078
|
-
var tableFooter =
|
|
2075
|
+
var tableFooter = hiprintJQuery("<tr></tr>");
|
|
2079
2076
|
rowColumns
|
|
2080
2077
|
.filter(function (t) {
|
|
2081
2078
|
return t.checked;
|
|
@@ -2163,7 +2160,7 @@ var hiprint = (function (t) {
|
|
|
2163
2160
|
(TableExcelHelper.createTableRow = function (t, e, n, i) {
|
|
2164
2161
|
var h = this;
|
|
2165
2162
|
var o = TableExcelHelper.reconsitutionTableColumnTree(t),
|
|
2166
|
-
r =
|
|
2163
|
+
r = hiprintJQuery("<tbody></tbody>");
|
|
2167
2164
|
var gff = h.getGroupFieldsFormatter(n, i);
|
|
2168
2165
|
var groupFields = gff ? (n.groupFields = gff(i, n, e)) : i.groupFields ? i.groupFields : [];
|
|
2169
2166
|
(e || (e = []), groupFields.length)
|
|
@@ -2180,7 +2177,7 @@ var hiprint = (function (t) {
|
|
|
2180
2177
|
.forEach(function (t) {
|
|
2181
2178
|
var groupFormatter = h.getGroupFormatter(n, i);
|
|
2182
2179
|
if (groupFormatter) {
|
|
2183
|
-
var e =
|
|
2180
|
+
var e = hiprintJQuery("<tr><td colspan=" + o.colspan + "></td></tr>");
|
|
2184
2181
|
e.find("td").append(groupFormatter(t, n)), r.append(e);
|
|
2185
2182
|
}
|
|
2186
2183
|
var groupFooterFormatter = h.getGroupFooterFormatter(n, i);
|
|
@@ -2191,7 +2188,7 @@ var hiprint = (function (t) {
|
|
|
2191
2188
|
}),
|
|
2192
2189
|
groupFooterFormatter)
|
|
2193
2190
|
) {
|
|
2194
|
-
var a =
|
|
2191
|
+
var a = hiprintJQuery("<tr><td colspan=" + o.colspan + "></td></tr>");
|
|
2195
2192
|
a.find("td").append(groupFooterFormatter(t, n)), r.append(a);
|
|
2196
2193
|
}
|
|
2197
2194
|
})
|
|
@@ -2202,7 +2199,7 @@ var hiprint = (function (t) {
|
|
|
2202
2199
|
return r;
|
|
2203
2200
|
}),
|
|
2204
2201
|
(TableExcelHelper.createRowTarget = function (t, e, n, i, rowIndex) {
|
|
2205
|
-
var o =
|
|
2202
|
+
var o = hiprintJQuery("<tr></tr>");
|
|
2206
2203
|
var columns = t.rowColumns.filter(function (t) {
|
|
2207
2204
|
return t.checked;
|
|
2208
2205
|
});
|
|
@@ -2217,9 +2214,9 @@ var hiprint = (function (t) {
|
|
|
2217
2214
|
if (n.rowsColumnsMerge) {
|
|
2218
2215
|
eval("rowsColumnsMerge=" + n.rowsColumnsMerge);
|
|
2219
2216
|
var rowsColumnsArr = rowsColumnsMerge(e, t, i, rowIndex) || [1, 1];
|
|
2220
|
-
var r =
|
|
2217
|
+
var r = hiprintJQuery(`<td style = 'display:${!(rowsColumnsArr[0] && rowsColumnsArr[1]) ? "none" : ""}' rowspan = '${rowsColumnsArr[0]}' colspan = '${rowsColumnsArr[1]}'></td>`);
|
|
2221
2218
|
} else {
|
|
2222
|
-
var r =
|
|
2219
|
+
var r = hiprintJQuery("<td></td>");
|
|
2223
2220
|
}
|
|
2224
2221
|
// 设计时不去计算宽度
|
|
2225
2222
|
if (e && Object.keys(e).length > 0 && ("first" == n.tableHeaderRepeat || "none" == n.tableHeaderRepeat)) {
|
|
@@ -2272,7 +2269,7 @@ var hiprint = (function (t) {
|
|
|
2272
2269
|
if ("image" == t.tableTextType) {
|
|
2273
2270
|
r.html("");
|
|
2274
2271
|
if (p) {
|
|
2275
|
-
var imagebox =
|
|
2272
|
+
var imagebox = hiprintJQuery('<div><img style = "max-width:100%;max-height:100%"/></div>');
|
|
2276
2273
|
imagebox.find("img").attr("src", p);
|
|
2277
2274
|
console.log(imagebox.find("img").css("width"));
|
|
2278
2275
|
r.html(imagebox);
|
|
@@ -2281,7 +2278,7 @@ var hiprint = (function (t) {
|
|
|
2281
2278
|
if ("qrcode" == t.tableTextType) {
|
|
2282
2279
|
r.html("");
|
|
2283
2280
|
try {
|
|
2284
|
-
var qrcodebox =
|
|
2281
|
+
var qrcodebox = hiprintJQuery("<div></div>");
|
|
2285
2282
|
|
|
2286
2283
|
if (p) {
|
|
2287
2284
|
var l = parseInt(t.width || t.targetWidth || 20),
|
|
@@ -2330,13 +2327,13 @@ var hiprint = (function (t) {
|
|
|
2330
2327
|
}),
|
|
2331
2328
|
(TableExcelHelper.createEmptyRowTarget = function (t, tableElement) {
|
|
2332
2329
|
var e = TableExcelHelper.reconsitutionTableColumnTree(t),
|
|
2333
|
-
n =
|
|
2330
|
+
n = hiprintJQuery("<tr></tr>");
|
|
2334
2331
|
e.rowColumns
|
|
2335
2332
|
.filter(function (t) {
|
|
2336
2333
|
return t.checked;
|
|
2337
2334
|
})
|
|
2338
2335
|
.forEach(function (t, e) {
|
|
2339
|
-
var i =
|
|
2336
|
+
var i = hiprintJQuery("<td></td>");
|
|
2340
2337
|
t.field && i.attr("field", t.field), t.align && i.css("text-align", t.align), t.vAlign && i.css("vertical-align", t.vAlign), n.append(i);
|
|
2341
2338
|
});
|
|
2342
2339
|
if (tableElement && tableElement.options.tableBodyRowHeight) {
|
|
@@ -2368,9 +2365,9 @@ var hiprint = (function (t) {
|
|
|
2368
2365
|
var i = TableExcelHelper.reconsitutionTableColumnTree(e),
|
|
2369
2366
|
o = TableExcelHelper.getColumnsWidth(i, n);
|
|
2370
2367
|
t.find("thead tr td[haswidth]").map(function (t, e) {
|
|
2371
|
-
var n =
|
|
2368
|
+
var n = hiprintJQuery(e).attr("id"),
|
|
2372
2369
|
i = o[n];
|
|
2373
|
-
|
|
2370
|
+
hiprintJQuery(e).css("width", i + "pt");
|
|
2374
2371
|
});
|
|
2375
2372
|
}),
|
|
2376
2373
|
(TableExcelHelper.allAutoWidth = function (t) {
|
|
@@ -2620,7 +2617,7 @@ var hiprint = (function (t) {
|
|
|
2620
2617
|
return null;
|
|
2621
2618
|
}),
|
|
2622
2619
|
(t.prototype.createTarget = function () {
|
|
2623
|
-
return (this.target =
|
|
2620
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 字体行高\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n <option value="22.5" >22.5pt</option>\n <option value="23.25" >23.25pt</option>\n <option value="24" >24pt</option>\n <option value="24.75" >24.75pt</option>\n <option value="25.5" >25.5pt</option>\n <option value="26.25" >26.25pt</option>\n <option value="27" >27pt</option>\n <option value="27.75" >27.75pt</option>\n <option value="28.5" >28.5pt</option>\n <option value="29.25" >29.25pt</option>\n <option value="30" >30pt</option>\n <option value="30.75" >30.75pt</option>\n <option value="31.5" >31.5pt</option>\n <option value="32.25" >32.25pt</option>\n <option value="33" >33pt</option>\n <option value="33.75" >33.75pt</option>\n <option value="34.5" >34.5pt</option>\n <option value="35.25" >35.25pt</option>\n <option value="36" >36pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
2624
2621
|
}),
|
|
2625
2622
|
(t.prototype.getValue = function () {
|
|
2626
2623
|
var t = this.target.find("select").val();
|
|
@@ -2650,9 +2647,9 @@ var hiprint = (function (t) {
|
|
|
2650
2647
|
n += ' <option value="' + (t.value || "") + '" >' + (t.title || "") + "</option>";
|
|
2651
2648
|
}),
|
|
2652
2649
|
(n += " </select>\n </div>\n </div>"),
|
|
2653
|
-
(this.target =
|
|
2650
|
+
(this.target = hiprintJQuery(n));
|
|
2654
2651
|
} else {
|
|
2655
|
-
this.target =
|
|
2652
|
+
this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 字体\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="SimSun" >宋体</option>\n <option value="Microsoft YaHei" >微软雅黑</option>\n </select>\n </div>\n </div>');
|
|
2656
2653
|
}
|
|
2657
2654
|
return this.target;
|
|
2658
2655
|
}),
|
|
@@ -2692,7 +2689,7 @@ var hiprint = (function (t) {
|
|
|
2692
2689
|
return null;
|
|
2693
2690
|
}),
|
|
2694
2691
|
(t.prototype.createTarget = function () {
|
|
2695
|
-
return (this.target =
|
|
2692
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 字体大小\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13.5pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
2696
2693
|
}),
|
|
2697
2694
|
(t.prototype.getValue = function () {
|
|
2698
2695
|
var t = this.target.find("select").val();
|
|
@@ -2723,7 +2720,7 @@ var hiprint = (function (t) {
|
|
|
2723
2720
|
return null;
|
|
2724
2721
|
}),
|
|
2725
2722
|
(t.prototype.createTarget = function () {
|
|
2726
|
-
return (this.target =
|
|
2723
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 字体粗细\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="lighter" >更细</option>\n <option value="bold" >粗体</option>\n <option value="bolder" >粗体+</option>\n <option value="100" >100</option>\n <option value="200" >200</option>\n <option value="300" >300</option>\n <option value="400" >400</option>\n <option value="500" >500</option>\n <option value="600" >600</option>\n <option value="700" >700</option>\n <option value="800" >800</option>\n <option value="900" >900</option>\n </select>\n </div>\n </div>')), this.target;
|
|
2727
2724
|
}),
|
|
2728
2725
|
(t.prototype.getValue = function () {
|
|
2729
2726
|
var t = this.target.find("select").val();
|
|
@@ -2754,7 +2751,7 @@ var hiprint = (function (t) {
|
|
|
2754
2751
|
return null;
|
|
2755
2752
|
}),
|
|
2756
2753
|
(t.prototype.createTarget = function () {
|
|
2757
|
-
return (this.target =
|
|
2754
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 字间距\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="0.75" >0.75pt</option>\n <option value="1.5" >1.5pt</option>\n <option value="2.25" >2.25pt</option>\n <option value="3" >3pt</option>\n <option value="3.75" >3.75pt</option>\n <option value="4.5" >4.5pt</option>\n <option value="5.25" >5.25pt</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
2758
2755
|
}),
|
|
2759
2756
|
(t.prototype.getValue = function () {
|
|
2760
2757
|
var t = this.target.find("select").val();
|
|
@@ -2785,7 +2782,7 @@ var hiprint = (function (t) {
|
|
|
2785
2782
|
return null;
|
|
2786
2783
|
}),
|
|
2787
2784
|
(t.prototype.createTarget = function () {
|
|
2788
|
-
return (this.target =
|
|
2785
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 左右对齐\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="" >居左</option>\n <option value="center" >居中</option>\n <option value="right" >居右</option>\n <option value="justify" >两端对齐</option>\n </select>\n </div>\n </div>')), this.target;
|
|
2789
2786
|
}),
|
|
2790
2787
|
(t.prototype.getValue = function () {
|
|
2791
2788
|
var t = this.target.find("select").val();
|
|
@@ -2807,7 +2804,7 @@ var hiprint = (function (t) {
|
|
|
2807
2804
|
|
|
2808
2805
|
return (
|
|
2809
2806
|
(t.prototype.createTarget = function () {
|
|
2810
|
-
return (this.target =
|
|
2807
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 标题显示隐藏\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="false" >显示</option>\n <option value="true" >隐藏</option>\n </select>\n </div>\n </div>')), this.target;
|
|
2811
2808
|
}),
|
|
2812
2809
|
(t.prototype.getValue = function () {
|
|
2813
2810
|
if ("true" == this.target.find("select").val()) return !0;
|
|
@@ -2836,7 +2833,7 @@ var hiprint = (function (t) {
|
|
|
2836
2833
|
return null;
|
|
2837
2834
|
}),
|
|
2838
2835
|
(t.prototype.createTarget = function () {
|
|
2839
|
-
return (this.target =
|
|
2836
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表格边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="border" >有边框</option>\n <option value="noBorder" >无边框</option>\n </select>\n </div>\n </div>')), this.target;
|
|
2840
2837
|
}),
|
|
2841
2838
|
(t.prototype.getValue = function () {
|
|
2842
2839
|
var t = this.target.find("select").val();
|
|
@@ -2866,7 +2863,7 @@ var hiprint = (function (t) {
|
|
|
2866
2863
|
return null;
|
|
2867
2864
|
}),
|
|
2868
2865
|
(t.prototype.createTarget = function () {
|
|
2869
|
-
return (this.target =
|
|
2866
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表头边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option> \n <option value="border" >有边框</option>\n <option value="noBorder" >无边框</option>\n <option value="leftBorder" >左边框</option>\n <option value="rightBorder" >右边框</option>\n <option value="leftRightBorder" >左右边框</option>\n <option value="topBorder" >上边框</option>\n <option value="bottomBorder" >下边框</option>\n <option value="topBottomBorder" >上下边框</option>\n </select>\n </div>\n </div>')), this.target;
|
|
2870
2867
|
}),
|
|
2871
2868
|
(t.prototype.getValue = function () {
|
|
2872
2869
|
var t = this.target.find("select").val();
|
|
@@ -2896,7 +2893,7 @@ var hiprint = (function (t) {
|
|
|
2896
2893
|
return null;
|
|
2897
2894
|
}),
|
|
2898
2895
|
(t.prototype.createTarget = function () {
|
|
2899
|
-
return (this.target =
|
|
2896
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表头单元格边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option> \n <option value="border" >有边框</option>\n <option value="noBorder" >无边框</option>\n \n </select>\n </div>\n </div>')), this.target;
|
|
2900
2897
|
}),
|
|
2901
2898
|
(t.prototype.getValue = function () {
|
|
2902
2899
|
var t = this.target.find("select").val();
|
|
@@ -2926,7 +2923,7 @@ var hiprint = (function (t) {
|
|
|
2926
2923
|
return null;
|
|
2927
2924
|
}),
|
|
2928
2925
|
(t.prototype.createTarget = function () {
|
|
2929
|
-
return (this.target =
|
|
2926
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表尾边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option> \n <option value="border" >有边框</option>\n <option value="noBorder" >无边框</option>\n <option value="leftBorder" >左边框</option>\n <option value="rightBorder" >右边框</option>\n <option value="leftRightBorder" >左右边框</option>\n <option value="topBorder" >上边框</option>\n <option value="bottomBorder" >下边框</option>\n <option value="topBottomBorder" >上下边框</option>\n </select>\n </div>\n </div>')), this.target;
|
|
2930
2927
|
}),
|
|
2931
2928
|
(t.prototype.getValue = function () {
|
|
2932
2929
|
var t = this.target.find("select").val();
|
|
@@ -2956,7 +2953,7 @@ var hiprint = (function (t) {
|
|
|
2956
2953
|
return null;
|
|
2957
2954
|
}),
|
|
2958
2955
|
(t.prototype.createTarget = function () {
|
|
2959
|
-
return (this.target =
|
|
2956
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表尾单元格边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option> \n <option value="border" >有边框</option>\n <option value="noBorder" >无边框</option>\n \n </select>\n </div>\n </div>')), this.target;
|
|
2960
2957
|
}),
|
|
2961
2958
|
(t.prototype.getValue = function () {
|
|
2962
2959
|
var t = this.target.find("select").val();
|
|
@@ -2988,7 +2985,7 @@ var hiprint = (function (t) {
|
|
|
2988
2985
|
return null;
|
|
2989
2986
|
}),
|
|
2990
2987
|
(t.prototype.createTarget = function () {
|
|
2991
|
-
return (this.target =
|
|
2988
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表头行高\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n \n <option value="" >默认</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13.5pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n <option value="22.5" >22.5pt</option>\n <option value="23.25" >23.25pt</option>\n <option value="24" >24pt</option>\n <option value="24.75" >24.75pt</option>\n <option value="25.5" >25.5pt</option>\n <option value="26.25" >26.25pt</option>\n <option value="27" >27pt</option>\n <option value="27.75" >27.75pt</option>\n <option value="28.5" >28.5pt</option>\n <option value="29.25" >29.25pt</option>\n <option value="30" >30pt</option>\n <option value="30.75" >30.75pt</option>\n <option value="31.5" >31.5pt</option>\n <option value="32.25" >32.25pt</option>\n <option value="33" >33pt</option>\n <option value="33.75" >33.75pt</option>\n <option value="34.5" >34.5pt</option>\n <option value="35.25" >35.25pt</option>\n <option value="36" >36pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
2992
2989
|
}),
|
|
2993
2990
|
(t.prototype.getValue = function () {
|
|
2994
2991
|
var t = this.target.find("select").val();
|
|
@@ -3021,7 +3018,7 @@ var hiprint = (function (t) {
|
|
|
3021
3018
|
return null;
|
|
3022
3019
|
}),
|
|
3023
3020
|
(t.prototype.createTarget = function () {
|
|
3024
|
-
return (this.target =
|
|
3021
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表头字体大小\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13.5pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3025
3022
|
}),
|
|
3026
3023
|
(t.prototype.getValue = function () {
|
|
3027
3024
|
var t = this.target.find("select").val();
|
|
@@ -3054,7 +3051,7 @@ var hiprint = (function (t) {
|
|
|
3054
3051
|
return null;
|
|
3055
3052
|
}),
|
|
3056
3053
|
(t.prototype.createTarget = function () {
|
|
3057
|
-
return (this.target =
|
|
3054
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表头字体粗细\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit"> \n <option value="" >默认</option>\n <option value="lighter" >更细</option>\n <option value="bold" >粗体</option>\n <option value="bolder" >粗体+</option>\n <option value="100" >100</option>\n <option value="200" >200</option>\n <option value="300" >300</option>\n <option value="400" >400</option>\n <option value="500" >500</option>\n <option value="600" >600</option>\n <option value="700" >700</option>\n <option value="800" >800</option>\n <option value="900" >900</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3058
3055
|
}),
|
|
3059
3056
|
(t.prototype.getValue = function () {
|
|
3060
3057
|
var t = this.target.find("select").val();
|
|
@@ -3085,7 +3082,7 @@ var hiprint = (function (t) {
|
|
|
3085
3082
|
return null;
|
|
3086
3083
|
}),
|
|
3087
3084
|
(t.prototype.createTarget = function () {
|
|
3088
|
-
return (this.target =
|
|
3085
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表体单元格边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="border" >有边框</option>\n <option value="noBorder" >无边框</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3089
3086
|
}),
|
|
3090
3087
|
(t.prototype.getValue = function () {
|
|
3091
3088
|
var t = this.target.find("select").val();
|
|
@@ -3117,7 +3114,7 @@ var hiprint = (function (t) {
|
|
|
3117
3114
|
return null;
|
|
3118
3115
|
}),
|
|
3119
3116
|
(t.prototype.createTarget = function () {
|
|
3120
|
-
return (this.target =
|
|
3117
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表体行高\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13.5pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n <option value="22.5" >22.5pt</option>\n <option value="23.25" >23.25pt</option>\n <option value="24" >24pt</option>\n <option value="24.75" >24.75pt</option>\n <option value="25.5" >25.5pt</option>\n <option value="26.25" >26.25pt</option>\n <option value="27" >27pt</option>\n <option value="27.75" >27.75pt</option>\n <option value="28.5" >28.5pt</option>\n <option value="29.25" >29.25pt</option>\n <option value="30" >30pt</option>\n <option value="30.75" >30.75pt</option>\n <option value="31.5" >31.5pt</option>\n <option value="32.25" >32.25pt</option>\n <option value="33" >33pt</option>\n <option value="33.75" >33.75pt</option>\n <option value="34.5" >34.5pt</option>\n <option value="35.25" >35.25pt</option>\n <option value="36" >36pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3121
3118
|
}),
|
|
3122
3119
|
(t.prototype.getValue = function () {
|
|
3123
3120
|
var t = this.target.find("select").val();
|
|
@@ -3150,7 +3147,7 @@ var hiprint = (function (t) {
|
|
|
3150
3147
|
return null;
|
|
3151
3148
|
}),
|
|
3152
3149
|
(t.prototype.createTarget = function () {
|
|
3153
|
-
return (this.target =
|
|
3150
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表头背景\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" class="auto-submit" />\n </div>\n </div>')), this.target;
|
|
3154
3151
|
}),
|
|
3155
3152
|
(t.prototype.getValue = function () {
|
|
3156
3153
|
var t = this.target.find("input").val();
|
|
@@ -3177,7 +3174,7 @@ var hiprint = (function (t) {
|
|
|
3177
3174
|
return (
|
|
3178
3175
|
(t.prototype.createTarget = function (t) {
|
|
3179
3176
|
var name = ["hline", "vline", "rect", "oval"].includes(t.printElementType.type) ? "线宽" : "边框大小";
|
|
3180
|
-
return (this.target =
|
|
3177
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n ' + name + '\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="0.75" >0.75pt</option>\n <option value="1.5" >1.5pt</option>\n <option value="2.25" >2.25pt</option>\n <option value="3" >3pt</option>\n <option value="3.75" >3.75pt</option>\n <option value="4.5" >4.5pt</option>\n <option value="5.25" >5.25pt</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3181
3178
|
}),
|
|
3182
3179
|
(t.prototype.css = function (t, e) {
|
|
3183
3180
|
if (t && t.length) {
|
|
@@ -3208,7 +3205,7 @@ var hiprint = (function (t) {
|
|
|
3208
3205
|
|
|
3209
3206
|
return (
|
|
3210
3207
|
(t.prototype.createTarget = function () {
|
|
3211
|
-
return (this.target =
|
|
3208
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 条形码格式\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="CODE128A" >CODE128A</option>\n <option value="CODE128B" >CODE128B</option>\n <option value="CODE128C" >CODE128C</option>\n <option value="CODE39" >CODE39</option>\n <option value="EAN13" >EAN-13</option>\n <option value="EAN8" >EAN-8</option>\n <option value="EAN5" >EAN-5</option>\n <option value="EAN2" >EAN-2</option>\n <option value="UPC" >UPC(A)</option>\n <option value="ITF" >ITF</option>\n <option value="ITF14" >ITF-14</option>\n <option value="MSI" >MSI</option>\n <option value="MSI10" >MSI10</option>\n <option value="MSI11" >MSI11</option>\n <option value="MSI1010" >MSI1010</option>\n <option value="MSI1110" >MSI1110</option>\n <option value="Pharmacode" >Pharmacode</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3212
3209
|
}),
|
|
3213
3210
|
(t.prototype.getValue = function () {
|
|
3214
3211
|
var t = this.target.find("select").val();
|
|
@@ -3230,7 +3227,7 @@ var hiprint = (function (t) {
|
|
|
3230
3227
|
|
|
3231
3228
|
return (
|
|
3232
3229
|
(t.prototype.createTarget = function () {
|
|
3233
|
-
return (this.target =
|
|
3230
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 二维码容错率\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="1" >7% L</option>\n <option value="0" >15% M</option>\n <option value="3" >25% Q</option>\n <option value="2" >30% H</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3234
3231
|
}),
|
|
3235
3232
|
(t.prototype.getValue = function () {
|
|
3236
3233
|
var t = this.target.find("select").val();
|
|
@@ -3260,7 +3257,7 @@ var hiprint = (function (t) {
|
|
|
3260
3257
|
return null;
|
|
3261
3258
|
}),
|
|
3262
3259
|
(t.prototype.createTarget = function () {
|
|
3263
|
-
return (this.target =
|
|
3260
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 字体颜色\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" class="auto-submit"/>\n </div>\n </div>')), this.target;
|
|
3264
3261
|
}),
|
|
3265
3262
|
(t.prototype.getValue = function () {
|
|
3266
3263
|
var t = this.target.find("input").val();
|
|
@@ -3286,7 +3283,7 @@ var hiprint = (function (t) {
|
|
|
3286
3283
|
|
|
3287
3284
|
return (
|
|
3288
3285
|
(t.prototype.createTarget = function () {
|
|
3289
|
-
return (this.target =
|
|
3286
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 文本修饰\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="underline" >下划线。</option>\n <option value="overline" >上划线</option>\n <option value="line-through" >穿梭线</option>\n \n </select>\n </div>\n </div>')), this.target;
|
|
3290
3287
|
}),
|
|
3291
3288
|
(t.prototype.css = function (t, e) {
|
|
3292
3289
|
if (t && t.length) {
|
|
@@ -3326,10 +3323,10 @@ var hiprint = (function (t) {
|
|
|
3326
3323
|
n += ' <option value="' + (t.field || "") + '" >' + (t.text || "") + "</option>";
|
|
3327
3324
|
}),
|
|
3328
3325
|
(n += " </select>\n </div>\n </div>"),
|
|
3329
|
-
(this.target =
|
|
3326
|
+
(this.target = hiprintJQuery(n));
|
|
3330
3327
|
} else {
|
|
3331
3328
|
this.isSelect = !1;
|
|
3332
|
-
this.target =
|
|
3329
|
+
this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 字段名\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="请输入字段名" class="auto-submit">\n </div>\n </div>');
|
|
3333
3330
|
}
|
|
3334
3331
|
|
|
3335
3332
|
return this.target;
|
|
@@ -3353,7 +3350,7 @@ var hiprint = (function (t) {
|
|
|
3353
3350
|
|
|
3354
3351
|
return (
|
|
3355
3352
|
(t.prototype.createTarget = function () {
|
|
3356
|
-
return (this.target =
|
|
3353
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 标题\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:50px;" placeholder="请输入标题" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
3357
3354
|
}),
|
|
3358
3355
|
(t.prototype.getValue = function () {
|
|
3359
3356
|
var t = this.target.find("textarea").val();
|
|
@@ -3375,7 +3372,7 @@ var hiprint = (function (t) {
|
|
|
3375
3372
|
|
|
3376
3373
|
return (
|
|
3377
3374
|
(t.prototype.createTarget = function () {
|
|
3378
|
-
return (this.target =
|
|
3375
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 测试数据\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="仅字段名称存在时有效" class="auto-submit" >\n </div>\n </div>')), this.target;
|
|
3379
3376
|
}),
|
|
3380
3377
|
(t.prototype.getValue = function () {
|
|
3381
3378
|
var t = this.target.find("input").val();
|
|
@@ -3398,14 +3395,14 @@ var hiprint = (function (t) {
|
|
|
3398
3395
|
return (
|
|
3399
3396
|
(t.prototype.createTarget = function (t, o) {
|
|
3400
3397
|
var n = this;
|
|
3401
|
-
n.target =
|
|
3398
|
+
n.target = hiprintJQuery('<div class="hiprint-option-item hiprint-option-item-row">' + '<div class="hiprint-option-item-label">\n 位置坐标\n </div>' + '<div class="hiprint-option-item-field" style="display: flex;align-items: baseline;">\n ' + '<input type="number" style="width:48%" placeholder="X位置(左)" class="auto-submit" />\n ' + '<input type="number" style="width:48%" placeholder="Y位置(上)" class="auto-submit" />\n ' + "</div>\n" + "</div>");
|
|
3402
3399
|
n.syncLock = o.coordinateSync || false;
|
|
3403
3400
|
n.createSyncLock(n.syncLock);
|
|
3404
3401
|
return n.target;
|
|
3405
3402
|
}),
|
|
3406
3403
|
(t.prototype.createSyncLock = function (t) {
|
|
3407
3404
|
var n = this;
|
|
3408
|
-
n.lockTarget = n.syncLock ?
|
|
3405
|
+
n.lockTarget = n.syncLock ? hiprintJQuery('<label style="margin: 0 4px;text-align:center;width: 8%" title="同步">🔗</label>') : hiprintJQuery('<label style="margin: 0 4px;text-align:center;width: 8%" title="不同步">🔓</label>');
|
|
3409
3406
|
n.lockTarget.click(function () {
|
|
3410
3407
|
if (n.syncLock) {
|
|
3411
3408
|
n.lockTarget.text("🔓").attr("title", "不同步");
|
|
@@ -3418,12 +3415,12 @@ var hiprint = (function (t) {
|
|
|
3418
3415
|
// 同步编辑...
|
|
3419
3416
|
n.target.find("input:first").change(function () {
|
|
3420
3417
|
if (n.syncLock) {
|
|
3421
|
-
n.target.find("input:last").val(
|
|
3418
|
+
n.target.find("input:last").val(hiprintJQuery(this).val());
|
|
3422
3419
|
}
|
|
3423
3420
|
});
|
|
3424
3421
|
n.target.find("input:last").change(function () {
|
|
3425
3422
|
if (n.syncLock) {
|
|
3426
|
-
n.target.find("input:first").val(
|
|
3423
|
+
n.target.find("input:first").val(hiprintJQuery(this).val());
|
|
3427
3424
|
}
|
|
3428
3425
|
});
|
|
3429
3426
|
return n.lockTarget;
|
|
@@ -3467,14 +3464,14 @@ var hiprint = (function (t) {
|
|
|
3467
3464
|
return (
|
|
3468
3465
|
(t.prototype.createTarget = function (t, o) {
|
|
3469
3466
|
var n = this;
|
|
3470
|
-
n.target =
|
|
3467
|
+
n.target = hiprintJQuery('<div class="hiprint-option-item hiprint-option-item-row">' + '<div class="hiprint-option-item-label">\n 宽高大小\n </div>' + '<div class="hiprint-option-item-field" style="display: flex;align-items: baseline;">\n ' + '<input type="number" style="width:48%" placeholder="宽" class="auto-submit" min="0" max="2000" setp="1" />\n ' + '<input type="number" style="width:48%" placeholder="高" class="auto-submit" min="0" max="2000" setp="1" />\n ' + "</div>\n" + "</div>");
|
|
3471
3468
|
n.syncLock = o.widthHeightSync || false;
|
|
3472
3469
|
n.createSyncLock(n.syncLock);
|
|
3473
3470
|
return n.target;
|
|
3474
3471
|
}),
|
|
3475
3472
|
(t.prototype.createSyncLock = function (t) {
|
|
3476
3473
|
var n = this;
|
|
3477
|
-
n.lockTarget = n.syncLock ?
|
|
3474
|
+
n.lockTarget = n.syncLock ? hiprintJQuery('<label style="margin: 0 4px;text-align:center;width: 8%" title="同步">🔗</label>') : hiprintJQuery('<label style="margin: 0 4px;text-align:center;width: 8%" title="不同步">🔓</label>');
|
|
3478
3475
|
n.lockTarget.click(function () {
|
|
3479
3476
|
if (n.syncLock) {
|
|
3480
3477
|
n.lockTarget.text("🔓").attr("title", "不同步");
|
|
@@ -3487,12 +3484,12 @@ var hiprint = (function (t) {
|
|
|
3487
3484
|
// 同步编辑...
|
|
3488
3485
|
n.target.find("input:first").change(function () {
|
|
3489
3486
|
if (n.syncLock) {
|
|
3490
|
-
n.target.find("input:last").val(
|
|
3487
|
+
n.target.find("input:last").val(hiprintJQuery(this).val());
|
|
3491
3488
|
}
|
|
3492
3489
|
});
|
|
3493
3490
|
n.target.find("input:last").change(function () {
|
|
3494
3491
|
if (n.syncLock) {
|
|
3495
|
-
n.target.find("input:first").val(
|
|
3492
|
+
n.target.find("input:first").val(hiprintJQuery(this).val());
|
|
3496
3493
|
}
|
|
3497
3494
|
});
|
|
3498
3495
|
return n.lockTarget;
|
|
@@ -3538,7 +3535,7 @@ var hiprint = (function (t) {
|
|
|
3538
3535
|
this.el = t;
|
|
3539
3536
|
var e = void 0,
|
|
3540
3537
|
i = this;
|
|
3541
|
-
this.target =
|
|
3538
|
+
this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 图片地址\n </div>\n <div class="hiprint-option-item-field" style="display: flex;align-items: baseline;">\n <input type="text" placeholder="请输入图片地址" class="auto-submit" style="width:70%">\n <button class="hiprint-option-item-settingBtn" style="padding:0 10px;margin:0 0 0 5px" type="button">选择</button> </div>\n </div>');
|
|
3542
3539
|
if ((t && (e = t.getOnImageChooseClick()), e)) {
|
|
3543
3540
|
this.target.find("button").click(function () {
|
|
3544
3541
|
e && e(i);
|
|
@@ -3598,7 +3595,7 @@ var hiprint = (function (t) {
|
|
|
3598
3595
|
this.el.designTarget.css("width", w + "pt");
|
|
3599
3596
|
this.el.designTarget.css("height", h + "pt");
|
|
3600
3597
|
}
|
|
3601
|
-
this.el.designTarget.children(".resize-panel").trigger(
|
|
3598
|
+
this.el.designTarget.children(".resize-panel").trigger(hiprintJQuery.Event("click"));
|
|
3602
3599
|
} else {
|
|
3603
3600
|
cb && cb(this.el, width, height);
|
|
3604
3601
|
}
|
|
@@ -3623,7 +3620,7 @@ var hiprint = (function (t) {
|
|
|
3623
3620
|
return null;
|
|
3624
3621
|
}),
|
|
3625
3622
|
(t.prototype.createTarget = function () {
|
|
3626
|
-
(this.target =
|
|
3623
|
+
(this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 图片缩放\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="contain" >等比</option>\n <option value="cover" >剪裁</option>\n <option value="fill" >填充</option>\n <option value="none" >原始尺寸</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3627
3624
|
return this.target;
|
|
3628
3625
|
}),
|
|
3629
3626
|
(t.prototype.getValue = function () {
|
|
@@ -3654,7 +3651,7 @@ var hiprint = (function (t) {
|
|
|
3654
3651
|
}),
|
|
3655
3652
|
(t.prototype.createTarget = function (t) {
|
|
3656
3653
|
var name = ["hline", "vline", "rect", "oval"].includes(t.printElementType.type) ? "颜色" : "边框颜色";
|
|
3657
|
-
return (this.target =
|
|
3654
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n ' + name + '\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" class="auto-submit" />\n </div>\n </div>')), this.target;
|
|
3658
3655
|
}),
|
|
3659
3656
|
(t.prototype.getValue = function () {
|
|
3660
3657
|
var t = this.target.find("input").val();
|
|
@@ -3679,21 +3676,21 @@ var hiprint = (function (t) {
|
|
|
3679
3676
|
}
|
|
3680
3677
|
return (
|
|
3681
3678
|
(t.prototype.createTarget = function () {
|
|
3682
|
-
this.target =
|
|
3683
|
-
this.content =
|
|
3684
|
-
this.fillStyle =
|
|
3685
|
-
this.fontSize =
|
|
3686
|
-
this.rotate =
|
|
3687
|
-
this.width =
|
|
3688
|
-
this.height =
|
|
3689
|
-
this.timestamp =
|
|
3679
|
+
this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row"><div class="hiprint-option-item-label">水印功能</div></div>');
|
|
3680
|
+
this.content = hiprintJQuery('<div class="hiprint-option-item-field" style="display: flex;align-items: baseline;"><div style="width:25%">水印内容:</div><input style="width:75%" type="text" placeholder="水印内容" class="auto-submit"></div>');
|
|
3681
|
+
this.fillStyle = hiprintJQuery('<div class="hiprint-option-item-field" style="display: flex;align-items: center;margin-top: 4px"><div style="width:25%">字体颜色:</div><input style="width:110%" data-format="rgb" data-opacity="0.3" type="text" placeholder="字体颜色" class="auto-submit"></div>');
|
|
3682
|
+
this.fontSize = hiprintJQuery('<div class="hiprint-option-item-field" style="display: flex;align-items: center;"><div style="width:25%">字体大小:</div><input style="width:75%" type="range" min="10" max="80" placeholder="字体大小" class="auto-submit"></div>');
|
|
3683
|
+
this.rotate = hiprintJQuery('<div class="hiprint-option-item-field" style="display: flex;align-items: center;"><div style="width:25%">旋转角度:</div><input style="width:75%" type="range" min="0" max="180" placeholder="旋转角度" class="auto-submit"></div>');
|
|
3684
|
+
this.width = hiprintJQuery('<div class="hiprint-option-item-field" style="display: flex;align-items: center;"><div style="width:25%">水平密度:</div><input style="width:75%" type="range" min="100" max="800" placeholder="水平密度" class="auto-submit"></div>');
|
|
3685
|
+
this.height = hiprintJQuery('<div class="hiprint-option-item-field" style="display: flex;align-items: center;"><div style="width:25%">垂直密度:</div><input style="width:75%" type="range" min="100" max="800" placeholder="垂直密度" class="auto-submit"></div>');
|
|
3686
|
+
this.timestamp = hiprintJQuery('<div class="hiprint-option-item-field" style="display: flex;align-items: center;"><div style="width:25%">水印时间:</div><input style="width:18px;height:18px;margin:0 0 4px 0;" type="checkbox" placeholder="水印时间" class="auto-submit"></div>');
|
|
3690
3687
|
let formatlist = ["YYYY-MM-DD HH:mm:ss", "YYYY-MM-DD HH:mm", "YYYY-MM-DD HH", "YYYY-MM-DD", "YYYY-MMMM", "YYYY-MM", "YYYY"];
|
|
3691
3688
|
let timeFormatList = '\n <option value="" >默认(YYYY-MM-DD HH:mm)</option>';
|
|
3692
3689
|
formatlist.forEach(function (e) {
|
|
3693
3690
|
timeFormatList += '\n <option value="' + e + '">' + e + "</option>";
|
|
3694
3691
|
});
|
|
3695
|
-
this.format =
|
|
3696
|
-
this.format.find(".auto-submit").append(
|
|
3692
|
+
this.format = hiprintJQuery('<div class="hiprint-option-item-field" style="display: flex;align-items: baseline;"><div style="width:25%">时间格式:</div><select style="width:75%" class="auto-submit"></select></div>');
|
|
3693
|
+
this.format.find(".auto-submit").append(hiprintJQuery(timeFormatList));
|
|
3697
3694
|
this.target.append(this.content);
|
|
3698
3695
|
this.target.append(this.fillStyle);
|
|
3699
3696
|
this.target.append(this.fontSize);
|
|
@@ -3748,7 +3745,7 @@ var hiprint = (function (t) {
|
|
|
3748
3745
|
|
|
3749
3746
|
return (
|
|
3750
3747
|
(t.prototype.createTarget = function () {
|
|
3751
|
-
return (this.target =
|
|
3748
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 页码格式\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="hiprintJQuery{paperNo}-hiprintJQuery{paperCount}" class="auto-submit">\n </div>\n </div>')), this.target;
|
|
3752
3749
|
}),
|
|
3753
3750
|
(t.prototype.getValue = function () {
|
|
3754
3751
|
var t = this.target.find("input").val();
|
|
@@ -3770,7 +3767,7 @@ var hiprint = (function (t) {
|
|
|
3770
3767
|
|
|
3771
3768
|
return (
|
|
3772
3769
|
(t.prototype.createTarget = function () {
|
|
3773
|
-
return (this.target =
|
|
3770
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 显示页码\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >显示</option>\n <option value="true" >隐藏</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3774
3771
|
}),
|
|
3775
3772
|
(t.prototype.getValue = function () {
|
|
3776
3773
|
if ("true" == this.target.find("select").val()) return !0;
|
|
@@ -3791,7 +3788,7 @@ var hiprint = (function (t) {
|
|
|
3791
3788
|
|
|
3792
3789
|
return (
|
|
3793
3790
|
(t.prototype.createTarget = function () {
|
|
3794
|
-
return (this.target =
|
|
3791
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 页码续排\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="true" >续排</option>\n <option value="reset" >重排</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3795
3792
|
}),
|
|
3796
3793
|
(t.prototype.getValue = function () {
|
|
3797
3794
|
return "true" == this.target.find("select").val();
|
|
@@ -3815,7 +3812,7 @@ var hiprint = (function (t) {
|
|
|
3815
3812
|
return null;
|
|
3816
3813
|
}),
|
|
3817
3814
|
(t.prototype.createTarget = function () {
|
|
3818
|
-
return (this.target =
|
|
3815
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 每行缩进\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n <option value="22.5" >22.5pt</option>\n <option value="23.25" >23.25pt</option>\n <option value="24" >24pt</option>\n <option value="24.75" >24.75pt</option>\n <option value="25.5" >25.5pt</option>\n <option value="26.25" >26.25pt</option>\n <option value="27" >27pt</option>\n <option value="27.75" >27.75pt</option>\n <option value="28.5" >28.5pt</option>\n <option value="29.25" >29.25pt</option>\n <option value="30" >30pt</option>\n <option value="30.75" >30.75pt</option>\n <option value="31.5" >31.5pt</option>\n <option value="32.25" >32.25pt</option>\n <option value="33" >33pt</option>\n <option value="33.75" >33.75pt</option>\n <option value="34.5" >34.5pt</option>\n <option value="35.25" >35.25pt</option>\n <option value="36" >36pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3819
3816
|
}),
|
|
3820
3817
|
(t.prototype.getValue = function () {
|
|
3821
3818
|
var t = this.target.find("select").val();
|
|
@@ -3845,7 +3842,7 @@ var hiprint = (function (t) {
|
|
|
3845
3842
|
return null;
|
|
3846
3843
|
}),
|
|
3847
3844
|
(t.prototype.createTarget = function () {
|
|
3848
|
-
return (this.target =
|
|
3845
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 显示规则\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="none" >始终隐藏</option>\n <option value="first" >首页</option>\n <option value="odd" >奇数页</option>\n <option value="even" >偶数页</option>\n <option value="last" >尾页</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3849
3846
|
}),
|
|
3850
3847
|
(t.prototype.getValue = function () {
|
|
3851
3848
|
var t = this.target.find("select").val();
|
|
@@ -3874,7 +3871,7 @@ var hiprint = (function (t) {
|
|
|
3874
3871
|
return null;
|
|
3875
3872
|
}),
|
|
3876
3873
|
(t.prototype.createTarget = function () {
|
|
3877
|
-
return (this.target =
|
|
3874
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 强制分页\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="true" >是</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3878
3875
|
}),
|
|
3879
3876
|
(t.prototype.getValue = function () {
|
|
3880
3877
|
if ("true" == this.target.find("select").val()) return !0;
|
|
@@ -3895,7 +3892,7 @@ var hiprint = (function (t) {
|
|
|
3895
3892
|
|
|
3896
3893
|
return (
|
|
3897
3894
|
(t.prototype.createTarget = function () {
|
|
3898
|
-
return (this.target =
|
|
3895
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 打印规则\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="odd" >保持奇数</option>\n <option value="even" >保持偶数</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3899
3896
|
}),
|
|
3900
3897
|
(t.prototype.getValue = function () {
|
|
3901
3898
|
var t = this.target.find("select").val();
|
|
@@ -3917,7 +3914,7 @@ var hiprint = (function (t) {
|
|
|
3917
3914
|
|
|
3918
3915
|
return (
|
|
3919
3916
|
(t.prototype.createTarget = function () {
|
|
3920
|
-
return (this.target =
|
|
3917
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 分页规则\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="none" >不分页</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3921
3918
|
}),
|
|
3922
3919
|
(t.prototype.getValue = function () {
|
|
3923
3920
|
var t = this.target.find("select").val();
|
|
@@ -3939,7 +3936,7 @@ var hiprint = (function (t) {
|
|
|
3939
3936
|
|
|
3940
3937
|
return (
|
|
3941
3938
|
(t.prototype.createTarget = function () {
|
|
3942
|
-
return (this.target =
|
|
3939
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 移除段落左侧空白\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="true" >移除</option>\n <option value="false" >不移除</option>\n </select>\n </div>\n </div>')), this.target;
|
|
3943
3940
|
}),
|
|
3944
3941
|
(t.prototype.getValue = function () {
|
|
3945
3942
|
if ("false" == this.target.find("select").val()) return !1;
|
|
@@ -3960,7 +3957,7 @@ var hiprint = (function (t) {
|
|
|
3960
3957
|
|
|
3961
3958
|
return (
|
|
3962
3959
|
(t.prototype.createTarget = function () {
|
|
3963
|
-
return (this.target =
|
|
3960
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 首页页尾\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="首页页尾" class="auto-submit">\n </div>\n </div>')), this.target;
|
|
3964
3961
|
}),
|
|
3965
3962
|
(t.prototype.getValue = function () {
|
|
3966
3963
|
var t = this.target.find("input").val();
|
|
@@ -3982,7 +3979,7 @@ var hiprint = (function (t) {
|
|
|
3982
3979
|
|
|
3983
3980
|
return (
|
|
3984
3981
|
(t.prototype.createTarget = function () {
|
|
3985
|
-
return (this.target =
|
|
3982
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 尾页页尾\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="尾页页尾" class="auto-submit">\n </div>\n </div>')), this.target;
|
|
3986
3983
|
}),
|
|
3987
3984
|
(t.prototype.getValue = function () {
|
|
3988
3985
|
var t = this.target.find("input").val();
|
|
@@ -4004,7 +4001,7 @@ var hiprint = (function (t) {
|
|
|
4004
4001
|
|
|
4005
4002
|
return (
|
|
4006
4003
|
(t.prototype.createTarget = function () {
|
|
4007
|
-
return (this.target =
|
|
4004
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 偶数页页尾\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="偶数页页尾" class="auto-submit">\n </div>\n </div>')), this.target;
|
|
4008
4005
|
}),
|
|
4009
4006
|
(t.prototype.getValue = function () {
|
|
4010
4007
|
var t = this.target.find("input").val();
|
|
@@ -4026,7 +4023,7 @@ var hiprint = (function (t) {
|
|
|
4026
4023
|
|
|
4027
4024
|
return (
|
|
4028
4025
|
(t.prototype.createTarget = function () {
|
|
4029
|
-
return (this.target =
|
|
4026
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 奇数页页尾\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="奇数页页尾" class="auto-submit" >\n </div>\n </div>')), this.target;
|
|
4030
4027
|
}),
|
|
4031
4028
|
(t.prototype.getValue = function () {
|
|
4032
4029
|
var t = this.target.find("input").val();
|
|
@@ -4048,7 +4045,7 @@ var hiprint = (function (t) {
|
|
|
4048
4045
|
|
|
4049
4046
|
return (
|
|
4050
4047
|
(t.prototype.createTarget = function () {
|
|
4051
|
-
return (this.target =
|
|
4048
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 位置固定\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="false" >否</option>\n <option value="true" >是</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4052
4049
|
}),
|
|
4053
4050
|
(t.prototype.getValue = function () {
|
|
4054
4051
|
if ("true" == this.target.find("select").val()) return !0;
|
|
@@ -4069,7 +4066,7 @@ var hiprint = (function (t) {
|
|
|
4069
4066
|
|
|
4070
4067
|
return (
|
|
4071
4068
|
(t.prototype.createTarget = function () {
|
|
4072
|
-
return (this.target =
|
|
4069
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 拖动方向\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="h" >横向</option>\n <option value="v" >竖向</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4073
4070
|
}),
|
|
4074
4071
|
(t.prototype.getValue = function () {
|
|
4075
4072
|
var t = this.target.find("select").val();
|
|
@@ -4091,7 +4088,7 @@ var hiprint = (function (t) {
|
|
|
4091
4088
|
|
|
4092
4089
|
return (
|
|
4093
4090
|
(t.prototype.createTarget = function () {
|
|
4094
|
-
return (this.target =
|
|
4091
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 左偏移\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="偏移量pt" class="auto-submit" >\n </div>\n </div>')), this.target;
|
|
4095
4092
|
}),
|
|
4096
4093
|
(t.prototype.getValue = function () {
|
|
4097
4094
|
var t = this.target.find("input").val();
|
|
@@ -4113,7 +4110,7 @@ var hiprint = (function (t) {
|
|
|
4113
4110
|
|
|
4114
4111
|
return (
|
|
4115
4112
|
(t.prototype.createTarget = function () {
|
|
4116
|
-
return (this.target =
|
|
4113
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 最低高度\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="文本过短或为空时的高度" class="auto-submit">\n </div>\n </div>')), this.target;
|
|
4117
4114
|
}),
|
|
4118
4115
|
(t.prototype.getValue = function () {
|
|
4119
4116
|
var t = this.target.find("input").val();
|
|
@@ -4135,7 +4132,7 @@ var hiprint = (function (t) {
|
|
|
4135
4132
|
|
|
4136
4133
|
return (
|
|
4137
4134
|
(t.prototype.createTarget = function () {
|
|
4138
|
-
return (this.target =
|
|
4135
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 隐藏规则\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="first" >首页</option>\n <option value="last" >尾页</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4139
4136
|
}),
|
|
4140
4137
|
(t.prototype.getValue = function () {
|
|
4141
4138
|
var t = this.target.find("select").val();
|
|
@@ -4165,7 +4162,7 @@ var hiprint = (function (t) {
|
|
|
4165
4162
|
return null;
|
|
4166
4163
|
}),
|
|
4167
4164
|
(t.prototype.createTarget = function () {
|
|
4168
|
-
return (this.target =
|
|
4165
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表体行边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option> \n <option value="border" >有边框</option>\n <option value="noBorder" >无边框</option>\n <option value="leftBorder" >左边框</option>\n <option value="rightBorder" >右边框</option>\n <option value="leftRightBorder" >左右边框</option>\n <option value="topBorder" >上边框</option>\n <option value="bottomBorder" >下边框</option>\n <option value="topBottomBorder" >上下边框</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4169
4166
|
}),
|
|
4170
4167
|
(t.prototype.getValue = function () {
|
|
4171
4168
|
var t = this.target.find("select").val();
|
|
@@ -4199,7 +4196,7 @@ var hiprint = (function (t) {
|
|
|
4199
4196
|
return null;
|
|
4200
4197
|
}),
|
|
4201
4198
|
(t.prototype.createTarget = function () {
|
|
4202
|
-
return (this.target =
|
|
4199
|
+
return (this.target = hiprintJQuery('<div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 旋转角度\n </div>\n <div class="hiprint-option-item-field">\n <input type="number" class="auto-submit"/>\n </div>\n </div>')), this.target;
|
|
4203
4200
|
}),
|
|
4204
4201
|
(t.prototype.getValue = function () {
|
|
4205
4202
|
var t = this.target.find("input").val();
|
|
@@ -4227,7 +4224,7 @@ var hiprint = (function (t) {
|
|
|
4227
4224
|
return null;
|
|
4228
4225
|
}),
|
|
4229
4226
|
(t.prototype.createTarget = function () {
|
|
4230
|
-
return (this.target =
|
|
4227
|
+
return (this.target = hiprintJQuery('<div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 元素层级\n </div>\n <div class="hiprint-option-item-field">\n <input type="number" class="auto-submit"/>\n </div>\n </div>')), this.target;
|
|
4231
4228
|
}),
|
|
4232
4229
|
(t.prototype.getValue = function () {
|
|
4233
4230
|
var t = this.target.find("input").val();
|
|
@@ -4249,7 +4246,7 @@ var hiprint = (function (t) {
|
|
|
4249
4246
|
|
|
4250
4247
|
return (
|
|
4251
4248
|
(t.prototype.createTarget = function () {
|
|
4252
|
-
return (this.target =
|
|
4249
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 边框设置\n </div>\n \n </div>')), this.target;
|
|
4253
4250
|
}),
|
|
4254
4251
|
(t.prototype.getValue = function () {}),
|
|
4255
4252
|
(t.prototype.setValue = function (t) {}),
|
|
@@ -4274,7 +4271,7 @@ var hiprint = (function (t) {
|
|
|
4274
4271
|
return null;
|
|
4275
4272
|
}),
|
|
4276
4273
|
(t.prototype.createTarget = function () {
|
|
4277
|
-
return (this.target =
|
|
4274
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 上边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >否</option>\n <option value="solid" >实线</option>\n <option value="dotted" >虚线</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4278
4275
|
}),
|
|
4279
4276
|
(t.prototype.getValue = function () {
|
|
4280
4277
|
var t = this.target.find("select").val();
|
|
@@ -4304,7 +4301,7 @@ var hiprint = (function (t) {
|
|
|
4304
4301
|
return null;
|
|
4305
4302
|
}),
|
|
4306
4303
|
(t.prototype.createTarget = function () {
|
|
4307
|
-
return (this.target =
|
|
4304
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 左边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >否</option>\n <option value="solid" >实线</option>\n <option value="dotted" >虚线</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4308
4305
|
}),
|
|
4309
4306
|
(t.prototype.getValue = function () {
|
|
4310
4307
|
var t = this.target.find("select").val();
|
|
@@ -4334,7 +4331,7 @@ var hiprint = (function (t) {
|
|
|
4334
4331
|
return null;
|
|
4335
4332
|
}),
|
|
4336
4333
|
(t.prototype.createTarget = function () {
|
|
4337
|
-
return (this.target =
|
|
4334
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 右边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >否</option>\n <option value="solid" >实线</option>\n <option value="dotted" >虚线</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4338
4335
|
}),
|
|
4339
4336
|
(t.prototype.getValue = function () {
|
|
4340
4337
|
var t = this.target.find("select").val();
|
|
@@ -4364,7 +4361,7 @@ var hiprint = (function (t) {
|
|
|
4364
4361
|
return null;
|
|
4365
4362
|
}),
|
|
4366
4363
|
(t.prototype.createTarget = function () {
|
|
4367
|
-
return (this.target =
|
|
4364
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 下边框\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >否</option>\n <option value="solid" >实线</option>\n <option value="dotted" >虚线</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4368
4365
|
}),
|
|
4369
4366
|
(t.prototype.getValue = function () {
|
|
4370
4367
|
var t = this.target.find("select").val();
|
|
@@ -4396,7 +4393,7 @@ var hiprint = (function (t) {
|
|
|
4396
4393
|
return null;
|
|
4397
4394
|
}),
|
|
4398
4395
|
(t.prototype.createTarget = function () {
|
|
4399
|
-
return (this.target =
|
|
4396
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 左内边距\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="0.75" >0.75pt</option>\n <option value="1.5" >1.5pt</option>\n <option value="2.25" >2.25pt</option>\n <option value="3" >3pt</option>\n <option value="3.75" >3.75pt</option>\n <option value="4.5" >4.5pt</option>\n <option value="5.25" >5.25pt</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13.5pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4400
4397
|
}),
|
|
4401
4398
|
(t.prototype.getValue = function () {
|
|
4402
4399
|
var t = this.target.find("select").val();
|
|
@@ -4429,7 +4426,7 @@ var hiprint = (function (t) {
|
|
|
4429
4426
|
return null;
|
|
4430
4427
|
}),
|
|
4431
4428
|
(t.prototype.createTarget = function () {
|
|
4432
|
-
return (this.target =
|
|
4429
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 上内边距\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="0.75" >0.75pt</option>\n <option value="1.5" >1.5pt</option>\n <option value="2.25" >2.25pt</option>\n <option value="3" >3pt</option>\n <option value="3.75" >3.75pt</option>\n <option value="4.5" >4.5pt</option>\n <option value="5.25" >5.25pt</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13.5pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4433
4430
|
}),
|
|
4434
4431
|
(t.prototype.getValue = function () {
|
|
4435
4432
|
var t = this.target.find("select").val();
|
|
@@ -4462,7 +4459,7 @@ var hiprint = (function (t) {
|
|
|
4462
4459
|
return null;
|
|
4463
4460
|
}),
|
|
4464
4461
|
(t.prototype.createTarget = function () {
|
|
4465
|
-
return (this.target =
|
|
4462
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 右内边距\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="0.75" >0.75pt</option>\n <option value="1.5" >1.5pt</option>\n <option value="2.25" >2.25pt</option>\n <option value="3" >3pt</option>\n <option value="3.75" >3.75pt</option>\n <option value="4.5" >4.5pt</option>\n <option value="5.25" >5.25pt</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13.5pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4466
4463
|
}),
|
|
4467
4464
|
(t.prototype.getValue = function () {
|
|
4468
4465
|
var t = this.target.find("select").val();
|
|
@@ -4495,7 +4492,7 @@ var hiprint = (function (t) {
|
|
|
4495
4492
|
return null;
|
|
4496
4493
|
}),
|
|
4497
4494
|
(t.prototype.createTarget = function () {
|
|
4498
|
-
return (this.target =
|
|
4495
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 下内边距\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="0.75" >0.75pt</option>\n <option value="1.5" >1.5pt</option>\n <option value="2.25" >2.25pt</option>\n <option value="3" >3pt</option>\n <option value="3.75" >3.75pt</option>\n <option value="4.5" >4.5pt</option>\n <option value="5.25" >5.25pt</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13.5pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4499
4496
|
}),
|
|
4500
4497
|
(t.prototype.getValue = function () {
|
|
4501
4498
|
var t = this.target.find("select").val();
|
|
@@ -4527,7 +4524,7 @@ var hiprint = (function (t) {
|
|
|
4527
4524
|
}),
|
|
4528
4525
|
(t.prototype.createTarget = function (t) {
|
|
4529
4526
|
var name = ["hline", "vline", "rect", "oval"].includes(t.printElementType.type) ? "样式" : "边框样式";
|
|
4530
|
-
return (this.target =
|
|
4527
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n ' + name + '\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="solid" >实线</option>\n <option value="dashed" >长虚线</option>\n <option value="dotted" >短虚线</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4531
4528
|
}),
|
|
4532
4529
|
(t.prototype.getValue = function () {
|
|
4533
4530
|
var t = this.target.find("select").val();
|
|
@@ -4557,7 +4554,7 @@ var hiprint = (function (t) {
|
|
|
4557
4554
|
return null;
|
|
4558
4555
|
}),
|
|
4559
4556
|
(t.prototype.createTarget = function () {
|
|
4560
|
-
return (this.target =
|
|
4557
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 背景颜色\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" class="auto-submit"/>\n </div>\n </div>')), this.target;
|
|
4561
4558
|
}),
|
|
4562
4559
|
(t.prototype.getValue = function () {
|
|
4563
4560
|
var t = this.target.find("input").val();
|
|
@@ -4583,7 +4580,7 @@ var hiprint = (function (t) {
|
|
|
4583
4580
|
|
|
4584
4581
|
return (
|
|
4585
4582
|
(t.prototype.createTarget = function () {
|
|
4586
|
-
return (this.target =
|
|
4583
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 纸张方向(仅自定义纸质有效)\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="1" >纵向</option>\n <option value="2" >横向</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4587
4584
|
}),
|
|
4588
4585
|
(t.prototype.getValue = function () {
|
|
4589
4586
|
var t = this.target.find("select").val();
|
|
@@ -4605,7 +4602,7 @@ var hiprint = (function (t) {
|
|
|
4605
4602
|
|
|
4606
4603
|
return (
|
|
4607
4604
|
(t.prototype.createTarget = function () {
|
|
4608
|
-
return (this.target =
|
|
4605
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 上下对齐\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="middle" >垂直居中</option>\n <option value="bottom" >底部</option>\n \n </select>\n </div>\n </div>')), this.target;
|
|
4609
4606
|
}),
|
|
4610
4607
|
(t.prototype.css = function (t, e) {
|
|
4611
4608
|
if (t && t.length) {
|
|
@@ -4635,7 +4632,7 @@ var hiprint = (function (t) {
|
|
|
4635
4632
|
|
|
4636
4633
|
return (
|
|
4637
4634
|
(t.prototype.createTarget = function () {
|
|
4638
|
-
return (this.target =
|
|
4635
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 文本换行\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="nowrap" >不换行</option>\n <option value="clip" >不换行&隐藏</option>\n <option value="ellipsis" >不换行&省略</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4639
4636
|
}),
|
|
4640
4637
|
(t.prototype.css = function (t, e) {
|
|
4641
4638
|
if (t && t.length) {
|
|
@@ -4669,8 +4666,8 @@ var hiprint = (function (t) {
|
|
|
4669
4666
|
|
|
4670
4667
|
return (
|
|
4671
4668
|
(t.prototype.createTarget = function () {
|
|
4672
|
-
|
|
4673
|
-
return " </ul>\n </div>\n </div>", (this.target =
|
|
4669
|
+
hiprintJQuery('<div class="indicator"></div>').appendTo("body");
|
|
4670
|
+
return " </ul>\n </div>\n </div>", (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div>\n <ul class="hiprint-option-table-selected-columns"> </ul>\n </div>\n </div>')), this.target;
|
|
4674
4671
|
}),
|
|
4675
4672
|
(t.prototype.getValue = function () {
|
|
4676
4673
|
return this.buildData();
|
|
@@ -4725,13 +4722,13 @@ var hiprint = (function (t) {
|
|
|
4725
4722
|
})
|
|
4726
4723
|
.hidroppable({
|
|
4727
4724
|
onDragOver: function onDragOver (t, e) {
|
|
4728
|
-
|
|
4725
|
+
hiprintJQuery(this).css("border-top-color", "red");
|
|
4729
4726
|
},
|
|
4730
4727
|
onDragLeave: function onDragLeave (t, e) {
|
|
4731
|
-
|
|
4728
|
+
hiprintJQuery(this).css("border-top-color", "");
|
|
4732
4729
|
},
|
|
4733
4730
|
onDrop: function onDrop (t, e) {
|
|
4734
|
-
|
|
4731
|
+
hiprintJQuery(e).insertBefore(this), hiprintJQuery(this).css("border-top-color", ""), o.submit();
|
|
4735
4732
|
},
|
|
4736
4733
|
}));
|
|
4737
4734
|
}),
|
|
@@ -4743,7 +4740,7 @@ var hiprint = (function (t) {
|
|
|
4743
4740
|
}
|
|
4744
4741
|
t.printElementType.makeColumnObj(t.allColumns);
|
|
4745
4742
|
this.target.find("input").map(function (n, i) {
|
|
4746
|
-
var o =
|
|
4743
|
+
var o = hiprintJQuery(i).attr("column-id");
|
|
4747
4744
|
var a = t.printElementType.getColumnByColumnId(o);
|
|
4748
4745
|
if (a) {
|
|
4749
4746
|
var p = new rt.a(a);
|
|
@@ -4765,7 +4762,7 @@ var hiprint = (function (t) {
|
|
|
4765
4762
|
|
|
4766
4763
|
return (
|
|
4767
4764
|
(t.prototype.createTarget = function () {
|
|
4768
|
-
return (this.target =
|
|
4765
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 打印类型\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="" >文本</option>\n <option value="barcode" >条形码</option>\n <option value="qrcode" >二维码</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4769
4766
|
}),
|
|
4770
4767
|
(t.prototype.getValue = function () {
|
|
4771
4768
|
var t = this.target.find("select").val();
|
|
@@ -4787,7 +4784,7 @@ var hiprint = (function (t) {
|
|
|
4787
4784
|
|
|
4788
4785
|
return (
|
|
4789
4786
|
(t.prototype.createTarget = function () {
|
|
4790
|
-
return (this.target =
|
|
4787
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 字段类型\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认(文本)</option>\n <option value="text" >文本</option>\n <option value="sequence" >序号</option>\n <option value="barcode" >条形码</option>\n <option value="qrcode" >二维码</option>\n <option value="image" >图片</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4791
4788
|
}),
|
|
4792
4789
|
(t.prototype.getValue = function () {
|
|
4793
4790
|
var t = this.target.find("select").val();
|
|
@@ -4809,7 +4806,7 @@ var hiprint = (function (t) {
|
|
|
4809
4806
|
|
|
4810
4807
|
return (
|
|
4811
4808
|
(t.prototype.createTarget = function () {
|
|
4812
|
-
return (this.target =
|
|
4809
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 条形码格式\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认(CODE128A)</option>\n <option value="CODE128A" >CODE128A</option>\n <option value="CODE128B" >CODE128B</option>\n <option value="CODE128C" >CODE128C</option>\n <option value="CODE39" >CODE39</option>\n <option value="EAN-13" >EAN-13</option>\n <option value="EAN-8" >EAN-8</option>\n <option value="EAN-5" >EAN-5</option>\n <option value="EAN-2" >EAN-2</option>\n <option value="UPC(A)" >UPC(A)</option>\n <option value="ITF" >ITF</option>\n <option value="ITF-14" >ITF-14</option>\n <option value="MSI" >MSI</option>\n <option value="MSI10" >MSI10</option>\n <option value="MSI11" >MSI11</option>\n <option value="MSI1010" >MSI1010</option>\n <option value="MSI1110" >MSI1110</option>\n <option value="Pharmacode" >Pharmacode</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4813
4810
|
}),
|
|
4814
4811
|
(t.prototype.getValue = function () {
|
|
4815
4812
|
var t = this.target.find("select").val();
|
|
@@ -4831,7 +4828,7 @@ var hiprint = (function (t) {
|
|
|
4831
4828
|
|
|
4832
4829
|
return (
|
|
4833
4830
|
(t.prototype.createTarget = function () {
|
|
4834
|
-
return (this.target =
|
|
4831
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 二维码容错率\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="1" >7% L</option>\n <option value="0" >15% M</option>\n <option value="3" >25% Q</option>\n <option value="2" >30% H</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4835
4832
|
}),
|
|
4836
4833
|
(t.prototype.getValue = function () {
|
|
4837
4834
|
var t = this.target.find("select").val();
|
|
@@ -4853,7 +4850,7 @@ var hiprint = (function (t) {
|
|
|
4853
4850
|
|
|
4854
4851
|
return (
|
|
4855
4852
|
(t.prototype.createTarget = function () {
|
|
4856
|
-
return (this.target =
|
|
4853
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item ">\n <div class="hiprint-option-item-label">\n 单元格高度\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="条形码、二维码以及图片有效" class="auto-submit" >\n </div>\n </div>')), this.target;
|
|
4857
4854
|
}),
|
|
4858
4855
|
(t.prototype.getValue = function () {
|
|
4859
4856
|
var t = this.target.find("input").val();
|
|
@@ -4875,7 +4872,7 @@ var hiprint = (function (t) {
|
|
|
4875
4872
|
|
|
4876
4873
|
return (
|
|
4877
4874
|
(t.prototype.createTarget = function () {
|
|
4878
|
-
return (this.target =
|
|
4875
|
+
return (this.target = hiprintJQuery('<div class="hiprint-option-item"><div class="hiprint-option-item-label">底部聚合标题</div><div class="hiprint-option-item-field"><select class="auto-submit"><option value="">默认</option><option value="true">显示</option><option value="false">隐藏</option></select></div></div>')), this.target;
|
|
4879
4876
|
}),
|
|
4880
4877
|
(t.prototype.getValue = function () {
|
|
4881
4878
|
return !("false" == this.target.find("select").val());
|
|
@@ -4896,7 +4893,7 @@ var hiprint = (function (t) {
|
|
|
4896
4893
|
|
|
4897
4894
|
return (
|
|
4898
4895
|
(t.prototype.createTarget = function () {
|
|
4899
|
-
return (this.target =
|
|
4896
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 底部聚合文本\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="聚合类型:" class="auto-submit" >\n </div>\n </div>')), this.target;
|
|
4900
4897
|
}),
|
|
4901
4898
|
(t.prototype.getValue = function () {
|
|
4902
4899
|
var t = this.target.find("input").val();
|
|
@@ -4918,7 +4915,7 @@ var hiprint = (function (t) {
|
|
|
4918
4915
|
|
|
4919
4916
|
return (
|
|
4920
4917
|
(t.prototype.createTarget = function () {
|
|
4921
|
-
return (this.target =
|
|
4918
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 底部聚合合并列数\n </div>\n <div class="hiprint-option-item-field">\n <input type="number" min="0" step="1" placeholder="合并列数" class="auto-submit" >\n </div>\n </div>')), this.target;
|
|
4922
4919
|
}),
|
|
4923
4920
|
(t.prototype.getValue = function () {
|
|
4924
4921
|
var t = this.target.find("input").val();
|
|
@@ -4940,7 +4937,7 @@ var hiprint = (function (t) {
|
|
|
4940
4937
|
|
|
4941
4938
|
return (
|
|
4942
4939
|
(t.prototype.createTarget = function () {
|
|
4943
|
-
return (this.target =
|
|
4940
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 底部聚合类型左右对齐\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="left" >居左</option>\n <option value="center" >居中</option>\n <option value="right" >居右</option>\n <option value="justify" >两端对齐</option>\n </select>\n </div>\n </div>')), this.target;
|
|
4944
4941
|
}),
|
|
4945
4942
|
(t.prototype.getValue = function () {
|
|
4946
4943
|
var t = this.target.find("select").val();
|
|
@@ -4971,8 +4968,8 @@ var hiprint = (function (t) {
|
|
|
4971
4968
|
list.forEach(function (e) {
|
|
4972
4969
|
n += '\n <option value="' + (e.v || "") + '">' + (e.t || "") + "</option>";
|
|
4973
4970
|
});
|
|
4974
|
-
this.target =
|
|
4975
|
-
this.target.find(".auto-submit").append(
|
|
4971
|
+
this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 底部聚合小数\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit"></select>\n </div>\n </div>');
|
|
4972
|
+
this.target.find(".auto-submit").append(hiprintJQuery(n));
|
|
4976
4973
|
return this.target;
|
|
4977
4974
|
}),
|
|
4978
4975
|
(t.prototype.getValue = function () {
|
|
@@ -5008,8 +5005,8 @@ var hiprint = (function (t) {
|
|
|
5008
5005
|
list.forEach((e) => {
|
|
5009
5006
|
n += `\n<option value='${e.v}'>${e.t}</option>`;
|
|
5010
5007
|
});
|
|
5011
|
-
this.target =
|
|
5012
|
-
this.target.find(".auto-submit").append(
|
|
5008
|
+
this.target = hiprintJQuery('<div class="hiprint-option-item hiprint-option-item-row">\n<div class="hiprint-option-item-label">\n转大小写\n</div>\n<div class="hiprint-option-item-field">\n<select class="auto-submit"></select>\n</div>\n</div>');
|
|
5009
|
+
this.target.find(".auto-submit").append(hiprintJQuery(n));
|
|
5013
5010
|
return this.target;
|
|
5014
5011
|
}),
|
|
5015
5012
|
(t.prototype.getValue = function () {
|
|
@@ -5033,7 +5030,7 @@ var hiprint = (function (t) {
|
|
|
5033
5030
|
|
|
5034
5031
|
return (
|
|
5035
5032
|
(t.prototype.createTarget = function () {
|
|
5036
|
-
return (this.target =
|
|
5033
|
+
return (this.target = hiprintJQuery('<div class="hiprint-option-item"><div class="hiprint-option-item-label">底部聚合类型</div><div class="hiprint-option-item-field"><select class="auto-submit"><option value="">不聚合</option><option value="count">计数</option><option value="sum">合计</option><option value="avg">平均值</option><option value="min">最小值</option><option value="max">最大值</option><option value="text">仅文本</option></select></div></div>')), this.target;
|
|
5037
5034
|
}),
|
|
5038
5035
|
(t.prototype.getValue = function () {
|
|
5039
5036
|
return this.target.find("select").val();
|
|
@@ -5054,7 +5051,7 @@ var hiprint = (function (t) {
|
|
|
5054
5051
|
|
|
5055
5052
|
return (
|
|
5056
5053
|
(t.prototype.createTarget = function () {
|
|
5057
|
-
return (this.target =
|
|
5054
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 顶部偏移\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="偏移量pt" class="auto-submit">\n </div>\n </div>')), this.target;
|
|
5058
5055
|
}),
|
|
5059
5056
|
(t.prototype.getValue = function () {
|
|
5060
5057
|
var t = this.target.find("input").val();
|
|
@@ -5076,7 +5073,7 @@ var hiprint = (function (t) {
|
|
|
5076
5073
|
|
|
5077
5074
|
return (
|
|
5078
5075
|
(t.prototype.createTarget = function () {
|
|
5079
|
-
return (this.target =
|
|
5076
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 一行多组\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="2" >一行二列</option>\n <option value="3" >一行三列</option>\n <option value="4" >一行四列</option>\n </select>\n </div>\n </div>')), this.target;
|
|
5080
5077
|
}),
|
|
5081
5078
|
(t.prototype.getValue = function () {
|
|
5082
5079
|
var t = this.target.find("select").val();
|
|
@@ -5099,7 +5096,7 @@ var hiprint = (function (t) {
|
|
|
5099
5096
|
|
|
5100
5097
|
return (
|
|
5101
5098
|
(t.prototype.createTarget = function () {
|
|
5102
|
-
return (this.target =
|
|
5099
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 一行多组间隔\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="1.5" >1.5pt</option>\n <option value="2.25" >2.25pt</option>\n <option value="3" >3pt</option>\n <option value="3.75" >3.75pt</option>\n <option value="4.5" >4.5pt</option>\n <option value="5.25" >5.25pt</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.25" >7.25pt</option>\n <option value="8.5" >8.5pt</option>\n <option value="9" >9pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
5103
5100
|
}),
|
|
5104
5101
|
(t.prototype.getValue = function () {
|
|
5105
5102
|
var t = this.target.find("select").val();
|
|
@@ -5146,7 +5143,7 @@ var hiprint = (function (t) {
|
|
|
5146
5143
|
|
|
5147
5144
|
return (
|
|
5148
5145
|
(t.prototype.createTarget = function () {
|
|
5149
|
-
return (this.target =
|
|
5146
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表格头显示\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="page" >每页显示</option>\n <option value="first" >首页显示</option>\n <option value="none" >不显示</option>\n </select>\n </div>\n </div>')), this.target;
|
|
5150
5147
|
}),
|
|
5151
5148
|
(t.prototype.getValue = function () {
|
|
5152
5149
|
var t = this.target.find("select").val();
|
|
@@ -5178,7 +5175,7 @@ var hiprint = (function (t) {
|
|
|
5178
5175
|
return null;
|
|
5179
5176
|
}),
|
|
5180
5177
|
(t.prototype.createTarget = function () {
|
|
5181
|
-
return (this.target =
|
|
5178
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 左内边距\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="0.75" >0.75pt</option>\n <option value="1.5" >1.5pt</option>\n <option value="2.25" >2.25pt</option>\n <option value="3" >3pt</option>\n <option value="3.75" >3.75pt</option>\n <option value="4.5" >4.5pt</option>\n <option value="5.25" >5.25pt</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13.5pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
5182
5179
|
}),
|
|
5183
5180
|
(t.prototype.getValue = function () {
|
|
5184
5181
|
var t = this.target.find("select").val();
|
|
@@ -5211,7 +5208,7 @@ var hiprint = (function (t) {
|
|
|
5211
5208
|
return null;
|
|
5212
5209
|
}),
|
|
5213
5210
|
(t.prototype.createTarget = function () {
|
|
5214
|
-
return (this.target =
|
|
5211
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 右内边距\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="0.75" >0.75pt</option>\n <option value="1.5" >1.5pt</option>\n <option value="2.25" >2.25pt</option>\n <option value="3" >3pt</option>\n <option value="3.75" >3.75pt</option>\n <option value="4.5" >4.5pt</option>\n <option value="5.25" >5.25pt</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13.5pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n </select>\n </div>\n </div>')), this.target;
|
|
5215
5212
|
}),
|
|
5216
5213
|
(t.prototype.getValue = function () {
|
|
5217
5214
|
var t = this.target.find("select").val();
|
|
@@ -5236,9 +5233,9 @@ var hiprint = (function (t) {
|
|
|
5236
5233
|
(t.prototype.createTarget = function () {
|
|
5237
5234
|
var t = this;
|
|
5238
5235
|
return (
|
|
5239
|
-
(this.target =
|
|
5240
|
-
|
|
5241
|
-
var e =
|
|
5236
|
+
(this.target = hiprintJQuery('\n <div class="hiprint-option-item-row">\n <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 数据类型\n </div>\n <div class="hiprint-option-item-field">\n <select class="hiprint-option-item-datatype">\n <option value="" >默认</option>\n <option value="datetime" >日期时间</option>\n <option value="boolean" >布尔</option>\n </select>\n </div>\n </div>\n <div class="hiprint-option-item ">\n <div class="hiprint-option-item-label ">\n 格式\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit hiprint-option-item-datatype-select-format">\n <option value="" >默认</option>\n \n </select>\n <input class="auto-submit hiprint-option-item-datatype-input-format" type="text" data-type="boolean" placeholder="true:false">\n </div>\n </div>\n </div>\n ')),
|
|
5237
|
+
hiprintJQuery(this.target.find(".hiprint-option-item-datatype")).change(function () {
|
|
5238
|
+
var e = hiprintJQuery(t.target.find(".hiprint-option-item-datatype")).val();
|
|
5242
5239
|
t.loadFormatSelectByDataType(e), t.submit(t.getValue());
|
|
5243
5240
|
}),
|
|
5244
5241
|
this.target
|
|
@@ -5280,7 +5277,7 @@ var hiprint = (function (t) {
|
|
|
5280
5277
|
return (
|
|
5281
5278
|
(t.prototype.createTarget = function () {
|
|
5282
5279
|
var t = ' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 格式化函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(title,value,options,templateData,target){}" class="auto-submit"></textarea>\n </div>\n </div>';
|
|
5283
|
-
return (this.target =
|
|
5280
|
+
return (this.target = hiprintJQuery(t)), this.target;
|
|
5284
5281
|
}),
|
|
5285
5282
|
(t.prototype.getValue = function () {
|
|
5286
5283
|
var t = this.target.find("textarea").val();
|
|
@@ -5302,7 +5299,7 @@ var hiprint = (function (t) {
|
|
|
5302
5299
|
|
|
5303
5300
|
return (
|
|
5304
5301
|
(t.prototype.createTarget = function () {
|
|
5305
|
-
return (this.target =
|
|
5302
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 样式函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(value, options, target,templateData){}" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5306
5303
|
}),
|
|
5307
5304
|
(t.prototype.getValue = function () {
|
|
5308
5305
|
var t = this.target.find("textarea").val();
|
|
@@ -5324,7 +5321,7 @@ var hiprint = (function (t) {
|
|
|
5324
5321
|
|
|
5325
5322
|
return (
|
|
5326
5323
|
(t.prototype.createTarget = function () {
|
|
5327
|
-
return (this.target =
|
|
5324
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 行/列合并函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(data, col, colIndex, rowIndex){ return [1,1] }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5328
5325
|
}),
|
|
5329
5326
|
(t.prototype.getValue = function () {
|
|
5330
5327
|
var t = this.target.find("textarea").val();
|
|
@@ -5346,7 +5343,7 @@ var hiprint = (function (t) {
|
|
|
5346
5343
|
|
|
5347
5344
|
return (
|
|
5348
5345
|
(t.prototype.createTarget = function () {
|
|
5349
|
-
return (this.target =
|
|
5346
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 跨页合并是否清除\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="true" >是</option>\n <option value="false" >否</option>\n </select>\n </div>\n </div>')), this.target;
|
|
5350
5347
|
}),
|
|
5351
5348
|
(t.prototype.getValue = function () {
|
|
5352
5349
|
if ("true" == this.target.find("select").val()) return !0;
|
|
@@ -5367,7 +5364,7 @@ var hiprint = (function (t) {
|
|
|
5367
5364
|
|
|
5368
5365
|
return (
|
|
5369
5366
|
(t.prototype.createTarget = function () {
|
|
5370
|
-
return (this.target =
|
|
5367
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 表格脚函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(options,rows,data,pageData){ return \'<tr></tr>\' }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5371
5368
|
}),
|
|
5372
5369
|
(t.prototype.getValue = function () {
|
|
5373
5370
|
var t = this.target.find("textarea").val();
|
|
@@ -5389,7 +5386,7 @@ var hiprint = (function (t) {
|
|
|
5389
5386
|
|
|
5390
5387
|
return (
|
|
5391
5388
|
(t.prototype.createTarget = function () {
|
|
5392
|
-
return (this.target =
|
|
5389
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 分组字段函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(type,options,data){ return [] }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5393
5390
|
}),
|
|
5394
5391
|
(t.prototype.getValue = function () {
|
|
5395
5392
|
var t = this.target.find("textarea").val();
|
|
@@ -5411,7 +5408,7 @@ var hiprint = (function (t) {
|
|
|
5411
5408
|
|
|
5412
5409
|
return (
|
|
5413
5410
|
(t.prototype.createTarget = function () {
|
|
5414
|
-
return (this.target =
|
|
5411
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 分组头格式化函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(groupData,options){ return \'分组头信息(html)\' }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5415
5412
|
}),
|
|
5416
5413
|
(t.prototype.getValue = function () {
|
|
5417
5414
|
var t = this.target.find("textarea").val();
|
|
@@ -5433,7 +5430,7 @@ var hiprint = (function (t) {
|
|
|
5433
5430
|
|
|
5434
5431
|
return (
|
|
5435
5432
|
(t.prototype.createTarget = function () {
|
|
5436
|
-
return (this.target =
|
|
5433
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 分组脚格式化函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(groupData,options){ return \'分组脚信息(html)\' }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5437
5434
|
}),
|
|
5438
5435
|
(t.prototype.getValue = function () {
|
|
5439
5436
|
var t = this.target.find("textarea").val();
|
|
@@ -5455,7 +5452,7 @@ var hiprint = (function (t) {
|
|
|
5455
5452
|
|
|
5456
5453
|
return (
|
|
5457
5454
|
(t.prototype.createTarget = function () {
|
|
5458
|
-
return (this.target =
|
|
5455
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 多组表格脚函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(options,rows,data,pageData){ return \'\' }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5459
5456
|
}),
|
|
5460
5457
|
(t.prototype.getValue = function () {
|
|
5461
5458
|
var t = this.target.find("textarea").val();
|
|
@@ -5477,7 +5474,7 @@ var hiprint = (function (t) {
|
|
|
5477
5474
|
|
|
5478
5475
|
return (
|
|
5479
5476
|
(t.prototype.createTarget = function () {
|
|
5480
|
-
return (this.target =
|
|
5477
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 行样式函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(value,options){ return \'\' }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5481
5478
|
}),
|
|
5482
5479
|
(t.prototype.getValue = function () {
|
|
5483
5480
|
var t = this.target.find("textarea").val();
|
|
@@ -5499,7 +5496,7 @@ var hiprint = (function (t) {
|
|
|
5499
5496
|
|
|
5500
5497
|
return (
|
|
5501
5498
|
(t.prototype.createTarget = function () {
|
|
5502
|
-
return (this.target =
|
|
5499
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 单元格左右对齐\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="left" >居左</option>\n <option value="center" >居中</option>\n <option value="right" >居右</option>\n <option value="justify" >两端对齐</option>\n </select>\n </div>\n </div>')), this.target;
|
|
5503
5500
|
}),
|
|
5504
5501
|
(t.prototype.getValue = function () {
|
|
5505
5502
|
var t = this.target.find("select").val();
|
|
@@ -5521,7 +5518,7 @@ var hiprint = (function (t) {
|
|
|
5521
5518
|
|
|
5522
5519
|
return (
|
|
5523
5520
|
(t.prototype.createTarget = function () {
|
|
5524
|
-
return (this.target =
|
|
5521
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 单元格上下对齐\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="top" >上</option>\n <option value="middle" >中</option>\n <option value="bottom" >居右</option>\n \n </select>\n </div>\n </div>')), this.target;
|
|
5525
5522
|
}),
|
|
5526
5523
|
(t.prototype.getValue = function () {
|
|
5527
5524
|
var t = this.target.find("select").val();
|
|
@@ -5543,7 +5540,7 @@ var hiprint = (function (t) {
|
|
|
5543
5540
|
|
|
5544
5541
|
return (
|
|
5545
5542
|
(t.prototype.createTarget = function () {
|
|
5546
|
-
return (this.target =
|
|
5543
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表格头单元格左右对齐\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="left" >居左</option>\n <option value="center" >居中</option>\n <option value="right" >居右</option>\n <option value="justify" >两端对齐</option>\n </select>\n </div>\n </div>')), this.target;
|
|
5547
5544
|
}),
|
|
5548
5545
|
(t.prototype.getValue = function () {
|
|
5549
5546
|
var t = this.target.find("select").val();
|
|
@@ -5565,7 +5562,7 @@ var hiprint = (function (t) {
|
|
|
5565
5562
|
|
|
5566
5563
|
return (
|
|
5567
5564
|
(t.prototype.createTarget = function () {
|
|
5568
|
-
return (this.target =
|
|
5565
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 单元格样式函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(value,row,index,options){ return {color:\'red\' }; }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5569
5566
|
}),
|
|
5570
5567
|
(t.prototype.getValue = function () {
|
|
5571
5568
|
var t = this.target.find("textarea").val();
|
|
@@ -5587,7 +5584,7 @@ var hiprint = (function (t) {
|
|
|
5587
5584
|
|
|
5588
5585
|
return (
|
|
5589
5586
|
(t.prototype.createTarget = function () {
|
|
5590
|
-
return (this.target =
|
|
5587
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 表格头样式函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(options){ return {color:\'red\' }; }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5591
5588
|
}),
|
|
5592
5589
|
(t.prototype.getValue = function () {
|
|
5593
5590
|
var t = this.target.find("textarea").val();
|
|
@@ -5609,7 +5606,7 @@ var hiprint = (function (t) {
|
|
|
5609
5606
|
|
|
5610
5607
|
return (
|
|
5611
5608
|
(t.prototype.createTarget = function () {
|
|
5612
|
-
return (this.target =
|
|
5609
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 单元格格式化函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(value,row,index,options){ return \'\'; }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5613
5610
|
}),
|
|
5614
5611
|
(t.prototype.getValue = function () {
|
|
5615
5612
|
var t = this.target.find("textarea").val();
|
|
@@ -5631,7 +5628,7 @@ var hiprint = (function (t) {
|
|
|
5631
5628
|
|
|
5632
5629
|
return (
|
|
5633
5630
|
(t.prototype.createTarget = function () {
|
|
5634
|
-
return (this.target =
|
|
5631
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 单元格渲染函数\n </div>\n <div class="hiprint-option-item-field">\n <textarea style="height:80px;" placeholder="function(value,row,index,options){ return \'<td></td>\'; }" class="auto-submit"></textarea>\n </div>\n </div>')), this.target;
|
|
5635
5632
|
}),
|
|
5636
5633
|
(t.prototype.getValue = function () {
|
|
5637
5634
|
var t = this.target.find("textarea").val();
|
|
@@ -5653,7 +5650,7 @@ var hiprint = (function (t) {
|
|
|
5653
5650
|
|
|
5654
5651
|
return (
|
|
5655
5652
|
(t.prototype.createTarget = function () {
|
|
5656
|
-
return (this.target =
|
|
5653
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 自动补全\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="true" >是</option>\n <option value="false" >否</option>\n </select>\n </div>\n </div>')), this.target;
|
|
5657
5654
|
}),
|
|
5658
5655
|
(t.prototype.getValue = function () {
|
|
5659
5656
|
if ("true" == this.target.find("select").val()) return !0;
|
|
@@ -5674,7 +5671,7 @@ var hiprint = (function (t) {
|
|
|
5674
5671
|
|
|
5675
5672
|
return (
|
|
5676
5673
|
(t.prototype.createTarget = function () {
|
|
5677
|
-
return (this.target =
|
|
5674
|
+
return (this.target = hiprintJQuery('<div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 每页最大行数\n </div>\n <div class="hiprint-option-item-field">\n <input type="number" value="1" step="1" min="1" class="auto-submit"/>\n </div>\n </div>')), this.target;
|
|
5678
5675
|
}),
|
|
5679
5676
|
(t.prototype.getValue = function () {
|
|
5680
5677
|
var t = this.target.find("input").val();
|
|
@@ -5696,7 +5693,7 @@ var hiprint = (function (t) {
|
|
|
5696
5693
|
|
|
5697
5694
|
return (
|
|
5698
5695
|
(t.prototype.createTarget = function () {
|
|
5699
|
-
return (this.target =
|
|
5696
|
+
return (this.target = hiprintJQuery(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表格脚显示\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="no" >不显示</option>\n <option value="page" >每页显示</option>\n <option value="last" >最后显示</option>\n </select>\n </div>\n </div>')), this.target;
|
|
5700
5697
|
}),
|
|
5701
5698
|
(t.prototype.getValue = function () {
|
|
5702
5699
|
var t = this.target.find("select").val();
|
|
@@ -5943,7 +5940,7 @@ var hiprint = (function (t) {
|
|
|
5943
5940
|
return (
|
|
5944
5941
|
(t.prototype.init = function (t, e, n) {
|
|
5945
5942
|
(this.isHead = n),
|
|
5946
|
-
(this.target = e ||
|
|
5943
|
+
(this.target = e || hiprintJQuery("<tr></tr>")),
|
|
5947
5944
|
(this.tableOptions = t),
|
|
5948
5945
|
(this.allColumns = this.columns || []),
|
|
5949
5946
|
this.initCells(
|
|
@@ -5965,7 +5962,7 @@ var hiprint = (function (t) {
|
|
|
5965
5962
|
: ((this.columns = []),
|
|
5966
5963
|
this.target.find("td").map(function (t, n) {
|
|
5967
5964
|
var i = new o.a();
|
|
5968
|
-
i.init(
|
|
5965
|
+
i.init(hiprintJQuery(n), e.tableOptions, e.id, e.isHead), e.columns.push(i);
|
|
5969
5966
|
}));
|
|
5970
5967
|
}),
|
|
5971
5968
|
(t.prototype.removeCell = function (t) {
|
|
@@ -5974,7 +5971,7 @@ var hiprint = (function (t) {
|
|
|
5974
5971
|
}),
|
|
5975
5972
|
(t.prototype.createTableCell = function (t, e) {
|
|
5976
5973
|
var n = new o.a();
|
|
5977
|
-
return n.init(
|
|
5974
|
+
return n.init(hiprintJQuery("<td></td>"), this.tableOptions, this.id, this.isHead), t > 1 && (n.getTarget().attr("rowspan", t), (n.rowspan = t)), e > 1 && (n.getTarget().attr("colspan", e), (n.colspan = e)), n;
|
|
5978
5975
|
}),
|
|
5979
5976
|
(t.prototype.insertToTargetCellLeft = function (t, e) {
|
|
5980
5977
|
var n = this.columns.indexOf(t);
|
|
@@ -6121,10 +6118,10 @@ var hiprint = (function (t) {
|
|
|
6121
6118
|
accept: ".rn-draggable-item",
|
|
6122
6119
|
onDrop: function onDrop (t, e) {},
|
|
6123
6120
|
onDragEnter: function onDragEnter (t, e) {
|
|
6124
|
-
|
|
6121
|
+
hiprintJQuery(e).removeClass("rn-draggable-item");
|
|
6125
6122
|
},
|
|
6126
6123
|
onDragLeave: function onDragLeave (t, e) {
|
|
6127
|
-
|
|
6124
|
+
hiprintJQuery(e).addClass("rn-draggable-item");
|
|
6128
6125
|
},
|
|
6129
6126
|
}),
|
|
6130
6127
|
this.designTarget
|
|
@@ -6134,22 +6131,22 @@ var hiprint = (function (t) {
|
|
|
6134
6131
|
return _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.table;
|
|
6135
6132
|
}),
|
|
6136
6133
|
(TablePrintElement.prototype.createTarget = function (t, e, n) {
|
|
6137
|
-
for (var i =
|
|
6134
|
+
for (var i = hiprintJQuery('<div class="hiprint-printElement hiprint-printElement-table" style="position: absolute;"><div class="hiprint-printElement-table-handle"></div><div class="hiprint-printElement-table-content" style="height:100%;width:100%"></span></div>'), o = this.createGridColumnsStructure(n), r = 0; r < o.gridColumns; r++) {
|
|
6138
6135
|
o.getByIndex(r).append(this.getTableHtml(e, n));
|
|
6139
6136
|
}
|
|
6140
6137
|
|
|
6141
6138
|
return i.find(".hiprint-printElement-table-content").append(o.target), i;
|
|
6142
6139
|
}),
|
|
6143
6140
|
(TablePrintElement.prototype.createGridColumnsStructure = function (t) {
|
|
6144
|
-
for (var e =
|
|
6145
|
-
var i =
|
|
6141
|
+
for (var e = hiprintJQuery('<div class="hi-grid-row table-grid-row"></div>'), n = 0; n < this.options.getGridColumns(); n++) {
|
|
6142
|
+
var i = hiprintJQuery('<div class="tableGridColumnsGutterRow hi-grid-col" style="width:' + 100 / this.options.getGridColumns() + '%;"></div>');
|
|
6146
6143
|
e.append(i);
|
|
6147
6144
|
}
|
|
6148
6145
|
|
|
6149
6146
|
var o = this.getGridColumnsFooterFormatter();
|
|
6150
6147
|
|
|
6151
6148
|
if (o) {
|
|
6152
|
-
var r =
|
|
6149
|
+
var r = hiprintJQuery('<div class="hiprint-gridColumnsFooter"></div>');
|
|
6153
6150
|
r.append(o(this.options, this.getData(t), t, [])), e.append(r);
|
|
6154
6151
|
}
|
|
6155
6152
|
|
|
@@ -6162,9 +6159,9 @@ var hiprint = (function (t) {
|
|
|
6162
6159
|
}),
|
|
6163
6160
|
(TablePrintElement.prototype.getTableHtml = function (t, e) {
|
|
6164
6161
|
var n, i;
|
|
6165
|
-
if (!this.getField() && this.options.content) return (n =
|
|
6166
|
-
if (this.printElementType.formatter) return (n =
|
|
6167
|
-
var o =
|
|
6162
|
+
if (!this.getField() && this.options.content) return (n = hiprintJQuery("<div></div>")).append(this.options.content), (i = n.find("table")).addClass("hiprint-printElement-tableTarget"), i;
|
|
6163
|
+
if (this.printElementType.formatter) return (n = hiprintJQuery("<div></div>")).append(this.printElementType.formatter(t)), (i = n.find("table")).addClass("hiprint-printElement-tableTarget"), i;
|
|
6164
|
+
var o = hiprintJQuery('<table class="hiprint-printElement-tableTarget" style="border-collapse: collapse;"></table>');
|
|
6168
6165
|
return o.append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableHead(this.getColumns(), this.options.getWidth() / this.options.getGridColumns())), o.append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableRow(this.getColumns(), t, this.options, this.printElementType)), "no" == this.options.tableFooterRepeat || _table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableFooter(this.printElementType.columns, t, this.options, this.printElementType, e, t).insertBefore(o.find("tbody")), o;
|
|
6169
6166
|
}),
|
|
6170
6167
|
(TablePrintElement.prototype.getEmptyRowTarget = function () {
|
|
@@ -6204,7 +6201,7 @@ var hiprint = (function (t) {
|
|
|
6204
6201
|
h = this.getRowsInSpecificHeight(e, u > 0 ? u : 0 == s ? d - p : t.getContentHeight(s), r, o, s, c, tfh);
|
|
6205
6202
|
l = h.isEnd;
|
|
6206
6203
|
if (u < 0) {
|
|
6207
|
-
n[0].target =
|
|
6204
|
+
n[0].target = hiprintJQuery('<div style="position:absolute;background: red;color: white;padding: 0px 4px;">没有足够空间进行表格分页,请调整页眉/页脚线</div>');
|
|
6208
6205
|
n[0].printLine = p;
|
|
6209
6206
|
n[0].referenceElement = new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_4__.a({
|
|
6210
6207
|
top: this.options.getTop(),
|
|
@@ -6400,30 +6397,30 @@ var hiprint = (function (t) {
|
|
|
6400
6397
|
let nextCol = 1,
|
|
6401
6398
|
colEnd = false;
|
|
6402
6399
|
tr.nextAll().each(function (index) {
|
|
6403
|
-
if (
|
|
6400
|
+
if (hiprintJQuery(this).children().filter("td[rowspan=0]").length > 0 && !rowEnd) {
|
|
6404
6401
|
nextRow += 1;
|
|
6405
6402
|
} else {
|
|
6406
6403
|
rowEnd = true;
|
|
6407
6404
|
}
|
|
6408
|
-
if (
|
|
6405
|
+
if (hiprintJQuery(this).children().filter("td[colspan=0]").length > 0 && !colEnd) {
|
|
6409
6406
|
nextCol += 1;
|
|
6410
6407
|
} else {
|
|
6411
6408
|
colEnd = true;
|
|
6412
6409
|
}
|
|
6413
6410
|
});
|
|
6414
6411
|
tr.children().each(function (i, td) {
|
|
6415
|
-
if (
|
|
6416
|
-
|
|
6417
|
-
|
|
6412
|
+
if (hiprintJQuery(td).attr("rowspan") < 1) {
|
|
6413
|
+
hiprintJQuery(td).attr("rowspan", nextRow);
|
|
6414
|
+
hiprintJQuery(td).css("display", "");
|
|
6418
6415
|
if (e.options.rowsColumnsMergeClean) {
|
|
6419
|
-
|
|
6416
|
+
hiprintJQuery(td).text("");
|
|
6420
6417
|
}
|
|
6421
6418
|
}
|
|
6422
|
-
if (
|
|
6423
|
-
|
|
6424
|
-
|
|
6419
|
+
if (hiprintJQuery(td).attr("colspan") < 1) {
|
|
6420
|
+
hiprintJQuery(td).attr("colspan", nextCol);
|
|
6421
|
+
hiprintJQuery(td).css("display", "");
|
|
6425
6422
|
if (e.options.rowsColumnsMergeClean) {
|
|
6426
|
-
|
|
6423
|
+
hiprintJQuery(td).text("");
|
|
6427
6424
|
}
|
|
6428
6425
|
}
|
|
6429
6426
|
});
|
|
@@ -6534,7 +6531,7 @@ var hiprint = (function (t) {
|
|
|
6534
6531
|
.find(".hiprint-printElement-tableTarget:eq(0)")
|
|
6535
6532
|
.find("thead td")
|
|
6536
6533
|
.bind("click.hiprint", function (e) {
|
|
6537
|
-
var n =
|
|
6534
|
+
var n = hiprintJQuery(e.target).attr("id") || hiprintJQuery(e.target).attr("column-id"),
|
|
6538
6535
|
i = t.getColumnByColumnId(n);
|
|
6539
6536
|
|
|
6540
6537
|
if (i) {
|
|
@@ -6544,7 +6541,7 @@ var hiprint = (function (t) {
|
|
|
6544
6541
|
printElement: t,
|
|
6545
6542
|
customOptionsInput: [
|
|
6546
6543
|
{
|
|
6547
|
-
title: (i.title ||
|
|
6544
|
+
title: (i.title || `hiprintJQuery{i.id}(id)`) + "-列属性",
|
|
6548
6545
|
optionItems: o,
|
|
6549
6546
|
options: i,
|
|
6550
6547
|
callback: function callback (t) {
|
|
@@ -6698,7 +6695,7 @@ var hiprint = (function (t) {
|
|
|
6698
6695
|
(t.resizeTableCellWeight = function (t) {
|
|
6699
6696
|
t.forEach(function (t) {
|
|
6700
6697
|
t.columns.forEach(function (t) {
|
|
6701
|
-
t.hasWidth &&
|
|
6698
|
+
t.hasWidth && hiprintJQuery(t.getTarget()).css("width", t.width + "pt");
|
|
6702
6699
|
});
|
|
6703
6700
|
});
|
|
6704
6701
|
}),
|
|
@@ -6753,7 +6750,7 @@ var hiprint = (function (t) {
|
|
|
6753
6750
|
var t = this,
|
|
6754
6751
|
e = this,
|
|
6755
6752
|
n = [],
|
|
6756
|
-
i =
|
|
6753
|
+
i = hiprintJQuery('<div class="columngrips"/>');
|
|
6757
6754
|
i.width(this.target.width()),
|
|
6758
6755
|
this.rows.forEach(function (o) {
|
|
6759
6756
|
(o.columns || [])
|
|
@@ -6762,19 +6759,19 @@ var hiprint = (function (t) {
|
|
|
6762
6759
|
})
|
|
6763
6760
|
.forEach(function (o, a) {
|
|
6764
6761
|
if (o.getTarget().attr("haswidth")) {
|
|
6765
|
-
var p =
|
|
6762
|
+
var p = hiprintJQuery('<div class="columngrip"><div class="gripResizer"></div></div>');
|
|
6766
6763
|
i.append(p);
|
|
6767
6764
|
var s = new c(p);
|
|
6768
6765
|
n.length > 0 && (n[n.length - 1].nextGrip = s),
|
|
6769
6766
|
n.push(s),
|
|
6770
6767
|
t.syncGrips(o, s),
|
|
6771
|
-
|
|
6768
|
+
hiprintJQuery(p).hidraggable({
|
|
6772
6769
|
axis: "h",
|
|
6773
6770
|
onDrag: function onDrag (t, e, n) {},
|
|
6774
6771
|
moveUnit: "pt",
|
|
6775
6772
|
minMove: 1,
|
|
6776
6773
|
getScale: function getScale () {
|
|
6777
|
-
return (
|
|
6774
|
+
return (hiprintJQuery(".hiprint-printPaper")[0].style.transform && parseFloat(hiprintJQuery(".hiprint-printPaper")[0].style.transform.slice(6, -1))) || 1;
|
|
6778
6775
|
},
|
|
6779
6776
|
onBeforeDrag: function onBeforeDrag (t) {
|
|
6780
6777
|
if (((g.a.instance.draging = !0), !s.nextGrip)) return !1;
|
|
@@ -6809,15 +6806,15 @@ var hiprint = (function (t) {
|
|
|
6809
6806
|
var t = this,
|
|
6810
6807
|
e = this,
|
|
6811
6808
|
n = [],
|
|
6812
|
-
i =
|
|
6809
|
+
i = hiprintJQuery('<div class="rowgrips"/>');
|
|
6813
6810
|
this.rows.forEach(function (o, a) {
|
|
6814
|
-
var p =
|
|
6811
|
+
var p = hiprintJQuery('<div class="rowgrip"><div class="gripResizer"></div></div>');
|
|
6815
6812
|
i.append(p);
|
|
6816
6813
|
var s = new c(p);
|
|
6817
6814
|
n.push(s),
|
|
6818
6815
|
a > 0 &&
|
|
6819
6816
|
a < t.rows.length &&
|
|
6820
|
-
|
|
6817
|
+
hiprintJQuery(p).hidraggable({
|
|
6821
6818
|
axis: "v",
|
|
6822
6819
|
onDrag: function onDrag (t, e, n) {},
|
|
6823
6820
|
moveUnit: "pt",
|
|
@@ -7059,15 +7056,15 @@ var hiprint = (function (t) {
|
|
|
7059
7056
|
}),
|
|
7060
7057
|
(t.prototype.init = function (t) {
|
|
7061
7058
|
var e = this;
|
|
7062
|
-
|
|
7059
|
+
hiprintJQuery(this.target).addClass("hitable"),
|
|
7063
7060
|
(this.optionsCoat.onBeforEdit = function (n) {
|
|
7064
7061
|
if (e.optionsCoat.options.onBeforEdit && !1 === t.onBeforEdit(n)) return !1;
|
|
7065
7062
|
return e.optionsCoat.editingCell && e.optionsCoat.editingCell.endEdit(), !0;
|
|
7066
7063
|
}),
|
|
7067
|
-
|
|
7064
|
+
hiprintJQuery(this.target).mousedown(function (t) {
|
|
7068
7065
|
e.optionsCoat.isLeftMouseButtonDown = !0;
|
|
7069
7066
|
}),
|
|
7070
|
-
|
|
7067
|
+
hiprintJQuery(this.target).mouseup(function (t) {
|
|
7071
7068
|
e.optionsCoat.isLeftMouseButtonDown = !1;
|
|
7072
7069
|
}),
|
|
7073
7070
|
this.initContext(),
|
|
@@ -7099,7 +7096,7 @@ var hiprint = (function (t) {
|
|
|
7099
7096
|
return t
|
|
7100
7097
|
.map(function (t, n) {
|
|
7101
7098
|
var i = new l.a();
|
|
7102
|
-
return i.init(e.optionsCoat,
|
|
7099
|
+
return i.init(e.optionsCoat, hiprintJQuery(n)), i;
|
|
7103
7100
|
})
|
|
7104
7101
|
.get();
|
|
7105
7102
|
}),
|
|
@@ -7179,7 +7176,7 @@ var hiprint = (function (t) {
|
|
|
7179
7176
|
(t.prototype.initContext = function () {
|
|
7180
7177
|
var t = this;
|
|
7181
7178
|
if (!this.optionsCoat.options.isEnableContextMenu) return !1;
|
|
7182
|
-
|
|
7179
|
+
hiprintJQuery(this.handle).hicontextMenu({
|
|
7183
7180
|
menus: [
|
|
7184
7181
|
{
|
|
7185
7182
|
text: "在上方插入行",
|
|
@@ -7407,7 +7404,7 @@ var hiprint = (function (t) {
|
|
|
7407
7404
|
t.forEach(function (t) {
|
|
7408
7405
|
var i = new r(t),
|
|
7409
7406
|
o = n.getColumnByColumnId(i.columnId),
|
|
7410
|
-
p = o ?
|
|
7407
|
+
p = o ? hiprintJQuery.extend(o, i) : new a.a(i);
|
|
7411
7408
|
e.push(p);
|
|
7412
7409
|
}),
|
|
7413
7410
|
i.columns.push(new o.a(e));
|
|
@@ -7544,7 +7541,7 @@ var hiprint = (function (t) {
|
|
|
7544
7541
|
if (op.v.length) {
|
|
7545
7542
|
op.v.css("left", op[t] + "pt");
|
|
7546
7543
|
} else {
|
|
7547
|
-
op.v =
|
|
7544
|
+
op.v = hiprintJQuery("<div class='verLine id-" + op.id + "'></div>");
|
|
7548
7545
|
op.v.css("height", h + "pt");
|
|
7549
7546
|
op.v.css("left", op[t] + "pt");
|
|
7550
7547
|
pc.append(op.v);
|
|
@@ -7556,7 +7553,7 @@ var hiprint = (function (t) {
|
|
|
7556
7553
|
|
|
7557
7554
|
function removeVerLine (op) {
|
|
7558
7555
|
if (op) op.v && op.v.remove();
|
|
7559
|
-
|
|
7556
|
+
hiprintJQuery(".verLine").remove();
|
|
7560
7557
|
}
|
|
7561
7558
|
|
|
7562
7559
|
function createHorLine (op, cp, t, tt, w, pc) {
|
|
@@ -7564,7 +7561,7 @@ var hiprint = (function (t) {
|
|
|
7564
7561
|
if (op.h.length) {
|
|
7565
7562
|
op.h.css("top", op[t] + "pt");
|
|
7566
7563
|
} else {
|
|
7567
|
-
op.h =
|
|
7564
|
+
op.h = hiprintJQuery("<div class='horLine id-" + op.id + "'></div>");
|
|
7568
7565
|
op.h.css("width", w + "pt");
|
|
7569
7566
|
op.h.css("top", op[t] + "pt");
|
|
7570
7567
|
pc.append(op.h);
|
|
@@ -7576,7 +7573,7 @@ var hiprint = (function (t) {
|
|
|
7576
7573
|
|
|
7577
7574
|
function removeHorLine (op) {
|
|
7578
7575
|
if (op) op.h && op.h.remove();
|
|
7579
|
-
|
|
7576
|
+
hiprintJQuery(".horLine").remove();
|
|
7580
7577
|
}
|
|
7581
7578
|
|
|
7582
7579
|
function o (i) {
|
|
@@ -7620,8 +7617,8 @@ var hiprint = (function (t) {
|
|
|
7620
7617
|
return {
|
|
7621
7618
|
...el.options,
|
|
7622
7619
|
distance,
|
|
7623
|
-
h:
|
|
7624
|
-
v:
|
|
7620
|
+
h: hiprintJQuery(".horLine.id-" + el.id),
|
|
7621
|
+
v: hiprintJQuery(".verLine.id-" + el.id),
|
|
7625
7622
|
bottom: top + height,
|
|
7626
7623
|
right: left + width,
|
|
7627
7624
|
vCenter,
|
|
@@ -7885,7 +7882,6 @@ var hiprint = (function (t) {
|
|
|
7885
7882
|
!1
|
|
7886
7883
|
);
|
|
7887
7884
|
}
|
|
7888
|
-
|
|
7889
7885
|
(t.fn.hidraggable = function (e, n) {
|
|
7890
7886
|
return "string" == typeof e
|
|
7891
7887
|
? t.fn.hidraggable.methods[e](this, n)
|
|
@@ -8073,7 +8069,7 @@ var hiprint = (function (t) {
|
|
|
8073
8069
|
onStopDrag: function onStopDrag (t) {},
|
|
8074
8070
|
}),
|
|
8075
8071
|
(t.fn.hidraggable.isDragging = !1);
|
|
8076
|
-
})(
|
|
8072
|
+
})(hiprintJQuery);
|
|
8077
8073
|
},
|
|
8078
8074
|
function (t, e) {
|
|
8079
8075
|
!(function (t) {
|
|
@@ -8137,11 +8133,11 @@ var hiprint = (function (t) {
|
|
|
8137
8133
|
onDragLeave: function onDragLeave (t, e) {},
|
|
8138
8134
|
onDrop: function onDrop (t, e) {},
|
|
8139
8135
|
});
|
|
8140
|
-
})(
|
|
8136
|
+
})(hiprintJQuery);
|
|
8141
8137
|
},
|
|
8142
8138
|
function (t, e) {
|
|
8143
8139
|
var n;
|
|
8144
|
-
((n =
|
|
8140
|
+
((n = hiprintJQuery).hiprintparser = {
|
|
8145
8141
|
parseOptions: function parseOptions (t, e) {
|
|
8146
8142
|
var i = n(t),
|
|
8147
8143
|
o = {},
|
|
@@ -8180,7 +8176,7 @@ var hiprint = (function (t) {
|
|
|
8180
8176
|
},
|
|
8181
8177
|
function (t, e) {
|
|
8182
8178
|
var n, i, o;
|
|
8183
|
-
(n =
|
|
8179
|
+
(n = hiprintJQuery),
|
|
8184
8180
|
(i = {
|
|
8185
8181
|
maxPanelIndex: 0,
|
|
8186
8182
|
}),
|
|
@@ -8597,7 +8593,7 @@ var hiprint = (function (t) {
|
|
|
8597
8593
|
},
|
|
8598
8594
|
function (t, e) {
|
|
8599
8595
|
var n, i;
|
|
8600
|
-
|
|
8596
|
+
hiprintJQuery,
|
|
8601
8597
|
(n = "connected"),
|
|
8602
8598
|
(i = "reconnecting"),
|
|
8603
8599
|
(window.hiwebSocket = {
|
|
@@ -9043,7 +9039,7 @@ var hiprint = (function (t) {
|
|
|
9043
9039
|
var n, i;
|
|
9044
9040
|
window,
|
|
9045
9041
|
document,
|
|
9046
|
-
(n =
|
|
9042
|
+
(n = hiprintJQuery),
|
|
9047
9043
|
((i = function i (t, e) {
|
|
9048
9044
|
this.init(t, e);
|
|
9049
9045
|
}).prototype = {
|
|
@@ -9074,27 +9070,27 @@ var hiprint = (function (t) {
|
|
|
9074
9070
|
i = e;
|
|
9075
9071
|
|
|
9076
9072
|
if (t && t.length) {
|
|
9077
|
-
var o =
|
|
9073
|
+
var o = hiprintJQuery('<ul class="hicontextmenu" style="z-index: 9999;"></ul>');
|
|
9078
9074
|
i || (i = o).addClass("hicontextmenuroot"),
|
|
9079
|
-
|
|
9075
|
+
hiprintJQuery.each(t, function (t, e) {
|
|
9080
9076
|
var i = !!e.disable && e.disable(),
|
|
9081
|
-
r =
|
|
9077
|
+
r = hiprintJQuery('<li class="hicontextmenuitem"><a href="javascript:void(0);"><span>' + (e.text || "") + "</span></a></li>");
|
|
9082
9078
|
i && r.addClass("disable"),
|
|
9083
9079
|
e.borderBottom && r.addClass("borderBottom"),
|
|
9084
9080
|
e.menus && (r.addClass("hicontextsubmenu"), n.renderMenu(e.menus, r)),
|
|
9085
9081
|
e.callback &&
|
|
9086
9082
|
r.click(function (t) {
|
|
9087
|
-
|
|
9083
|
+
hiprintJQuery(this).hasClass("disable") ? t.stopPropagation() : (hiprintJQuery(".hicontextmenuroot").remove(), e.callback(), t.stopPropagation());
|
|
9088
9084
|
}),
|
|
9089
9085
|
o.append(r);
|
|
9090
9086
|
}),
|
|
9091
9087
|
e && e.append(o);
|
|
9092
9088
|
}
|
|
9093
9089
|
|
|
9094
|
-
e ||
|
|
9090
|
+
e || hiprintJQuery("body").append(i).find(".hicontextmenuroot").hide();
|
|
9095
9091
|
},
|
|
9096
9092
|
setPosition: function setPosition (t) {
|
|
9097
|
-
|
|
9093
|
+
hiprintJQuery(".hicontextmenuroot")
|
|
9098
9094
|
.css({
|
|
9099
9095
|
left: t.pageX + 2,
|
|
9100
9096
|
top: t.pageY + 2,
|
|
@@ -9104,7 +9100,7 @@ var hiprint = (function (t) {
|
|
|
9104
9100
|
eventBind: function eventBind () {
|
|
9105
9101
|
var t = this;
|
|
9106
9102
|
this.ele.on("contextmenu", function (e) {
|
|
9107
|
-
|
|
9103
|
+
hiprintJQuery(".hicontextmenuroot").remove(), e.preventDefault(), t.renderMenu(t.opts.menus), t.setPosition(e), t.opts.target && "function" == typeof t.opts.target && t.opts.target(n(this));
|
|
9108
9104
|
}),
|
|
9109
9105
|
n("body").on("click", function () {
|
|
9110
9106
|
n(".hicontextmenuroot").remove();
|
|
@@ -9202,19 +9198,19 @@ var hiprint = (function (t) {
|
|
|
9202
9198
|
|
|
9203
9199
|
return (
|
|
9204
9200
|
(t.prototype.createPrintElementTypeHtml = function (t, e) {
|
|
9205
|
-
var n =
|
|
9201
|
+
var n = hiprintJQuery('<ul class="hiprint-printElement-type"></ul>');
|
|
9206
9202
|
return (
|
|
9207
9203
|
e.forEach(function (t) {
|
|
9208
|
-
var e =
|
|
9204
|
+
var e = hiprintJQuery("<li></li>");
|
|
9209
9205
|
e.append('<span class="title">' + t.name + "</span>");
|
|
9210
|
-
var i =
|
|
9206
|
+
var i = hiprintJQuery("<ul></ul>");
|
|
9211
9207
|
e.append(i),
|
|
9212
9208
|
t.printElementTypes.forEach(function (t) {
|
|
9213
9209
|
i.append('<li><a class="ep-draggable-item" tid="' + t.tid + '"> ' + t.getText() + " </a></li>");
|
|
9214
9210
|
}),
|
|
9215
9211
|
n.append(e);
|
|
9216
9212
|
}),
|
|
9217
|
-
|
|
9213
|
+
hiprintJQuery(t).append(n),
|
|
9218
9214
|
n.find(".ep-draggable-item")
|
|
9219
9215
|
);
|
|
9220
9216
|
}),
|
|
@@ -9403,7 +9399,7 @@ var hiprint = (function (t) {
|
|
|
9403
9399
|
return n && (e = n(e, this.options, this._currenttemplateData)), e || "";
|
|
9404
9400
|
}),
|
|
9405
9401
|
(e.prototype.createTarget = function (t, e) {
|
|
9406
|
-
var n =
|
|
9402
|
+
var n = hiprintJQuery('<div class="hiprint-printElement hiprint-printElement-image" style="position: absolute;"><div class="hiprint-printElement-image-content" style="height:100%;width:100%"></div></div>');
|
|
9407
9403
|
return this.updateTargetImage(n, t, e), n;
|
|
9408
9404
|
}),
|
|
9409
9405
|
(e.prototype.initSizeByHtml = function (e) {
|
|
@@ -9495,7 +9491,7 @@ var hiprint = (function (t) {
|
|
|
9495
9491
|
(this.paperNumberContinue = s1),
|
|
9496
9492
|
(this.paperNumberFormat = l),
|
|
9497
9493
|
(this.referenceElement = d
|
|
9498
|
-
?
|
|
9494
|
+
? hiprintJQuery.extend({}, d)
|
|
9499
9495
|
: new E.a({
|
|
9500
9496
|
top: 0,
|
|
9501
9497
|
left: 0,
|
|
@@ -9540,11 +9536,11 @@ var hiprint = (function (t) {
|
|
|
9540
9536
|
t ? this.paperContentTarget.css("top", t + "pt") : (this.paperContentTarget[0].style.top = "");
|
|
9541
9537
|
}),
|
|
9542
9538
|
(t.prototype.createTarget = function () {
|
|
9543
|
-
(this.target =
|
|
9539
|
+
(this.target = hiprintJQuery('<div class="hiprint-printPaper"><div class="hiprint-printPaper-content"></div></div>')), (this.paperContentTarget = this.target.find(".hiprint-printPaper-content")), this.target.css("width", this.mmwidth + "mm"), this.target.css("height", this.mmheight - p.a.instance.paperHeightTrim + "mm"), this.target.attr("original-height", this.mmheight), this.zoom(this.scale);
|
|
9544
9540
|
}),
|
|
9545
9541
|
(t.prototype.createHeaderLine = function () {
|
|
9546
9542
|
var t = this;
|
|
9547
|
-
(this.headerLinetarget =
|
|
9543
|
+
(this.headerLinetarget = hiprintJQuery('<div class="hiprint-headerLine" style="position: absolute;width: 100%;border-top: 1px dashed #c9bebe;height: 7pt;"></div>')),
|
|
9548
9544
|
this.headerLinetarget.css("top", (this.paperHeader || -1) + "pt"),
|
|
9549
9545
|
0 == this.paperHeader && this.headerLinetarget.addClass("hideheaderLinetarget"),
|
|
9550
9546
|
this.paperContentTarget.append(this.headerLinetarget),
|
|
@@ -9557,7 +9553,7 @@ var hiprint = (function (t) {
|
|
|
9557
9553
|
}),
|
|
9558
9554
|
(t.prototype.createFooterLine = function () {
|
|
9559
9555
|
var t = this;
|
|
9560
|
-
(this.footerLinetarget =
|
|
9556
|
+
(this.footerLinetarget = hiprintJQuery('<div class="hiprint-footerLine" style="position: absolute;width: 100%;border-top: 1px dashed #c9bebe;height: 7pt;"></div>')),
|
|
9561
9557
|
this.footerLinetarget.css("top", parseInt(this.paperFooter.toString()) + "pt"),
|
|
9562
9558
|
this.paperFooter == this.height && (this.footerLinetarget.css("top", this.mmheight - p.a.instance.paperHeightTrim + "mm"), this.footerLinetarget.addClass("hidefooterLinetarget")),
|
|
9563
9559
|
this.paperContentTarget.append(this.footerLinetarget),
|
|
@@ -9572,7 +9568,7 @@ var hiprint = (function (t) {
|
|
|
9572
9568
|
var e = this,
|
|
9573
9569
|
n = this.target.find(".hiprint-paperNumber");
|
|
9574
9570
|
if (n.length) return n.html(t), n;
|
|
9575
|
-
var i =
|
|
9571
|
+
var i = hiprintJQuery('<span class="hiprint-paperNumber" style="position: absolute">' + t + "</span>");
|
|
9576
9572
|
return (
|
|
9577
9573
|
i.css("top", this.paperNumberTop + "pt"),
|
|
9578
9574
|
i.css("left", this.paperNumberLeft + "pt"),
|
|
@@ -9610,10 +9606,10 @@ var hiprint = (function (t) {
|
|
|
9610
9606
|
this.createRuler(),
|
|
9611
9607
|
this.createWaterMark(true, this.panelIdx, this.watermarkOptions),
|
|
9612
9608
|
this.resetPaperNumber(this.paperNumberTarget),
|
|
9613
|
-
|
|
9609
|
+
hiprintJQuery(this.paperNumberTarget).bind("dblclick.hiprint", function () {
|
|
9614
9610
|
null == e.paperNumberDisabled && (e.paperNumberDisabled = !1), (e.paperNumberDisabled = !e.paperNumberDisabled), e.resetPaperNumber(e.paperNumberTarget), e.triggerOnPaperBaseInfoChanged("初始");
|
|
9615
9611
|
}),
|
|
9616
|
-
|
|
9612
|
+
hiprintJQuery(this.paperNumberTarget).bind("click.hiprint", function () {
|
|
9617
9613
|
o.a.event.trigger("BuildCustomOptionSettingEventKey_" + e.templateId, {
|
|
9618
9614
|
options: {
|
|
9619
9615
|
paperNumberFormat: e.paperNumberFormat,
|
|
@@ -9798,7 +9794,7 @@ var hiprint = (function (t) {
|
|
|
9798
9794
|
i.html(o);
|
|
9799
9795
|
}),
|
|
9800
9796
|
(e.prototype.createTarget = function (t, e) {
|
|
9801
|
-
var n =
|
|
9797
|
+
var n = hiprintJQuery('<div class="hiprint-printElement hiprint-printElement-longText" style="position: absolute;"><div class="hiprint-printElement-longText-content hiprint-printElement-content" style="height:100%;width:100%"></div></div>');
|
|
9802
9798
|
return this.updateTargetText(n, t, e), n;
|
|
9803
9799
|
}),
|
|
9804
9800
|
(e.prototype.getText = function (t, e) {
|
|
@@ -10162,7 +10158,7 @@ var hiprint = (function (t) {
|
|
|
10162
10158
|
// u = parseInt(o.a.pt.toPx(this.options.getHeight() || 20)),
|
|
10163
10159
|
var lpt = this.options.getWidth() || 20,
|
|
10164
10160
|
upt = this.options.getHeight() || 20;
|
|
10165
|
-
var box =
|
|
10161
|
+
var box = hiprintJQuery("<div></div>").css({
|
|
10166
10162
|
width: (lpt > upt ? upt : lpt) + "pt",
|
|
10167
10163
|
height: (lpt > upt ? upt : lpt) + "pt",
|
|
10168
10164
|
display: "inline-block",
|
|
@@ -10187,7 +10183,7 @@ var hiprint = (function (t) {
|
|
|
10187
10183
|
("barcode" != this.options.getTextType() && "qrcode" != this.options.getTextType()) || this.updateTargetText(this.designTarget, this.getTitle(), this.getData());
|
|
10188
10184
|
}),
|
|
10189
10185
|
(e.prototype.createTarget = function (t, e, n) {
|
|
10190
|
-
var i =
|
|
10186
|
+
var i = hiprintJQuery('<div tabindex="1" class="hiprint-printElement hiprint-printElement-text" style="position: absolute;"><div class="hiprint-printElement-text-content hiprint-printElement-content" style="height:100%;width:100%"></div></div>');
|
|
10191
10187
|
return this.updateTargetText(i, t, e, n), i;
|
|
10192
10188
|
}),
|
|
10193
10189
|
(e.prototype.getHtml = function (t, e, n) {
|
|
@@ -10285,7 +10281,7 @@ var hiprint = (function (t) {
|
|
|
10285
10281
|
return p.a.instance.html;
|
|
10286
10282
|
}),
|
|
10287
10283
|
(e.prototype.createTarget = function (t, e) {
|
|
10288
|
-
var n =
|
|
10284
|
+
var n = hiprintJQuery('<div class="hiprint-printElement hiprint-printElement-html" style="position: absolute;"><div class="hiprint-printElement-html-content" style="height:100%;width:100%"></div></div>'),
|
|
10289
10285
|
i = this.getFormatter();
|
|
10290
10286
|
|
|
10291
10287
|
if (i) {
|
|
@@ -10347,7 +10343,7 @@ var hiprint = (function (t) {
|
|
|
10347
10343
|
return p.a.instance.vline;
|
|
10348
10344
|
}),
|
|
10349
10345
|
(e.prototype.createTarget = function (t, e) {
|
|
10350
|
-
return
|
|
10346
|
+
return hiprintJQuery('<div class="hiprint-printElement hiprint-printElement-vline" style="border-left:1px solid;position: absolute;"></div>');
|
|
10351
10347
|
}),
|
|
10352
10348
|
(e.prototype.getReizeableShowPoints = function () {
|
|
10353
10349
|
return ["s", "r"];
|
|
@@ -10404,7 +10400,7 @@ var hiprint = (function (t) {
|
|
|
10404
10400
|
return p.a.instance.hline;
|
|
10405
10401
|
}),
|
|
10406
10402
|
(e.prototype.createTarget = function (t, e) {
|
|
10407
|
-
return
|
|
10403
|
+
return hiprintJQuery('<div class="hiprint-printElement hiprint-printElement-hline" style="border-top:1px solid;position: absolute;"></div>');
|
|
10408
10404
|
}),
|
|
10409
10405
|
(e.prototype.getReizeableShowPoints = function () {
|
|
10410
10406
|
return ["e", "r"];
|
|
@@ -10458,7 +10454,7 @@ var hiprint = (function (t) {
|
|
|
10458
10454
|
return p.a.instance.rect;
|
|
10459
10455
|
}),
|
|
10460
10456
|
(e.prototype.createTarget = function (t, e) {
|
|
10461
|
-
return
|
|
10457
|
+
return hiprintJQuery('<div class="hiprint-printElement hiprint-printElement-rect" style="border:1px solid;position: absolute;"></div>');
|
|
10462
10458
|
}),
|
|
10463
10459
|
(e.prototype.getHtml = function (t, e, n) {
|
|
10464
10460
|
return this.getHtml2(t, e, n);
|
|
@@ -10512,7 +10508,7 @@ var hiprint = (function (t) {
|
|
|
10512
10508
|
return p.a.instance.oval;
|
|
10513
10509
|
}),
|
|
10514
10510
|
(e.prototype.createTarget = function (t, e) {
|
|
10515
|
-
return
|
|
10511
|
+
return hiprintJQuery('<div class="hiprint-printElement hiprint-printElement-oval" style="border:1px solid;position: absolute;border-radius: 50%;"></div>');
|
|
10516
10512
|
}),
|
|
10517
10513
|
(e.prototype.getHtml = function (t, e, n) {
|
|
10518
10514
|
return this.getHtml2(t, e, n);
|
|
@@ -10544,7 +10540,7 @@ var hiprint = (function (t) {
|
|
|
10544
10540
|
}),
|
|
10545
10541
|
(t.prototype.createPrintElement = function (t) {
|
|
10546
10542
|
var e = {};
|
|
10547
|
-
return
|
|
10543
|
+
return hiprintJQuery.extend(e, t || {}), W.createPrintElement(this, e);
|
|
10548
10544
|
}),
|
|
10549
10545
|
(t.prototype.getPrintElementTypeEntity = function () {
|
|
10550
10546
|
return new c({
|
|
@@ -10695,7 +10691,7 @@ var hiprint = (function (t) {
|
|
|
10695
10691
|
tt(e, t),
|
|
10696
10692
|
(e.prototype.createPrintElement = function (t) {
|
|
10697
10693
|
var e = {};
|
|
10698
|
-
return
|
|
10694
|
+
return hiprintJQuery.extend(e, t || {}), W.createPrintElement(this, e);
|
|
10699
10695
|
}),
|
|
10700
10696
|
(e.prototype.getPrintElementTypeEntity = function () {
|
|
10701
10697
|
return new c({
|
|
@@ -10750,8 +10746,8 @@ var hiprint = (function (t) {
|
|
|
10750
10746
|
minMove: 4,
|
|
10751
10747
|
onBeforeDrag: function onBeforeDrag (e) {
|
|
10752
10748
|
s.a.instance.draging = !0;
|
|
10753
|
-
var tid =
|
|
10754
|
-
var n = t.getElementType(tid,
|
|
10749
|
+
var tid = hiprintJQuery(e.data.target).attr("tid");
|
|
10750
|
+
var n = t.getElementType(tid, hiprintJQuery(e.data.target).attr("ptype"));
|
|
10755
10751
|
if (!n) {
|
|
10756
10752
|
throw new Error(`请检查 hiprint.init 的 provider 是否配置了 [${tid}]`);
|
|
10757
10753
|
return !1;
|
|
@@ -10926,7 +10922,7 @@ var hiprint = (function (t) {
|
|
|
10926
10922
|
}),
|
|
10927
10923
|
(t.prototype.bindShortcutKeyEvent = function () {
|
|
10928
10924
|
var n = this;
|
|
10929
|
-
|
|
10925
|
+
hiprintJQuery(document).keydown(function (e) {
|
|
10930
10926
|
if ("INPUT" == e.target.tagName) return;
|
|
10931
10927
|
// ctrl/command + z 撤销 / ctrl/command + shift + z 重做
|
|
10932
10928
|
if ((e.ctrlKey || e.metaKey) && 90 == e.keyCode) {
|
|
@@ -10952,7 +10948,7 @@ var hiprint = (function (t) {
|
|
|
10952
10948
|
});
|
|
10953
10949
|
}),
|
|
10954
10950
|
(t.prototype.pasteJson = function (e) {
|
|
10955
|
-
var copyArea =
|
|
10951
|
+
var copyArea = hiprintJQuery("#copyArea");
|
|
10956
10952
|
if (!copyArea.length) return;
|
|
10957
10953
|
try {
|
|
10958
10954
|
var json = copyArea.text();
|
|
@@ -10978,7 +10974,7 @@ var hiprint = (function (t) {
|
|
|
10978
10974
|
console.log("pasteJson success");
|
|
10979
10975
|
o.a.event.trigger("hiprintTemplateDataChanged_" + n.templateId, "复制");
|
|
10980
10976
|
// 点击克隆出来的元素
|
|
10981
|
-
a.designTarget.children(".resize-panel").trigger(
|
|
10977
|
+
a.designTarget.children(".resize-panel").trigger(hiprintJQuery.Event("click"));
|
|
10982
10978
|
} catch (e) {
|
|
10983
10979
|
console.error("pasteJson error", e);
|
|
10984
10980
|
}
|
|
@@ -11144,7 +11140,7 @@ var hiprint = (function (t) {
|
|
|
11144
11140
|
);
|
|
11145
11141
|
}),
|
|
11146
11142
|
(t.prototype.createTarget = function () {
|
|
11147
|
-
var t =
|
|
11143
|
+
var t = hiprintJQuery('<div class="hiprint-printPanel panel-index-' + this.index + '"></div>');
|
|
11148
11144
|
return this.css(t), t;
|
|
11149
11145
|
}),
|
|
11150
11146
|
(t.prototype.droppablePaper = function (t) {
|
|
@@ -11233,7 +11229,7 @@ var hiprint = (function (t) {
|
|
|
11233
11229
|
}),
|
|
11234
11230
|
(t.prototype.addPrintTable = function (t) {
|
|
11235
11231
|
if (((t.printElementType = t.printElementType || {}), (t.printElementType.type = "table"), t.options && t.options.columns)) {
|
|
11236
|
-
var e =
|
|
11232
|
+
var e = hiprintJQuery.extend({}, t.options.columns);
|
|
11237
11233
|
(t.printElementType.columns = e.columns), (e.columns = void 0);
|
|
11238
11234
|
}
|
|
11239
11235
|
|
|
@@ -11360,7 +11356,7 @@ var hiprint = (function (t) {
|
|
|
11360
11356
|
n = this.designPaper.getTarget();
|
|
11361
11357
|
var ptr = this.designPaper.scale || 1;
|
|
11362
11358
|
this.mouseRect.target ||
|
|
11363
|
-
((this.mouseRect.target =
|
|
11359
|
+
((this.mouseRect.target = hiprintJQuery('<div tabindex="1" class="mouseRect" style="z-index:2;position: absolute;opacity:0.2;border: 1px dashed #000;background-color:#31676f;"><span></span></div>')),
|
|
11364
11360
|
n.find(".hiprint-printPaper-content").append(this.mouseRect.target),
|
|
11365
11361
|
this.bingKeyboardMoveEvent(this.mouseRect.target),
|
|
11366
11362
|
this.mouseRect.target.hidraggable({
|
|
@@ -11497,7 +11493,7 @@ var hiprint = (function (t) {
|
|
|
11497
11493
|
var n = this;
|
|
11498
11494
|
(this.printElementOptionSettingPanel = {}),
|
|
11499
11495
|
(this.printTemplate = t),
|
|
11500
|
-
(this.settingContainer =
|
|
11496
|
+
(this.settingContainer = hiprintJQuery(e)),
|
|
11501
11497
|
o.a.event.on(t.getPrintElementSelectEventKey(), function (t) {
|
|
11502
11498
|
n.buildSetting(t);
|
|
11503
11499
|
}),
|
|
@@ -11544,11 +11540,11 @@ var hiprint = (function (t) {
|
|
|
11544
11540
|
e.clearSettingContainer();
|
|
11545
11541
|
var r;
|
|
11546
11542
|
if (tabs.length) {
|
|
11547
|
-
r =
|
|
11543
|
+
r = hiprintJQuery('<div class="prop-tabs"><ul class="prop-tab-items"></ul></div>');
|
|
11548
11544
|
tabs.forEach(function (tab) {
|
|
11549
|
-
var item =
|
|
11545
|
+
var item = hiprintJQuery('<li class="prop-tab-item"><span class="tab-title">' + tab.name + "</span></li>");
|
|
11550
11546
|
r.find(".prop-tab-items").append(item);
|
|
11551
|
-
var options =
|
|
11547
|
+
var options = hiprintJQuery('<div class="hiprint-option-items" data-title="' + tab.name + '"></div>');
|
|
11552
11548
|
tab.list.forEach(function (t) {
|
|
11553
11549
|
t.submit = function (t) {
|
|
11554
11550
|
i.submitOption();
|
|
@@ -11568,9 +11564,9 @@ var hiprint = (function (t) {
|
|
|
11568
11564
|
}
|
|
11569
11565
|
}
|
|
11570
11566
|
n.find("textarea").bind("dblclick.textarea", function (event) {
|
|
11571
|
-
if (
|
|
11567
|
+
if (!hiprintJQuery(this).val()) {
|
|
11572
11568
|
var placeholder = event.target.placeholder || "";
|
|
11573
|
-
|
|
11569
|
+
hiprintJQuery(this).val(placeholder);
|
|
11574
11570
|
}
|
|
11575
11571
|
});
|
|
11576
11572
|
});
|
|
@@ -11596,9 +11592,9 @@ var hiprint = (function (t) {
|
|
|
11596
11592
|
13 === e.keyCode && t.callback(n.getValueByOptionItems(tableColumn));
|
|
11597
11593
|
});
|
|
11598
11594
|
options.find("textarea").bind("dblclick.textarea", function (event) {
|
|
11599
|
-
if (
|
|
11595
|
+
if (!hiprintJQuery(this).val()) {
|
|
11600
11596
|
var placeholder = event.target.placeholder || "";
|
|
11601
|
-
|
|
11597
|
+
hiprintJQuery(this).val(placeholder);
|
|
11602
11598
|
}
|
|
11603
11599
|
});
|
|
11604
11600
|
});
|
|
@@ -11606,7 +11602,7 @@ var hiprint = (function (t) {
|
|
|
11606
11602
|
r.append(options);
|
|
11607
11603
|
});
|
|
11608
11604
|
} else {
|
|
11609
|
-
r =
|
|
11605
|
+
r = hiprintJQuery('<div class="hiprint-option-items"></div>');
|
|
11610
11606
|
i.getPrintElementOptionItems().forEach(function (t) {
|
|
11611
11607
|
t.submit = function (t) {
|
|
11612
11608
|
i.submitOption();
|
|
@@ -11628,18 +11624,18 @@ var hiprint = (function (t) {
|
|
|
11628
11624
|
}
|
|
11629
11625
|
});
|
|
11630
11626
|
}
|
|
11631
|
-
var a =
|
|
11632
|
-
p =
|
|
11627
|
+
var a = hiprintJQuery('<button class="hiprint-option-item-settingBtn hiprint-option-item-submitBtn"\n type="button">确定</button>'),
|
|
11628
|
+
p = hiprintJQuery('<button class="hiprint-option-item-settingBtn hiprint-option-item-deleteBtn"\n type="button">删除</button>');
|
|
11633
11629
|
r.append(a);
|
|
11634
11630
|
i.options.draggable != false && r.append(p); // draggable 为 false 时不显示参数面板 删除 按钮
|
|
11635
11631
|
if (tabs.length) {
|
|
11636
11632
|
r.on("click", ".prop-tab-item", function () {
|
|
11637
|
-
var
|
|
11638
|
-
var index =
|
|
11633
|
+
var hiprintJQueryli = hiprintJQuery(this);
|
|
11634
|
+
var index = hiprintJQueryli.index();
|
|
11639
11635
|
// 上次点击tab的index
|
|
11640
11636
|
e.settingContainer.data("last-index", index);
|
|
11641
|
-
|
|
11642
|
-
|
|
11637
|
+
hiprintJQueryli.addClass("active");
|
|
11638
|
+
hiprintJQueryli.siblings().removeClass("active");
|
|
11643
11639
|
var options = r.find(".hiprint-option-items:eq(" + index + ")");
|
|
11644
11640
|
options.addClass("active");
|
|
11645
11641
|
options.siblings().removeClass("active");
|
|
@@ -11698,7 +11694,7 @@ var hiprint = (function (t) {
|
|
|
11698
11694
|
var e = lt.a.getItem(t);
|
|
11699
11695
|
e && o.push(e);
|
|
11700
11696
|
});
|
|
11701
|
-
var r =
|
|
11697
|
+
var r = hiprintJQuery('<div class="hiprint-option-items"></div>');
|
|
11702
11698
|
t.title && r.append('<div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label hiprint-option-title">\n ' + t.title + "\n </div>\n </div>"),
|
|
11703
11699
|
o.forEach(function (e) {
|
|
11704
11700
|
(e.submit = function (e) {
|
|
@@ -11707,7 +11703,7 @@ var hiprint = (function (t) {
|
|
|
11707
11703
|
r.append(e.createTarget(n.printTemplate, t.options, void 0)),
|
|
11708
11704
|
e.setValue(t.options[e.name], t.options, void 0);
|
|
11709
11705
|
});
|
|
11710
|
-
var a =
|
|
11706
|
+
var a = hiprintJQuery('<button class="hiprint-option-item-settingBtn hiprint-option-item-submitBtn"\n type="button">确定</button>');
|
|
11711
11707
|
r.append(a),
|
|
11712
11708
|
a.bind("click.submitOption", function () {
|
|
11713
11709
|
t.callback(n.getValueByOptionItems(o));
|
|
@@ -11734,7 +11730,7 @@ var hiprint = (function (t) {
|
|
|
11734
11730
|
})(),
|
|
11735
11731
|
dt = (function () {
|
|
11736
11732
|
function t (t, e) {
|
|
11737
|
-
(this.paginationContainer = t), (this.jqPaginationContainer =
|
|
11733
|
+
(this.paginationContainer = t), (this.jqPaginationContainer = hiprintJQuery(this.paginationContainer)), (this.template = e);
|
|
11738
11734
|
}
|
|
11739
11735
|
|
|
11740
11736
|
return (
|
|
@@ -11744,13 +11740,13 @@ var hiprint = (function (t) {
|
|
|
11744
11740
|
this.jqPaginationContainer.html("");
|
|
11745
11741
|
|
|
11746
11742
|
for (
|
|
11747
|
-
var i =
|
|
11743
|
+
var i = hiprintJQuery('<ul class="hiprint-pagination"></ul>'),
|
|
11748
11744
|
o = function o () {
|
|
11749
11745
|
var t = r,
|
|
11750
11746
|
name = n.template.printPanels[t].name || t + 1,
|
|
11751
|
-
e =
|
|
11747
|
+
e = hiprintJQuery("<li><span>" + name + '</span><a href="javascript:void(0);">x</a></li>');
|
|
11752
11748
|
e.find("span").click(function () {
|
|
11753
|
-
n.template.selectPanel(t), e.siblings().removeClass("selected"),
|
|
11749
|
+
n.template.selectPanel(t), e.siblings().removeClass("selected"), hiprintJQuery(this).parent("li").addClass("selected");
|
|
11754
11750
|
}),
|
|
11755
11751
|
e.find("a").click(function () {
|
|
11756
11752
|
n.template.deletePanel(t), n.buildPagination();
|
|
@@ -11764,14 +11760,14 @@ var hiprint = (function (t) {
|
|
|
11764
11760
|
o();
|
|
11765
11761
|
}
|
|
11766
11762
|
|
|
11767
|
-
var a =
|
|
11763
|
+
var a = hiprintJQuery("<li><span>+</span></li>");
|
|
11768
11764
|
i.append(a),
|
|
11769
11765
|
this.jqPaginationContainer.append(i),
|
|
11770
11766
|
a.click(function () {
|
|
11771
11767
|
var createPanel = function (t) {
|
|
11772
11768
|
n.template.addPrintPanel(t || void 0, !0), n.buildPagination();
|
|
11773
|
-
|
|
11774
|
-
|
|
11769
|
+
hiprintJQuery(".hiprint-pagination li").removeClass("selected");
|
|
11770
|
+
hiprintJQuery(".hiprint-pagination li:nth-last-child(2)").addClass("selected");
|
|
11775
11771
|
};
|
|
11776
11772
|
if (n.template.onPanelAddClick) {
|
|
11777
11773
|
var panel = {
|
|
@@ -11786,7 +11782,7 @@ var hiprint = (function (t) {
|
|
|
11786
11782
|
}),
|
|
11787
11783
|
(t.prototype.selectPanel = function (idx) {
|
|
11788
11784
|
var i = idx || this.template.editingPanel.index;
|
|
11789
|
-
var li =
|
|
11785
|
+
var li = hiprintJQuery(".hiprint-pagination li:nth(" + i + ")");
|
|
11790
11786
|
if (li.length) {
|
|
11791
11787
|
li.siblings().removeClass("selected");
|
|
11792
11788
|
li.addClass("selected");
|
|
@@ -11845,7 +11841,7 @@ var hiprint = (function (t) {
|
|
|
11845
11841
|
(t.prototype.getSimpleHtml = function (t, e) {
|
|
11846
11842
|
var n = this;
|
|
11847
11843
|
e || (e = {});
|
|
11848
|
-
var i =
|
|
11844
|
+
var i = hiprintJQuery('<div class="hiprint-printTemplate"></div>');
|
|
11849
11845
|
t && t.constructor === Array
|
|
11850
11846
|
? t.forEach(function (data, dataIndex) {
|
|
11851
11847
|
data &&
|
|
@@ -11870,7 +11866,7 @@ var hiprint = (function (t) {
|
|
|
11870
11866
|
return t || (t = {}), this.getSimpleHtml(t, e);
|
|
11871
11867
|
}),
|
|
11872
11868
|
(t.prototype.getJointHtml = function (t, e, n) {
|
|
11873
|
-
var i =
|
|
11869
|
+
var i = hiprintJQuery('<div class="hiprint-printTemplate"></div>'),
|
|
11874
11870
|
o = [];
|
|
11875
11871
|
return (
|
|
11876
11872
|
this.printPanels.forEach(function (r, a) {
|
|
@@ -11921,7 +11917,7 @@ var hiprint = (function (t) {
|
|
|
11921
11917
|
);
|
|
11922
11918
|
}),
|
|
11923
11919
|
(t.prototype.createContainer = function (t) {
|
|
11924
|
-
t ? ((this.container =
|
|
11920
|
+
t ? ((this.container = hiprintJQuery(t)), this.container.addClass("hiprint-printTemplate")) : (this.container = hiprintJQuery('<div class="hiprint-printTemplate"></div>'));
|
|
11925
11921
|
}),
|
|
11926
11922
|
(t.prototype.getJsonTid = function () {
|
|
11927
11923
|
var t = [];
|
|
@@ -11984,7 +11980,7 @@ var hiprint = (function (t) {
|
|
|
11984
11980
|
var n = this,
|
|
11985
11981
|
i = 0,
|
|
11986
11982
|
o = {},
|
|
11987
|
-
r =
|
|
11983
|
+
r = hiprintJQuery('link[media=print][href*="print-lock.css"]'),
|
|
11988
11984
|
css = "";
|
|
11989
11985
|
if (e.styleHandler) {
|
|
11990
11986
|
css += e.styleHandler();
|
|
@@ -11995,7 +11991,7 @@ var hiprint = (function (t) {
|
|
|
11995
11991
|
}
|
|
11996
11992
|
r.each(function (a, p) {
|
|
11997
11993
|
var s = new XMLHttpRequest();
|
|
11998
|
-
s.open("GET",
|
|
11994
|
+
s.open("GET", hiprintJQuery(p).attr("href")),
|
|
11999
11995
|
(s.onreadystatechange = function () {
|
|
12000
11996
|
if (4 === s.readyState && 200 === s.status && ((o[a + ""] = '<style rel="stylesheet" type="text/css">' + s.responseText + "</style>"), ++i == r.length)) {
|
|
12001
11997
|
for (var p = "", l = 0; l < r.length; l++) {
|
|
@@ -12010,7 +12006,7 @@ var hiprint = (function (t) {
|
|
|
12010
12006
|
} else alert("连接客户端失败");
|
|
12011
12007
|
}),
|
|
12012
12008
|
(t.prototype.imageToBase64 = function (t) {
|
|
12013
|
-
var e =
|
|
12009
|
+
var e = hiprintJQuery(t).attr("src");
|
|
12014
12010
|
if (-1 == e.indexOf("base64"))
|
|
12015
12011
|
try {
|
|
12016
12012
|
if (!this.tempimageBase64[e]) {
|
|
@@ -12031,35 +12027,35 @@ var hiprint = (function (t) {
|
|
|
12031
12027
|
(t.prototype.xhrLoadImage = function (t) {}),
|
|
12032
12028
|
(t.prototype.sentToClient = function (t, e, n) {
|
|
12033
12029
|
e || (e = {});
|
|
12034
|
-
var i =
|
|
12030
|
+
var i = hiprintJQuery.extend({}, n || {});
|
|
12035
12031
|
i.imgToBase64 = !0;
|
|
12036
12032
|
var o = t + this.getHtml(e, i)[0].outerHTML;
|
|
12037
12033
|
(i.id = s.a.instance.guid()), (i.html = o), (i.templateId = this.id), hiwebSocket.send(i);
|
|
12038
12034
|
}),
|
|
12039
12035
|
(t.prototype.printByHtml = function (t) {
|
|
12040
|
-
|
|
12036
|
+
hiprintJQuery(t).hiwprint();
|
|
12041
12037
|
}),
|
|
12042
12038
|
(t.prototype.printByHtml2 = function (t, e) {
|
|
12043
12039
|
if ((e || (e = {}), this.clientIsOpened())) {
|
|
12044
12040
|
var n = this,
|
|
12045
12041
|
i = 0,
|
|
12046
12042
|
o = {},
|
|
12047
|
-
r =
|
|
12043
|
+
r = hiprintJQuery('link[media=print][href*="print-lock.css"]');
|
|
12048
12044
|
if (r.length <= 0) {
|
|
12049
12045
|
throw new Error('请在 入口文件(index.html) 中引入 print-lock.css. 注意: link[media="print"]');
|
|
12050
12046
|
return;
|
|
12051
12047
|
}
|
|
12052
12048
|
r.each(function (a, p) {
|
|
12053
12049
|
var l = new XMLHttpRequest();
|
|
12054
|
-
l.open("GET",
|
|
12050
|
+
l.open("GET", hiprintJQuery(p).attr("href")),
|
|
12055
12051
|
(l.onreadystatechange = function () {
|
|
12056
12052
|
if (4 === l.readyState && 200 === l.status && ((o[a + ""] = '<style rel="stylesheet" type="text/css">' + l.responseText + "</style>"), ++i == r.length)) {
|
|
12057
12053
|
for (var p = "", u = 0; u < r.length; u++) {
|
|
12058
12054
|
p += o[u + ""];
|
|
12059
12055
|
}
|
|
12060
12056
|
|
|
12061
|
-
var d = p +
|
|
12062
|
-
c =
|
|
12057
|
+
var d = p + hiprintJQuery(t)[0].outerHTML,
|
|
12058
|
+
c = hiprintJQuery.extend({}, e || {});
|
|
12063
12059
|
(c.id = s.a.instance.guid()), (c.html = d), (c.templateId = n.id), hiwebSocket.send(c);
|
|
12064
12060
|
}
|
|
12065
12061
|
}),
|
|
@@ -12075,17 +12071,17 @@ var hiprint = (function (t) {
|
|
|
12075
12071
|
(t.prototype.transformImg = function (t) {
|
|
12076
12072
|
var e = this;
|
|
12077
12073
|
t.map(function (t, n) {
|
|
12078
|
-
e.imageToBase64(
|
|
12074
|
+
e.imageToBase64(hiprintJQuery(n));
|
|
12079
12075
|
});
|
|
12080
12076
|
}),
|
|
12081
12077
|
(t.prototype.toPdf = function (t, e, options) {
|
|
12082
12078
|
var i = this;
|
|
12083
|
-
var dtd =
|
|
12079
|
+
var dtd = hiprintJQuery.Deferred();
|
|
12084
12080
|
var isDownload = true;
|
|
12085
12081
|
if (this.printPanels.length) {
|
|
12086
12082
|
var r = o.a.mm.toPt(this.printPanels[0].width),
|
|
12087
12083
|
a = o.a.mm.toPt(this.printPanels[0].height),
|
|
12088
|
-
p =
|
|
12084
|
+
p = hiprintJQuery.extend(
|
|
12089
12085
|
{
|
|
12090
12086
|
scale: 2,
|
|
12091
12087
|
width: o.a.pt.toPx(r),
|
|
@@ -12108,7 +12104,7 @@ var hiprint = (function (t) {
|
|
|
12108
12104
|
var u = this.getTempContainer();
|
|
12109
12105
|
this.svg2canvas(l), u.html(l[0]);
|
|
12110
12106
|
var d = u.find(".hiprint-printPanel .hiprint-printPaper").length;
|
|
12111
|
-
|
|
12107
|
+
hiprintJQuery(l).css("position:fixed"),
|
|
12112
12108
|
html2canvas(l[0], p).then(function (t) {
|
|
12113
12109
|
var n = t.getContext("2d");
|
|
12114
12110
|
(n.mozImageSmoothingEnabled = !1), (n.webkitImageSmoothingEnabled = !1), (n.msImageSmoothingEnabled = !1), (n.imageSmoothingEnabled = !1);
|
|
@@ -12129,13 +12125,13 @@ var hiprint = (function (t) {
|
|
|
12129
12125
|
return dtd.promise();
|
|
12130
12126
|
}),
|
|
12131
12127
|
(t.prototype.createTempContainer = function () {
|
|
12132
|
-
this.removeTempContainer(),
|
|
12128
|
+
this.removeTempContainer(), hiprintJQuery("body").prepend(hiprintJQuery('<div class="hiprint_temp_Container" style="overflow:hidden;height: 0px;box-sizing: border-box;"></div>'));
|
|
12133
12129
|
}),
|
|
12134
12130
|
(t.prototype.removeTempContainer = function () {
|
|
12135
|
-
|
|
12131
|
+
hiprintJQuery(".hiprint_temp_Container").remove();
|
|
12136
12132
|
}),
|
|
12137
12133
|
(t.prototype.getTempContainer = function () {
|
|
12138
|
-
return
|
|
12134
|
+
return hiprintJQuery(".hiprint_temp_Container");
|
|
12139
12135
|
}),
|
|
12140
12136
|
(t.prototype.svg2canvas = function (t) {
|
|
12141
12137
|
var that = this;
|
|
@@ -12146,7 +12142,7 @@ var hiprint = (function (t) {
|
|
|
12146
12142
|
(i.width = p.width), (i.height = p.height);
|
|
12147
12143
|
var ctx = i.getContext("2d"),
|
|
12148
12144
|
str = new XMLSerializer().serializeToString(e);
|
|
12149
|
-
Canvg.fromString(ctx, str).render(),
|
|
12145
|
+
Canvg.fromString(ctx, str).render(), hiprintJQuery(e).before(i), n.removeChild(e);
|
|
12150
12146
|
});
|
|
12151
12147
|
}),
|
|
12152
12148
|
(t.prototype.parentWidthHeight = function (t) {
|
|
@@ -12261,7 +12257,7 @@ var hiprint = (function (t) {
|
|
|
12261
12257
|
var t = this;
|
|
12262
12258
|
var elements = [];
|
|
12263
12259
|
// 获取选区元素
|
|
12264
|
-
if (t.editingPanel.mouseRect && t.editingPanel.mouseRect.target &&
|
|
12260
|
+
if (t.editingPanel.mouseRect && t.editingPanel.mouseRect.target && hiprintJQuery(".mouseRect").length) {
|
|
12265
12261
|
elements = t.editingPanel.getElementInRect(t.editingPanel.mouseRect);
|
|
12266
12262
|
} else {
|
|
12267
12263
|
// 获取多选元素
|
|
@@ -12470,7 +12466,7 @@ var hiprint = (function (t) {
|
|
|
12470
12466
|
}
|
|
12471
12467
|
|
|
12472
12468
|
function ft (t, e, n) {
|
|
12473
|
-
|
|
12469
|
+
hiprintJQuery.extend({}, t || {}).imgToBase64 = !0;
|
|
12474
12470
|
var i = new ct({});
|
|
12475
12471
|
i.on("printSuccess", e), i.on("printError", n), i.printByHtml2(this.getHtml(t), t.options);
|
|
12476
12472
|
}
|
|
@@ -12480,7 +12476,7 @@ var hiprint = (function (t) {
|
|
|
12480
12476
|
return (
|
|
12481
12477
|
t &&
|
|
12482
12478
|
t.templates.forEach(function (n, i) {
|
|
12483
|
-
var o =
|
|
12479
|
+
var o = hiprintJQuery.extend({}, n.options || {});
|
|
12484
12480
|
t.imgToBase64 && (o.imgToBase64 = !0), e ? e.append(n.template.getHtml(n.data, o).html()) : (e = n.template.getHtml(n.data, o));
|
|
12485
12481
|
}),
|
|
12486
12482
|
e
|
|
@@ -12504,7 +12500,7 @@ var hiprint = (function (t) {
|
|
|
12504
12500
|
} else if (t[i].tabs && t[i].tabs.length) {
|
|
12505
12501
|
t[i].tabs.forEach(function (tab, idx) {
|
|
12506
12502
|
if (tab.replace) {
|
|
12507
|
-
|
|
12503
|
+
hiprintJQuery.extend(p.a.instance[i].tabs[idx], tab);
|
|
12508
12504
|
} else {
|
|
12509
12505
|
var options = tab.options,
|
|
12510
12506
|
list = p.a.instance[i].tabs[idx].options;
|
|
@@ -12522,7 +12518,7 @@ var hiprint = (function (t) {
|
|
|
12522
12518
|
} else list.push(o);
|
|
12523
12519
|
}
|
|
12524
12520
|
});
|
|
12525
|
-
|
|
12521
|
+
hiprintJQuery.extend(p.a.instance[i].tabs[idx], {
|
|
12526
12522
|
name: tab.name,
|
|
12527
12523
|
options: list,
|
|
12528
12524
|
});
|
|
@@ -12546,16 +12542,16 @@ var hiprint = (function (t) {
|
|
|
12546
12542
|
} else list.push(o);
|
|
12547
12543
|
}
|
|
12548
12544
|
});
|
|
12549
|
-
|
|
12545
|
+
hiprintJQuery.extend(p.a.instance[i].supportOptions, list);
|
|
12550
12546
|
delete t[i].supportOptions;
|
|
12551
12547
|
} else {
|
|
12552
12548
|
var keyMap = {};
|
|
12553
12549
|
keyMap[i] = t[i];
|
|
12554
|
-
|
|
12550
|
+
hiprintJQuery.extend(p.a.instance, keyMap);
|
|
12555
12551
|
}
|
|
12556
12552
|
});
|
|
12557
12553
|
} else {
|
|
12558
|
-
|
|
12554
|
+
hiprintJQuery.extend(p.a.instance, HIPRINT_CONFIG);
|
|
12559
12555
|
}
|
|
12560
12556
|
}
|
|
12561
12557
|
|
|
@@ -12631,7 +12627,7 @@ var hiprint = (function (t) {
|
|
|
12631
12627
|
n.d(e, "getHtml", function () {
|
|
12632
12628
|
return gt;
|
|
12633
12629
|
}),
|
|
12634
|
-
|
|
12630
|
+
hiprintJQuery(document).ready(function () {
|
|
12635
12631
|
console.log("document ready");
|
|
12636
12632
|
console.log(window.autoConnect);
|
|
12637
12633
|
if (hiwebSocket.hasIo() && window.autoConnect) {
|