@sv-print+hiprint+0.3.24.patch 2.2 KB

12345678910111213141516171819202122
  1. diff --git a/node_modules/@sv-print/hiprint/dist/index.mjs b/node_modules/@sv-print/hiprint/dist/index.mjs
  2. index 712841a..d39523c 100644
  3. --- a/node_modules/@sv-print/hiprint/dist/index.mjs
  4. +++ b/node_modules/@sv-print/hiprint/dist/index.mjs
  5. @@ -2836,6 +2836,7 @@ function yx() {
  6. <div class="hiprint-option-item-field">
  7. <select class="auto-submit">
  8. <option value="" >默认</option>
  9. + <option value="CODE128" >CODE128</option>
  10. <option value="CODE128A" >CODE128A</option>
  11. <option value="CODE128B" >CODE128B</option>
  12. <option value="CODE128C" >CODE128C</option>
  13. @@ -11273,7 +11274,7 @@ var G0 = function(z) {
  14. var l0 = this[W(1273)][W(1003)]() == W(1581);
  15. $[W(978)](W(1077)), l0 && $[W(262)](W(505));
  16. try {
  17. - b ? (Gx($.find(".hibarcode_imgcode")[0], b, { format: this[W(1273)][W(912)](), width: this[W(1273)].getBarWidth(), textMargin: -1, lineColor: this[W(1273)][W(1741)] || W(353), margin: 0, height: parseInt(G.a.pt.toPx(this[W(1273)][W(893)]() || 10).toString()), displayValue: l0 ? !1 : !this[W(1273)][W(1790)] }), $[W(1284)](".hibarcode_imgcode")[W(744)](W(1953), W(725)), $[W(1284)](W(1354)).attr("width", "100%"), l0 && (this[W(1273)][W(1790)] || $[W(1284)](".hibarcode_displayValue").html(b))) : $[W(978)]("");
  18. + b ? (Gx($.find(".hibarcode_imgcode")[0], b, { font: this.options.fontFamily || 'Arial', fontSize: G.a.pt.toPx(this.options.fontSize || 9), format: this[W(1273)][W(912)](), width: this[W(1273)].getBarWidth(), textMargin: -1, lineColor: this[W(1273)][W(1741)] || W(353), margin: 0, height: parseInt(G.a.pt.toPx(this[W(1273)][W(893)]() || 10).toString()), displayValue: l0 ? !1 : !this[W(1273)][W(1790)] }), $[W(1284)](".hibarcode_imgcode")[W(744)](W(1953), W(725)), $[W(1284)](W(1354)).attr("width", "100%"), l0 && (this[W(1273)][W(1790)] || $[W(1284)](".hibarcode_displayValue").html(b))) : $[W(978)]("");
  19. let p0 = $[W(1284)](W(2036))[0][W(1934)][W(1761)][W(254)];
  20. p0 = Math[W(1e3)](hinnn.px.toPt(p0 * 1.05)), this[W(1273)][W(1921)]() && p0 > this[W(1273)].width && ($[W(1022)]()[W(1359)](W(1761), p0 + "pt"), this[W(1273)][W(1761)] = p0);
  21. } catch (p0) {