iking-web-ui-pro 1.2.4 → 1.2.6

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.
Files changed (123) hide show
  1. package/dist/IkApprovalProcess/ik.index.es.js +159 -156
  2. package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
  3. package/dist/IkApprovalProcessDetail/ik.index.es.js +4259 -4078
  4. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  5. package/dist/IkAutoCard/ik.index.es.js +2 -2
  6. package/dist/IkBaseDialog/ik.index.es.js +15 -15
  7. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  8. package/dist/IkBottomOperate/ik.index.es.js +1 -1
  9. package/dist/IkBtnContent/ik.index.es.js +21 -21
  10. package/dist/IkBtnSetting/ik.index.es.js +25 -25
  11. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  12. package/dist/IkCalendar/ik.index.es.js +2145 -2093
  13. package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
  14. package/dist/IkCollapseCard/ik.index.es.js +6 -6
  15. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  16. package/dist/IkCurrencyInput/ik.index.es.js +5 -5
  17. package/dist/IkDescription/ik.index.es.js +4219 -4038
  18. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  19. package/dist/IkDetailPreviewFiles/ik.index.es.js +4339 -4158
  20. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  21. package/dist/IkDragList/ik.index.es.js +11 -11
  22. package/dist/IkDragList/iking-web-ui-pro.css +1 -1
  23. package/dist/IkEmpty/ik.index.es.js +6 -6
  24. package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
  25. package/dist/IkExpandCollapse/ik.index.es.js +11 -11
  26. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  27. package/dist/IkFileIcon/ik.index.es.js +13 -13
  28. package/dist/IkHorizontalStepBar/ik.index.es.js +54 -54
  29. package/dist/IkHorizontalStepBar/iking-web-ui-pro.css +1 -1
  30. package/dist/IkIconPicker/ik.index.es.js +8 -8
  31. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  32. package/dist/IkImageUploadEditor/ik.index.es.js +3469 -3312
  33. package/dist/IkImageUploadEditor/iking-web-ui-pro.css +2 -2
  34. package/dist/IkImageViewer/ik.index.es.js +180 -180
  35. package/dist/IkMonacoEditor/ik.index.es.js +221 -206
  36. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  37. package/dist/IkOnlyOffice/ik.index.es.js +3 -3
  38. package/dist/IkPageFull/ik.index.es.js +328 -325
  39. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  40. package/dist/IkPageTabs/ik.index.es.js +7 -7
  41. package/dist/IkPageTabs/iking-web-ui-pro.css +1 -1
  42. package/dist/IkPickerUser/ik.index.es.js +233 -230
  43. package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
  44. package/dist/IkPlayer/ik.index.es.js +1325 -1144
  45. package/dist/IkPlayer/iking-web-ui-pro.css +1 -1
  46. package/dist/IkPreviewFile/ik.index.es.js +4289 -4108
  47. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  48. package/dist/IkPreviewFileDialog/ik.index.es.js +4286 -4105
  49. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  50. package/dist/IkPrint/ik.index.es.js +106 -106
  51. package/dist/IkPrint/iking-web-ui-pro.css +1 -1
  52. package/dist/{index.es-AZOLYppY.mjs → IkPrint/index.es-DDNCkl-c.mjs} +1137 -1116
  53. package/dist/IkPrint/{jspdf.es.min-ByQMz4Ps.mjs → jspdf.es.min-DLP80Gi4.mjs} +3153 -3140
  54. package/dist/IkPrint/purify.es-D5dazAgD.mjs +553 -0
  55. package/dist/IkPrintConfig/ik.index.es.js +3 -3
  56. package/dist/IkPrintView/ik.index.es.js +1 -1
  57. package/dist/IkRadioGroup/ik.index.es.js +7 -7
  58. package/dist/IkRadioGroup/iking-web-ui-pro.css +1 -1
  59. package/dist/IkSearch/ik.index.es.js +293 -290
  60. package/dist/IkSearch/iking-web-ui-pro.css +1 -1
  61. package/dist/IkSearchHead/ik.index.es.js +25 -25
  62. package/dist/IkSearchHead/iking-web-ui-pro.css +1 -1
  63. package/dist/IkSelectTag/ik.index.es.js +23 -23
  64. package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
  65. package/dist/IkSideText/ik.index.es.js +42 -39
  66. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  67. package/dist/IkStatu/ik.index.es.js +4 -4
  68. package/dist/IkStatu/iking-web-ui-pro.css +1 -1
  69. package/dist/IkStatuOver/ik.index.es.js +3 -3
  70. package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
  71. package/dist/IkSvgIcon/ik.index.es.js +23 -23
  72. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  73. package/dist/IkTemplateOfficeConfig/ik.index.es.js +1 -1
  74. package/dist/IkTinymce/ik.index.es.js +9005 -9004
  75. package/dist/IkTinymce/iking-web-ui-pro.css +1 -1
  76. package/dist/IkTooltip/ik.index.es.js +2 -2
  77. package/dist/IkTree/ik.index.es.js +31 -31
  78. package/dist/IkTree/iking-web-ui-pro.css +1 -1
  79. package/dist/IkUploadFile/ik.index.es.js +4538 -4354
  80. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  81. package/dist/IkUploadImage/ik.index.es.js +418 -416
  82. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  83. package/dist/IkVerticalStepBar/ik.index.es.js +15 -15
  84. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  85. package/dist/Provider/ik.index.es.js +14 -10
  86. package/dist/iking-web-ui-pro.css +2 -2
  87. package/dist/{index-CSH3eGvq.mjs → index-Cba2fjdk.mjs} +38137 -37734
  88. package/dist/{IkPrint/index.es-DzGIwinU.mjs → index.es-DqdRfgV4.mjs} +1135 -1120
  89. package/dist/index.es.js +1 -1
  90. package/dist/index.umd.js +234 -233
  91. package/dist/{jspdf.es.min-WuSENyiA.mjs → jspdf.es.min-DsM3mxSl.mjs} +3153 -3140
  92. package/dist/purify.es-D5dazAgD.mjs +553 -0
  93. package/dist/src/components/IkBtnContent/index.d.ts +1 -1
  94. package/dist/src/components/IkBtnContent/src/index.d.ts +1 -1
  95. package/dist/src/components/IkDragList/index.d.ts +6 -6
  96. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +2 -2
  97. package/dist/src/components/IkMonacoEditor/index.d.ts +8 -8
  98. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +8 -8
  99. package/dist/src/components/IkPageFull/src/IkDialog.d.ts +2 -2
  100. package/dist/src/components/IkPickerUser/index.d.ts +1 -1
  101. package/dist/src/components/IkPickerUser/src/list/utils.d.ts +3 -1
  102. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +1 -1
  103. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +2 -2
  104. package/dist/src/components/IkSideText/index.d.ts +2 -2
  105. package/dist/src/components/IkStatu/index.d.ts +3 -3
  106. package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
  107. package/dist/src/components/IkSvgIcon/index.d.ts +8 -8
  108. package/dist/src/components/IkTinymce/index.d.ts +2 -2
  109. package/dist/src/components/IkTinymce/src/index.vue.d.ts +2 -2
  110. package/dist/src/components/IkTooltip/index.d.ts +3 -3
  111. package/dist/src/components/IkTooltip/src/index.vue.d.ts +1 -1
  112. package/dist/src/components/IkTree/IkTree.vue.d.ts +3440 -888
  113. package/dist/src/components/IkTree/index.d.ts +11004 -3348
  114. package/dist/src/components/IkUploadFile/index.d.ts +3 -3
  115. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -2
  116. package/dist/src/components/IkUploadImage/index.d.ts +6 -6
  117. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +3 -3
  118. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
  119. package/dist/src/components/Provider/index.d.ts +15 -0
  120. package/dist/src/utils/use-provider.d.ts +1 -0
  121. package/package.json +1 -1
  122. package/dist/IkPrint/purify.es-Bb-cVdCo.mjs +0 -536
  123. package/dist/purify.es-Bb-cVdCo.mjs +0 -536
