vg-print-vue2 1.0.511 → 1.0.513

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.
@@ -84,6 +84,12 @@ const cn$1 = {
84
84
  "标签字号": "标签字号",
85
85
  "标签粗细": "标签粗细",
86
86
  "标签颜色": "标签颜色",
87
+ "标签左右对齐": "标签左右对齐",
88
+ "标签上下对齐": "标签上下对齐",
89
+ "标签左内边距": "标签左内边距",
90
+ "标签上内边距": "标签上内边距",
91
+ "标签右内边距": "标签右内边距",
92
+ "标签下内边距": "标签下内边距",
87
93
  "文本修饰": "文本修饰",
88
94
  "下划线": "下划线",
89
95
  "上划线": "上划线",
@@ -451,6 +457,12 @@ const en$1 = {
451
457
  "标签字号": "Title Font Size",
452
458
  "标签粗细": "Title Font Weight",
453
459
  "标签颜色": "Title Color",
460
+ "标签左右对齐": "Title Horizontal Align",
461
+ "标签上下对齐": "Title Vertical Align",
462
+ "标签左内边距": "Title Left Padding",
463
+ "标签上内边距": "Title Top Padding",
464
+ "标签右内边距": "Title Right Padding",
465
+ "标签下内边距": "Title Bottom Padding",
454
466
  "文本修饰": "Text Decoration",
455
467
  "下划线": "Underline",
456
468
  "上划线": "Overline",
@@ -48306,6 +48318,225 @@ const echartsElementTypes = [
48306
48318
  { tid: "echartsModule.radar", title: "雷达图", type: "echarts", options: { width: 200, height: 200, eChartsOption: radarOption } },
48307
48319
  { tid: "echartsModule.scatter", title: "散点图", type: "echarts", options: { width: 200, height: 200, eChartsOption: scatterOption } }
48308
48320
  ];
48321
+ const MIME_ALIASES = {
48322
+ jpg: "image/jpeg",
48323
+ jpeg: "image/jpeg",
48324
+ png: "image/png",
48325
+ gif: "image/gif",
48326
+ webp: "image/webp",
48327
+ bmp: "image/bmp",
48328
+ svg: "image/svg+xml",
48329
+ tif: "image/tiff",
48330
+ tiff: "image/tiff",
48331
+ ico: "image/x-icon",
48332
+ avif: "image/avif",
48333
+ heic: "image/heic",
48334
+ heif: "image/heif"
48335
+ };
48336
+ function normalizeMime(mime) {
48337
+ if (!mime)
48338
+ return "";
48339
+ const value = String(mime).trim().toLowerCase().replace(/^\./, "").split(";")[0];
48340
+ if (MIME_ALIASES[value])
48341
+ return MIME_ALIASES[value];
48342
+ if (value === "image/jpg" || value === "image/pjpeg")
48343
+ return "image/jpeg";
48344
+ return /^image\/[a-z0-9.+-]+$/.test(value) ? value : "";
48345
+ }
48346
+ function decodeBase64Prefix(value) {
48347
+ try {
48348
+ const sample = value.slice(0, 512);
48349
+ const padded = sample + "=".repeat((4 - sample.length % 4) % 4);
48350
+ let binary;
48351
+ if (typeof atob === "function") {
48352
+ binary = atob(padded);
48353
+ } else if (typeof Buffer !== "undefined") {
48354
+ binary = Buffer.from(padded, "base64").toString("binary");
48355
+ } else {
48356
+ return null;
48357
+ }
48358
+ const bytes = new Uint8Array(binary.length);
48359
+ for (let i3 = 0; i3 < binary.length; i3++)
48360
+ bytes[i3] = binary.charCodeAt(i3);
48361
+ return bytes;
48362
+ } catch (_2) {
48363
+ return null;
48364
+ }
48365
+ }
48366
+ function sniffImageMime(base642) {
48367
+ if (/^iVBORw0KGgo/.test(base642))
48368
+ return "image/png";
48369
+ if (/^\/9j\//.test(base642))
48370
+ return "image/jpeg";
48371
+ if (/^R0lGOD/.test(base642))
48372
+ return "image/gif";
48373
+ if (/^UklGR/.test(base642))
48374
+ return "image/webp";
48375
+ if (/^Qk/.test(base642))
48376
+ return "image/bmp";
48377
+ if (/^(?:PHN2Zy|PD94bWwg|PCEtLS)/.test(base642))
48378
+ return "image/svg+xml";
48379
+ const bytes = decodeBase64Prefix(base642);
48380
+ if (!bytes || bytes.length < 12)
48381
+ return "";
48382
+ const ascii = Array.from(bytes, (byte) => String.fromCharCode(byte)).join("");
48383
+ if (bytes[0] === 137 && ascii.slice(1, 4) === "PNG")
48384
+ return "image/png";
48385
+ if (bytes[0] === 255 && bytes[1] === 216 && bytes[2] === 255)
48386
+ return "image/jpeg";
48387
+ if (ascii.slice(0, 6) === "GIF87a" || ascii.slice(0, 6) === "GIF89a")
48388
+ return "image/gif";
48389
+ if (ascii.slice(0, 4) === "RIFF" && ascii.slice(8, 12) === "WEBP")
48390
+ return "image/webp";
48391
+ if (ascii.slice(0, 2) === "BM")
48392
+ return "image/bmp";
48393
+ if (ascii.slice(0, 4) === "II*\0" || ascii.slice(0, 4) === "MM\0*")
48394
+ return "image/tiff";
48395
+ if (bytes[0] === 0 && bytes[1] === 0 && bytes[2] === 1 && bytes[3] === 0)
48396
+ return "image/x-icon";
48397
+ if (ascii.slice(4, 8) === "ftyp") {
48398
+ const brand = ascii.slice(8, 12).toLowerCase();
48399
+ if (brand === "avif" || brand === "avis")
48400
+ return "image/avif";
48401
+ if (/^(heic|heix|hevc|hevx)$/.test(brand))
48402
+ return "image/heic";
48403
+ if (brand === "mif1" || brand === "msf1")
48404
+ return "image/heif";
48405
+ }
48406
+ const svgText = ascii.replace(/^\u00ef\u00bb\u00bf/, "").trimStart();
48407
+ if (/^(?:<\?xml[\s\S]*?\?>\s*)?(?:<!--[^]*?-->\s*)*<svg\b/i.test(svgText))
48408
+ return "image/svg+xml";
48409
+ return "";
48410
+ }
48411
+ function cleanBase64(value) {
48412
+ const cleaned = String(value).replace(/\\r\\n|\\n|\\r/g, "").replace(/\\\//g, "/").replace(/\s+/g, "").replace(/-/g, "+").replace(/_/g, "/");
48413
+ if (!cleaned || !/^[A-Za-z0-9+/]*={0,2}$/.test(cleaned))
48414
+ return "";
48415
+ const unpadded = cleaned.replace(/=+$/, "");
48416
+ if (unpadded.length % 4 === 1)
48417
+ return "";
48418
+ return unpadded + "=".repeat((4 - unpadded.length % 4) % 4);
48419
+ }
48420
+ function extractImageMarkupSource(value) {
48421
+ const imgMatch = value.match(/^<img\b[^>]*\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))[^>]*>$/i);
48422
+ if (imgMatch)
48423
+ return imgMatch[1] || imgMatch[2] || imgMatch[3] || value;
48424
+ const cssMatch = value.match(/^url\(\s*(?:"([^"]*)"|'([^']*)'|([^)]*))\s*\)$/i);
48425
+ if (cssMatch)
48426
+ return (cssMatch[1] || cssMatch[2] || cssMatch[3] || "").trim();
48427
+ return value;
48428
+ }
48429
+ function normalizeImageSrc(input, mimeHint) {
48430
+ if (input == null)
48431
+ return "";
48432
+ let src2 = String(input).trim();
48433
+ if (!src2)
48434
+ return "";
48435
+ if (src2[0] === '"' && src2[src2.length - 1] === '"' || src2[0] === "'" && src2[src2.length - 1] === "'") {
48436
+ src2 = src2.slice(1, -1).trim();
48437
+ }
48438
+ src2 = extractImageMarkupSource(src2);
48439
+ const dataUrlMatch = src2.match(/^data:([^,]*),(.*)$/is);
48440
+ if (dataUrlMatch) {
48441
+ const metadata = dataUrlMatch[1];
48442
+ if (!/;base64(?:;|$)/i.test(metadata))
48443
+ return src2;
48444
+ const payload2 = cleanBase64(dataUrlMatch[2]);
48445
+ if (!payload2)
48446
+ return src2;
48447
+ const parts = metadata.split(";");
48448
+ const declaredMime = normalizeMime(parts[0]);
48449
+ const detectedMime = sniffImageMime(payload2);
48450
+ const mime = !declaredMime || declaredMime === "image/octet-stream" ? detectedMime || normalizeMime(mimeHint) || "image/png" : declaredMime;
48451
+ const suffix2 = parts.slice(1).filter((part) => part.toLowerCase() !== "base64");
48452
+ return "data:" + mime + (suffix2.length ? ";" + suffix2.join(";") : "") + ";base64," + payload2;
48453
+ }
48454
+ if (/^(?:https?:)?\/\//i.test(src2) || /^(?:blob|file):/i.test(src2) || src2.indexOf("./") === 0 || src2.indexOf("../") === 0) {
48455
+ return src2;
48456
+ }
48457
+ let explicitMime = normalizeMime(mimeHint);
48458
+ const prefixedBase64 = src2.match(/^(?:([a-z0-9.+-]+\/[a-z0-9.+-]+);)?base64\s*,/i);
48459
+ if (prefixedBase64) {
48460
+ explicitMime = normalizeMime(prefixedBase64[1]) || explicitMime;
48461
+ src2 = src2.slice(prefixedBase64[0].length);
48462
+ }
48463
+ const payload = cleanBase64(src2);
48464
+ if (payload && payload.length >= 20) {
48465
+ const detectedMime = sniffImageMime(payload);
48466
+ if (detectedMime || explicitMime || src2[0] !== "/") {
48467
+ const mime = detectedMime || explicitMime || "image/png";
48468
+ return "data:" + mime + ";base64," + payload;
48469
+ }
48470
+ }
48471
+ if (src2[0] === "/")
48472
+ return src2;
48473
+ return src2;
48474
+ }
48475
+ function waitForImage(image2, timeoutMs) {
48476
+ const timeout = Number.isFinite(Number(timeoutMs)) ? Math.max(0, Number(timeoutMs)) : 1e4;
48477
+ return new Promise((resolve2) => {
48478
+ if (!image2) {
48479
+ resolve2(false);
48480
+ return;
48481
+ }
48482
+ let settled = false;
48483
+ let timer;
48484
+ const cleanup = () => {
48485
+ if (timer)
48486
+ clearTimeout(timer);
48487
+ image2.removeEventListener && image2.removeEventListener("load", onLoad);
48488
+ image2.removeEventListener && image2.removeEventListener("error", onError);
48489
+ };
48490
+ const finish = (loaded) => {
48491
+ if (settled)
48492
+ return;
48493
+ settled = true;
48494
+ cleanup();
48495
+ resolve2(!!loaded);
48496
+ };
48497
+ const hasPixels = () => typeof image2.naturalWidth !== "number" || image2.naturalWidth > 0;
48498
+ const onLoad = () => {
48499
+ if (typeof image2.decode === "function") {
48500
+ try {
48501
+ Promise.resolve(image2.decode()).then(() => finish(true)).catch(() => finish(hasPixels()));
48502
+ } catch (_2) {
48503
+ finish(hasPixels());
48504
+ }
48505
+ } else {
48506
+ finish(hasPixels());
48507
+ }
48508
+ };
48509
+ const onError = () => finish(false);
48510
+ if (image2.complete) {
48511
+ finish(hasPixels());
48512
+ return;
48513
+ }
48514
+ image2.addEventListener && image2.addEventListener("load", onLoad);
48515
+ image2.addEventListener && image2.addEventListener("error", onError);
48516
+ timer = setTimeout(() => finish(false), timeout);
48517
+ if (image2.complete)
48518
+ hasPixels() ? onLoad() : onError();
48519
+ });
48520
+ }
48521
+ function waitForImages(root2, timeoutMs) {
48522
+ const element2 = root2 && root2.jquery ? root2[0] : root2;
48523
+ if (!element2)
48524
+ return Promise.resolve([]);
48525
+ const images = [];
48526
+ if (element2.tagName && String(element2.tagName).toLowerCase() === "img")
48527
+ images.push(element2);
48528
+ if (element2.querySelectorAll)
48529
+ images.push(...Array.from(element2.querySelectorAll("img")));
48530
+ return Promise.all(images.map((image2) => {
48531
+ const rawSrc = image2.getAttribute("src") || "";
48532
+ const normalized = normalizeImageSrc(rawSrc, image2.getAttribute("data-hiprint-mime") || image2.getAttribute("data-mime"));
48533
+ if (normalized && normalized !== rawSrc)
48534
+ image2.setAttribute("src", normalized);
48535
+ if (!normalized || image2.src === window.location.href)
48536
+ return Promise.resolve(false);
48537
+ return waitForImage(image2, timeoutMs);
48538
+ }));
48539
+ }
48309
48540
  const t$1 = (k2) => i18n$1 && i18n$1.global && typeof i18n$1.global.t === "function" ? i18n$1.global.t(k2) : k2;
48310
48541
  const MODULE_NAME = "taskProviderModule";
48311
48542
  const DEFAULT_CUSTOM_ELEMENT_TYPE_WHITELIST = [
@@ -48488,7 +48719,7 @@ function defaultTypeProvider(hiprint2) {
48488
48719
  return "center";
48489
48720
  }();
48490
48721
  var makeItem = function(it2) {
48491
- var src2 = it2 && (it2.src || it2.url || "");
48722
+ var src2 = normalizeImageSrc(it2 && (it2.src || it2.url || ""));
48492
48723
  var name2 = it2 && (it2.name || it2.fileName) || "";
48493
48724
  var desc = it2 && (it2.desc || it2.description) || "";
48494
48725
  var descAlign = options3.descAlign || options3.textAlign || "center";
@@ -48673,6 +48904,7 @@ function defaultTypeProvider(hiprint2) {
48673
48904
  height: 40,
48674
48905
  field: "richText",
48675
48906
  custom: true,
48907
+ titleSeparator: "",
48676
48908
  fontSize: 12,
48677
48909
  lineHeight: 15
48678
48910
  }
@@ -48684,6 +48916,7 @@ function defaultTypeProvider(hiprint2) {
48684
48916
  options: {
48685
48917
  field: "test",
48686
48918
  width: 200,
48919
+ titleSeparator: "",
48687
48920
  testData: t$1("hiprint.item.longTextTest"),
48688
48921
  fontSize: 12,
48689
48922
  lineHeight: 15
@@ -48698,6 +48931,7 @@ function defaultTypeProvider(hiprint2) {
48698
48931
  width: 150,
48699
48932
  height: 40,
48700
48933
  field: "richText",
48934
+ titleSeparator: "",
48701
48935
  textType: "html",
48702
48936
  textAlign: "left",
48703
48937
  fontSize: 12,
@@ -48768,225 +49002,6 @@ function defaultTypeProvider(hiprint2) {
48768
49002
  };
48769
49003
  }
48770
49004
  ;
48771
- const MIME_ALIASES = {
48772
- jpg: "image/jpeg",
48773
- jpeg: "image/jpeg",
48774
- png: "image/png",
48775
- gif: "image/gif",
48776
- webp: "image/webp",
48777
- bmp: "image/bmp",
48778
- svg: "image/svg+xml",
48779
- tif: "image/tiff",
48780
- tiff: "image/tiff",
48781
- ico: "image/x-icon",
48782
- avif: "image/avif",
48783
- heic: "image/heic",
48784
- heif: "image/heif"
48785
- };
48786
- function normalizeMime(mime) {
48787
- if (!mime)
48788
- return "";
48789
- const value = String(mime).trim().toLowerCase().replace(/^\./, "").split(";")[0];
48790
- if (MIME_ALIASES[value])
48791
- return MIME_ALIASES[value];
48792
- if (value === "image/jpg" || value === "image/pjpeg")
48793
- return "image/jpeg";
48794
- return /^image\/[a-z0-9.+-]+$/.test(value) ? value : "";
48795
- }
48796
- function decodeBase64Prefix(value) {
48797
- try {
48798
- const sample = value.slice(0, 512);
48799
- const padded = sample + "=".repeat((4 - sample.length % 4) % 4);
48800
- let binary;
48801
- if (typeof atob === "function") {
48802
- binary = atob(padded);
48803
- } else if (typeof Buffer !== "undefined") {
48804
- binary = Buffer.from(padded, "base64").toString("binary");
48805
- } else {
48806
- return null;
48807
- }
48808
- const bytes = new Uint8Array(binary.length);
48809
- for (let i3 = 0; i3 < binary.length; i3++)
48810
- bytes[i3] = binary.charCodeAt(i3);
48811
- return bytes;
48812
- } catch (_2) {
48813
- return null;
48814
- }
48815
- }
48816
- function sniffImageMime(base642) {
48817
- if (/^iVBORw0KGgo/.test(base642))
48818
- return "image/png";
48819
- if (/^\/9j\//.test(base642))
48820
- return "image/jpeg";
48821
- if (/^R0lGOD/.test(base642))
48822
- return "image/gif";
48823
- if (/^UklGR/.test(base642))
48824
- return "image/webp";
48825
- if (/^Qk/.test(base642))
48826
- return "image/bmp";
48827
- if (/^(?:PHN2Zy|PD94bWwg|PCEtLS)/.test(base642))
48828
- return "image/svg+xml";
48829
- const bytes = decodeBase64Prefix(base642);
48830
- if (!bytes || bytes.length < 12)
48831
- return "";
48832
- const ascii = Array.from(bytes, (byte) => String.fromCharCode(byte)).join("");
48833
- if (bytes[0] === 137 && ascii.slice(1, 4) === "PNG")
48834
- return "image/png";
48835
- if (bytes[0] === 255 && bytes[1] === 216 && bytes[2] === 255)
48836
- return "image/jpeg";
48837
- if (ascii.slice(0, 6) === "GIF87a" || ascii.slice(0, 6) === "GIF89a")
48838
- return "image/gif";
48839
- if (ascii.slice(0, 4) === "RIFF" && ascii.slice(8, 12) === "WEBP")
48840
- return "image/webp";
48841
- if (ascii.slice(0, 2) === "BM")
48842
- return "image/bmp";
48843
- if (ascii.slice(0, 4) === "II*\0" || ascii.slice(0, 4) === "MM\0*")
48844
- return "image/tiff";
48845
- if (bytes[0] === 0 && bytes[1] === 0 && bytes[2] === 1 && bytes[3] === 0)
48846
- return "image/x-icon";
48847
- if (ascii.slice(4, 8) === "ftyp") {
48848
- const brand = ascii.slice(8, 12).toLowerCase();
48849
- if (brand === "avif" || brand === "avis")
48850
- return "image/avif";
48851
- if (/^(heic|heix|hevc|hevx)$/.test(brand))
48852
- return "image/heic";
48853
- if (brand === "mif1" || brand === "msf1")
48854
- return "image/heif";
48855
- }
48856
- const svgText = ascii.replace(/^\u00ef\u00bb\u00bf/, "").trimStart();
48857
- if (/^(?:<\?xml[\s\S]*?\?>\s*)?(?:<!--[^]*?-->\s*)*<svg\b/i.test(svgText))
48858
- return "image/svg+xml";
48859
- return "";
48860
- }
48861
- function cleanBase64(value) {
48862
- const cleaned = String(value).replace(/\\r\\n|\\n|\\r/g, "").replace(/\\\//g, "/").replace(/\s+/g, "").replace(/-/g, "+").replace(/_/g, "/");
48863
- if (!cleaned || !/^[A-Za-z0-9+/]*={0,2}$/.test(cleaned))
48864
- return "";
48865
- const unpadded = cleaned.replace(/=+$/, "");
48866
- if (unpadded.length % 4 === 1)
48867
- return "";
48868
- return unpadded + "=".repeat((4 - unpadded.length % 4) % 4);
48869
- }
48870
- function extractImageMarkupSource(value) {
48871
- const imgMatch = value.match(/^<img\b[^>]*\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))[^>]*>$/i);
48872
- if (imgMatch)
48873
- return imgMatch[1] || imgMatch[2] || imgMatch[3] || value;
48874
- const cssMatch = value.match(/^url\(\s*(?:"([^"]*)"|'([^']*)'|([^)]*))\s*\)$/i);
48875
- if (cssMatch)
48876
- return (cssMatch[1] || cssMatch[2] || cssMatch[3] || "").trim();
48877
- return value;
48878
- }
48879
- function normalizeImageSrc(input, mimeHint) {
48880
- if (input == null)
48881
- return "";
48882
- let src2 = String(input).trim();
48883
- if (!src2)
48884
- return "";
48885
- if (src2[0] === '"' && src2[src2.length - 1] === '"' || src2[0] === "'" && src2[src2.length - 1] === "'") {
48886
- src2 = src2.slice(1, -1).trim();
48887
- }
48888
- src2 = extractImageMarkupSource(src2);
48889
- const dataUrlMatch = src2.match(/^data:([^,]*),(.*)$/is);
48890
- if (dataUrlMatch) {
48891
- const metadata = dataUrlMatch[1];
48892
- if (!/;base64(?:;|$)/i.test(metadata))
48893
- return src2;
48894
- const payload2 = cleanBase64(dataUrlMatch[2]);
48895
- if (!payload2)
48896
- return src2;
48897
- const parts = metadata.split(";");
48898
- const declaredMime = normalizeMime(parts[0]);
48899
- const detectedMime = sniffImageMime(payload2);
48900
- const mime = !declaredMime || declaredMime === "image/octet-stream" ? detectedMime || normalizeMime(mimeHint) || "image/png" : declaredMime;
48901
- const suffix2 = parts.slice(1).filter((part) => part.toLowerCase() !== "base64");
48902
- return "data:" + mime + (suffix2.length ? ";" + suffix2.join(";") : "") + ";base64," + payload2;
48903
- }
48904
- if (/^(?:https?:)?\/\//i.test(src2) || /^(?:blob|file):/i.test(src2) || src2.indexOf("./") === 0 || src2.indexOf("../") === 0) {
48905
- return src2;
48906
- }
48907
- let explicitMime = normalizeMime(mimeHint);
48908
- const prefixedBase64 = src2.match(/^(?:([a-z0-9.+-]+\/[a-z0-9.+-]+);)?base64\s*,/i);
48909
- if (prefixedBase64) {
48910
- explicitMime = normalizeMime(prefixedBase64[1]) || explicitMime;
48911
- src2 = src2.slice(prefixedBase64[0].length);
48912
- }
48913
- const payload = cleanBase64(src2);
48914
- if (payload && payload.length >= 20) {
48915
- const detectedMime = sniffImageMime(payload);
48916
- if (detectedMime || explicitMime || src2[0] !== "/") {
48917
- const mime = detectedMime || explicitMime || "image/png";
48918
- return "data:" + mime + ";base64," + payload;
48919
- }
48920
- }
48921
- if (src2[0] === "/")
48922
- return src2;
48923
- return src2;
48924
- }
48925
- function waitForImage(image2, timeoutMs) {
48926
- const timeout = Number.isFinite(Number(timeoutMs)) ? Math.max(0, Number(timeoutMs)) : 1e4;
48927
- return new Promise((resolve2) => {
48928
- if (!image2) {
48929
- resolve2(false);
48930
- return;
48931
- }
48932
- let settled = false;
48933
- let timer;
48934
- const cleanup = () => {
48935
- if (timer)
48936
- clearTimeout(timer);
48937
- image2.removeEventListener && image2.removeEventListener("load", onLoad);
48938
- image2.removeEventListener && image2.removeEventListener("error", onError);
48939
- };
48940
- const finish = (loaded) => {
48941
- if (settled)
48942
- return;
48943
- settled = true;
48944
- cleanup();
48945
- resolve2(!!loaded);
48946
- };
48947
- const hasPixels = () => typeof image2.naturalWidth !== "number" || image2.naturalWidth > 0;
48948
- const onLoad = () => {
48949
- if (typeof image2.decode === "function") {
48950
- try {
48951
- Promise.resolve(image2.decode()).then(() => finish(true)).catch(() => finish(hasPixels()));
48952
- } catch (_2) {
48953
- finish(hasPixels());
48954
- }
48955
- } else {
48956
- finish(hasPixels());
48957
- }
48958
- };
48959
- const onError = () => finish(false);
48960
- if (image2.complete) {
48961
- finish(hasPixels());
48962
- return;
48963
- }
48964
- image2.addEventListener && image2.addEventListener("load", onLoad);
48965
- image2.addEventListener && image2.addEventListener("error", onError);
48966
- timer = setTimeout(() => finish(false), timeout);
48967
- if (image2.complete)
48968
- hasPixels() ? onLoad() : onError();
48969
- });
48970
- }
48971
- function waitForImages(root2, timeoutMs) {
48972
- const element2 = root2 && root2.jquery ? root2[0] : root2;
48973
- if (!element2)
48974
- return Promise.resolve([]);
48975
- const images = [];
48976
- if (element2.tagName && String(element2.tagName).toLowerCase() === "img")
48977
- images.push(element2);
48978
- if (element2.querySelectorAll)
48979
- images.push(...Array.from(element2.querySelectorAll("img")));
48980
- return Promise.all(images.map((image2) => {
48981
- const rawSrc = image2.getAttribute("src") || "";
48982
- const normalized = normalizeImageSrc(rawSrc, image2.getAttribute("data-hiprint-mime") || image2.getAttribute("data-mime"));
48983
- if (normalized && normalized !== rawSrc)
48984
- image2.setAttribute("src", normalized);
48985
- if (!normalized || image2.src === window.location.href)
48986
- return Promise.resolve(false);
48987
- return waitForImage(image2, timeoutMs);
48988
- }));
48989
- }
48990
49005
  const printLockCss = `@media print {
48991
49006
  /* App.vue fixes the designer viewport with overflow:hidden. The browser
48992
49007
  print iframe copies that rule, so explicitly restore printable overflow. */
@@ -51778,8 +51793,16 @@ var hiprint$3 = function(t4) {
51778
51793
  p2.target.css("height", nmh + "mm"), p2.target.attr("original-height", nmh);
51779
51794
  }
51780
51795
  }, BasePrintElement.prototype.getBeginPrintTopInPaperByReferenceElement = function(t4) {
51781
- var e2 = this.options.getTop();
51782
- return this.isHeaderOrFooter() || this.isFixed() ? e2 : t4.referenceElement.isPositionLeftOrRight(e2) ? t4.referenceElement.printTopInPaper + (e2 - t4.referenceElement.top) : t4.referenceElement.bottomInLastPaper + (e2 - (t4.referenceElement.top + t4.referenceElement.height));
51796
+ var e2 = this.options.getTop(), n3 = this.options.getLeft(), i3 = this.options.getWidth(), r2 = t4.referenceElement;
51797
+ if (Number.isFinite(this.__layoutTop))
51798
+ return this.__layoutTop;
51799
+ if (this.isHeaderOrFooter() || this.isFixed())
51800
+ return e2;
51801
+ var overlapsVertically = r2.top <= e2 && r2.top + r2.height > e2;
51802
+ var overlapsHorizontally = r2.left < n3 + i3 && n3 < r2.left + r2.width;
51803
+ if (overlapsVertically && !overlapsHorizontally)
51804
+ return e2;
51805
+ return r2.isPositionLeftOrRight(e2, n3, i3) ? r2.printTopInPaper + (e2 - r2.top) : r2.bottomInLastPaper + (e2 - (r2.top + r2.height));
51783
51806
  }, BasePrintElement.prototype.css = function(t4, e2) {
51784
51807
  var n3 = this, i3 = [], o2 = this.getConfigOptions();
51785
51808
  if (o2) {
@@ -53215,8 +53238,11 @@ var hiprint$3 = function(t4) {
53215
53238
  function t5(t6) {
53216
53239
  this.top = t6.top, this.left = t6.left, this.height = t6.height, this.width = t6.width, this.bottomInLastPaper = t6.bottomInLastPaper, this.beginPrintPaperIndex = t6.beginPrintPaperIndex, this.printTopInPaper = t6.printTopInPaper, this.endPrintPaperIndex = t6.endPrintPaperIndex;
53217
53240
  }
53218
- return t5.prototype.isPositionLeftOrRight = function(t6) {
53219
- return this.top <= t6 && this.top + this.height > t6;
53241
+ return t5.prototype.isPositionLeftOrRight = function(t6, e3, n4) {
53242
+ var i4 = this.top <= t6 && this.top + this.height > t6;
53243
+ if (!i4 || null == e3 || null == n4 || null == this.left || null == this.width)
53244
+ return i4;
53245
+ return this.left < e3 + n4 && e3 < this.left + this.width;
53220
53246
  }, t5;
53221
53247
  }();
53222
53248
  }, function(t4, e2, n3) {
@@ -55968,7 +55994,160 @@ var hiprint$3 = function(t4) {
55968
55994
  this.target.remove();
55969
55995
  }, t5;
55970
55996
  };
55971
- }, titleFontFamilyOption = createTitleStyleOption("titleFontFamily", "标签字体", "fontFamily"), titleFontSizeOption = createTitleStyleOption("titleFontSize", "标签字号", "fontSize"), titleFontWeightOption = createTitleStyleOption("titleFontWeight", "标签粗细", "fontWeight"), titleColorOption = createTitleStyleOption("titleColor", "标签颜色", "color"), R2 = function() {
55997
+ }, titleFontFamilyOption = createTitleStyleOption("titleFontFamily", "标签字体", "fontFamily"), titleFontSizeOption = createTitleStyleOption("titleFontSize", "标签字号", "fontSize"), titleFontWeightOption = createTitleStyleOption("titleFontWeight", "标签粗细", "fontWeight"), titleColorOption = createTitleStyleOption("titleColor", "标签颜色", "color"), createTitleLayoutOption = function(name2, label, kind) {
55998
+ return function() {
55999
+ function t5() {
56000
+ this.name = name2;
56001
+ }
56002
+ return t5.prototype.createTarget = function() {
56003
+ var field;
56004
+ if (kind === "align") {
56005
+ field = '<select class="auto-submit"><option value="" >' + i18n.__("默认") + '</option><option value="left" >' + i18n.__("居左") + '</option><option value="center" >' + i18n.__("居中") + '</option><option value="right" >' + i18n.__("居右") + '</option><option value="justify-left" >' + i18n.__("两端对齐(靠左)") + '</option><option value="justify-center" >' + i18n.__("两端对齐(居中)") + '</option><option value="justify-right" >' + i18n.__("两端对齐(靠右)") + '</option><option value="justify-distribute" >' + i18n.__("两端对齐(分散)") + "</option></select>";
56006
+ } else if (kind === "valign") {
56007
+ field = '<select class="auto-submit"><option value="" >' + i18n.__("默认") + '</option><option value="top" >' + i18n.__("居顶") + '</option><option value="middle" >' + i18n.__("垂直居中") + '</option><option value="bottom" >' + i18n.__("底部") + "</option></select>";
56008
+ } else {
56009
+ field = '<select class="auto-submit">' + buildPtOptionHtml(["0.75", "1.5", "2.25", "3", "3.75", "4.5", "5.25", "6", "6.75", "7.5", "8.25", "9", "9.75", "10.5", "11.25", "12", "12.75", "13.5", "14.25", "15", "15.75", "16.5", "17.25", "18", "18.75", "19.5", "20.25", "21", "21.75"]) + "</select>";
56010
+ }
56011
+ return this.target = $$i('<div class="hiprint-option-item"><div class="hiprint-option-item-label">' + i18n.__(label) + '</div><div class="hiprint-option-item-field">' + field + "</div></div>"), this.target;
56012
+ }, t5.prototype.css = function(target, value) {
56013
+ if (!target || !target.length)
56014
+ return null;
56015
+ var selector = ".hiprint-printElement-longText-title, .hiprint-printElement-html-title";
56016
+ target.find(selector).each(function() {
56017
+ var title = $$i(this);
56018
+ if (kind === "align") {
56019
+ var align = value === "justify" ? "justify-center" : value;
56020
+ var alignKey = "hiprint-title-option-original-" + name2;
56021
+ var isFlexTitle = title.css("display") === "flex" || title.css("display") === "inline-flex";
56022
+ var getFlexAlign2 = function(alignValue) {
56023
+ if (alignValue === "left" || alignValue === "justify-left")
56024
+ return "flex-start";
56025
+ if (alignValue === "center" || alignValue === "justify-center")
56026
+ return "center";
56027
+ if (alignValue === "right" || alignValue === "justify-right")
56028
+ return "flex-end";
56029
+ if (alignValue === "justify-distribute")
56030
+ return "space-between";
56031
+ var parentAlign = target.css("text-align");
56032
+ var parentAlignLast = target.css("text-align-last");
56033
+ if (parentAlign === "justify") {
56034
+ if (parentAlignLast === "right")
56035
+ return "flex-end";
56036
+ if (parentAlignLast === "center")
56037
+ return "center";
56038
+ if (parentAlignLast === "justify")
56039
+ return "space-between";
56040
+ return "flex-start";
56041
+ }
56042
+ if (parentAlign === "center")
56043
+ return "center";
56044
+ if (parentAlign === "right")
56045
+ return "flex-end";
56046
+ return "flex-start";
56047
+ };
56048
+ if (align) {
56049
+ var originalAlign = title.data(alignKey);
56050
+ if (!originalAlign) {
56051
+ originalAlign = { display: this.style.display, textAlign: this.style.textAlign, textAlignLast: this.style.textAlignLast, textJustify: this.style.textJustify, justifyContent: this.style.justifyContent };
56052
+ title.data(alignKey, originalAlign);
56053
+ }
56054
+ if (!isFlexTitle && this.style.display !== "none") {
56055
+ this.style.display = title.css("position") === "absolute" ? "flex" : "inline-flex";
56056
+ isFlexTitle = true;
56057
+ }
56058
+ this.style.textAlign = "";
56059
+ this.style.textAlignLast = "";
56060
+ this.style.textJustify = "";
56061
+ if (align === "justify-left" || align === "justify-center" || align === "justify-right" || align === "justify-distribute") {
56062
+ this.style.setProperty("text-align", "justify", "important");
56063
+ if (align === "justify-distribute") {
56064
+ this.style.setProperty("text-align-last", "justify", "important");
56065
+ this.style.setProperty("text-justify", "distribute-all-lines", "important");
56066
+ } else {
56067
+ this.style.setProperty("text-align-last", align === "justify-left" ? "left" : align === "justify-right" ? "right" : "center", "important");
56068
+ }
56069
+ } else {
56070
+ this.style.setProperty("text-align", align, "important");
56071
+ }
56072
+ if (isFlexTitle)
56073
+ this.style.setProperty("justify-content", getFlexAlign2(align), "important");
56074
+ } else {
56075
+ var previousAlign = title.data(alignKey);
56076
+ if (previousAlign) {
56077
+ var hasVerticalAlign = !!title.data("hiprint-title-vertical-original");
56078
+ if (!hasVerticalAlign)
56079
+ this.style.display = previousAlign.display || "";
56080
+ this.style.textAlign = previousAlign.textAlign || "";
56081
+ this.style.textAlignLast = previousAlign.textAlignLast || "";
56082
+ this.style.textJustify = previousAlign.textJustify || "";
56083
+ if (!hasVerticalAlign)
56084
+ this.style.justifyContent = previousAlign.justifyContent || "";
56085
+ title.removeData(alignKey);
56086
+ }
56087
+ if (isFlexTitle)
56088
+ this.style.setProperty("justify-content", getFlexAlign2());
56089
+ }
56090
+ } else if (kind === "valign") {
56091
+ if (value) {
56092
+ var original = title.data("hiprint-title-vertical-original");
56093
+ if (!original) {
56094
+ original = {
56095
+ display: this.style.display,
56096
+ alignItems: this.style.alignItems,
56097
+ verticalAlign: this.style.verticalAlign,
56098
+ height: this.style.height
56099
+ };
56100
+ title.data("hiprint-title-vertical-original", original);
56101
+ }
56102
+ var isAbsoluteTitle = title.css("position") === "absolute";
56103
+ title.css({
56104
+ display: this.style.display === "none" ? "none" : isAbsoluteTitle ? "flex" : "inline-flex",
56105
+ alignItems: value === "middle" ? "center" : value === "bottom" ? "flex-end" : "flex-start",
56106
+ height: isAbsoluteTitle ? "100%" : "",
56107
+ verticalAlign: value
56108
+ });
56109
+ } else {
56110
+ var previous = title.data("hiprint-title-vertical-original");
56111
+ if (previous) {
56112
+ this.style.display = previous.display || "";
56113
+ this.style.alignItems = previous.alignItems || "";
56114
+ this.style.verticalAlign = previous.verticalAlign || "";
56115
+ this.style.height = previous.height || "";
56116
+ title.removeData("hiprint-title-vertical-original");
56117
+ }
56118
+ }
56119
+ } else {
56120
+ var property = kind === "paddingLeft" ? "padding-left" : kind === "paddingTop" ? "padding-top" : kind === "paddingRight" ? "padding-right" : "padding-bottom";
56121
+ var propertyName = property.replace(/-([a-z])/g, function(_3, c3) {
56122
+ return c3.toUpperCase();
56123
+ });
56124
+ var paddingKey = "hiprint-title-option-original-" + name2;
56125
+ if (value != null && value !== "") {
56126
+ if (!title.data(paddingKey))
56127
+ title.data(paddingKey, this.style[propertyName]);
56128
+ this.style[propertyName] = parseFloat(value) + "pt";
56129
+ } else {
56130
+ var previousPadding = title.data(paddingKey);
56131
+ if (previousPadding !== void 0) {
56132
+ this.style[propertyName] = previousPadding || "";
56133
+ title.removeData(paddingKey);
56134
+ }
56135
+ }
56136
+ }
56137
+ });
56138
+ return null;
56139
+ }, t5.prototype.getValue = function() {
56140
+ var value = this.target.find("select").val();
56141
+ if (value == null || value === "")
56142
+ return;
56143
+ return kind === "paddingLeft" || kind === "paddingTop" || kind === "paddingRight" || kind === "paddingBottom" ? parseFloat(value.toString()) : value.toString();
56144
+ }, t5.prototype.setValue = function(value) {
56145
+ this.target.find("select").val(value == null ? "" : String(value));
56146
+ }, t5.prototype.destroy = function() {
56147
+ this.target.remove();
56148
+ }, t5;
56149
+ };
56150
+ }, titleTextAlignOption = createTitleLayoutOption("titleTextAlign", "标签左右对齐", "align"), titleTextContentVerticalAlignOption = createTitleLayoutOption("titleTextContentVerticalAlign", "标签上下对齐", "valign"), titleContentPaddingLeftOption = createTitleLayoutOption("titleContentPaddingLeft", "标签左内边距", "paddingLeft"), titleContentPaddingTopOption = createTitleLayoutOption("titleContentPaddingTop", "标签上内边距", "paddingTop"), titleContentPaddingRightOption = createTitleLayoutOption("titleContentPaddingRight", "标签右内边距", "paddingRight"), titleContentPaddingBottomOption = createTitleLayoutOption("titleContentPaddingBottom", "标签下内边距", "paddingBottom"), R2 = function() {
55972
56151
  function t5() {
55973
56152
  this.name = "showInPage";
55974
56153
  }
@@ -60457,7 +60636,7 @@ ${i18n.__("转大小写")}
60457
60636
  return t5.init = function() {
60458
60637
  t5.printElementOptionItems || (t5.printElementOptionItems = {}, t5._printElementOptionItems.forEach(function(e3) {
60459
60638
  t5.printElementOptionItems[e3.name] = e3;
60460
- }), t5.printElementOptionItems.contentIndent || (t5.printElementOptionItems.contentIndent = new contentIndentOption()), t5.printElementOptionItems.titleFontFamily || (t5.printElementOptionItems.titleFontFamily = new (titleFontFamilyOption())()), t5.printElementOptionItems.titleFontSize || (t5.printElementOptionItems.titleFontSize = new (titleFontSizeOption())()), t5.printElementOptionItems.titleFontWeight || (t5.printElementOptionItems.titleFontWeight = new (titleFontWeightOption())()), t5.printElementOptionItems.titleColor || (t5.printElementOptionItems.titleColor = new (titleColorOption())()));
60639
+ }), t5.printElementOptionItems.contentIndent || (t5.printElementOptionItems.contentIndent = new contentIndentOption()), t5.printElementOptionItems.titleFontFamily || (t5.printElementOptionItems.titleFontFamily = new (titleFontFamilyOption())()), t5.printElementOptionItems.titleFontSize || (t5.printElementOptionItems.titleFontSize = new (titleFontSizeOption())()), t5.printElementOptionItems.titleFontWeight || (t5.printElementOptionItems.titleFontWeight = new (titleFontWeightOption())()), t5.printElementOptionItems.titleColor || (t5.printElementOptionItems.titleColor = new (titleColorOption())()), t5.printElementOptionItems.titleTextAlign || (t5.printElementOptionItems.titleTextAlign = new (titleTextAlignOption())()), t5.printElementOptionItems.titleTextContentVerticalAlign || (t5.printElementOptionItems.titleTextContentVerticalAlign = new (titleTextContentVerticalAlignOption())()), t5.printElementOptionItems.titleContentPaddingLeft || (t5.printElementOptionItems.titleContentPaddingLeft = new (titleContentPaddingLeftOption())()), t5.printElementOptionItems.titleContentPaddingTop || (t5.printElementOptionItems.titleContentPaddingTop = new (titleContentPaddingTopOption())()), t5.printElementOptionItems.titleContentPaddingRight || (t5.printElementOptionItems.titleContentPaddingRight = new (titleContentPaddingRightOption())()), t5.printElementOptionItems.titleContentPaddingBottom || (t5.printElementOptionItems.titleContentPaddingBottom = new (titleContentPaddingBottomOption())()));
60461
60640
  }, t5.registerItem = function(e3) {
60462
60641
  if (!e3.name)
60463
60642
  throw new Error("styleItem must have name");
@@ -64358,7 +64537,25 @@ ${i18n.__("转大小写")}
64358
64537
  }, t.prototype.append = function(t4) {
64359
64538
  this.paperContentTarget.append(t4);
64360
64539
  }, t.prototype.updateReferenceElement = function(t4) {
64361
- t4 && (this.referenceElement = t4);
64540
+ if (!t4)
64541
+ return;
64542
+ var current = this.referenceElement;
64543
+ var sameRow = current && t4 && Math.abs(Number(current.top) - Number(t4.top)) <= 2.5 && current.beginPrintPaperIndex === t4.beginPrintPaperIndex && current.endPrintPaperIndex === t4.endPrintPaperIndex;
64544
+ if (!sameRow) {
64545
+ this.referenceElement = t4;
64546
+ return;
64547
+ }
64548
+ var currentLeft = Number(current.left), nextLeft = Number(t4.left);
64549
+ var currentRight = currentLeft + Number(current.width);
64550
+ var nextRight = nextLeft + Number(t4.width);
64551
+ var mergedLeft = Number.isFinite(currentLeft) && Number.isFinite(nextLeft) ? Math.min(currentLeft, nextLeft) : t4.left;
64552
+ var mergedRight = Number.isFinite(currentRight) && Number.isFinite(nextRight) ? Math.max(currentRight, nextRight) : t4.left + t4.width;
64553
+ current.left = mergedLeft;
64554
+ current.width = Math.max(0, mergedRight - mergedLeft);
64555
+ current.height = Math.max(Number(current.height) || 0, Number(t4.height) || 0);
64556
+ current.bottomInLastPaper = Math.max(Number(current.bottomInLastPaper) || 0, Number(t4.bottomInLastPaper) || 0);
64557
+ current.printTopInPaper = Math.min(Number(current.printTopInPaper) || 0, Number(t4.printTopInPaper) || 0);
64558
+ current.endPrintPaperIndex = Math.max(current.endPrintPaperIndex, t4.endPrintPaperIndex);
64362
64559
  }, t.prototype.updatePrintLine = function(t4) {
64363
64560
  t4 >= this.printLine && (this.printLine = t4);
64364
64561
  }, t.prototype.design = function(t4) {
@@ -64550,7 +64747,7 @@ ${i18n.__("转大小写")}
64550
64747
  return Number.isFinite(n3) && n3 > 0 ? n3 : 0;
64551
64748
  }, e2.prototype.hasCustomTitleStyle = function() {
64552
64749
  var options2 = this.options || {};
64553
- return [options2.titleFontFamily, options2.titleFontSize, options2.titleFontWeight, options2.titleColor].some(function(value) {
64750
+ return [options2.titleFontFamily, options2.titleFontSize, options2.titleFontWeight, options2.titleColor, options2.titleTextAlign, options2.titleTextContentVerticalAlign, options2.titleContentPaddingLeft, options2.titleContentPaddingTop, options2.titleContentPaddingRight, options2.titleContentPaddingBottom].some(function(value) {
64554
64751
  return value != null && value !== "";
64555
64752
  });
64556
64753
  }, e2.prototype.usesStructuredTitle = function() {
@@ -64561,7 +64758,7 @@ ${i18n.__("转大小写")}
64561
64758
  v2 = 0 != this.options.leftSpaceRemoved ? v2.toString().replace(/^\s*/, "") : v2;
64562
64759
  if (this.getField()) {
64563
64760
  return {
64564
- title: this.options.getHideTitle() ? "" : t5 ? t5 + ":" : "",
64761
+ title: this.options.getHideTitle() ? "" : t5 ? t5 : "",
64565
64762
  body: n3 ? this._callFormatterSafely(n3, [t5, v2, this.options, this._currenttemplateData], v2) : v2
64566
64763
  };
64567
64764
  }
@@ -64591,11 +64788,13 @@ ${i18n.__("转大小写")}
64591
64788
  body.html(bodyText == null ? "" : bodyText);
64592
64789
  content2.css({ position: "relative", boxSizing: "border-box" });
64593
64790
  if (indent > 0) {
64594
- title.css({ position: "absolute", left: "0pt", top: "0pt", width: indent + "pt", display: titleText ? "block" : "none", boxSizing: "border-box" });
64595
- body.css({ display: "block", marginLeft: indent + "pt", width: "calc(100% - " + indent + "pt)", boxSizing: "border-box" });
64791
+ content2.css({ display: "flex", alignItems: "flex-start" });
64792
+ title.css({ position: "", left: "", top: "", width: indent + "pt", flex: "0 0 " + indent + "pt", display: titleText ? "flex" : "none", boxSizing: "border-box" });
64793
+ body.css({ display: "block", marginLeft: "", width: "", flex: "1 1 auto", minWidth: 0, boxSizing: "border-box" });
64596
64794
  } else {
64597
- title.css({ position: "", left: "", top: "", width: "", display: titleText ? "inline" : "none", boxSizing: "" });
64598
- body.css({ display: "inline", marginLeft: "", width: "", boxSizing: "" });
64795
+ content2.css({ display: "", alignItems: "" });
64796
+ title.css({ position: "", left: "", top: "", width: "", flex: "", display: titleText ? "inline" : "none", boxSizing: "" });
64797
+ body.css({ display: "inline", marginLeft: "", width: "", flex: "", minWidth: "", boxSizing: "" });
64599
64798
  }
64600
64799
  }, e2.prototype.setPagedBodyHtml = function(target, html2) {
64601
64800
  var body = target.find(".hiprint-printElement-longText-body");
@@ -64628,7 +64827,7 @@ ${i18n.__("转大小写")}
64628
64827
  }, e2.prototype.getText = function(t5, e3) {
64629
64828
  var n3 = this.getFormatter();
64630
64829
  e3 && (e3 = 0 != this.options.leftSpaceRemoved ? e3.toString().replace(/^\s*/, "") : e3);
64631
- return (this.getField() ? (this.options.getHideTitle() ? "" : t5 ? t5 + ":" : "") + (n3 ? this._callFormatterSafely(n3, [t5, e3, this.options, this._currenttemplateData], e3) : e3) : n3 ? this._callFormatterSafely(n3, [t5, t5, this.options, this._currenttemplateData], t5) : t5 || "") || "";
64830
+ return (this.getField() ? (this.options.getHideTitle() ? "" : t5 ? t5 : "") + (n3 ? this._callFormatterSafely(n3, [t5, e3, this.options, this._currenttemplateData], e3) : e3) : n3 ? this._callFormatterSafely(n3, [t5, t5, this.options, this._currenttemplateData], t5) : t5 || "") || "";
64632
64831
  }, e2.prototype.getHtml = function(t5, e3) {
64633
64832
  this.setCurrenttemplateData(e3), this.createTempContainer();
64634
64833
  var n3 = this.getPaperHtmlResult(t5, e3);
@@ -64872,7 +65071,7 @@ ${i18n.__("转大小写")}
64872
65071
  hideTitle = true;
64873
65072
  if (hideTitle === "false")
64874
65073
  hideTitle = false;
64875
- var titleText = this.getField() && !hideTitle && e3 ? e3 + ":" : "";
65074
+ var titleText = this.getField() && !hideTitle && e3 ? e3 : "";
64876
65075
  var bodyText;
64877
65076
  var useSeparateTitle = false;
64878
65077
  if (this.getField()) {
@@ -67535,21 +67734,9 @@ ${i18n.__("转大小写")}
67535
67734
  hideTitle = true;
67536
67735
  if (hideTitle === "false")
67537
67736
  hideTitle = false;
67538
- content2.css({ position: "relative", boxSizing: "border-box" });
67539
- title.css({
67540
- position: "absolute",
67541
- left: "0pt",
67542
- top: "0pt",
67543
- width: indent + "pt",
67544
- display: this.options.title && !hideTitle ? "block" : "none",
67545
- boxSizing: "border-box"
67546
- });
67547
- wrapper.css({
67548
- display: "block",
67549
- marginLeft: indent + "pt",
67550
- width: "calc(100% - " + indent + "pt)",
67551
- boxSizing: "border-box"
67552
- });
67737
+ content2.css({ display: "flex", alignItems: "flex-start", boxSizing: "border-box" });
67738
+ title.css({ width: indent + "pt", flex: "0 0 " + indent + "pt", display: this.options.title && !hideTitle ? "flex" : "none", boxSizing: "border-box" });
67739
+ wrapper.css({ display: "block", flex: "1 1 auto", minWidth: 0, marginLeft: "", width: "", boxSizing: "border-box" });
67553
67740
  }, e.prototype.applyHtmlTitleStyle = function(title) {
67554
67741
  if (!title || !title.length)
67555
67742
  return;
@@ -67645,7 +67832,7 @@ ${i18n.__("转大小写")}
67645
67832
  if (hideTitle === "false")
67646
67833
  hideTitle = false;
67647
67834
  if (this.options.title && !hideTitle) {
67648
- title.text(this.options.title + ":");
67835
+ title.text(this.options.title);
67649
67836
  if (this.isGalleryElement && this.isGalleryElement()) {
67650
67837
  title.css({ width: "100%", display: "block", "text-align": "left" });
67651
67838
  contentWrapper2.css({ width: "100%", display: "block" });
@@ -68493,7 +68680,6 @@ ${i18n.__("转大小写")}
68493
68680
  }
68494
68681
  allElements[j] = restEl;
68495
68682
  pageHeight = Math.max(pageElement[0].scrollHeight, pageElement.outerHeight(true));
68496
- elementsToRemove.push(j);
68497
68683
  } else {
68498
68684
  var singleChild = children.length === 1 ? children[0] : null;
68499
68685
  var isTextChild = singleChild && singleChild.nodeType === 3;
@@ -68524,7 +68710,6 @@ ${i18n.__("转大小写")}
68524
68710
  restEl2.append($$i("<span></span>").text(restText));
68525
68711
  allElements[j] = restEl2;
68526
68712
  pageHeight = Math.max(pageElement[0].scrollHeight, pageElement.outerHeight(true));
68527
- elementsToRemove.push(j);
68528
68713
  } else {
68529
68714
  if (partialEl && partialEl.remove) {
68530
68715
  partialEl.remove();
@@ -68579,7 +68764,6 @@ ${i18n.__("转大小写")}
68579
68764
  }
68580
68765
  allElements[j] = restEl3;
68581
68766
  pageHeight = Math.max(pageElement[0].scrollHeight, pageElement.outerHeight(true));
68582
- elementsToRemove.push(j);
68583
68767
  } else {
68584
68768
  if (partialEl && partialEl.remove) {
68585
68769
  partialEl.remove();
@@ -68639,7 +68823,6 @@ ${i18n.__("转大小写")}
68639
68823
  }
68640
68824
  allElements[j] = restEl4;
68641
68825
  pageHeight = Math.max(pageElement[0].scrollHeight, pageElement.outerHeight(true));
68642
- elementsToRemove.push(j);
68643
68826
  } else {
68644
68827
  if (partialEl && partialEl.remove) {
68645
68828
  partialEl.remove();
@@ -71020,6 +71203,12 @@ ${i18n.__("转大小写")}
71020
71203
  this.index = t4.index, this.name = t4.name, this.nameField = t4.nameField, this.width = t4.width, this.height = t4.height, this.paperType = t4.paperType, this.paperHeader = t4.paperHeader, this.paperFooter = t4.paperFooter;
71021
71204
  this.designPaper.width = o.a.mm.toPt(t4.width), this.designPaper.height = o.a.mm.toPt(this.height), this.designPaper.paperType = this.paperType, this.designPaper.paperHeader = this.paperHeader, this.designPaper.paperFooter = this.paperFooter;
71022
71205
  this.designPaper.mmheight = t4.height, this.designPaper.mmwidth = t4.width;
71206
+ if (this.designPaper.target && this.designPaper.target.length) {
71207
+ this.designPaper.target.css("width", t4.width + "mm");
71208
+ this.designPaper.target.css("height", t4.height - p.a.instance.paperHeightTrim + "mm");
71209
+ this.designPaper.target.attr("original-height", t4.height);
71210
+ }
71211
+ this.designPaper.contentHeight = this.designPaper.paperFooter - this.designPaper.paperHeader;
71023
71212
  this.designPaper.headerLinetarget.css("top", (this.paperHeader || -1) + "pt"), 0 == this.paperHeader ? this.designPaper.headerLinetarget.addClass("hideheaderLinetarget") : this.designPaper.headerLinetarget.removeClass("hideheaderLinetarget");
71024
71213
  this.designPaper.footerLinetarget.css("top", parseInt(this.paperFooter.toString()) + "pt"), this.paperFooter >= this.designPaper.height ? (this.designPaper.footerLinetarget.css("top", t4.height - p.a.instance.paperHeightTrim + "mm"), this.designPaper.footerLinetarget.addClass("hidefooterLinetarget")) : this.designPaper.footerLinetarget.removeClass("hidefooterLinetarget");
71025
71214
  this.watermarkOptions = t4.watermarkOptions || {};
@@ -71323,10 +71512,17 @@ ${i18n.__("转大小写")}
71323
71512
  if (!Number.isFinite(dx))
71324
71513
  dx = 0;
71325
71514
  var imgLeft = contentLeftPt + dx;
71515
+ if (typeof img.setCurrenttemplateData === "function")
71516
+ img.setCurrenttemplateData(printData4);
71326
71517
  var imgData = img.getData(printData4) || "";
71518
+ var emptyDisplayMode = typeof img.getEmptyDataDisplayMode === "function" ? img.getEmptyDataDisplayMode(imgData) : "";
71519
+ if (emptyDisplayMode === "collapse")
71520
+ return;
71327
71521
  var target = img.createTarget(img.getTitle(), imgData, paper.index);
71328
71522
  img.updateTargetSize(target);
71329
71523
  img.css(target, imgData);
71524
+ if (emptyDisplayMode === "placeholder")
71525
+ target.css("visibility", "hidden");
71330
71526
  var imgH = 0;
71331
71527
  try {
71332
71528
  imgH = Number(img.options.getHeight ? img.options.getHeight() : img.options.height) || 0;
@@ -71356,6 +71552,94 @@ ${i18n.__("转大小写")}
71356
71552
  } catch (_2) {
71357
71553
  }
71358
71554
  };
71555
+ var __layoutGroups = {};
71556
+ var __layoutGroupList = [];
71557
+ (this.printElements || []).forEach(function(element2) {
71558
+ var options2 = element2 && element2.options;
71559
+ var groupValue = options2 && options2.layoutGroup;
71560
+ if (groupValue == null || String(groupValue).trim() === "")
71561
+ return;
71562
+ var key = String(groupValue);
71563
+ var top = Number(options2.getTop ? options2.getTop() : options2.top);
71564
+ var left = Number(options2.getLeft ? options2.getLeft() : options2.left);
71565
+ var width2 = Number(options2.getWidth ? options2.getWidth() : options2.width);
71566
+ var height = Number(options2.getHeight ? options2.getHeight() : options2.height);
71567
+ if (!Number.isFinite(top) || !Number.isFinite(left) || !Number.isFinite(width2) || !Number.isFinite(height))
71568
+ return;
71569
+ var info = __layoutGroups[key];
71570
+ if (!info) {
71571
+ info = __layoutGroups[key] = {
71572
+ key,
71573
+ rawTop: top,
71574
+ baseHeight: height,
71575
+ left,
71576
+ right: left + width2,
71577
+ memberCount: 0,
71578
+ processedCount: 0,
71579
+ effectiveTop: null,
71580
+ actualTop: null,
71581
+ actualBottom: null,
71582
+ extra: 0,
71583
+ hasPaging: false,
71584
+ firstPageIndex: null
71585
+ };
71586
+ __layoutGroupList.push(info);
71587
+ } else {
71588
+ info.rawTop = Math.min(info.rawTop, top);
71589
+ info.baseHeight = Math.max(info.baseHeight, height);
71590
+ info.left = Math.min(info.left, left);
71591
+ info.right = Math.max(info.right, left + width2);
71592
+ }
71593
+ info.memberCount++;
71594
+ });
71595
+ __layoutGroupList.sort(function(a2, b3) {
71596
+ return a2.rawTop - b3.rawTop || a2.left - b3.left;
71597
+ });
71598
+ var __layoutGroupsOverlap = function(a2, b3) {
71599
+ return a2.left < b3.right && b3.left < a2.right;
71600
+ };
71601
+ var __getLayoutGroupTop = function(info) {
71602
+ if (!info)
71603
+ return null;
71604
+ if (Number.isFinite(info.effectiveTop))
71605
+ return info.effectiveTop;
71606
+ var shift = 0;
71607
+ __layoutGroupList.forEach(function(previous) {
71608
+ if (previous === info || previous.rawTop >= info.rawTop)
71609
+ return;
71610
+ var previousBottom = previous.rawTop + previous.baseHeight;
71611
+ if (previousBottom <= info.rawTop + 2.5 && __layoutGroupsOverlap(previous, info)) {
71612
+ shift += Number(previous.extra) || 0;
71613
+ }
71614
+ });
71615
+ info.effectiveTop = info.rawTop + shift;
71616
+ return info.effectiveTop;
71617
+ };
71618
+ var __recordLayoutGroupResult = function(info, results, startPageIndex) {
71619
+ if (!info || !results || !results.length)
71620
+ return;
71621
+ var firstRef = results[0] && results[0].referenceElement;
71622
+ if (info.firstPageIndex == null && firstRef && typeof startPageIndex === "number") {
71623
+ info.firstPageIndex = startPageIndex;
71624
+ }
71625
+ if (results.length > 1) {
71626
+ info.hasPaging = true;
71627
+ return;
71628
+ }
71629
+ var ref = results[0] && results[0].referenceElement;
71630
+ if (!ref || typeof startPageIndex === "number" && ref.beginPrintPaperIndex !== startPageIndex)
71631
+ return;
71632
+ var top = Number(ref.printTopInPaper), bottom = Number(ref.bottomInLastPaper);
71633
+ if (!Number.isFinite(top) || !Number.isFinite(bottom))
71634
+ return;
71635
+ info.actualTop = info.actualTop == null ? top : Math.min(info.actualTop, top);
71636
+ info.actualBottom = info.actualBottom == null ? bottom : Math.max(info.actualBottom, bottom);
71637
+ info.processedCount++;
71638
+ if (info.processedCount >= info.memberCount && !info.hasPaging && info.actualBottom != null) {
71639
+ var baseBottom = (info.actualTop == null ? info.effectiveTop : info.actualTop) + info.baseHeight;
71640
+ info.extra = Math.max(0, info.actualBottom - baseBottom);
71641
+ }
71642
+ };
71359
71643
  this.printElements.filter(function(t4) {
71360
71644
  if (!t4 || t4.isFixed() || t4.isHeaderOrFooter())
71361
71645
  return false;
@@ -71364,15 +71648,20 @@ ${i18n.__("转大小写")}
71364
71648
  return true;
71365
71649
  }).forEach(function(e2) {
71366
71650
  var n3 = [], i3 = p[p.length - 1];
71367
- var __sameRowBefore = !!(i3 && i3.referenceElement && i3.referenceElement.isPositionLeftOrRight(e2.options.getTop()));
71368
- var __rowBottomBefore = __sameRowBefore && Number.isFinite(Number(i3.referenceElement.bottomInLastPaper)) ? Number(i3.referenceElement.bottomInLastPaper) : null;
71651
+ var __layoutGroupValue = e2 && e2.options && e2.options.layoutGroup;
71652
+ var __layoutGroupInfo = __layoutGroupValue == null ? null : __layoutGroups[String(__layoutGroupValue)];
71653
+ if (__layoutGroupInfo) {
71654
+ e2.__layoutTop = __getLayoutGroupTop(__layoutGroupInfo);
71655
+ }
71369
71656
  var getSafePage = function(pageIdx, fallbackPage) {
71370
71657
  var idx2 = typeof pageIdx === "number" && pageIdx >= 0 ? pageIdx : fallbackPage && typeof fallbackPage.index === "number" ? fallbackPage.index : p.length - 1;
71371
71658
  if (!p[idx2])
71372
71659
  idx2 = p.length - 1;
71373
71660
  return p[idx2] || fallbackPage || p[p.length - 1];
71374
71661
  };
71375
- if (i3.referenceElement && i3.referenceElement.isPositionLeftOrRight(e2.options.getTop())) {
71662
+ if (__layoutGroupInfo && Number.isInteger(__layoutGroupInfo.firstPageIndex)) {
71663
+ l = getSafePage(__layoutGroupInfo.firstPageIndex, i3);
71664
+ } else if (i3.referenceElement && i3.referenceElement.isPositionLeftOrRight(e2.options.getTop(), e2.options.getLeft(), e2.options.getWidth())) {
71376
71665
  l = getSafePage(i3.referenceElement.beginPrintPaperIndex, i3);
71377
71666
  } else {
71378
71667
  l = getSafePage(i3 && i3.referenceElement ? i3.referenceElement.endPrintPaperIndex : void 0, i3);
@@ -71383,6 +71672,10 @@ ${i18n.__("转大小写")}
71383
71672
  a.append(l.getTarget());
71384
71673
  }
71385
71674
  n3 = e2.getHtml(l, __printData) || [];
71675
+ if (__layoutGroupInfo) {
71676
+ __recordLayoutGroupResult(__layoutGroupInfo, n3, l && typeof l.index === "number" ? l.index : void 0);
71677
+ e2.__layoutTop = void 0;
71678
+ }
71386
71679
  n3.forEach(function(t4, i4) {
71387
71680
  if (t4.referenceElement) {
71388
71681
  if (typeof t4.referenceElement.beginPrintPaperIndex !== "number") {
@@ -71403,12 +71696,6 @@ ${i18n.__("转大小写")}
71403
71696
  var __visibleByPage = e2.showInPage ? e2.showInPage(l.index, p.length) : "none" != e2.options.showInPage;
71404
71697
  t4.target && (__visibleByPage && (l.append(t4.target), l.updatePrintLine(t4.printLine), e2.onRendered(l, t4.target)));
71405
71698
  if (i4 == n3.length - 1 && t4.referenceElement) {
71406
- if (__sameRowBefore && __rowBottomBefore != null) {
71407
- var __currentBottom = Number(t4.referenceElement.bottomInLastPaper);
71408
- if (!Number.isFinite(__currentBottom) || __rowBottomBefore > __currentBottom) {
71409
- t4.referenceElement.bottomInLastPaper = __rowBottomBefore;
71410
- }
71411
- }
71412
71699
  l.updateReferenceElement(t4.referenceElement);
71413
71700
  }
71414
71701
  if (t4.target && __visibleByPage && e2.printElementType && e2.printElementType.type === "table") {
@@ -74613,8 +74900,35 @@ var defaultElementTypeProvider$1 = defaultTypeProvider(hiprint$3);
74613
74900
  }
74614
74901
  })($$i);
74615
74902
  (function() {
74903
+ function translate(key, fallback) {
74904
+ try {
74905
+ var value = i18n$1 && i18n$1.global && i18n$1.global.t ? i18n$1.global.t(key) : "";
74906
+ return value && value !== key ? value : fallback;
74907
+ } catch (_2) {
74908
+ return fallback;
74909
+ }
74910
+ }
74911
+ function layoutGroupOption() {
74912
+ this.name = "layoutGroup";
74913
+ }
74914
+ layoutGroupOption.prototype.createTarget = function() {
74915
+ this.target = $('<div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n ' + translate("hiprint.layoutGroup.label", "同一行组件") + '\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" class="auto-submit" placeholder="' + translate("hiprint.layoutGroup.placeholder", "相同名称表示同一行") + '" />\n </div>\n </div>');
74916
+ return this.target;
74917
+ };
74918
+ layoutGroupOption.prototype.getValue = function() {
74919
+ var value = this.target.find("input").val();
74920
+ value = value == null ? "" : value.toString().trim();
74921
+ return value || void 0;
74922
+ };
74923
+ layoutGroupOption.prototype.setValue = function(value) {
74924
+ this.target.find("input").val(value == null ? "" : value);
74925
+ };
74926
+ layoutGroupOption.prototype.destroy = function() {
74927
+ this.target.remove();
74928
+ };
74616
74929
  window.HIPRINT_CONFIG = {
74617
74930
  //optionItems: [hiprintCustomOptionItem],//自定义选项
74931
+ optionItems: [layoutGroupOption],
74618
74932
  movingDistance: 1.5,
74619
74933
  //鼠标拖动一次移动的距离,默认1.5pt
74620
74934
  paperHeightTrim: 1,
@@ -74931,6 +75245,10 @@ var defaultElementTypeProvider$1 = defaultTypeProvider(hiprint$3);
74931
75245
  name: "widthHeight",
74932
75246
  hidden: false
74933
75247
  },
75248
+ {
75249
+ name: "layoutGroup",
75250
+ hidden: false
75251
+ },
74934
75252
  {
74935
75253
  name: "hideTitle",
74936
75254
  hidden: false
@@ -75162,6 +75480,10 @@ var defaultElementTypeProvider$1 = defaultTypeProvider(hiprint$3);
75162
75480
  name: "widthHeight",
75163
75481
  hidden: false
75164
75482
  },
75483
+ {
75484
+ name: "layoutGroup",
75485
+ hidden: false
75486
+ },
75165
75487
  {
75166
75488
  name: "dataType",
75167
75489
  hidden: false
@@ -75455,15 +75777,272 @@ var defaultElementTypeProvider$1 = defaultTypeProvider(hiprint$3);
75455
75777
  hidden: false
75456
75778
  },
75457
75779
  {
75458
- name: "src",
75459
- hidden: false
75460
- },
75461
- {
75462
- name: "fit",
75463
- hidden: false
75464
- },
75465
- {
75466
- name: "borderRadius",
75780
+ name: "src",
75781
+ hidden: false
75782
+ },
75783
+ {
75784
+ name: "fit",
75785
+ hidden: false
75786
+ },
75787
+ {
75788
+ name: "borderRadius",
75789
+ hidden: false
75790
+ },
75791
+ {
75792
+ name: "coordinate",
75793
+ hidden: false
75794
+ },
75795
+ {
75796
+ name: "widthHeight",
75797
+ hidden: false
75798
+ },
75799
+ {
75800
+ name: "hideTitle",
75801
+ hidden: false
75802
+ },
75803
+ {
75804
+ name: "showInPage",
75805
+ hidden: false
75806
+ },
75807
+ {
75808
+ name: "unShowInPage",
75809
+ hidden: false
75810
+ },
75811
+ {
75812
+ name: "fixed",
75813
+ hidden: false
75814
+ },
75815
+ {
75816
+ name: "pageBreak",
75817
+ hidden: false
75818
+ },
75819
+ {
75820
+ name: "axis",
75821
+ hidden: false
75822
+ },
75823
+ {
75824
+ name: "transform",
75825
+ hidden: false
75826
+ },
75827
+ {
75828
+ name: "zIndex",
75829
+ hidden: false
75830
+ },
75831
+ {
75832
+ name: "formatter",
75833
+ hidden: false
75834
+ },
75835
+ {
75836
+ name: "styler",
75837
+ hidden: false
75838
+ },
75839
+ {
75840
+ name: "followTableMode",
75841
+ hidden: false
75842
+ },
75843
+ {
75844
+ name: "followTableAnchor",
75845
+ hidden: false
75846
+ },
75847
+ {
75848
+ name: "followOffsetX",
75849
+ hidden: false
75850
+ },
75851
+ {
75852
+ name: "followOffsetY",
75853
+ hidden: false
75854
+ },
75855
+ {
75856
+ name: "followOffsetYFromBottom",
75857
+ hidden: false
75858
+ },
75859
+ {
75860
+ name: "followTableMinOverlapPt",
75861
+ hidden: false
75862
+ }
75863
+ ],
75864
+ default: {
75865
+ title: "",
75866
+ hideTitle: null
75867
+ }
75868
+ },
75869
+ longText: {
75870
+ tabs: [
75871
+ {
75872
+ name: "基础",
75873
+ options: [
75874
+ {
75875
+ name: "title",
75876
+ hidden: false
75877
+ },
75878
+ {
75879
+ name: "field",
75880
+ hidden: false
75881
+ },
75882
+ {
75883
+ name: "testData",
75884
+ hidden: false
75885
+ },
75886
+ {
75887
+ name: "coordinate",
75888
+ hidden: false
75889
+ },
75890
+ {
75891
+ name: "widthHeight",
75892
+ hidden: false
75893
+ },
75894
+ {
75895
+ name: "layoutGroup",
75896
+ hidden: false
75897
+ },
75898
+ {
75899
+ name: "hideTitle",
75900
+ hidden: false
75901
+ },
75902
+ {
75903
+ name: "fixed",
75904
+ hidden: false
75905
+ }
75906
+ ]
75907
+ },
75908
+ {
75909
+ name: "样式",
75910
+ options: [
75911
+ {
75912
+ name: "fontFamily",
75913
+ hidden: false
75914
+ },
75915
+ {
75916
+ name: "fontSize",
75917
+ hidden: false
75918
+ },
75919
+ {
75920
+ name: "fontWeight",
75921
+ hidden: false
75922
+ },
75923
+ {
75924
+ name: "letterSpacing",
75925
+ hidden: false
75926
+ },
75927
+ {
75928
+ name: "textAlign",
75929
+ hidden: false
75930
+ },
75931
+ {
75932
+ name: "lineHeight",
75933
+ hidden: false
75934
+ },
75935
+ {
75936
+ name: "color",
75937
+ hidden: false
75938
+ },
75939
+ {
75940
+ name: "titleFontFamily",
75941
+ hidden: false
75942
+ },
75943
+ {
75944
+ name: "titleFontSize",
75945
+ hidden: false
75946
+ },
75947
+ {
75948
+ name: "titleFontWeight",
75949
+ hidden: false
75950
+ },
75951
+ {
75952
+ name: "titleColor",
75953
+ hidden: false
75954
+ },
75955
+ {
75956
+ name: "titleTextContentVerticalAlign",
75957
+ hidden: false
75958
+ },
75959
+ {
75960
+ name: "titleTextAlign",
75961
+ hidden: false
75962
+ },
75963
+ {
75964
+ name: "titleContentPaddingLeft",
75965
+ hidden: false
75966
+ },
75967
+ {
75968
+ name: "titleContentPaddingTop",
75969
+ hidden: false
75970
+ },
75971
+ {
75972
+ name: "titleContentPaddingRight",
75973
+ hidden: false
75974
+ },
75975
+ {
75976
+ name: "titleContentPaddingBottom",
75977
+ hidden: false
75978
+ },
75979
+ {
75980
+ name: "longTextIndent",
75981
+ hidden: false
75982
+ },
75983
+ {
75984
+ name: "contentIndent",
75985
+ hidden: false
75986
+ },
75987
+ {
75988
+ name: "leftSpaceRemoved",
75989
+ hidden: false
75990
+ },
75991
+ {
75992
+ name: "lHeight",
75993
+ hidden: false
75994
+ },
75995
+ {
75996
+ name: "transform",
75997
+ hidden: false
75998
+ },
75999
+ {
76000
+ name: "zIndex",
76001
+ hidden: false
76002
+ }
76003
+ ]
76004
+ },
76005
+ {
76006
+ name: "高级",
76007
+ options: [
76008
+ {
76009
+ name: "pageBreak",
76010
+ hidden: false
76011
+ },
76012
+ {
76013
+ name: "showInPage",
76014
+ hidden: false
76015
+ },
76016
+ {
76017
+ name: "unShowInPage",
76018
+ hidden: false
76019
+ },
76020
+ {
76021
+ name: "axis",
76022
+ hidden: false
76023
+ },
76024
+ {
76025
+ name: "formatter",
76026
+ hidden: false
76027
+ },
76028
+ {
76029
+ name: "styler",
76030
+ hidden: false
76031
+ }
76032
+ ]
76033
+ }
76034
+ ],
76035
+ supportOptions: [
76036
+ {
76037
+ name: "title",
76038
+ hidden: false
76039
+ },
76040
+ {
76041
+ name: "field",
76042
+ hidden: false
76043
+ },
76044
+ {
76045
+ name: "testData",
75467
76046
  hidden: false
75468
76047
  },
75469
76048
  {
@@ -75475,276 +76054,75 @@ var defaultElementTypeProvider$1 = defaultTypeProvider(hiprint$3);
75475
76054
  hidden: false
75476
76055
  },
75477
76056
  {
75478
- name: "hideTitle",
75479
- hidden: false
75480
- },
75481
- {
75482
- name: "showInPage",
75483
- hidden: false
75484
- },
75485
- {
75486
- name: "unShowInPage",
75487
- hidden: false
75488
- },
75489
- {
75490
- name: "fixed",
75491
- hidden: false
75492
- },
75493
- {
75494
- name: "pageBreak",
75495
- hidden: false
75496
- },
75497
- {
75498
- name: "axis",
75499
- hidden: false
75500
- },
75501
- {
75502
- name: "transform",
75503
- hidden: false
75504
- },
75505
- {
75506
- name: "zIndex",
75507
- hidden: false
75508
- },
75509
- {
75510
- name: "formatter",
75511
- hidden: false
75512
- },
75513
- {
75514
- name: "styler",
75515
- hidden: false
75516
- },
75517
- {
75518
- name: "followTableMode",
75519
- hidden: false
75520
- },
75521
- {
75522
- name: "followTableAnchor",
75523
- hidden: false
75524
- },
75525
- {
75526
- name: "followOffsetX",
75527
- hidden: false
75528
- },
75529
- {
75530
- name: "followOffsetY",
75531
- hidden: false
75532
- },
75533
- {
75534
- name: "followOffsetYFromBottom",
76057
+ name: "layoutGroup",
75535
76058
  hidden: false
75536
76059
  },
75537
76060
  {
75538
- name: "followTableMinOverlapPt",
76061
+ name: "fontFamily",
75539
76062
  hidden: false
75540
- }
75541
- ],
75542
- default: {
75543
- title: "",
75544
- hideTitle: null
75545
- }
75546
- },
75547
- longText: {
75548
- tabs: [
75549
- {
75550
- name: "基础",
75551
- options: [
75552
- {
75553
- name: "title",
75554
- hidden: false
75555
- },
75556
- {
75557
- name: "field",
75558
- hidden: false
75559
- },
75560
- {
75561
- name: "testData",
75562
- hidden: false
75563
- },
75564
- {
75565
- name: "coordinate",
75566
- hidden: false
75567
- },
75568
- {
75569
- name: "widthHeight",
75570
- hidden: false
75571
- },
75572
- {
75573
- name: "hideTitle",
75574
- hidden: false
75575
- },
75576
- {
75577
- name: "fixed",
75578
- hidden: false
75579
- }
75580
- ]
75581
- },
75582
- {
75583
- name: "样式",
75584
- options: [
75585
- {
75586
- name: "fontFamily",
75587
- hidden: false
75588
- },
75589
- {
75590
- name: "fontSize",
75591
- hidden: false
75592
- },
75593
- {
75594
- name: "fontWeight",
75595
- hidden: false
75596
- },
75597
- {
75598
- name: "letterSpacing",
75599
- hidden: false
75600
- },
75601
- {
75602
- name: "textAlign",
75603
- hidden: false
75604
- },
75605
- {
75606
- name: "lineHeight",
75607
- hidden: false
75608
- },
75609
- {
75610
- name: "color",
75611
- hidden: false
75612
- },
75613
- {
75614
- name: "titleFontFamily",
75615
- hidden: false
75616
- },
75617
- {
75618
- name: "titleFontSize",
75619
- hidden: false
75620
- },
75621
- {
75622
- name: "titleFontWeight",
75623
- hidden: false
75624
- },
75625
- {
75626
- name: "titleColor",
75627
- hidden: false
75628
- },
75629
- {
75630
- name: "longTextIndent",
75631
- hidden: false
75632
- },
75633
- {
75634
- name: "contentIndent",
75635
- hidden: false
75636
- },
75637
- {
75638
- name: "leftSpaceRemoved",
75639
- hidden: false
75640
- },
75641
- {
75642
- name: "lHeight",
75643
- hidden: false
75644
- },
75645
- {
75646
- name: "transform",
75647
- hidden: false
75648
- },
75649
- {
75650
- name: "zIndex",
75651
- hidden: false
75652
- }
75653
- ]
75654
76063
  },
75655
76064
  {
75656
- name: "高级",
75657
- options: [
75658
- {
75659
- name: "pageBreak",
75660
- hidden: false
75661
- },
75662
- {
75663
- name: "showInPage",
75664
- hidden: false
75665
- },
75666
- {
75667
- name: "unShowInPage",
75668
- hidden: false
75669
- },
75670
- {
75671
- name: "axis",
75672
- hidden: false
75673
- },
75674
- {
75675
- name: "formatter",
75676
- hidden: false
75677
- },
75678
- {
75679
- name: "styler",
75680
- hidden: false
75681
- }
75682
- ]
75683
- }
75684
- ],
75685
- supportOptions: [
75686
- {
75687
- name: "title",
76065
+ name: "fontSize",
75688
76066
  hidden: false
75689
76067
  },
75690
76068
  {
75691
- name: "field",
76069
+ name: "fontWeight",
75692
76070
  hidden: false
75693
76071
  },
75694
76072
  {
75695
- name: "testData",
76073
+ name: "letterSpacing",
75696
76074
  hidden: false
75697
76075
  },
75698
76076
  {
75699
- name: "coordinate",
76077
+ name: "textAlign",
75700
76078
  hidden: false
75701
76079
  },
75702
76080
  {
75703
- name: "widthHeight",
76081
+ name: "lineHeight",
75704
76082
  hidden: false
75705
76083
  },
75706
76084
  {
75707
- name: "fontFamily",
76085
+ name: "color",
75708
76086
  hidden: false
75709
76087
  },
75710
76088
  {
75711
- name: "fontSize",
76089
+ name: "titleFontFamily",
75712
76090
  hidden: false
75713
76091
  },
75714
76092
  {
75715
- name: "fontWeight",
76093
+ name: "titleFontSize",
75716
76094
  hidden: false
75717
76095
  },
75718
76096
  {
75719
- name: "letterSpacing",
76097
+ name: "titleFontWeight",
75720
76098
  hidden: false
75721
76099
  },
75722
76100
  {
75723
- name: "textAlign",
76101
+ name: "titleColor",
75724
76102
  hidden: false
75725
76103
  },
75726
76104
  {
75727
- name: "lineHeight",
76105
+ name: "titleTextAlign",
75728
76106
  hidden: false
75729
76107
  },
75730
76108
  {
75731
- name: "color",
76109
+ name: "titleTextContentVerticalAlign",
75732
76110
  hidden: false
75733
76111
  },
75734
76112
  {
75735
- name: "titleFontFamily",
76113
+ name: "titleContentPaddingLeft",
75736
76114
  hidden: false
75737
76115
  },
75738
76116
  {
75739
- name: "titleFontSize",
76117
+ name: "titleContentPaddingTop",
75740
76118
  hidden: false
75741
76119
  },
75742
76120
  {
75743
- name: "titleFontWeight",
76121
+ name: "titleContentPaddingRight",
75744
76122
  hidden: false
75745
76123
  },
75746
76124
  {
75747
- name: "titleColor",
76125
+ name: "titleContentPaddingBottom",
75748
76126
  hidden: false
75749
76127
  },
75750
76128
  {
@@ -77267,6 +77645,10 @@ var defaultElementTypeProvider$1 = defaultTypeProvider(hiprint$3);
77267
77645
  name: "widthHeight",
77268
77646
  hidden: false
77269
77647
  },
77648
+ {
77649
+ name: "layoutGroup",
77650
+ hidden: false
77651
+ },
77270
77652
  {
77271
77653
  name: "fixed",
77272
77654
  hidden: false
@@ -77336,6 +77718,24 @@ var defaultElementTypeProvider$1 = defaultTypeProvider(hiprint$3);
77336
77718
  }, {
77337
77719
  name: "textAlign",
77338
77720
  hidden: false
77721
+ }, {
77722
+ name: "titleTextContentVerticalAlign",
77723
+ hidden: false
77724
+ }, {
77725
+ name: "titleTextAlign",
77726
+ hidden: false
77727
+ }, {
77728
+ name: "titleContentPaddingLeft",
77729
+ hidden: false
77730
+ }, {
77731
+ name: "titleContentPaddingTop",
77732
+ hidden: false
77733
+ }, {
77734
+ name: "titleContentPaddingRight",
77735
+ hidden: false
77736
+ }, {
77737
+ name: "titleContentPaddingBottom",
77738
+ hidden: false
77339
77739
  }, {
77340
77740
  name: "contentIndent",
77341
77741
  hidden: false
@@ -77394,6 +77794,10 @@ var defaultElementTypeProvider$1 = defaultTypeProvider(hiprint$3);
77394
77794
  name: "widthHeight",
77395
77795
  hidden: false
77396
77796
  },
77797
+ {
77798
+ name: "layoutGroup",
77799
+ hidden: false
77800
+ },
77397
77801
  {
77398
77802
  name: "fixed",
77399
77803
  hidden: false
@@ -77458,6 +77862,30 @@ var defaultElementTypeProvider$1 = defaultTypeProvider(hiprint$3);
77458
77862
  name: "titleColor",
77459
77863
  hidden: false
77460
77864
  },
77865
+ {
77866
+ name: "titleTextAlign",
77867
+ hidden: false
77868
+ },
77869
+ {
77870
+ name: "titleTextContentVerticalAlign",
77871
+ hidden: false
77872
+ },
77873
+ {
77874
+ name: "titleContentPaddingLeft",
77875
+ hidden: false
77876
+ },
77877
+ {
77878
+ name: "titleContentPaddingTop",
77879
+ hidden: false
77880
+ },
77881
+ {
77882
+ name: "titleContentPaddingRight",
77883
+ hidden: false
77884
+ },
77885
+ {
77886
+ name: "titleContentPaddingBottom",
77887
+ hidden: false
77888
+ },
77461
77889
  {
77462
77890
  name: "backgroundColor",
77463
77891
  hidden: false
@@ -77887,7 +78315,7 @@ async function ensureHttpClient() {
77887
78315
  }
77888
78316
  const name = "vg-print-vue2";
77889
78317
  const description = "vg-print supports visual drag and drop design templates, with functions such as previewing and exporting PDFs/images. Silent printing can be achieved in conjunction with a dedicated client";
77890
- const version = "1.0.511";
78318
+ const version = "1.0.513";
77891
78319
  const author = "gmcSimple";
77892
78320
  const license = "MIT";
77893
78321
  const main = "dist/vg-print-vue2.cjs.js";
@@ -81235,6 +81663,7 @@ const template1 = {
81235
81663
  {
81236
81664
  "index": 0,
81237
81665
  "name": "销售单",
81666
+ "nameField": "",
81238
81667
  "height": 210,
81239
81668
  "width": 297,
81240
81669
  "paperHeader": 70.5,
@@ -81526,6 +81955,7 @@ const template1 = {
81526
81955
  "tableHeaderBackground": "",
81527
81956
  "tableBodyRowHeight": 15.75,
81528
81957
  "tablePaginationTolerancePx": 16,
81958
+ "gridFillDirection": "",
81529
81959
  "columns": [
81530
81960
  [
81531
81961
  {
@@ -81830,17 +82260,25 @@ const template1 = {
81830
82260
  }
81831
82261
  }
81832
82262
  ],
81833
- "paperNumberLeft": 750,
81834
- "paperNumberTop": 570,
82263
+ "paperNumberLeft": -30,
82264
+ "paperNumberTop": 37,
81835
82265
  "paperNumberContinue": true,
81836
82266
  "orient": 2,
81837
- "watermarkOptions": {},
82267
+ "watermarkOptions": {
82268
+ "content": "",
82269
+ "fillStyle": "rgba(184, 184, 184, 0.3)",
82270
+ "fontSize": "14px",
82271
+ "rotate": 25,
82272
+ "width": 200,
82273
+ "height": 200,
82274
+ "timestamp": false,
82275
+ "format": "YYYY-MM-DD HH:mm"
82276
+ },
81838
82277
  "panelLayoutOptions": {
81839
82278
  "layoutType": "column",
81840
82279
  "layoutRowGap": 0,
81841
82280
  "layoutColumnGap": 0
81842
82281
  },
81843
- "backgroundColor": "#fff",
81844
82282
  "expandCss": ".products {\n display: flex;\n flex-wrap: wrap;\n position: relative;\n box-sizing: border-box;\n border: 1px solid #c8c9cc;\n padding: 5pt;\n margin-bottom: 5pt;\n}\n.products .mg-row {display: flex;margin-bottom: 5pt;}\n\n.col-25{max-width:25%;flex:0 0 25%}\n.col-75{max-width:75%;flex:0 0 75%}\n.col-100{width:100%;flex:0 0 100%}\n.w-9{width:9%}\n.w-10{width:10%}\n.w-20{width:20%}\n.w-40{width:40%}\n.center{text-align:center}\n\n.custom-table {\n width: 100%;\n}\n.custom-table .custom-th div, .custom-table .custom-tr div {\n font-size: 6pt;\n display: inline-block;\n padding: 2pt 0;\n border-left: 1pt solid #000000;\n border-bottom: 1pt solid #000000;\n vertical-align: top;\n }\n.custom-table .custom-th div:last-child, .custom-table .custom-tr div:last-child {\n border-right: 1px solid #000000;\n }\n.custom-table .custom-th, .custom-table .custom-tr {\n display: block;\n font-size: 0;\n }\n.custom-table .custom-th div span, .custom-table .custom-tr div span {\n margin: 0 5pt;\n }\n.custom-table .custom-th div {\n border-top: 1pt solid #000000;\n }"
81845
82283
  }
81846
82284
  ]
@@ -81984,7 +82422,7 @@ const template2 = {
81984
82422
  "top": 118.5,
81985
82423
  "height": 19,
81986
82424
  "width": 105,
81987
- "title": "姓 名",
82425
+ "title": "姓 名:",
81988
82426
  "fontFamily": "微软雅黑",
81989
82427
  "textAlign": "left",
81990
82428
  "lineHeight": 18,
@@ -82016,7 +82454,7 @@ const template2 = {
82016
82454
  "top": 118.5,
82017
82455
  "height": 19,
82018
82456
  "width": 105,
82019
- "title": "年 龄",
82457
+ "title": "年 龄:",
82020
82458
  "fontFamily": "微软雅黑",
82021
82459
  "textAlign": "left",
82022
82460
  "lineHeight": 18,
@@ -82053,7 +82491,7 @@ const template2 = {
82053
82491
  "custom": true,
82054
82492
  "fontSize": 12,
82055
82493
  "lineHeight": 15,
82056
- "title": "检查日期",
82494
+ "title": "检查日期:",
82057
82495
  "eid": "38a34dfb-db12-433b-abf7-75a860b4da79",
82058
82496
  "testData": "",
82059
82497
  "coordinateSync": false,
@@ -82081,7 +82519,7 @@ const template2 = {
82081
82519
  "top": 118.5,
82082
82520
  "height": 19,
82083
82521
  "width": 84,
82084
- "title": "性 别",
82522
+ "title": "性 别:",
82085
82523
  "fontFamily": "微软雅黑",
82086
82524
  "textAlign": "left",
82087
82525
  "lineHeight": 18,
@@ -82114,7 +82552,7 @@ const template2 = {
82114
82552
  "top": 154.5,
82115
82553
  "height": 19,
82116
82554
  "width": 136.5,
82117
- "title": "科 别",
82555
+ "title": "科 别:",
82118
82556
  "fontFamily": "微软雅黑",
82119
82557
  "textAlign": "left",
82120
82558
  "lineHeight": 18,
@@ -82147,7 +82585,7 @@ const template2 = {
82147
82585
  "top": 187.5,
82148
82586
  "height": 19,
82149
82587
  "width": 210,
82150
- "title": "送检医院",
82588
+ "title": "送检医院:",
82151
82589
  "fontFamily": "微软雅黑",
82152
82590
  "textAlign": "left",
82153
82591
  "lineHeight": 18,
@@ -82180,7 +82618,7 @@ const template2 = {
82180
82618
  "top": 189,
82181
82619
  "height": 19,
82182
82620
  "width": 120,
82183
- "title": "住院号",
82621
+ "title": "住院号:",
82184
82622
  "fontFamily": "微软雅黑",
82185
82623
  "textAlign": "left",
82186
82624
  "lineHeight": 18,
@@ -82813,7 +83251,7 @@ const template2 = {
82813
83251
  "top": 805.5,
82814
83252
  "height": 19,
82815
83253
  "width": 112.5,
82816
- "title": "初诊医生",
83254
+ "title": "初诊医生:",
82817
83255
  "fontFamily": "微软雅黑",
82818
83256
  "textAlign": "left",
82819
83257
  "lineHeight": 18,
@@ -82828,7 +83266,10 @@ const template2 = {
82828
83266
  "vCenter": 88.5,
82829
83267
  "hCenter": 814.25,
82830
83268
  "qid": "p_7",
82831
- "eid": "fb99eacb-daa1-40d6-b6a4-1e0949154df6"
83269
+ "eid": "fb99eacb-daa1-40d6-b6a4-1e0949154df6",
83270
+ "autoSizeMin": "",
83271
+ "color": "",
83272
+ "backgroundColor": ""
82832
83273
  },
82833
83274
  "printElementType": {
82834
83275
  "title": "自定义文本",
@@ -82846,7 +83287,7 @@ const template2 = {
82846
83287
  "fontSize": 12,
82847
83288
  "textAlign": "left",
82848
83289
  "textContentVerticalAlign": "middle",
82849
- "title": "报告日期",
83290
+ "title": "报告日期:",
82850
83291
  "qid": "date",
82851
83292
  "coordinateSync": false,
82852
83293
  "widthHeightSync": false,
@@ -82857,7 +83298,10 @@ const template2 = {
82857
83298
  "bottom": 823.5,
82858
83299
  "vCenter": 462.75,
82859
83300
  "hCenter": 815.25,
82860
- "eid": "db4fee36-389d-49f4-a6fd-129f4ee2edff"
83301
+ "eid": "db4fee36-389d-49f4-a6fd-129f4ee2edff",
83302
+ "autoSizeMin": "",
83303
+ "color": "",
83304
+ "backgroundColor": ""
82861
83305
  },
82862
83306
  "printElementType": {
82863
83307
  "title": "业务日期",
@@ -82870,7 +83314,7 @@ const template2 = {
82870
83314
  "top": 805.5,
82871
83315
  "height": 19,
82872
83316
  "width": 112.5,
82873
- "title": "复诊医生",
83317
+ "title": "复诊医生:",
82874
83318
  "fontFamily": "微软雅黑",
82875
83319
  "textAlign": "left",
82876
83320
  "lineHeight": 18,
@@ -82885,7 +83329,10 @@ const template2 = {
82885
83329
  "vCenter": 261.75,
82886
83330
  "hCenter": 815,
82887
83331
  "qid": "p_8",
82888
- "eid": "2633622d-13e2-4029-a35d-a78eac6183cc"
83332
+ "eid": "2633622d-13e2-4029-a35d-a78eac6183cc",
83333
+ "autoSizeMin": "",
83334
+ "color": "",
83335
+ "backgroundColor": ""
82889
83336
  },
82890
83337
  "printElementType": {
82891
83338
  "title": "自定义文本",
@@ -82934,7 +83381,7 @@ const template2 = {
82934
83381
  "layoutRowGap": 0,
82935
83382
  "layoutColumnGap": 0
82936
83383
  },
82937
- "expandCss": ""
83384
+ "expandCss": ".products {\n display: flex;\n flex-wrap: wrap;\n position: relative;\n box-sizing: border-box;\n border: 1px solid #c8c9cc;\n padding: 5pt;\n margin-bottom: 5pt;\n}\n.products .mg-row {display: flex;margin-bottom: 5pt;}\n\n.col-25{max-width:25%;flex:0 0 25%}\n.col-75{max-width:75%;flex:0 0 75%}\n.col-100{width:100%;flex:0 0 100%}\n.w-9{width:9%}\n.w-10{width:10%}\n.w-20{width:20%}\n.w-40{width:40%}\n.center{text-align:center}\n\n.custom-table {\n width: 100%;\n}\n.custom-table .custom-th div, .custom-table .custom-tr div {\n font-size: 6pt;\n display: inline-block;\n padding: 2pt 0;\n border-left: 1pt solid #000000;\n border-bottom: 1pt solid #000000;\n vertical-align: top;\n }\n.custom-table .custom-th div:last-child, .custom-table .custom-tr div:last-child {\n border-right: 1px solid #000000;\n }\n.custom-table .custom-th, .custom-table .custom-tr {\n display: block;\n font-size: 0;\n }\n.custom-table .custom-th div span, .custom-table .custom-tr div span {\n margin: 0 5pt;\n }\n.custom-table .custom-th div {\n border-top: 1pt solid #000000;\n }"
82938
83385
  }
82939
83386
  ]
82940
83387
  };
@@ -82957,7 +83404,8 @@ const template3 = {
82957
83404
  "right": 316.5,
82958
83405
  "bottom": 186.75,
82959
83406
  "vCenter": 166.5,
82960
- "hCenter": 99
83407
+ "hCenter": 99,
83408
+ "eid": "f544570f-e36d-4579-b002-773d21094aa4"
82961
83409
  },
82962
83410
  "printElementType": {
82963
83411
  "title": "矩形",
@@ -82983,7 +83431,8 @@ const template3 = {
82983
83431
  "bottom": 39,
82984
83432
  "vCenter": 118.5,
82985
83433
  "hCenter": 29.25,
82986
- "textContentVerticalAlign": "middle"
83434
+ "textContentVerticalAlign": "middle",
83435
+ "eid": "9866621b-0e9e-49ed-9c8b-67fdb5ec5a7f"
82987
83436
  },
82988
83437
  "printElementType": {
82989
83438
  "title": "平台名称",
@@ -83000,7 +83449,8 @@ const template3 = {
83000
83449
  "right": 291,
83001
83450
  "bottom": 54,
83002
83451
  "vCenter": 149.25,
83003
- "hCenter": 49.5
83452
+ "hCenter": 49.5,
83453
+ "eid": "3d1cd374-e3dc-41cf-9786-71edb0bb78c6"
83004
83454
  },
83005
83455
  "printElementType": {
83006
83456
  "title": "横线",
@@ -83018,7 +83468,8 @@ const template3 = {
83018
83468
  "vCenter": 57,
83019
83469
  "hCenter": 100.5,
83020
83470
  "coordinateSync": false,
83021
- "widthHeightSync": false
83471
+ "widthHeightSync": false,
83472
+ "eid": "b86d8fc1-5847-4feb-b9b0-42cbf18f2aa3"
83022
83473
  },
83023
83474
  "printElementType": {
83024
83475
  "title": "竖线",
@@ -83044,7 +83495,8 @@ const template3 = {
83044
83495
  "coordinateSync": false,
83045
83496
  "widthHeightSync": false,
83046
83497
  "hideTitle": true,
83047
- "qrCodeLevel": 0
83498
+ "qrCodeLevel": 0,
83499
+ "eid": "8ff4eb82-10f5-471d-887d-74afc677017c"
83048
83500
  },
83049
83501
  "printElementType": {
83050
83502
  "title": "二维码",
@@ -83080,7 +83532,7 @@ const template3 = {
83080
83532
  }
83081
83533
  ],
83082
83534
  "testData": "214124123123",
83083
- "title": "编码",
83535
+ "title": "编码:",
83084
83536
  "right": 56.25,
83085
83537
  "bottom": 74.25,
83086
83538
  "vCenter": 41.25,
@@ -83089,7 +83541,11 @@ const template3 = {
83089
83541
  "coordinateSync": false,
83090
83542
  "widthHeightSync": false,
83091
83543
  "fontSize": 12,
83092
- "qrCodeLevel": 0
83544
+ "qrCodeLevel": 0,
83545
+ "eid": "b2857fa1-88d8-4ab9-8d88-9ba3200c631c",
83546
+ "autoSizeMin": "",
83547
+ "color": "",
83548
+ "backgroundColor": ""
83093
83549
  },
83094
83550
  "printElementType": {
83095
83551
  "title": "文本",
@@ -83105,7 +83561,7 @@ const template3 = {
83105
83561
  "field": "p_patient_name",
83106
83562
  "custom": true,
83107
83563
  "fontSize": 12,
83108
- "title": "姓名",
83564
+ "title": "姓名:",
83109
83565
  "testData": "张三",
83110
83566
  "coordinateSync": false,
83111
83567
  "widthHeightSync": false,
@@ -83113,7 +83569,11 @@ const template3 = {
83113
83569
  "right": 156,
83114
83570
  "bottom": 96,
83115
83571
  "vCenter": 87.75,
83116
- "hCenter": 87.75
83572
+ "hCenter": 87.75,
83573
+ "eid": "97028ca0-85b7-4401-ae27-3d7bc6c81cde",
83574
+ "autoSizeMin": "",
83575
+ "color": "",
83576
+ "backgroundColor": ""
83117
83577
  },
83118
83578
  "printElementType": {
83119
83579
  "title": "文本",
@@ -83129,7 +83589,7 @@ const template3 = {
83129
83589
  "field": "p_patient_sex",
83130
83590
  "custom": true,
83131
83591
  "fontSize": 12,
83132
- "title": "性别",
83592
+ "title": "性别:",
83133
83593
  "right": 178.5,
83134
83594
  "bottom": 145.5,
83135
83595
  "vCenter": 103.5,
@@ -83137,7 +83597,11 @@ const template3 = {
83137
83597
  "testData": "男",
83138
83598
  "coordinateSync": false,
83139
83599
  "widthHeightSync": false,
83140
- "qrCodeLevel": 0
83600
+ "qrCodeLevel": 0,
83601
+ "eid": "b318b05a-4563-450d-92d1-72900807c755",
83602
+ "autoSizeMin": "",
83603
+ "color": "",
83604
+ "backgroundColor": ""
83141
83605
  },
83142
83606
  "printElementType": {
83143
83607
  "title": "文本",
@@ -83154,7 +83618,8 @@ const template3 = {
83154
83618
  "right": 268.5,
83155
83619
  "bottom": 140.25,
83156
83620
  "vCenter": 138,
83157
- "hCenter": 135.75
83621
+ "hCenter": 135.75,
83622
+ "eid": "dab062ca-13c4-4435-8551-681c5dd0583c"
83158
83623
  },
83159
83624
  "printElementType": {
83160
83625
  "title": "横线",
@@ -83180,7 +83645,8 @@ const template3 = {
83180
83645
  "right": 171,
83181
83646
  "bottom": 245.75,
83182
83647
  "vCenter": 96.75,
83183
- "hCenter": 229.75
83648
+ "hCenter": 229.75,
83649
+ "eid": "29e5aca5-0d81-46c9-b6e5-424fe4c4b552"
83184
83650
  },
83185
83651
  "printElementType": {
83186
83652
  "title": "条形码",
@@ -83208,8 +83674,7 @@ const template3 = {
83208
83674
  "layoutRowGap": 0,
83209
83675
  "layoutColumnGap": 1
83210
83676
  },
83211
- "backgroundColor": "#fff",
83212
- "expandCss": ""
83677
+ "expandCss": ".products {\n display: flex;\n flex-wrap: wrap;\n position: relative;\n box-sizing: border-box;\n border: 1px solid #c8c9cc;\n padding: 5pt;\n margin-bottom: 5pt;\n}\n.products .mg-row {display: flex;margin-bottom: 5pt;}\n\n.col-25{max-width:25%;flex:0 0 25%}\n.col-75{max-width:75%;flex:0 0 75%}\n.col-100{width:100%;flex:0 0 100%}\n.w-9{width:9%}\n.w-10{width:10%}\n.w-20{width:20%}\n.w-40{width:40%}\n.center{text-align:center}\n\n.custom-table {\n width: 100%;\n}\n.custom-table .custom-th div, .custom-table .custom-tr div {\n font-size: 6pt;\n display: inline-block;\n padding: 2pt 0;\n border-left: 1pt solid #000000;\n border-bottom: 1pt solid #000000;\n vertical-align: top;\n }\n.custom-table .custom-th div:last-child, .custom-table .custom-tr div:last-child {\n border-right: 1px solid #000000;\n }\n.custom-table .custom-th, .custom-table .custom-tr {\n display: block;\n font-size: 0;\n }\n.custom-table .custom-th div span, .custom-table .custom-tr div span {\n margin: 0 5pt;\n }\n.custom-table .custom-th div {\n border-top: 1pt solid #000000;\n }"
83213
83678
  }
83214
83679
  ]
83215
83680
  };