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,167 +1,167 @@
1
- import { defineComponent as $, createElementBlock as v, openBlock as p, createElementVNode as o, inject as W, computed as y, resolveComponent as ye, normalizeStyle as q, normalizeClass as C, createBlock as X, Fragment as H, withCtx as I, mergeProps as Se, createTextVNode as Ne, toDisplayString as K, unref as d, getCurrentScope as Pe, onScopeDispose as Ue, watch as ee, markRaw as be, ref as N, effectScope as He, shallowRef as De, nextTick as je, onMounted as Fe, Teleport as We, createVNode as _, Transition as Xe, createCommentVNode as V, renderSlot as Ee, withModifiers as Ye, resolveDynamicComponent as Qe, renderList as Te, withDirectives as fe, vShow as me, mergeModels as ke, useCssVars as Ge, useModel as Ze, createSlots as Ke } from "vue";
2
- import { useLocale as Je, useNamespace as qe, useZIndex as et, ElIcon as S, EVENT_CODE as U, useFormItem as tt, ElUpload as at, ElImage as lt, ElMessage as xe } from "element-plus";
3
- import { ikColor as nt, paramType as ze, _ as J, ikFile as st } from "iking-utils-pro";
4
- const _e = (t, s) => (t.install = (l) => {
1
+ import { defineComponent as L, openBlock as d, createElementBlock as p, createElementVNode as r, inject as P, computed as _, resolveComponent as ye, normalizeStyle as ee, normalizeClass as x, Fragment as H, createBlock as W, withCtx as C, mergeProps as Se, createTextVNode as Ne, toDisplayString as J, unref as c, getCurrentScope as Pe, onScopeDispose as Ue, watch as te, markRaw as be, ref as E, effectScope as He, shallowRef as De, nextTick as je, onMounted as Fe, Teleport as We, createVNode as g, Transition as Xe, withModifiers as Ye, createCommentVNode as A, resolveDynamicComponent as Qe, renderList as Ee, withDirectives as fe, vShow as me, renderSlot as Te, useCssVars as Ge, useModel as Ze, createSlots as Ke, mergeModels as ke } from "vue";
2
+ import { useLocale as Je, useNamespace as qe, useZIndex as et, ElIcon as N, EVENT_CODE as U, useFormItem as tt, ElUpload as at, ElImage as nt, ElMessage as xe } from "element-plus";
3
+ import { ikColor as lt, paramType as Ce, _ as q, ikFile as ot } from "iking-utils-pro";
4
+ const ge = (t, s) => (t.install = (l) => {
5
5
  for (const e of [t, ...Object.values({})])
6
6
  l.component(e.name, e);
7
7
  }, t);
8
- /*! Element Plus Icons Vue v2.3.1 */
9
- var ot = /* @__PURE__ */ $({
8
+ /*! Element Plus Icons Vue v2.3.2 */
9
+ var st = /* @__PURE__ */ L({
10
10
  name: "ArrowLeft",
11
11
  __name: "arrow-left",
12
12
  setup(t) {
13
- return (s, l) => (p(), v("svg", {
13
+ return (s, l) => (d(), p("svg", {
14
14
  xmlns: "http://www.w3.org/2000/svg",
15
15
  viewBox: "0 0 1024 1024"
16
16
  }, [
17
- o("path", {
17
+ r("path", {
18
18
  fill: "currentColor",
19
- d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"
19
+ d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
20
20
  })
21
21
  ]));
22
22
  }
23
- }), rt = ot, it = /* @__PURE__ */ $({
23
+ }), rt = st, it = /* @__PURE__ */ L({
24
24
  name: "ArrowRight",
25
25
  __name: "arrow-right",
26
26
  setup(t) {
27
- return (s, l) => (p(), v("svg", {
27
+ return (s, l) => (d(), p("svg", {
28
28
  xmlns: "http://www.w3.org/2000/svg",
29
29
  viewBox: "0 0 1024 1024"
30
30
  }, [
31
- o("path", {
31
+ r("path", {
32
32
  fill: "currentColor",
33
- d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
33
+ d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
34
34
  })
35
35
  ]));
36
36
  }
37
- }), ut = it, ct = /* @__PURE__ */ $({
37
+ }), ut = it, ct = /* @__PURE__ */ L({
38
38
  name: "Close",
39
39
  __name: "close",
40
40
  setup(t) {
41
- return (s, l) => (p(), v("svg", {
41
+ return (s, l) => (d(), p("svg", {
42
42
  xmlns: "http://www.w3.org/2000/svg",
43
43
  viewBox: "0 0 1024 1024"
44
44
  }, [
45
- o("path", {
45
+ r("path", {
46
46
  fill: "currentColor",
47
47
  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"
48
48
  })
49
49
  ]));
50
50
  }
51
- }), dt = ct, pt = /* @__PURE__ */ $({
51
+ }), dt = ct, vt = /* @__PURE__ */ L({
52
52
  name: "Delete",
53
53
  __name: "delete",
54
54
  setup(t) {
55
- return (s, l) => (p(), v("svg", {
55
+ return (s, l) => (d(), p("svg", {
56
56
  xmlns: "http://www.w3.org/2000/svg",
57
57
  viewBox: "0 0 1024 1024"
58
58
  }, [
59
- o("path", {
59
+ r("path", {
60
60
  fill: "currentColor",
61
61
  d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
62
62
  })
63
63
  ]));
64
64
  }
65
- }), vt = pt, ft = /* @__PURE__ */ $({
65
+ }), pt = vt, ft = /* @__PURE__ */ L({
66
66
  name: "Download",
67
67
  __name: "download",
68
68
  setup(t) {
69
- return (s, l) => (p(), v("svg", {
69
+ return (s, l) => (d(), p("svg", {
70
70
  xmlns: "http://www.w3.org/2000/svg",
71
71
  viewBox: "0 0 1024 1024"
72
72
  }, [
73
- o("path", {
73
+ r("path", {
74
74
  fill: "currentColor",
75
75
  d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
76
76
  })
77
77
  ]));
78
78
  }
79
- }), mt = ft, _t = /* @__PURE__ */ $({
79
+ }), mt = ft, gt = /* @__PURE__ */ L({
80
80
  name: "FullScreen",
81
81
  __name: "full-screen",
82
82
  setup(t) {
83
- return (s, l) => (p(), v("svg", {
83
+ return (s, l) => (d(), p("svg", {
84
84
  xmlns: "http://www.w3.org/2000/svg",
85
85
  viewBox: "0 0 1024 1024"
86
86
  }, [
87
- o("path", {
87
+ r("path", {
88
88
  fill: "currentColor",
89
- d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
89
+ d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
90
90
  })
91
91
  ]));
92
92
  }
93
- }), gt = _t, ht = /* @__PURE__ */ $({
93
+ }), ht = gt, _t = /* @__PURE__ */ L({
94
94
  name: "RefreshLeft",
95
95
  __name: "refresh-left",
96
96
  setup(t) {
97
- return (s, l) => (p(), v("svg", {
97
+ return (s, l) => (d(), p("svg", {
98
98
  xmlns: "http://www.w3.org/2000/svg",
99
99
  viewBox: "0 0 1024 1024"
100
100
  }, [
101
- o("path", {
101
+ r("path", {
102
102
  fill: "currentColor",
103
103
  d: "M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"
104
104
  })
105
105
  ]));
106
106
  }
107
- }), wt = ht, yt = /* @__PURE__ */ $({
107
+ }), wt = _t, yt = /* @__PURE__ */ L({
108
108
  name: "RefreshRight",
109
109
  __name: "refresh-right",
110
110
  setup(t) {
111
- return (s, l) => (p(), v("svg", {
111
+ return (s, l) => (d(), p("svg", {
112
112
  xmlns: "http://www.w3.org/2000/svg",
113
113
  viewBox: "0 0 1024 1024"
114
114
  }, [
115
- o("path", {
115
+ r("path", {
116
116
  fill: "currentColor",
117
- d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"
117
+ d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"
118
118
  })
119
119
  ]));
120
120
  }
121
- }), bt = yt, kt = /* @__PURE__ */ $({
121
+ }), bt = yt, kt = /* @__PURE__ */ L({
122
122
  name: "ScaleToOriginal",
123
123
  __name: "scale-to-original",
124
124
  setup(t) {
125
- return (s, l) => (p(), v("svg", {
125
+ return (s, l) => (d(), p("svg", {
126
126
  xmlns: "http://www.w3.org/2000/svg",
127
127
  viewBox: "0 0 1024 1024"
128
128
  }, [
129
- o("path", {
129
+ r("path", {
130
130
  fill: "currentColor",
131
- d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"
131
+ d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"
132
132
  })
133
133
  ]));
134
134
  }
135
- }), xt = kt, zt = /* @__PURE__ */ $({
135
+ }), xt = kt, Ct = /* @__PURE__ */ L({
136
136
  name: "ZoomIn",
137
137
  __name: "zoom-in",
138
138
  setup(t) {
139
- return (s, l) => (p(), v("svg", {
139
+ return (s, l) => (d(), p("svg", {
140
140
  xmlns: "http://www.w3.org/2000/svg",
141
141
  viewBox: "0 0 1024 1024"
142
142
  }, [
143
- o("path", {
143
+ r("path", {
144
144
  fill: "currentColor",
145
145
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"
146
146
  })
147
147
  ]));
148
148
  }
149
- }), Ve = zt, Ct = /* @__PURE__ */ $({
149
+ }), Ae = Ct, It = /* @__PURE__ */ L({
150
150
  name: "ZoomOut",
151
151
  __name: "zoom-out",
152
152
  setup(t) {
153
- return (s, l) => (p(), v("svg", {
153
+ return (s, l) => (d(), p("svg", {
154
154
  xmlns: "http://www.w3.org/2000/svg",
155
155
  viewBox: "0 0 1024 1024"
156
156
  }, [
157
- o("path", {
157
+ r("path", {
158
158
  fill: "currentColor",
159
159
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"
160
160
  })
161
161
  ]));
162
162
  }
163
- }), It = Ct;
164
- const ge = (t, s) => {
163
+ }), zt = It;
164
+ const he = (t, s) => {
165
165
  const l = t.__vccOpts || t;
166
166
  for (const [e, f] of s)
167
167
  l[e] = f;
@@ -177,8 +177,8 @@ const ge = (t, s) => {
177
177
  height: "200"
178
178
  };
179
179
  function $t(t, s) {
180
- return p(), v("svg", Lt, [...s[0] || (s[0] = [
181
- o(
180
+ return d(), p("svg", Lt, [...s[0] || (s[0] = [
181
+ r(
182
182
  "path",
183
183
  {
184
184
  d: "M369.569592 512.011256c0-14.328333-11.010775-25.945929-24.591071-25.945929L86.980515 486.065328c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.998005 0C358.55984 537.959232 369.569592 526.341636 369.569592 512.011256z",
@@ -188,7 +188,7 @@ function $t(t, s) {
188
188
  -1
189
189
  /* CACHED */
190
190
  ),
191
- o(
191
+ r(
192
192
  "path",
193
193
  {
194
194
  d: "M937.019485 486.064304 679.020456 486.064304c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.999029 0c13.580297 0 24.590048-11.618619 24.590048-25.947975C961.609533 497.682923 950.598758 486.064304 937.019485 486.064304z",
@@ -198,7 +198,7 @@ function $t(t, s) {
198
198
  -1
199
199
  /* CACHED */
200
200
  ),
201
- o(
201
+ r(
202
202
  "path",
203
203
  {
204
204
  d: "M512.011768 62.389956c-13.580297 0-24.590048 11.618619-24.590048 25.945929l0 257.170151c0 14.329357 11.010775 25.946952 24.590048 25.946952s24.591071-11.618619 24.591071-25.946952L536.602839 88.335884C536.602839 74.008574 525.591041 62.389956 512.011768 62.389956z",
@@ -208,7 +208,7 @@ function $t(t, s) {
208
208
  -1
209
209
  /* CACHED */
210
210
  ),
211
- o(
211
+ r(
212
212
  "path",
213
213
  {
214
214
  d: "M512.011768 652.544967c-13.580297 0-24.590048 11.618619-24.590048 25.946952l0 257.169127c0 14.33038 11.010775 25.947975 24.590048 25.947975s24.591071-11.618619 24.591071-25.947975L536.602839 678.491918C536.602839 664.162562 525.591041 652.544967 512.011768 652.544967z",
@@ -218,7 +218,7 @@ function $t(t, s) {
218
218
  -1
219
219
  /* CACHED */
220
220
  ),
221
- o(
221
+ r(
222
222
  "path",
223
223
  {
224
224
  d: "M377.001865 413.125085c4.744048 4.737908 10.818393 7.082302 16.882506 7.082302 6.519484 0 13.039991-2.724041 17.879206-8.134261 9.317203-10.414187 8.885368-26.834158-0.9967-36.678364L228.341057 193.559391c-9.832949-9.830903-25.406646-9.388834-34.760688 1.050935-9.317203 10.414187-8.885368 26.834158 0.9967 36.678364L377.001865 413.125085z",
@@ -228,7 +228,7 @@ function $t(t, s) {
228
228
  -1
229
229
  /* CACHED */
230
230
  ),
231
- o(
231
+ r(
232
232
  "path",
233
233
  {
234
234
  d: "M646.997112 610.873892c-9.846252-9.831926-25.419949-9.388834-34.761712 1.051959-9.317203 10.414187-8.885368 26.834158 0.997724 36.678364l182.41354 181.834348c4.743024 4.738931 10.818393 7.083326 16.881482 7.083326 6.520507 0 13.039991-2.723018 17.879206-8.134261 9.317203-10.41521 8.886391-26.834158-0.9967-36.678364L646.997112 610.873892z",
@@ -238,7 +238,7 @@ function $t(t, s) {
238
238
  -1
239
239
  /* CACHED */
240
240
  ),
241
- o(
241
+ r(
242
242
  "path",
243
243
  {
244
244
  d: "M630.114606 420.207387c6.064113 0 12.139481-2.344395 16.882506-7.082302l182.425819-181.836395c9.882068-9.844206 10.313903-26.264177 0.9967-36.678364-9.341762-10.43977-24.915459-10.882861-34.760688-1.050935L613.233124 375.394762c-9.882068 9.844206-10.314926 26.264177-0.997724 36.678364C617.074615 417.483346 623.595123 420.207387 630.114606 420.207387z",
@@ -248,7 +248,7 @@ function $t(t, s) {
248
248
  -1
249
249
  /* CACHED */
250
250
  ),
251
- o(
251
+ r(
252
252
  "path",
253
253
  {
254
254
  d: "M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z",
@@ -260,7 +260,7 @@ function $t(t, s) {
260
260
  )
261
261
  ])]);
262
262
  }
263
- const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
263
+ const Mt = /* @__PURE__ */ he(Ot, [["render", $t]]), Ie = [
264
264
  "csv",
265
265
  "djvu",
266
266
  "doc",
@@ -316,14 +316,17 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
316
316
  "flv",
317
317
  "tls"
318
318
  ], Bt = (t) => {
319
- const s = W("loadUrl"), l = y(() => t.loadUrl || t.fileUrl || (s == null ? void 0 : s.value)), e = W("uploadUrl"), f = y(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), m = W("token"), x = y(() => t.token || (m == null ? void 0 : m.value)), M = W("onlyofficeConfig"), h = y(() => t.onlyofficeConfig || (M == null ? void 0 : M.value)), B = W("userInfo"), O = y(() => t.userInfo || (B == null ? void 0 : B.value)), c = [...Ce, ...Ce.map((b) => b.toLocaleUpperCase())];
319
+ const s = P("loadUrl"), l = _(() => t.loadUrl || t.fileUrl || (s == null ? void 0 : s.value)), e = P("uploadUrl"), f = _(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), m = P("token"), k = _(() => t.token || (m == null ? void 0 : m.value)), M = P("header"), h = _(() => t.header || (M == null ? void 0 : M.value) || {
320
+ Authorization: k.value
321
+ }), B = P("onlyofficeConfig"), I = _(() => t.onlyofficeConfig || (B == null ? void 0 : B.value)), u = P("userInfo"), O = _(() => t.userInfo || (u == null ? void 0 : u.value)), y = [...Ie, ...Ie.map((w) => w.toLocaleUpperCase())];
320
322
  return {
321
323
  cLoadUrl: l,
322
324
  cUploadUrl: f,
323
- cToken: x,
324
- cOnlyofficeConfig: h,
325
+ cToken: k,
326
+ cHeader: h,
327
+ cOnlyofficeConfig: I,
325
328
  cUserInfo: O,
326
- cOnlyofficePreviewType: c
329
+ cOnlyofficePreviewType: y
327
330
  };
328
331
  }, St = {
329
332
  key: 1,
@@ -333,7 +336,7 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
333
336
  key: 1,
334
337
  class: "h-[1em] w-[1em]",
335
338
  "aria-hidden": "true"
336
- }, Vt = ["xlink:href"], At = ["src"], Rt = /* @__PURE__ */ $({
339
+ }, At = ["xlink:href"], Vt = ["src"], Rt = /* @__PURE__ */ L({
337
340
  name: "IkSvgIcon",
338
341
  __name: "index",
339
342
  props: {
@@ -362,50 +365,50 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
362
365
  },
363
366
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
364
367
  setup(t, { emit: s }) {
365
- const l = t, e = y(() => l), f = y(() => {
366
- const { name: c } = e.value;
367
- return /^http?:\/\//.test(c) ? "img" : /i-[^:]+:[^:]+/.test(c) ? "unocss" : c != null && c.startsWith("iksig") ? "iksig" : c != null && c.includes(":") ? "iconify" : c != null && c.startsWith("iksvg") ? "svg" : "i";
368
- }), m = y(() => {
369
- const c = [];
368
+ const l = t, e = _(() => l), f = _(() => {
369
+ const { name: u } = e.value;
370
+ return /^http?:\/\//.test(u) ? "img" : /i-[^:]+:[^:]+/.test(u) ? "unocss" : u != null && u.startsWith("iksig") ? "iksig" : u != null && u.includes(":") ? "iconify" : u != null && u.startsWith("iksvg") ? "svg" : "i";
371
+ }), m = _(() => {
372
+ const u = [];
370
373
  if (e.value.flip)
371
374
  switch (e.value.flip) {
372
375
  case "horizontal":
373
- c.push("rotateY(180deg)");
376
+ u.push("rotateY(180deg)");
374
377
  break;
375
378
  case "vertical":
376
- c.push("rotateX(180deg)");
379
+ u.push("rotateX(180deg)");
377
380
  break;
378
381
  case "both":
379
- c.push("rotateX(180deg)"), c.push("rotateY(180deg)");
382
+ u.push("rotateX(180deg)"), u.push("rotateY(180deg)");
380
383
  break;
381
384
  }
382
- e.value.rotate && c.push(`rotate(${e.value.rotate % 360}deg)`);
383
- const b = {
385
+ e.value.rotate && u.push(`rotate(${e.value.rotate % 360}deg)`);
386
+ const O = {
384
387
  ...e.value.color && { color: e.value.color },
385
388
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
386
- ...c.length && { transform: c.join(" ") },
389
+ ...u.length && { transform: u.join(" ") },
387
390
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
388
391
  ...e.value.color && f.value !== "iksig" ? {
389
392
  "--ik-icon-deep-color": e.value.color,
390
- "--ik-icon-shallow-color": e.value.colorLight || nt.setOpacity(e.value.color, e.value.opacity)
393
+ "--ik-icon-shallow-color": e.value.colorLight || lt.setOpacity(e.value.color, e.value.opacity)
391
394
  } : {}
392
395
  };
393
- return e.value.width && (b.width = b.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), b;
394
- }), x = s, M = (c) => {
395
- x("click", c);
396
- }, h = (c) => {
397
- x("mouseenter", c);
398
- }, B = (c) => {
399
- x("mouseleave", c);
400
- }, O = (c) => {
401
- x("dblclick", c);
396
+ return e.value.width && (O.width = O.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), O;
397
+ }), k = s, M = (u) => {
398
+ k("click", u);
399
+ }, h = (u) => {
400
+ k("mouseenter", u);
401
+ }, B = (u) => {
402
+ k("mouseleave", u);
403
+ }, I = (u) => {
404
+ k("dblclick", u);
402
405
  };
403
- return (c, b) => {
404
- const w = ye("el-tooltip"), z = ye("el-button");
405
- return p(), v(
406
+ return (u, O) => {
407
+ const y = ye("el-tooltip"), w = ye("el-button");
408
+ return d(), p(
406
409
  "i",
407
410
  {
408
- class: C(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
411
+ class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
409
412
  [t.iconClass]: !0,
410
413
  [t.name]: f.value === "unocss",
411
414
  "show-bg": e.value.showBg || e.value.bg,
@@ -419,43 +422,43 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
419
422
  active: e.value.active,
420
423
  disabled: e.value.disabled
421
424
  }]),
422
- style: q(m.value),
425
+ style: ee(m.value),
423
426
  onClick: M,
424
- onDblclick: O,
427
+ onDblclick: I,
425
428
  onMouseenter: h,
426
429
  onMouseleave: B
427
430
  },
428
431
  [
429
- e.value.tableIconType === "icon" || !e.value.tableIconType ? (p(), v(
432
+ e.value.tableIconType === "icon" || !e.value.tableIconType ? (d(), p(
430
433
  H,
431
434
  { key: 0 },
432
435
  [
433
- e.value.notip || !e.value.title ? (p(), v(
436
+ e.value.notip || !e.value.title ? (d(), p(
434
437
  H,
435
438
  { key: 0 },
436
439
  [
437
- f.value === "iksig" ? (p(), v(
440
+ f.value === "iksig" ? (d(), p(
438
441
  "i",
439
442
  {
440
443
  key: 0,
441
- class: C(`iksig ${e.value.name}`)
444
+ class: x(`iksig ${e.value.name}`)
442
445
  },
443
446
  null,
444
447
  2
445
448
  /* CLASS */
446
- )) : f.value === "svg" ? (p(), v("svg", St, [
447
- o("use", {
449
+ )) : f.value === "svg" ? (d(), p("svg", St, [
450
+ r("use", {
448
451
  "xlink:href": `#${e.value.name}`
449
452
  }, null, 8, Nt)
450
- ])) : f.value === "img" ? (p(), v("img", {
453
+ ])) : f.value === "img" ? (d(), p("img", {
451
454
  key: 2,
452
455
  src: e.value.name,
453
456
  class: "h-[1em] w-[1em]"
454
- }, null, 8, Et)) : (p(), v(
457
+ }, null, 8, Et)) : (d(), p(
455
458
  "i",
456
459
  {
457
460
  key: 3,
458
- class: C(e.value.name)
461
+ class: x(e.value.name)
459
462
  },
460
463
  null,
461
464
  2
@@ -464,36 +467,36 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
464
467
  ],
465
468
  64
466
469
  /* STABLE_FRAGMENT */
467
- )) : (p(), X(w, {
470
+ )) : (d(), W(y, {
468
471
  key: 1,
469
472
  content: e.value.title,
470
473
  placement: "top",
471
474
  "popper-class": "ik-svg-icon-tooltip",
472
475
  "hide-after": 0
473
476
  }, {
474
- default: I(() => [
475
- f.value === "iksig" ? (p(), v(
477
+ default: C(() => [
478
+ f.value === "iksig" ? (d(), p(
476
479
  "i",
477
480
  {
478
481
  key: 0,
479
- class: C(`iksig ${e.value.name}`)
482
+ class: x(`iksig ${e.value.name}`)
480
483
  },
481
484
  null,
482
485
  2
483
486
  /* CLASS */
484
- )) : f.value === "svg" ? (p(), v("svg", Tt, [
485
- o("use", {
487
+ )) : f.value === "svg" ? (d(), p("svg", Tt, [
488
+ r("use", {
486
489
  "xlink:href": `#${e.value.name}`
487
- }, null, 8, Vt)
488
- ])) : f.value === "img" ? (p(), v("img", {
490
+ }, null, 8, At)
491
+ ])) : f.value === "img" ? (d(), p("img", {
489
492
  key: 2,
490
493
  src: e.value.name,
491
494
  class: "h-[1em] w-[1em]"
492
- }, null, 8, At)) : (p(), v(
495
+ }, null, 8, Vt)) : (d(), p(
493
496
  "i",
494
497
  {
495
498
  key: 3,
496
- class: C(e.value.name)
499
+ class: x(e.value.name)
497
500
  },
498
501
  null,
499
502
  2
@@ -506,12 +509,12 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
506
509
  ],
507
510
  64
508
511
  /* STABLE_FRAGMENT */
509
- )) : (p(), X(z, Se({ key: 1 }, c.$attrs, {
512
+ )) : (d(), W(w, Se({ key: 1 }, u.$attrs, {
510
513
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
511
514
  }), {
512
- default: I(() => [
515
+ default: C(() => [
513
516
  Ne(
514
- K(e.value.title),
517
+ J(e.value.title),
515
518
  1
516
519
  /* TEXT */
517
520
  )
@@ -525,13 +528,13 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
525
528
  );
526
529
  };
527
530
  }
528
- }), Pt = /* @__PURE__ */ ge(Rt, [["__scopeId", "data-v-d5c74053"]]), ve = _e(Pt);
529
- var Ie;
530
- const Ae = typeof window < "u", Ut = (t) => typeof t == "string", Ht = () => {
531
+ }), Pt = /* @__PURE__ */ he(Rt, [["__scopeId", "data-v-9ebb0a94"]]), pe = ge(Pt);
532
+ var ze;
533
+ const Ve = typeof window < "u", Ut = (t) => typeof t == "string", Ht = () => {
531
534
  };
532
- Ae && ((Ie = window == null ? void 0 : window.navigator) != null && Ie.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
535
+ Ve && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
533
536
  function Re(t) {
534
- return typeof t == "function" ? t() : d(t);
537
+ return typeof t == "function" ? t() : c(t);
535
538
  }
536
539
  function Dt(t) {
537
540
  return t;
@@ -544,18 +547,18 @@ function Ft(t) {
544
547
  const l = Re(t);
545
548
  return (s = l == null ? void 0 : l.$el) != null ? s : l;
546
549
  }
547
- const Wt = Ae ? window : void 0;
548
- function Z(...t) {
550
+ const Wt = Ve ? window : void 0;
551
+ function K(...t) {
549
552
  let s, l, e, f;
550
553
  if (Ut(t[0]) || Array.isArray(t[0]) ? ([l, e, f] = t, s = Wt) : [s, l, e, f] = t, !s)
551
554
  return Ht;
552
555
  Array.isArray(l) || (l = [l]), Array.isArray(e) || (e = [e]);
553
- const m = [], x = () => {
554
- m.forEach((O) => O()), m.length = 0;
555
- }, M = (O, c, b, w) => (O.addEventListener(c, b, w), () => O.removeEventListener(c, b, w)), h = ee(() => [Ft(s), Re(f)], ([O, c]) => {
556
- x(), O && m.push(...l.flatMap((b) => e.map((w) => M(O, b, w, c))));
556
+ const m = [], k = () => {
557
+ m.forEach((I) => I()), m.length = 0;
558
+ }, M = (I, u, O, y) => (I.addEventListener(u, O, y), () => I.removeEventListener(u, O, y)), h = te(() => [Ft(s), Re(f)], ([I, u]) => {
559
+ k(), I && m.push(...l.flatMap((O) => e.map((y) => M(I, O, y, u))));
557
560
  }, { immediate: !0, flush: "post" }), B = () => {
558
- h(), x();
561
+ h(), k();
559
562
  };
560
563
  return jt(B), B;
561
564
  }
@@ -674,118 +677,118 @@ const Kt = {
674
677
  }
675
678
  }, Jt = {
676
679
  close: () => !0,
677
- switch: (t) => ze.isNumber(t),
678
- rotate: (t) => ze.isNumber(t)
679
- }, qt = ["src", "crossorigin"], ea = /* @__PURE__ */ $({
680
+ switch: (t) => Ce.isNumber(t),
681
+ rotate: (t) => Ce.isNumber(t)
682
+ }, qt = ["src", "crossorigin"], ea = /* @__PURE__ */ L({
680
683
  name: "ElImageViewer",
681
684
  __name: "IkImageViewer",
682
685
  props: Kt,
683
686
  emits: Jt,
684
687
  setup(t, { expose: s, emit: l }) {
685
- const e = (n) => Object.keys(n), f = {
688
+ const e = (a) => Object.keys(a), f = {
686
689
  CONTAIN: {
687
690
  name: "contain",
688
- icon: be(gt)
691
+ icon: be(ht)
689
692
  },
690
693
  ORIGINAL: {
691
694
  name: "original",
692
695
  icon: be(xt)
693
696
  }
694
- }, m = t, x = l, { t: M } = Je(), h = qe("image-viewer"), { nextZIndex: B } = et(), O = N(), c = N([]), b = He(), w = N(!0), z = N(m.initialIndex), A = De(f.CONTAIN), k = N({
697
+ }, m = t, k = l, { t: M } = Je(), h = qe("image-viewer"), { nextZIndex: B } = et(), I = E(), u = E([]), O = He(), y = E(!0), w = E(m.initialIndex), S = De(f.CONTAIN), b = E({
695
698
  scale: 1,
696
699
  deg: 0,
697
700
  offsetX: 0,
698
701
  offsetY: 0,
699
702
  enableTransition: !1
700
- }), te = N(m.zIndex ?? B()), ae = y(() => {
701
- const { urlList: n } = m;
702
- return n.length <= 1;
703
- }), Y = y(() => z.value === 0), Q = y(() => z.value === m.urlList.length - 1), le = y(() => m.urlList[z.value]), ne = y(() => [
703
+ }), X = E(m.zIndex ?? B()), ae = _(() => {
704
+ const { urlList: a } = m;
705
+ return a.length <= 1;
706
+ }), Y = _(() => w.value === 0), Q = _(() => w.value === m.urlList.length - 1), ne = _(() => m.urlList[w.value]), le = _(() => [
704
707
  h.e("btn"),
705
708
  h.e("prev"),
706
709
  h.is("disabled", !m.infinite && Y.value)
707
- ]), se = y(() => [
710
+ ]), oe = _(() => [
708
711
  h.e("btn"),
709
712
  h.e("next"),
710
713
  h.is("disabled", !m.infinite && Q.value)
711
- ]), oe = y(() => {
712
- const { scale: n, deg: u, offsetX: g, offsetY: L, enableTransition: E } = k.value;
713
- let T = g / n, R = L / n;
714
- const F = u * Math.PI / 180, he = Math.cos(F), we = Math.sin(F);
715
- T = T * he + R * we, R = R * he - g / n * we;
716
- const pe = {
717
- transform: `scale(${n}) rotate(${u}deg) translate(${T}px, ${R}px)`,
718
- transition: E ? "transform .3s" : ""
714
+ ]), se = _(() => {
715
+ const { scale: a, deg: i, offsetX: v, offsetY: z, enableTransition: $ } = b.value;
716
+ let T = v / a, V = z / a;
717
+ const F = i * Math.PI / 180, _e = Math.cos(F), we = Math.sin(F);
718
+ T = T * _e + V * we, V = V * _e - v / a * we;
719
+ const ve = {
720
+ transform: `scale(${a}) rotate(${i}deg) translate(${T}px, ${V}px)`,
721
+ transition: $ ? "transform .3s" : ""
719
722
  };
720
- return A.value.name === f.CONTAIN.name && (pe.maxWidth = pe.maxHeight = "100%"), pe;
723
+ return S.value.name === f.CONTAIN.name && (ve.maxWidth = ve.maxHeight = "100%"), ve;
721
724
  });
722
725
  function D() {
723
- ie(), x("close");
726
+ ie(), k("close");
724
727
  }
725
728
  function re() {
726
- const n = J.throttle((g) => {
727
- switch (g.code) {
729
+ const a = q.throttle((v) => {
730
+ switch (v.code) {
728
731
  // ESC
729
732
  case U.esc:
730
733
  m.closeOnPressEscape && D();
731
734
  break;
732
735
  // SPACE
733
736
  case U.space:
734
- G();
737
+ R();
735
738
  break;
736
739
  // LEFT_ARROW
737
740
  case U.left:
738
- a();
741
+ Z();
739
742
  break;
740
743
  // UP_ARROW
741
744
  case U.up:
742
- r("zoomIn");
745
+ o("zoomIn");
743
746
  break;
744
747
  // RIGHT_ARROW
745
748
  case U.right:
746
- i();
749
+ n();
747
750
  break;
748
751
  // DOWN_ARROW
749
752
  case U.down:
750
- r("zoomOut");
753
+ o("zoomOut");
751
754
  break;
752
755
  }
753
- }), u = J.throttle((g) => {
754
- const L = g.deltaY || g.deltaX;
755
- r(L < 0 ? "zoomIn" : "zoomOut", {
756
+ }), i = q.throttle((v) => {
757
+ const z = v.deltaY || v.deltaX;
758
+ o(z < 0 ? "zoomIn" : "zoomOut", {
756
759
  zoomRate: m.zoomRate,
757
760
  enableTransition: !1
758
761
  });
759
762
  });
760
- b.run(() => {
761
- Z(document, "keydown", n), Z(document, "wheel", u);
763
+ O.run(() => {
764
+ K(document, "keydown", a), K(document, "wheel", i);
762
765
  });
763
766
  }
764
767
  function ie() {
765
- b.stop();
768
+ O.stop();
766
769
  }
767
770
  function ue() {
768
- w.value = !1;
771
+ y.value = !1;
769
772
  }
770
- function ce(n) {
771
- w.value = !1, n.target.alt = M("el.image.error");
773
+ function ce(a) {
774
+ y.value = !1, a.target.alt = M("el.image.error");
772
775
  }
773
- function de(n) {
774
- if (w.value || n.button !== 0 || !O.value) return;
775
- k.value.enableTransition = !1;
776
- const { offsetX: u, offsetY: g } = k.value, L = n.pageX, E = n.pageY, T = J.throttle((F) => {
777
- k.value = {
778
- ...k.value,
779
- offsetX: u + F.pageX - L,
780
- offsetY: g + F.pageY - E
776
+ function de(a) {
777
+ if (y.value || a.button !== 0 || !I.value) return;
778
+ b.value.enableTransition = !1;
779
+ const { offsetX: i, offsetY: v } = b.value, z = a.pageX, $ = a.pageY, T = q.throttle((F) => {
780
+ b.value = {
781
+ ...b.value,
782
+ offsetX: i + F.pageX - z,
783
+ offsetY: v + F.pageY - $
781
784
  };
782
- }), R = Z(document, "mousemove", T);
783
- Z(document, "mouseup", () => {
784
- R();
785
- }), n.preventDefault();
785
+ }), V = K(document, "mousemove", T);
786
+ K(document, "mouseup", () => {
787
+ V();
788
+ }), a.preventDefault();
786
789
  }
787
- function P() {
788
- k.value = {
790
+ function G() {
791
+ b.value = {
789
792
  scale: 1,
790
793
  deg: 0,
791
794
  offsetX: 0,
@@ -793,101 +796,101 @@ const Kt = {
793
796
  enableTransition: !1
794
797
  };
795
798
  }
796
- function G() {
797
- if (w.value) return;
798
- const n = e(f), u = Object.values(f), g = A.value.name, E = ((u == null ? void 0 : u.findIndex((T) => T.name === g)) + 1) % n.length;
799
- A.value = f[n[E]], P();
799
+ function R() {
800
+ if (y.value) return;
801
+ const a = e(f), i = Object.values(f), v = S.value.name, $ = ((i == null ? void 0 : i.findIndex((T) => T.name === v)) + 1) % a.length;
802
+ S.value = f[a[$]], G();
800
803
  }
801
- function j(n) {
802
- const u = m.urlList.length;
803
- z.value = (n + u) % u;
804
+ function j(a) {
805
+ const i = m.urlList.length;
806
+ w.value = (a + i) % i;
804
807
  }
805
- function a() {
806
- Y.value && !m.infinite || j(z.value - 1);
808
+ function Z() {
809
+ Y.value && !m.infinite || j(w.value - 1);
807
810
  }
808
- function i() {
809
- Q.value && !m.infinite || j(z.value + 1);
811
+ function n() {
812
+ Q.value && !m.infinite || j(w.value + 1);
810
813
  }
811
- function r(n, u = {}) {
812
- if (w.value) return;
813
- const { minScale: g, maxScale: L } = m, { zoomRate: E, rotateDeg: T, enableTransition: R } = {
814
+ function o(a, i = {}) {
815
+ if (y.value) return;
816
+ const { minScale: v, maxScale: z } = m, { zoomRate: $, rotateDeg: T, enableTransition: V } = {
814
817
  zoomRate: m.zoomRate,
815
818
  rotateDeg: 90,
816
819
  enableTransition: !0,
817
- ...u
820
+ ...i
818
821
  };
819
- switch (n) {
822
+ switch (a) {
820
823
  case "zoomOut":
821
- k.value.scale > g && (k.value.scale = Number.parseFloat(
822
- (k.value.scale / E).toFixed(3)
824
+ b.value.scale > v && (b.value.scale = Number.parseFloat(
825
+ (b.value.scale / $).toFixed(3)
823
826
  ));
824
827
  break;
825
828
  case "zoomIn":
826
- k.value.scale < L && (k.value.scale = Number.parseFloat(
827
- (k.value.scale * E).toFixed(3)
829
+ b.value.scale < z && (b.value.scale = Number.parseFloat(
830
+ (b.value.scale * $).toFixed(3)
828
831
  ));
829
832
  break;
830
833
  case "clockwise":
831
- k.value.deg += T, x("rotate", k.value.deg);
834
+ b.value.deg += T, k("rotate", b.value.deg);
832
835
  break;
833
836
  case "anticlockwise":
834
- k.value.deg -= T, x("rotate", k.value.deg);
837
+ b.value.deg -= T, k("rotate", b.value.deg);
835
838
  break;
836
839
  }
837
- k.value.enableTransition = R;
840
+ b.value.enableTransition = V;
838
841
  }
839
- return ee(le, () => {
842
+ return te(ne, () => {
840
843
  je(() => {
841
- const n = c.value[0];
842
- n != null && n.complete || (w.value = !0);
844
+ const a = u.value[0];
845
+ a != null && a.complete || (y.value = !0);
843
846
  });
844
- }), ee(z, (n) => {
845
- P(), x("switch", n);
847
+ }), te(w, (a) => {
848
+ G(), k("switch", a);
846
849
  }), Fe(() => {
847
- var n, u;
848
- re(), (u = (n = O.value) == null ? void 0 : n.focus) == null || u.call(n);
850
+ var a, i;
851
+ re(), (i = (a = I.value) == null ? void 0 : a.focus) == null || i.call(a);
849
852
  }), s({
850
853
  /**
851
854
  * @description manually switch image
852
855
  */
853
856
  setActiveItem: j
854
- }), (n, u) => (p(), X(We, { to: "body" }, [
855
- _(Xe, {
857
+ }), (a, i) => (d(), W(We, { to: "body" }, [
858
+ g(Xe, {
856
859
  name: "viewer-fade",
857
860
  appear: ""
858
861
  }, {
859
- default: I(() => [
860
- o(
862
+ default: C(() => [
863
+ r(
861
864
  "div",
862
865
  {
863
866
  ref_key: "wrapper",
864
- ref: O,
867
+ ref: I,
865
868
  tabindex: -1,
866
- class: C(d(h).e("wrapper")),
867
- style: q({ zIndex: te.value })
869
+ class: x(c(h).e("wrapper")),
870
+ style: ee({ zIndex: X.value })
868
871
  },
869
872
  [
870
- o(
873
+ r(
871
874
  "div",
872
875
  {
873
- class: C(d(h).e("mask")),
874
- onClick: u[0] || (u[0] = Ye((g) => n.hideOnClickModal && D(), ["self"]))
876
+ class: x(c(h).e("mask")),
877
+ onClick: i[0] || (i[0] = Ye((v) => a.hideOnClickModal && D(), ["self"]))
875
878
  },
876
879
  null,
877
880
  2
878
881
  /* CLASS */
879
882
  ),
880
- V(" CLOSE "),
881
- o(
883
+ A(" CLOSE "),
884
+ r(
882
885
  "span",
883
886
  {
884
- class: C([d(h).e("btn"), d(h).e("close")]),
887
+ class: x([c(h).e("btn"), c(h).e("close")]),
885
888
  onClick: D
886
889
  },
887
890
  [
888
- _(d(S), null, {
889
- default: I(() => [
890
- _(d(dt))
891
+ g(c(N), null, {
892
+ default: C(() => [
893
+ g(c(dt))
891
894
  ]),
892
895
  _: 1
893
896
  /* STABLE */
@@ -896,21 +899,21 @@ const Kt = {
896
899
  2
897
900
  /* CLASS */
898
901
  ),
899
- V(" ARROW "),
900
- ae.value ? V("v-if", !0) : (p(), v(
902
+ A(" ARROW "),
903
+ ae.value ? A("v-if", !0) : (d(), p(
901
904
  H,
902
905
  { key: 0 },
903
906
  [
904
- o(
907
+ r(
905
908
  "span",
906
909
  {
907
- class: C(ne.value),
908
- onClick: a
910
+ class: x(le.value),
911
+ onClick: Z
909
912
  },
910
913
  [
911
- _(d(S), null, {
912
- default: I(() => [
913
- _(d(rt))
914
+ g(c(N), null, {
915
+ default: C(() => [
916
+ g(c(rt))
914
917
  ]),
915
918
  _: 1
916
919
  /* STABLE */
@@ -919,16 +922,16 @@ const Kt = {
919
922
  2
920
923
  /* CLASS */
921
924
  ),
922
- o(
925
+ r(
923
926
  "span",
924
927
  {
925
- class: C(se.value),
926
- onClick: i
928
+ class: x(oe.value),
929
+ onClick: n
927
930
  },
928
931
  [
929
- _(d(S), null, {
930
- default: I(() => [
931
- _(d(ut))
932
+ g(c(N), null, {
933
+ default: C(() => [
934
+ g(c(ut))
932
935
  ]),
933
936
  _: 1
934
937
  /* STABLE */
@@ -941,76 +944,76 @@ const Kt = {
941
944
  64
942
945
  /* STABLE_FRAGMENT */
943
946
  )),
944
- V(" ACTIONS "),
945
- o(
947
+ A(" ACTIONS "),
948
+ r(
946
949
  "div",
947
950
  {
948
- class: C([d(h).e("btn"), d(h).e("actions")])
951
+ class: x([c(h).e("btn"), c(h).e("actions")])
949
952
  },
950
953
  [
951
- o(
954
+ r(
952
955
  "div",
953
956
  {
954
- class: C(d(h).e("actions__inner"))
957
+ class: x(c(h).e("actions__inner"))
955
958
  },
956
959
  [
957
- _(d(S), {
958
- onClick: u[1] || (u[1] = (g) => r("zoomOut"))
960
+ g(c(N), {
961
+ onClick: i[1] || (i[1] = (v) => o("zoomOut"))
959
962
  }, {
960
- default: I(() => [
961
- _(d(It))
963
+ default: C(() => [
964
+ g(c(zt))
962
965
  ]),
963
966
  _: 1
964
967
  /* STABLE */
965
968
  }),
966
- _(d(S), {
967
- onClick: u[2] || (u[2] = (g) => r("zoomIn"))
969
+ g(c(N), {
970
+ onClick: i[2] || (i[2] = (v) => o("zoomIn"))
968
971
  }, {
969
- default: I(() => [
970
- _(d(Ve))
972
+ default: C(() => [
973
+ g(c(Ae))
971
974
  ]),
972
975
  _: 1
973
976
  /* STABLE */
974
977
  }),
975
- o(
978
+ r(
976
979
  "i",
977
980
  {
978
- class: C(d(h).e("actions__divider"))
981
+ class: x(c(h).e("actions__divider"))
979
982
  },
980
983
  null,
981
984
  2
982
985
  /* CLASS */
983
986
  ),
984
- _(d(S), { onClick: G }, {
985
- default: I(() => [
986
- (p(), X(Qe(A.value.icon)))
987
+ g(c(N), { onClick: R }, {
988
+ default: C(() => [
989
+ (d(), W(Qe(S.value.icon)))
987
990
  ]),
988
991
  _: 1
989
992
  /* STABLE */
990
993
  }),
991
- o(
994
+ r(
992
995
  "i",
993
996
  {
994
- class: C(d(h).e("actions__divider"))
997
+ class: x(c(h).e("actions__divider"))
995
998
  },
996
999
  null,
997
1000
  2
998
1001
  /* CLASS */
999
1002
  ),
1000
- _(d(S), {
1001
- onClick: u[3] || (u[3] = (g) => r("anticlockwise"))
1003
+ g(c(N), {
1004
+ onClick: i[3] || (i[3] = (v) => o("anticlockwise"))
1002
1005
  }, {
1003
- default: I(() => [
1004
- _(d(wt))
1006
+ default: C(() => [
1007
+ g(c(wt))
1005
1008
  ]),
1006
1009
  _: 1
1007
1010
  /* STABLE */
1008
1011
  }),
1009
- _(d(S), {
1010
- onClick: u[4] || (u[4] = (g) => r("clockwise"))
1012
+ g(c(N), {
1013
+ onClick: i[4] || (i[4] = (v) => o("clockwise"))
1011
1014
  }, {
1012
- default: I(() => [
1013
- _(d(bt))
1015
+ default: C(() => [
1016
+ g(c(bt))
1014
1017
  ]),
1015
1018
  _: 1
1016
1019
  /* STABLE */
@@ -1023,29 +1026,29 @@ const Kt = {
1023
1026
  2
1024
1027
  /* CLASS */
1025
1028
  ),
1026
- V(" CANVAS "),
1027
- o(
1029
+ A(" CANVAS "),
1030
+ r(
1028
1031
  "div",
1029
1032
  {
1030
- class: C(d(h).e("canvas"))
1033
+ class: x(c(h).e("canvas"))
1031
1034
  },
1032
1035
  [
1033
- (p(!0), v(
1036
+ (d(!0), p(
1034
1037
  H,
1035
1038
  null,
1036
- Te(n.urlList, (g, L) => fe((p(), v("img", {
1039
+ Ee(a.urlList, (v, z) => fe((d(), p("img", {
1037
1040
  ref_for: !0,
1038
- ref: (E) => c.value[L] = E,
1039
- key: g,
1040
- src: g,
1041
- style: q(oe.value),
1042
- class: C(d(h).e("img")),
1043
- crossorigin: n.crossorigin,
1041
+ ref: ($) => u.value[z] = $,
1042
+ key: v,
1043
+ src: v,
1044
+ style: ee(se.value),
1045
+ class: x(c(h).e("img")),
1046
+ crossorigin: a.crossorigin,
1044
1047
  onLoad: ue,
1045
1048
  onError: ce,
1046
1049
  onMousedown: de
1047
1050
  }, null, 46, qt)), [
1048
- [me, L === z.value]
1051
+ [me, z === w.value]
1049
1052
  ])),
1050
1053
  128
1051
1054
  /* KEYED_FRAGMENT */
@@ -1054,7 +1057,7 @@ const Kt = {
1054
1057
  2
1055
1058
  /* CLASS */
1056
1059
  ),
1057
- Ee(n.$slots, "default")
1060
+ Te(a.$slots, "default")
1058
1061
  ],
1059
1062
  6
1060
1063
  /* CLASS, STYLE */
@@ -1065,10 +1068,10 @@ const Kt = {
1065
1068
  })
1066
1069
  ]));
1067
1070
  }
1068
- }), ta = _e(ea), aa = {
1071
+ }), ta = ge(ea), aa = {
1069
1072
  key: 1,
1070
1073
  class: "upload-btn"
1071
- }, la = { class: "tip" }, na = { class: "loading-statu" }, sa = { class: "operate-btn" }, oa = { key: 0 }, ra = { class: "el-upload-list el-upload-list--picture-card" }, ia = ["onClick"], ua = ["src"], ca = { class: "demo-image__preview" }, da = /* @__PURE__ */ $({
1074
+ }, na = { class: "tip" }, la = { class: "loading-statu" }, oa = { class: "operate-btn" }, sa = { key: 0 }, ra = { class: "el-upload-list el-upload-list--picture-card" }, ia = ["onClick"], ua = ["src"], ca = { class: "demo-image__preview" }, da = /* @__PURE__ */ L({
1072
1075
  __name: "index",
1073
1076
  props: /* @__PURE__ */ ke({
1074
1077
  // 显示的文字
@@ -1089,8 +1092,7 @@ const Kt = {
1089
1092
  // 设置上传的请求头部
1090
1093
  headers: {
1091
1094
  type: Object,
1092
- default: () => {
1093
- }
1095
+ default: () => null
1094
1096
  },
1095
1097
  // 上传时附带的额外参数
1096
1098
  data: {
@@ -1163,38 +1165,38 @@ const Kt = {
1163
1165
  }),
1164
1166
  emits: /* @__PURE__ */ ke(["delete", "success", "change"], ["update:modelValue"]),
1165
1167
  setup(t, { emit: s }) {
1166
- Ge((a) => ({
1167
- v98b4795a: B.value,
1168
- b178a58c: O.value,
1169
- v53a428db: j.value,
1170
- v4977de91: G.value
1168
+ Ge((n) => ({
1169
+ v0b42f402: I.value,
1170
+ v434c926b: u.value,
1171
+ v17094e8c: Z.value,
1172
+ v16228280: j.value
1171
1173
  }));
1172
- const l = t, e = Ze(t, "modelValue"), { formItem: f } = tt(), m = (a) => Array.isArray(a) ? a.map((i) => {
1173
- var u, g;
1174
- const r = ((u = i.url) == null ? void 0 : u.startsWith("http")) || ((g = i.url) == null ? void 0 : g.startsWith("blob")), n = (i == null ? void 0 : i.url) || i;
1174
+ const l = t, e = Ze(t, "modelValue"), { formItem: f } = tt(), m = (n) => Array.isArray(n) ? n.map((o) => {
1175
+ var v, z;
1176
+ const a = ((v = o.url) == null ? void 0 : v.startsWith("http")) || ((z = o.url) == null ? void 0 : z.startsWith("blob")), i = (o == null ? void 0 : o.url) || o;
1175
1177
  return {
1176
- ...i.url ? i : { url: n },
1177
- __url: r ? n : `${M.value}${n}`
1178
+ ...o.url ? o : { url: i },
1179
+ __url: a ? i : `${M.value}${i}`
1178
1180
  };
1179
- }) : a ? [
1181
+ }) : n ? [
1180
1182
  {
1181
- url: a,
1182
- __url: a != null && a.startsWith("http") || a != null && a.startsWith("blob") ? a : `${M.value}${a}`
1183
+ url: n,
1184
+ __url: n != null && n.startsWith("http") || n != null && n.startsWith("blob") ? n : `${M.value}${n}`
1183
1185
  }
1184
1186
  ] : [];
1185
- ee(
1187
+ te(
1186
1188
  () => e.value,
1187
- (a) => {
1188
- !a || !a.length ? w.value = [] : w.value = J.cloneDeep(m(a)), f == null || f.validate("change");
1189
+ (n) => {
1190
+ !n || !n.length ? w.value = [] : w.value = q.cloneDeep(m(n)), f == null || f.validate("change");
1189
1191
  },
1190
1192
  { deep: !0 }
1191
1193
  );
1192
- const x = s, { cLoadUrl: M, cUploadUrl: h } = Bt(l), B = y(() => `${l.width}px`), O = y(() => `${l.height}px`), c = y(() => l.size), b = N(null), w = N(m(e.value)), z = N([]), A = N(!1), k = N(0), te = y(
1194
+ const k = s, { cLoadUrl: M, cUploadUrl: h, cHeader: B } = Bt(l), I = _(() => `${l.width}px`), u = _(() => `${l.height}px`), O = _(() => l.size), y = E(null), w = E(m(e.value)), S = E([]), b = E(!1), X = E(0), ae = _(
1193
1195
  () => l.tipText || `最多可上传${l.limit}张图片, 每张图片不能超过${l.size}MB`
1194
- ), ae = (a, i) => {
1195
- x("change", a);
1196
- }, Y = (a) => {
1197
- if (!a.type.includes("image")) {
1196
+ ), Y = (n, o) => {
1197
+ k("change", n);
1198
+ }, Q = (n) => {
1199
+ if (!n.type.includes("image")) {
1198
1200
  xe.warning("只允许上传图片!");
1199
1201
  try {
1200
1202
  w.value.pop();
@@ -1202,7 +1204,7 @@ const Kt = {
1202
1204
  }
1203
1205
  return !1;
1204
1206
  }
1205
- if (!(a.size / 1024 / 1024 < c.value)) {
1207
+ if (!(n.size / 1024 / 1024 < O.value)) {
1206
1208
  xe.warning(`图片大小超出系统限制的${l.size}MB!`);
1207
1209
  try {
1208
1210
  w.value.pop();
@@ -1211,100 +1213,100 @@ const Kt = {
1211
1213
  return !1;
1212
1214
  }
1213
1215
  return !0;
1214
- }, Q = () => !1, le = (a, i) => {
1215
- var r, n;
1216
- a.status = "ready", i !== void 0 && z.value.splice(i, 1), (r = b.value) == null || r.handleStart(a.raw), (n = b.value) == null || n.submit();
1217
- }, ne = (a, i) => {
1218
- var g, L;
1219
- const r = e.value.length, n = l.limit - r;
1220
- let u = 0;
1221
- for (; u < n && u < (a == null ? void 0 : a.length); )
1222
- (g = b.value) == null || g.handleStart(a == null ? void 0 : a[u]), (L = b.value) == null || L.submit(), u++;
1223
- }, se = (a, i, r) => {
1224
- x("success", a, i, r), e.value = w.value, f == null || f.validate("change");
1225
- }, oe = (a, i, r) => {
1226
- z.value.push({
1227
- ...i,
1228
- __url: i.url
1216
+ }, ne = () => !1, le = (n, o) => {
1217
+ var a, i;
1218
+ n.status = "ready", o !== void 0 && S.value.splice(o, 1), (a = y.value) == null || a.handleStart(n.raw), (i = y.value) == null || i.submit();
1219
+ }, oe = (n, o) => {
1220
+ var z, $;
1221
+ const a = e.value.length, i = l.limit - a;
1222
+ let v = 0;
1223
+ for (; v < i && v < (n == null ? void 0 : n.length); )
1224
+ (z = y.value) == null || z.handleStart(n == null ? void 0 : n[v]), ($ = y.value) == null || $.submit(), v++;
1225
+ }, se = (n, o, a) => {
1226
+ k("success", n, o, a), e.value = w.value, f == null || f.validate("change");
1227
+ }, D = (n, o, a) => {
1228
+ S.value.push({
1229
+ ...o,
1230
+ __url: o.url
1229
1231
  });
1230
- }, D = (a) => {
1231
- var i;
1232
- A.value = !0, k.value = Array.isArray(e == null ? void 0 : e.value) ? (i = e == null ? void 0 : e.value) == null ? void 0 : i.findIndex((r) => r.url === a.url) : 0;
1233
- }, re = (a) => {
1234
- st.downloadFile(a.__url || a.url, a.name || a.url);
1235
- }, ie = (a) => {
1236
- var i;
1237
- (i = b.value) == null || i.abort(a);
1238
- }, ue = (a) => {
1239
- var i;
1240
- a.status !== "success" && ie(a), e.value = (i = w.value) == null ? void 0 : i.filter((r) => r.uid !== a.uid), x("delete", a);
1241
- }, ce = (a, i) => {
1242
- z.value.splice(i, 1);
1243
- }, de = y(() => w.value.length + z.value.length < l.limit), P = y(
1232
+ }, re = (n) => {
1233
+ var o;
1234
+ b.value = !0, X.value = Array.isArray(e == null ? void 0 : e.value) ? (o = e == null ? void 0 : e.value) == null ? void 0 : o.findIndex((a) => a.url === n.url) : 0;
1235
+ }, ie = (n) => {
1236
+ ot.downloadFile(n.__url || n.url, n.name || n.url);
1237
+ }, ue = (n) => {
1238
+ var o;
1239
+ (o = y.value) == null || o.abort(n);
1240
+ }, ce = (n) => {
1241
+ var o;
1242
+ n.status !== "success" && ue(n), e.value = (o = w.value) == null ? void 0 : o.filter((a) => a.uid !== n.uid), k("delete", n);
1243
+ }, de = (n, o) => {
1244
+ S.value.splice(o, 1);
1245
+ }, G = _(() => w.value.length + S.value.length < l.limit), R = _(
1244
1246
  () => e.value.length >= l.limit || l.disabled
1245
- ), G = y(() => {
1246
- var a;
1247
- return !((a = e.value) != null && a.length) && !z.value.length || l.limit === 1 || typeof e.value == "string" ? "0" : `${l.width + 8}px`;
1248
- }), j = y(() => {
1249
- var a;
1250
- return !((a = e.value) != null && a.length) && !z.value.length && typeof e.value != "string" || l.limit === 1 ? "none" : "absolute";
1247
+ ), j = _(() => {
1248
+ var n;
1249
+ return !((n = e.value) != null && n.length) && !S.value.length || l.limit === 1 || typeof e.value == "string" ? "0" : `${l.width + 8}px`;
1250
+ }), Z = _(() => {
1251
+ var n;
1252
+ return !((n = e.value) != null && n.length) && !S.value.length && typeof e.value != "string" || l.limit === 1 ? "none" : "absolute";
1251
1253
  });
1252
- return (a, i) => (p(), v(
1254
+ return (n, o) => (d(), p(
1253
1255
  H,
1254
1256
  null,
1255
1257
  [
1256
- _(d(at), Se({
1257
- class: ["ik-image-upload", { preview: t.preview, "hide-upload": !de.value && t.limit === 1, disabled: P.value }],
1258
+ g(c(at), Se({
1259
+ class: ["ik-image-upload", { preview: t.preview, "hide-upload": !G.value && t.limit === 1, disabled: R.value }],
1258
1260
  ref_key: "refUpload",
1259
- ref: b,
1261
+ ref: y,
1260
1262
  "list-type": "picture-card",
1261
1263
  accept: t.accept,
1262
- action: d(h),
1263
- headers: t.headers,
1264
+ action: c(h),
1265
+ headers: t.headers || c(B),
1264
1266
  data: t.data,
1265
1267
  "file-list": w.value,
1266
- "onUpdate:fileList": i[0] || (i[0] = (r) => w.value = r),
1268
+ "onUpdate:fileList": o[0] || (o[0] = (a) => w.value = a),
1267
1269
  multiple: t.multiple,
1268
1270
  limit: t.limit,
1269
- "on-change": ae,
1270
- "before-upload": Y,
1271
- "before-remove": Q,
1272
- "on-exceed": ne,
1271
+ "on-change": Y,
1272
+ "before-upload": Q,
1273
+ "before-remove": ne,
1274
+ "on-exceed": oe,
1273
1275
  "on-success": se,
1274
- "on-error": oe,
1276
+ "on-error": D,
1275
1277
  drag: ""
1276
- }, a.$attrs, { disabled: P.value }), Ke({
1277
- trigger: I(() => [
1278
- a.$slots.trigger ? Ee(a.$slots, "trigger", { key: 0 }, void 0, !0) : (p(), v("div", aa, [
1279
- _(d(ve), {
1278
+ }, n.$attrs, { disabled: R.value }), Ke({
1279
+ trigger: C(() => [
1280
+ n.$slots.trigger ? Te(n.$slots, "trigger", { key: 0 }, void 0, !0) : (d(), p("div", aa, [
1281
+ g(c(pe), {
1280
1282
  size: 20,
1281
1283
  name: "iksvg_guanbibeifen",
1282
- disabled: P.value
1284
+ disabled: R.value
1283
1285
  }, null, 8, ["disabled"]),
1284
- o(
1286
+ r(
1285
1287
  "span",
1286
1288
  null,
1287
- K(t.title),
1289
+ J(t.title),
1288
1290
  1
1289
1291
  /* TEXT */
1290
1292
  )
1291
1293
  ]))
1292
1294
  ]),
1293
- file: I(({ file: r, index: n }) => [
1294
- o(
1295
+ file: C(({ file: a, index: i }) => [
1296
+ r(
1295
1297
  "div",
1296
1298
  {
1297
- class: C(["load-list", { loading: r.status === "uploading" }]),
1299
+ class: x(["load-list", { loading: a.status === "uploading" }]),
1298
1300
  "element-loading-background": "var(--ik-upload-bg)"
1299
1301
  },
1300
1302
  [
1301
- fe(o(
1303
+ fe(r(
1302
1304
  "div",
1303
- na,
1305
+ la,
1304
1306
  [
1305
- _(Mt),
1307
+ g(Mt),
1306
1308
  Ne(
1307
- " 上传" + K(r.percentage) + "% ",
1309
+ " 上传" + J(a.percentage) + "% ",
1308
1310
  1
1309
1311
  /* TEXT */
1310
1312
  )
@@ -1312,46 +1314,46 @@ const Kt = {
1312
1314
  512
1313
1315
  /* NEED_PATCH */
1314
1316
  ), [
1315
- [me, r.status === "uploading"]
1317
+ [me, a.status === "uploading"]
1316
1318
  ]),
1317
- V(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
1318
- _(d(lt), {
1319
+ A(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
1320
+ g(c(nt), {
1319
1321
  style: { width: "100%", height: "100%" },
1320
- src: r.__url || r.url,
1322
+ src: a.__url || a.url,
1321
1323
  "zoom-rate": 1.2,
1322
1324
  "initial-index": 0,
1323
1325
  fit: "contain"
1324
1326
  }, null, 8, ["src"]),
1325
- o("span", sa, [
1326
- o("span", null, [
1327
- _(d(S), {
1328
- onClick: (u) => D(r)
1327
+ r("span", oa, [
1328
+ r("span", null, [
1329
+ g(c(N), {
1330
+ onClick: (v) => re(a)
1329
1331
  }, {
1330
- default: I(() => [
1331
- _(d(Ve))
1332
+ default: C(() => [
1333
+ g(c(Ae))
1332
1334
  ]),
1333
1335
  _: 1
1334
1336
  /* STABLE */
1335
1337
  }, 8, ["onClick"])
1336
1338
  ]),
1337
- o("span", null, [
1338
- _(d(S), {
1339
- onClick: (u) => re(r)
1339
+ r("span", null, [
1340
+ g(c(N), {
1341
+ onClick: (v) => ie(a)
1340
1342
  }, {
1341
- default: I(() => [
1342
- _(d(mt))
1343
+ default: C(() => [
1344
+ g(c(mt))
1343
1345
  ]),
1344
1346
  _: 1
1345
1347
  /* STABLE */
1346
1348
  }, 8, ["onClick"])
1347
1349
  ]),
1348
- t.preview ? V("v-if", !0) : (p(), v("span", oa, [
1349
- _(d(S), {
1350
+ t.preview ? A("v-if", !0) : (d(), p("span", sa, [
1351
+ g(c(N), {
1350
1352
  type: "warning",
1351
- onClick: (u) => ue(r)
1353
+ onClick: (v) => ce(a)
1352
1354
  }, {
1353
- default: I(() => [
1354
- _(d(vt))
1355
+ default: C(() => [
1356
+ g(c(pt))
1355
1357
  ]),
1356
1358
  _: 1
1357
1359
  /* STABLE */
@@ -1363,48 +1365,48 @@ const Kt = {
1363
1365
  /* CLASS */
1364
1366
  )
1365
1367
  ]),
1366
- default: I(() => [
1367
- o("ul", ra, [
1368
- (p(!0), v(
1368
+ default: C(() => [
1369
+ r("ul", ra, [
1370
+ (d(!0), p(
1369
1371
  H,
1370
1372
  null,
1371
- Te(z.value, (r, n) => (p(), v("li", {
1373
+ Ee(S.value, (a, i) => (d(), p("li", {
1372
1374
  class: "el-upload-list__item",
1373
- key: r.uid
1375
+ key: a.uid
1374
1376
  }, [
1375
- o("span", null, [
1376
- _(d(ve), {
1377
+ r("span", null, [
1378
+ g(c(pe), {
1377
1379
  name: "iksvg_guanbi",
1378
1380
  error: "",
1379
- onClick: (u) => ce(r, n)
1381
+ onClick: (v) => de(a, i)
1380
1382
  }, null, 8, ["onClick"])
1381
1383
  ]),
1382
- o(
1384
+ r(
1383
1385
  "div",
1384
1386
  {
1385
- class: C(["load-list", {
1386
- loading: r.status === "uploading",
1387
- fail: r.status === "fail"
1387
+ class: x(["load-list", {
1388
+ loading: a.status === "uploading",
1389
+ fail: a.status === "fail"
1388
1390
  }]),
1389
1391
  "element-loading-background": "var(--ik-upload-bg)"
1390
1392
  },
1391
1393
  [
1392
- fe(o("div", {
1394
+ fe(r("div", {
1393
1395
  class: "loading-statu",
1394
- onClick: (u) => le(r, n)
1396
+ onClick: (v) => le(a, i)
1395
1397
  }, [
1396
- _(d(ve), {
1398
+ g(c(pe), {
1397
1399
  name: "iksvg_shuaxin-daohang",
1398
1400
  size: 24
1399
1401
  }),
1400
- i[2] || (i[2] = o(
1402
+ o[2] || (o[2] = r(
1401
1403
  "span",
1402
1404
  { class: "error" },
1403
1405
  "上传错误",
1404
1406
  -1
1405
1407
  /* CACHED */
1406
1408
  )),
1407
- i[3] || (i[3] = o(
1409
+ o[3] || (o[3] = r(
1408
1410
  "p",
1409
1411
  null,
1410
1412
  "点击重新上传",
@@ -1412,12 +1414,12 @@ const Kt = {
1412
1414
  /* CACHED */
1413
1415
  ))
1414
1416
  ], 8, ia), [
1415
- [me, r.status === "fail"]
1417
+ [me, a.status === "fail"]
1416
1418
  ]),
1417
- o("img", {
1418
- src: r.__url,
1419
+ r("img", {
1420
+ src: a.__url,
1419
1421
  alt: "",
1420
- style: q({ "object-fit": t.fit })
1422
+ style: ee({ "object-fit": t.fit })
1421
1423
  }, null, 12, ua)
1422
1424
  ],
1423
1425
  2
@@ -1434,11 +1436,11 @@ const Kt = {
1434
1436
  }, [
1435
1437
  t.tip ? {
1436
1438
  name: "tip",
1437
- fn: I(() => [
1438
- o(
1439
+ fn: C(() => [
1440
+ r(
1439
1441
  "span",
1440
- la,
1441
- K(te.value),
1442
+ na,
1443
+ J(ae.value),
1442
1444
  1
1443
1445
  /* TEXT */
1444
1446
  )
@@ -1446,26 +1448,26 @@ const Kt = {
1446
1448
  key: "0"
1447
1449
  } : void 0
1448
1450
  ]), 1040, ["class", "accept", "action", "headers", "data", "file-list", "multiple", "limit", "disabled"]),
1449
- V(" 文件预览 "),
1450
- o("div", ca, [
1451
- A.value ? (p(), X(d(ta), {
1451
+ A(" 文件预览 "),
1452
+ r("div", ca, [
1453
+ b.value ? (d(), W(c(ta), {
1452
1454
  key: 0,
1453
1455
  "lock-scroll": "",
1454
1456
  "hide-on-click-modal": "",
1455
- onClose: i[1] || (i[1] = () => {
1456
- A.value = !1;
1457
+ onClose: o[1] || (o[1] = () => {
1458
+ b.value = !1;
1457
1459
  }),
1458
- "url-list": m(w.value).map((r) => r.__url),
1459
- "initial-index": k.value
1460
- }, null, 8, ["url-list", "initial-index"])) : V("v-if", !0)
1460
+ "url-list": m(w.value).map((a) => a.__url),
1461
+ "initial-index": X.value
1462
+ }, null, 8, ["url-list", "initial-index"])) : A("v-if", !0)
1461
1463
  ])
1462
1464
  ],
1463
1465
  64
1464
1466
  /* STABLE_FRAGMENT */
1465
1467
  ));
1466
1468
  }
1467
- }), pa = /* @__PURE__ */ ge(da, [["__scopeId", "data-v-1b999f86"]]), _a = _e(pa);
1469
+ }), va = /* @__PURE__ */ he(da, [["__scopeId", "data-v-80227172"]]), ga = ge(va);
1468
1470
  export {
1469
- _a as IkUploadImage,
1470
- _a as default
1471
+ ga as IkUploadImage,
1472
+ ga as default
1471
1473
  };