@@ -1,15 +1,15 @@
1
- import { defineComponent as H, createElementBlock as h, openBlock as m, createElementVNode as w, ref as M, reactive as J, onMounted as K, resolveComponent as r, createCommentVNode as d, createVNode as t, withCtx as a, createBlock as E, createTextVNode as x, unref as P, normalizeClass as Q, toDisplayString as I, renderSlot as Z, nextTick as O } from "vue";
1
+ import { defineComponent as H, openBlock as p, createElementBlock as h, createElementVNode as _, ref as M, reactive as J, onMounted as K, resolveComponent as r, createCommentVNode as m, createVNode as t, withCtx as a, createBlock as E, createTextVNode as V, unref as P, normalizeClass as Q, toDisplayString as I, renderSlot as Z, nextTick as O } from "vue";
2
2
  import { ElMessage as z } from "element-plus";
3
- /*! Element Plus Icons Vue v2.3.1 */
3
+ /*! Element Plus Icons Vue v2.3.2 */
4
4
  var ee = /* @__PURE__ */ H({
5
5
  name: "Close",
6
6
  __name: "close",
7
7
  setup(u) {
8
- return (b, v) => (m(), h("svg", {
8
+ return (b, v) => (p(), h("svg", {
9
9
  xmlns: "http://www.w3.org/2000/svg",
10
10
  viewBox: "0 0 1024 1024"
11
11
  }, [
12
- w("path", {
12
+ _("path", {
13
13
  fill: "currentColor",
14
14
  d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
15
15
  })
@@ -19,11 +19,11 @@ var ee = /* @__PURE__ */ H({
19
19
  name: "Document",
20
20
  __name: "document",
21
21
  setup(u) {
22
- return (b, v) => (m(), h("svg", {
22
+ return (b, v) => (p(), h("svg", {
23
23
  xmlns: "http://www.w3.org/2000/svg",
24
24
  viewBox: "0 0 1024 1024"
25
25
  }, [
26
- w("path", {
26
+ _("path", {
27
27
  fill: "currentColor",
28
28
  d: "M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"
29
29
  })
@@ -33,13 +33,13 @@ var ee = /* @__PURE__ */ H({
33
33
  name: "Printer",
34
34
  __name: "printer",
35
35
  setup(u) {
36
- return (b, v) => (m(), h("svg", {
36
+ return (b, v) => (p(), h("svg", {
37
37
  xmlns: "http://www.w3.org/2000/svg",
38
38
  viewBox: "0 0 1024 1024"
39
39
  }, [
40
- w("path", {
40
+ _("path", {
41
41
  fill: "currentColor",
42
- d: "M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"
42
+ d: "M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"
43
43
  })
44
44
  ]));
45
45
  }
@@ -47,11 +47,11 @@ var ee = /* @__PURE__ */ H({
47
47
  name: "Refresh",
48
48
  __name: "refresh",
49
49
  setup(u) {
50
- return (b, v) => (m(), h("svg", {
50
+ return (b, v) => (p(), h("svg", {
51
51
  xmlns: "http://www.w3.org/2000/svg",
52
52
  viewBox: "0 0 1024 1024"
53
53
  }, [
54
- w("path", {
54
+ _("path", {
55
55
  fill: "currentColor",
56
56
  d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
57
57
  })
@@ -61,24 +61,24 @@ var ee = /* @__PURE__ */ H({
61
61
  name: "View",
62
62
  __name: "view",
63
63
  setup(u) {
64
- return (b, v) => (m(), h("svg", {
64
+ return (b, v) => (p(), h("svg", {
65
65
  xmlns: "http://www.w3.org/2000/svg",
66
66
  viewBox: "0 0 1024 1024"
67
67
  }, [
68
- w("path", {
68
+ _("path", {
69
69
  fill: "currentColor",
70
- d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
70
+ d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
71
71
  })
72
72
  ]));
73
73
  }
74
- }), pe = se;
75
- const de = { class: "ik-print" }, me = {
74
+ }), de = se;
75
+ const me = { class: "ik-print" }, pe = {
76
76
  key: 0,
77
77
  class: "print-config-panel"
78
78
  }, ue = { class: "config-header" }, fe = {
79
79
  key: 0,
80
80
  class: "print-header"
81
- }, ge = { class: "print-main-content" }, ce = {
81
+ }, ce = { class: "print-main-content" }, ge = {
82
82
  key: 1,
83
83
  class: "print-footer"
84
84
  }, he = {
@@ -92,7 +92,7 @@ const de = { class: "ik-print" }, me = {
92
92
  },
93
93
  emits: ["beforePrint", "afterPrint", "configChange"],
94
94
  setup(u, { expose: b, emit: v }) {
95
- const F = u, _ = v, C = M(!1), V = M(!1), T = M(!1), y = M(), e = J({
95
+ const F = u, w = v, C = M(!1), y = M(!1), T = M(!1), x = M(), e = J({
96
96
  paperSize: "A4",
97
97
  orientation: "portrait",
98
98
  fontSize: 14,
@@ -121,10 +121,10 @@ const de = { class: "ik-print" }, me = {
121
121
  const f = "ik-print-styles";
122
122
  let o = document.getElementById(f);
123
123
  o || (o = document.createElement("style"), o.id = f, document.head.appendChild(o));
124
- const g = e.paperSize === "Custom" ? { width: e.customWidth, height: e.customHeight } : N[e.paperSize], s = `
124
+ const c = e.paperSize === "Custom" ? { width: e.customWidth, height: e.customHeight } : N[e.paperSize], s = `
125
125
  @media print {
126
126
  @page {
127
- size: ${e.orientation === "landscape" ? `${g.height} ${g.width}` : `${g.width} ${g.height}`};
127
+ size: ${e.orientation === "landscape" ? `${c.height} ${c.width}` : `${c.width} ${c.height}`};
128
128
  margin: ${e.margin.top} ${e.margin.right} ${e.margin.bottom} ${e.margin.left};
129
129
  }
130
130
 
@@ -266,43 +266,43 @@ const de = { class: "ik-print" }, me = {
266
266
  }
267
267
  }
268
268
  `;
269
- o.textContent = s, _("configChange", { ...e });
269
+ o.textContent = s, w("configChange", { ...e });
270
270
  });
271
271
  }, L = async () => {
272
272
  try {
273
- V.value = !0, _("beforePrint", { ...e }), n(), await O(), await new Promise((f) => setTimeout(f, 100)), window.print(), _("afterPrint", !0), z.success("打印任务已发送");
273
+ y.value = !0, w("beforePrint", { ...e }), n(), await O(), await new Promise((f) => setTimeout(f, 100)), window.print(), w("afterPrint", !0), z.success("打印任务已发送");
274
274
  } catch (f) {
275
- console.error("打印失败:", f), _("afterPrint", !1), z.error("打印失败,请重试");
275
+ console.error("打印失败:", f), w("afterPrint", !1), z.error("打印失败,请重试");
276
276
  } finally {
277
- V.value = !1;
277
+ y.value = !1;
278
278
  }
279
279
  }, R = async () => {
280
280
  try {
281
- V.value = !0, _("beforePrint", { ...e });
282
- const f = (await import("./html2canvas.esm-dgT_1dIT.mjs")).default, o = (await import("./jspdf.es.min-ByQMz4Ps.mjs").then((D) => D.j)).default;
283
- if (!y.value)
281
+ y.value = !0, w("beforePrint", { ...e });
282
+ const f = (await import("./html2canvas.esm-dgT_1dIT.mjs")).default, o = (await import("./jspdf.es.min-DLP80Gi4.mjs").then((D) => D.j)).default;
283
+ if (!x.value)
284
284
  throw new Error("打印内容不存在");
285
- const g = y.value.style.display;
286
- y.value.style.display = "block";
287
- const s = await f(y.value, {
285
+ const c = x.value.style.display;
286
+ x.value.style.display = "block";
287
+ const s = await f(x.value, {
288
288
  scale: 2,
289
289
  useCORS: !0,
290
290
  allowTaint: !0,
291
291
  backgroundColor: "#ffffff",
292
- width: y.value.scrollWidth,
293
- height: y.value.scrollHeight
292
+ width: x.value.scrollWidth,
293
+ height: x.value.scrollHeight
294
294
  });
295
- y.value.style.display = g;
296
- const p = s.toDataURL("image/png"), W = e.paperSize === "Custom" ? { width: parseFloat(e.customWidth), height: parseFloat(e.customHeight) } : N[e.paperSize], i = new o({
295
+ x.value.style.display = c;
296
+ const d = s.toDataURL("image/png"), W = e.paperSize === "Custom" ? { width: parseFloat(e.customWidth), height: parseFloat(e.customHeight) } : N[e.paperSize], i = new o({
297
297
  orientation: e.orientation,
298
298
  unit: "mm",
299
299
  format: e.paperSize === "Custom" ? [parseFloat(e.customWidth), parseFloat(e.customHeight)] : e.paperSize.toLowerCase()
300
- }), c = i.internal.pageSize.getWidth(), A = i.internal.pageSize.getHeight(), k = s.width, U = s.height, S = Math.min(c / k, A / U), $ = (c - k * S) / 2;
301
- i.addImage(p, "PNG", $, 0, k * S, U * S), i.autoPrint(), window.open(i.output("bloburl"), "_blank"), _("afterPrint", !0), z.success("PDF 打印任务已生成");
300
+ }), g = i.internal.pageSize.getWidth(), A = i.internal.pageSize.getHeight(), k = s.width, U = s.height, S = Math.min(g / k, A / U), $ = (g - k * S) / 2;
301
+ i.addImage(d, "PNG", $, 0, k * S, U * S), i.autoPrint(), window.open(i.output("bloburl"), "_blank"), w("afterPrint", !0), z.success("PDF 打印任务已生成");
302
302
  } catch (f) {
303
- console.error("高级打印失败:", f), _("afterPrint", !1), z.error("高级打印失败,请重试");
303
+ console.error("高级打印失败:", f), w("afterPrint", !1), z.error("高级打印失败,请重试");
304
304
  } finally {
305
- V.value = !1;
305
+ y.value = !1;
306
306
  }
307
307
  }, j = () => {
308
308
  T.value = !T.value, n(), z.info(T.value ? "已切换到预览模式" : "已退出预览模式");
@@ -337,14 +337,14 @@ const de = { class: "ik-print" }, me = {
337
337
  }), K(() => {
338
338
  n();
339
339
  }), (f, o) => {
340
- const g = r("el-icon"), s = r("el-button"), p = r("el-option"), W = r("el-select"), i = r("el-form-item"), c = r("el-input"), A = r("el-input-group"), k = r("el-radio"), U = r("el-radio-group"), S = r("el-slider"), $ = r("el-col"), B = r("el-switch"), D = r("el-row"), X = r("el-form"), q = r("el-card");
341
- return m(), h("div", de, [
342
- d(" 打印配置面板 "),
343
- C.value ? (m(), h("div", me, [
340
+ const c = r("el-icon"), s = r("el-button"), d = r("el-option"), W = r("el-select"), i = r("el-form-item"), g = r("el-input"), A = r("el-input-group"), k = r("el-radio"), U = r("el-radio-group"), S = r("el-slider"), $ = r("el-col"), B = r("el-switch"), D = r("el-row"), X = r("el-form"), q = r("el-card");
341
+ return p(), h("div", me, [
342
+ m(" 打印配置面板 "),
343
+ C.value ? (p(), h("div", pe, [
344
344
  t(q, { class: "config-card" }, {
345
345
  header: a(() => [
346
- w("div", ue, [
347
- o[16] || (o[16] = w(
346
+ _("div", ue, [
347
+ o[16] || (o[16] = _(
348
348
  "span",
349
349
  null,
350
350
  "打印配置",
@@ -357,7 +357,7 @@ const de = { class: "ik-print" }, me = {
357
357
  class: "close-btn"
358
358
  }, {
359
359
  default: a(() => [
360
- t(g, null, {
360
+ t(c, null, {
361
361
  default: a(() => [
362
362
  t(P(te))
363
363
  ]),
@@ -389,27 +389,27 @@ const de = { class: "ik-print" }, me = {
389
389
  onChange: n
390
390
  }, {
391
391
  default: a(() => [
392
- t(p, {
392
+ t(d, {
393
393
  label: "A4",
394
394
  value: "A4"
395
395
  }),
396
- t(p, {
396
+ t(d, {
397
397
  label: "A3",
398
398
  value: "A3"
399
399
  }),
400
- t(p, {
400
+ t(d, {
401
401
  label: "A5",
402
402
  value: "A5"
403
403
  }),
404
- t(p, {
404
+ t(d, {
405
405
  label: "Letter",
406
406
  value: "Letter"
407
407
  }),
408
- t(p, {
408
+ t(d, {
409
409
  label: "Legal",
410
410
  value: "Legal"
411
411
  }),
412
- t(p, {
412
+ t(d, {
413
413
  label: "自定义",
414
414
  value: "Custom"
415
415
  })
@@ -421,25 +421,25 @@ const de = { class: "ik-print" }, me = {
421
421
  _: 1
422
422
  /* STABLE */
423
423
  }),
424
- e.paperSize === "Custom" ? (m(), E(i, {
424
+ e.paperSize === "Custom" ? (p(), E(i, {
425
425
  key: 0,
426
426
  label: "自定义尺寸"
427
427
  }, {
428
428
  default: a(() => [
429
429
  t(A, null, {
430
430
  default: a(() => [
431
- t(c, {
431
+ t(g, {
432
432
  modelValue: e.customWidth,
433
433
  "onUpdate:modelValue": o[2] || (o[2] = (l) => e.customWidth = l),
434
434
  placeholder: "宽度",
435
435
  style: { width: "45%" }
436
436
  }, null, 8, ["modelValue"]),
437
- t(c, {
437
+ t(g, {
438
438
  placeholder: "×",
439
439
  disabled: "",
440
440
  style: { width: "10%", "text-align": "center" }
441
441
  }),
442
- t(c, {
442
+ t(g, {
443
443
  modelValue: e.customHeight,
444
444
  "onUpdate:modelValue": o[3] || (o[3] = (l) => e.customHeight = l),
445
445
  placeholder: "高度",
@@ -452,7 +452,7 @@ const de = { class: "ik-print" }, me = {
452
452
  ]),
453
453
  _: 1
454
454
  /* STABLE */
455
- })) : d("v-if", !0),
455
+ })) : m("v-if", !0),
456
456
  t(i, { label: "页面方向" }, {
457
457
  default: a(() => [
458
458
  t(U, {
@@ -463,7 +463,7 @@ const de = { class: "ik-print" }, me = {
463
463
  default: a(() => [
464
464
  t(k, { label: "portrait" }, {
465
465
  default: a(() => [...o[17] || (o[17] = [
466
- x(
466
+ V(
467
467
  "纵向",
468
468
  -1
469
469
  /* CACHED */
@@ -474,7 +474,7 @@ const de = { class: "ik-print" }, me = {
474
474
  }),
475
475
  t(k, { label: "landscape" }, {
476
476
  default: a(() => [...o[18] || (o[18] = [
477
- x(
477
+ V(
478
478
  "横向",
479
479
  -1
480
480
  /* CACHED */
@@ -516,25 +516,25 @@ const de = { class: "ik-print" }, me = {
516
516
  default: a(() => [
517
517
  t(A, null, {
518
518
  default: a(() => [
519
- t(c, {
519
+ t(g, {
520
520
  modelValue: e.margin.top,
521
521
  "onUpdate:modelValue": o[6] || (o[6] = (l) => e.margin.top = l),
522
522
  placeholder: "上",
523
523
  onChange: n
524
524
  }, null, 8, ["modelValue"]),
525
- t(c, {
525
+ t(g, {
526
526
  modelValue: e.margin.right,
527
527
  "onUpdate:modelValue": o[7] || (o[7] = (l) => e.margin.right = l),
528
528
  placeholder: "右",
529
529
  onChange: n
530
530
  }, null, 8, ["modelValue"]),
531
- t(c, {
531
+ t(g, {
532
532
  modelValue: e.margin.bottom,
533
533
  "onUpdate:modelValue": o[8] || (o[8] = (l) => e.margin.bottom = l),
534
534
  placeholder: "下",
535
535
  onChange: n
536
536
  }, null, 8, ["modelValue"]),
537
- t(c, {
537
+ t(g, {
538
538
  modelValue: e.margin.left,
539
539
  "onUpdate:modelValue": o[9] || (o[9] = (l) => e.margin.left = l),
540
540
  placeholder: "左",
@@ -566,12 +566,12 @@ const de = { class: "ik-print" }, me = {
566
566
  _: 1
567
567
  /* STABLE */
568
568
  }),
569
- e.showHeader ? (m(), E(i, {
569
+ e.showHeader ? (p(), E(i, {
570
570
  key: 0,
571
571
  label: "页头内容"
572
572
  }, {
573
573
  default: a(() => [
574
- t(c, {
574
+ t(g, {
575
575
  modelValue: e.headerText,
576
576
  "onUpdate:modelValue": o[12] || (o[12] = (l) => e.headerText = l),
577
577
  placeholder: "请输入页头内容",
@@ -580,13 +580,13 @@ const de = { class: "ik-print" }, me = {
580
580
  ]),
581
581
  _: 1
582
582
  /* STABLE */
583
- })) : d("v-if", !0),
584
- e.showFooter ? (m(), E(i, {
583
+ })) : m("v-if", !0),
584
+ e.showFooter ? (p(), E(i, {
585
585
  key: 1,
586
586
  label: "页尾内容"
587
587
  }, {
588
588
  default: a(() => [
589
- t(c, {
589
+ t(g, {
590
590
  modelValue: e.footerText,
591
591
  "onUpdate:modelValue": o[13] || (o[13] = (l) => e.footerText = l),
592
592
  placeholder: "请输入页尾内容",
@@ -595,7 +595,7 @@ const de = { class: "ik-print" }, me = {
595
595
  ]),
596
596
  _: 1
597
597
  /* STABLE */
598
- })) : d("v-if", !0),
598
+ })) : m("v-if", !0),
599
599
  t(i, { label: "字体系列" }, {
600
600
  default: a(() => [
601
601
  t(W, {
@@ -604,23 +604,23 @@ const de = { class: "ik-print" }, me = {
604
604
  onChange: n
605
605
  }, {
606
606
  default: a(() => [
607
- t(p, {
607
+ t(d, {
608
608
  label: "宋体",
609
609
  value: "SimSun, serif"
610
610
  }),
611
- t(p, {
611
+ t(d, {
612
612
  label: "黑体",
613
613
  value: "SimHei, sans-serif"
614
614
  }),
615
- t(p, {
615
+ t(d, {
616
616
  label: "微软雅黑",
617
617
  value: "Microsoft YaHei, sans-serif"
618
618
  }),
619
- t(p, {
619
+ t(d, {
620
620
  label: "Arial",
621
621
  value: "Arial, sans-serif"
622
622
  }),
623
- t(p, {
623
+ t(d, {
624
624
  label: "Times New Roman",
625
625
  value: "Times New Roman, serif"
626
626
  })
@@ -645,17 +645,17 @@ const de = { class: "ik-print" }, me = {
645
645
  t(s, {
646
646
  type: "primary",
647
647
  onClick: L,
648
- loading: V.value
648
+ loading: y.value
649
649
  }, {
650
650
  default: a(() => [
651
- t(g, null, {
651
+ t(c, null, {
652
652
  default: a(() => [
653
653
  t(P(ne))
654
654
  ]),
655
655
  _: 1
656
656
  /* STABLE */
657
657
  }),
658
- o[19] || (o[19] = x(
658
+ o[19] || (o[19] = V(
659
659
  " 浏览器打印 ",
660
660
  -1
661
661
  /* CACHED */
@@ -667,17 +667,17 @@ const de = { class: "ik-print" }, me = {
667
667
  t(s, {
668
668
  type: "success",
669
669
  onClick: R,
670
- loading: V.value
670
+ loading: y.value
671
671
  }, {
672
672
  default: a(() => [
673
- t(g, null, {
673
+ t(c, null, {
674
674
  default: a(() => [
675
675
  t(P(ae))
676
676
  ]),
677
677
  _: 1
678
678
  /* STABLE */
679
679
  }),
680
- o[20] || (o[20] = x(
680
+ o[20] || (o[20] = V(
681
681
  " PDF 打印 ",
682
682
  -1
683
683
  /* CACHED */
@@ -688,14 +688,14 @@ const de = { class: "ik-print" }, me = {
688
688
  }, 8, ["loading"]),
689
689
  t(s, { onClick: j }, {
690
690
  default: a(() => [
691
- t(g, null, {
691
+ t(c, null, {
692
692
  default: a(() => [
693
- t(P(pe))
693
+ t(P(de))
694
694
  ]),
695
695
  _: 1
696
696
  /* STABLE */
697
697
  }),
698
- o[21] || (o[21] = x(
698
+ o[21] || (o[21] = V(
699
699
  " 打印预览 ",
700
700
  -1
701
701
  /* CACHED */
@@ -706,14 +706,14 @@ const de = { class: "ik-print" }, me = {
706
706
  }),
707
707
  t(s, { onClick: Y }, {
708
708
  default: a(() => [
709
- t(g, null, {
709
+ t(c, null, {
710
710
  default: a(() => [
711
711
  t(P(re))
712
712
  ]),
713
713
  _: 1
714
714
  /* STABLE */
715
715
  }),
716
- o[22] || (o[22] = x(
716
+ o[22] || (o[22] = V(
717
717
  " 重置配置 ",
718
718
  -1
719
719
  /* CACHED */
@@ -734,49 +734,49 @@ const de = { class: "ik-print" }, me = {
734
734
  _: 1
735
735
  /* STABLE */
736
736
  })
737
- ])) : d("v-if", !0),
738
- d(" 打印内容区域 "),
739
- w(
737
+ ])) : m("v-if", !0),
738
+ m(" 打印内容区域 "),
739
+ _(
740
740
  "div",
741
741
  {
742
742
  ref_key: "printContentRef",
743
- ref: y,
743
+ ref: x,
744
744
  class: Q(["print-content", { "print-preview": T.value }])
745
745
  },
746
746
  [
747
- d(" 页头 "),
748
- e.showHeader ? (m(), h(
747
+ m(" 页头 "),
748
+ e.showHeader ? (p(), h(
749
749
  "div",
750
750
  fe,
751
751
  I(e.headerText || "页头内容"),
752
752
  1
753
753
  /* TEXT */
754
- )) : d("v-if", !0),
755
- d(" 主要内容 "),
756
- w("div", ge, [
754
+ )) : m("v-if", !0),
755
+ m(" 主要内容 "),
756
+ _("div", ce, [
757
757
  Z(f.$slots, "default", {}, void 0, !0)
758
758
  ]),
759
- d(" 页尾 "),
760
- e.showFooter ? (m(), h(
759
+ m(" 页尾 "),
760
+ e.showFooter ? (p(), h(
761
761
  "div",
762
- ce,
762
+ ge,
763
763
  I(e.footerText || "页尾内容"),
764
764
  1
765
765
  /* TEXT */
766
- )) : d("v-if", !0)
766
+ )) : m("v-if", !0)
767
767
  ],
768
768
  2
769
769
  /* CLASS */
770
770
  ),
771
- d(" 操作按钮 "),
772
- u.hideControls ? d("v-if", !0) : (m(), h("div", he, [
771
+ m(" 操作按钮 "),
772
+ u.hideControls ? m("v-if", !0) : (p(), h("div", he, [
773
773
  t(s, {
774
774
  type: "primary",
775
775
  onClick: o[15] || (o[15] = (l) => C.value = !C.value),
776
776
  icon: C.value ? "Close" : "Setting"
777
777
  }, {
778
778
  default: a(() => [
779
- x(
779
+ V(
780
780
  I(C.value ? "关闭配置" : "打印配置"),
781
781
  1
782
782
  /* TEXT */
@@ -788,11 +788,11 @@ const de = { class: "ik-print" }, me = {
788
788
  t(s, {
789
789
  type: "success",
790
790
  onClick: L,
791
- loading: V.value,
791
+ loading: y.value,
792
792
  icon: "Printer"
793
793
  }, {
794
794
  default: a(() => [...o[23] || (o[23] = [
795
- x(
795
+ V(
796
796
  " 快速打印 ",
797
797
  -1
798
798
  /* CACHED */
@@ -805,12 +805,12 @@ const de = { class: "ik-print" }, me = {
805
805
  ]);
806
806
  };
807
807
  }
808
- }), _e = (u, b) => {
808
+ }), we = (u, b) => {
809
809
  const v = u.__vccOpts || u;
810
- for (const [F, _] of b)
811
- v[F] = _;
810
+ for (const [F, w] of b)
811
+ v[F] = w;
812
812
  return v;
813
- }, G = /* @__PURE__ */ _e(ve, [["__scopeId", "data-v-e9aeab6c"]]);
813
+ }, G = /* @__PURE__ */ we(ve, [["__scopeId", "data-v-7bc6d400"]]);
814
814
  G.install = (u) => {
815
815
  u.component("IkPrint", G);
816
816
  };
@@ -1 +1 @@
1
- .ik-print[data-v-e9aeab6c]{position:relative}.ik-print .print-config-panel[data-v-e9aeab6c]{position:fixed;top:20px;right:20px;width:600px;max-height:80vh;overflow-y:auto;z-index:1000;box-shadow:0 4px 12px #00000026}.ik-print .print-config-panel .config-card .config-header[data-v-e9aeab6c]{display:flex;justify-content:space-between;align-items:center}.ik-print .print-config-panel .config-card .config-header .close-btn[data-v-e9aeab6c]{padding:0;margin:0}.ik-print .print-content[data-v-e9aeab6c]{min-height:100px}.ik-print .print-content.print-preview[data-v-e9aeab6c]{border:2px dashed #409eff;padding:20px;background:#f9f9f9}.ik-print .print-content .print-header[data-v-e9aeab6c]{text-align:center;font-weight:700;padding:10px 0;border-bottom:1px solid #ddd;margin-bottom:20px}.ik-print .print-content .print-main-content[data-v-e9aeab6c]{flex:1}.ik-print .print-content .print-footer[data-v-e9aeab6c]{text-align:center;font-size:12px;padding:10px 0;border-top:1px solid #ddd;margin-top:20px}.ik-print .print-controls[data-v-e9aeab6c]{position:fixed;bottom:20px;right:20px;z-index:999}.ik-print .print-controls .el-button[data-v-e9aeab6c]{margin-left:10px}@media (max-width: 768px){.ik-print .print-config-panel[data-v-e9aeab6c]{position:fixed;top:0;left:0;right:0;bottom:0;width:100%;max-height:100vh;border-radius:0}.ik-print .print-controls[data-v-e9aeab6c]{position:fixed;bottom:10px;left:10px;right:10px;display:flex;justify-content:center}.ik-print .print-controls .el-button[data-v-e9aeab6c]{flex:1;margin:0 5px}}
1
+ .ik-print[data-v-7bc6d400]{position:relative}.ik-print .print-config-panel[data-v-7bc6d400]{position:fixed;top:20px;right:20px;width:600px;max-height:80vh;overflow-y:auto;z-index:1000;box-shadow:0 4px 12px #00000026}.ik-print .print-config-panel .config-card .config-header[data-v-7bc6d400]{display:flex;justify-content:space-between;align-items:center}.ik-print .print-config-panel .config-card .config-header .close-btn[data-v-7bc6d400]{padding:0;margin:0}.ik-print .print-content[data-v-7bc6d400]{min-height:100px}.ik-print .print-content.print-preview[data-v-7bc6d400]{border:2px dashed #409eff;padding:20px;background:#f9f9f9}.ik-print .print-content .print-header[data-v-7bc6d400]{text-align:center;font-weight:700;padding:10px 0;border-bottom:1px solid #ddd;margin-bottom:20px}.ik-print .print-content .print-main-content[data-v-7bc6d400]{flex:1}.ik-print .print-content .print-footer[data-v-7bc6d400]{text-align:center;font-size:12px;padding:10px 0;border-top:1px solid #ddd;margin-top:20px}.ik-print .print-controls[data-v-7bc6d400]{position:fixed;bottom:20px;right:20px;z-index:999}.ik-print .print-controls .el-button[data-v-7bc6d400]{margin-left:10px}@media(max-width:768px){.ik-print .print-config-panel[data-v-7bc6d400]{position:fixed;top:0;left:0;right:0;bottom:0;width:100%;max-height:100vh;border-radius:0}.ik-print .print-controls[data-v-7bc6d400]{position:fixed;bottom:10px;left:10px;right:10px;display:flex;justify-content:center}.ik-print .print-controls .el-button[data-v-7bc6d400]{flex:1;margin:0 5px}}