iking-web-ui-pro 1.2.5 → 1.2.7

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 (99) hide show
  1. package/dist/IkApprovalProcess/ik.index.es.js +2 -2
  2. package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
  3. package/dist/IkApprovalProcessDetail/ik.index.es.js +4247 -4069
  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 +12 -12
  7. package/dist/IkBottomOperate/ik.index.es.js +1 -1
  8. package/dist/IkBtnContent/ik.index.es.js +21 -21
  9. package/dist/IkBtnSetting/ik.index.es.js +23 -23
  10. package/dist/IkCalendar/ik.index.es.js +2065 -2016
  11. package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
  12. package/dist/IkCollapseCard/ik.index.es.js +4 -4
  13. package/dist/IkCurrencyInput/ik.index.es.js +5 -5
  14. package/dist/IkDescription/ik.index.es.js +4185 -4007
  15. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  16. package/dist/IkDetailPreviewFiles/ik.index.es.js +4336 -4158
  17. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  18. package/dist/IkDragList/ik.index.es.js +10 -10
  19. package/dist/IkExpandCollapse/ik.index.es.js +1 -1
  20. package/dist/IkFileIcon/ik.index.es.js +13 -13
  21. package/dist/IkHorizontalStepBar/ik.index.es.js +54 -54
  22. package/dist/IkIconPicker/ik.index.es.js +7 -7
  23. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  24. package/dist/IkImageUploadEditor/ik.index.es.js +3438 -3284
  25. package/dist/IkImageUploadEditor/iking-web-ui-pro.css +2 -2
  26. package/dist/IkImageViewer/ik.index.es.js +180 -180
  27. package/dist/IkMonacoEditor/ik.index.es.js +221 -206
  28. package/dist/IkOnlyOffice/ik.index.es.js +3 -3
  29. package/dist/IkPageFull/ik.index.es.js +156 -156
  30. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  31. package/dist/IkPageTabs/ik.index.es.js +6 -6
  32. package/dist/IkPickerUser/ik.index.es.js +1 -1
  33. package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
  34. package/dist/IkPlayer/ik.index.es.js +1318 -1140
  35. package/dist/IkPlayer/iking-web-ui-pro.css +1 -1
  36. package/dist/IkPreviewFile/ik.index.es.js +4286 -4108
  37. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  38. package/dist/IkPreviewFileDialog/ik.index.es.js +4282 -4104
  39. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  40. package/dist/IkPrint/ik.index.es.js +106 -106
  41. package/dist/IkPrint/iking-web-ui-pro.css +1 -1
  42. package/dist/IkPrint/{index.es-DzGIwinU.mjs → index.es-OMtWcZN6.mjs} +1135 -1117
  43. package/dist/IkPrint/{jspdf.es.min-ByQMz4Ps.mjs → jspdf.es.min-CYsYASKt.mjs} +3153 -3140
  44. package/dist/IkPrint/purify.es-CiEWEeUM.mjs +605 -0
  45. package/dist/IkPrintConfig/ik.index.es.js +3 -3
  46. package/dist/IkPrintView/ik.index.es.js +1 -1
  47. package/dist/IkRadioGroup/ik.index.es.js +5 -5
  48. package/dist/IkSearch/ik.index.es.js +144 -144
  49. package/dist/IkSearch/iking-web-ui-pro.css +1 -1
  50. package/dist/IkSearchHead/ik.index.es.js +25 -25
  51. package/dist/IkSelectTag/ik.index.es.js +1 -1
  52. package/dist/IkSideText/ik.index.es.js +1 -1
  53. package/dist/IkStatu/ik.index.es.js +1 -1
  54. package/dist/IkStatuOver/ik.index.es.js +1 -1
  55. package/dist/IkSvgIcon/ik.index.es.js +7 -7
  56. package/dist/IkTemplateOfficeConfig/ik.index.es.js +1 -1
  57. package/dist/IkTinymce/ik.index.es.js +2 -2
  58. package/dist/IkTooltip/ik.index.es.js +2 -2
  59. package/dist/IkTree/ik.index.es.js +33 -33
  60. package/dist/IkUploadFile/ik.index.es.js +4543 -4361
  61. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  62. package/dist/IkUploadImage/ik.index.es.js +213 -213
  63. package/dist/IkVerticalStepBar/ik.index.es.js +13 -13
  64. package/dist/iking-web-ui-pro.css +2 -2
  65. package/dist/{index-DTIv4saG.mjs → index-CughgR_O.mjs} +34710 -34310
  66. package/dist/{index.es-DJTszikI.mjs → index.es-DgqPc8il.mjs} +1195 -1177
  67. package/dist/index.es.js +1 -1
  68. package/dist/index.umd.js +203 -201
  69. package/dist/{jspdf.es.min-CB6UoKKF.mjs → jspdf.es.min-CVLIg3IF.mjs} +3153 -3140
  70. package/dist/purify.es-CiEWEeUM.mjs +605 -0
  71. package/dist/src/components/IkBtnContent/index.d.ts +1 -1
  72. package/dist/src/components/IkBtnContent/src/index.d.ts +1 -1
  73. package/dist/src/components/IkBtnSetting/index.d.ts +1 -1
  74. package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +1 -1
  75. package/dist/src/components/IkDragList/index.d.ts +3 -3
  76. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +1 -1
  77. package/dist/src/components/IkMonacoEditor/index.d.ts +14 -14
  78. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +14 -14
  79. package/dist/src/components/IkPageFull/index.d.ts +3 -3
  80. package/dist/src/components/IkPageFull/src/IkDialog.d.ts +4 -4
  81. package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +1 -1
  82. package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +1 -1
  83. package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +1 -1
  84. package/dist/src/components/IkPageFull/src/index.vue.d.ts +1 -1
  85. package/dist/src/components/IkPickerUser/index.d.ts +3 -3
  86. package/dist/src/components/IkPickerUser/src/list/utils.d.ts +3 -1
  87. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +3 -3
  88. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +1 -1
  89. package/dist/src/components/IkSideText/index.d.ts +1 -1
  90. package/dist/src/components/IkStatu/index.d.ts +3 -3
  91. package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
  92. package/dist/src/components/IkSvgIcon/index.d.ts +14 -14
  93. package/dist/src/components/IkTooltip/index.d.ts +3 -3
  94. package/dist/src/components/IkTooltip/src/index.vue.d.ts +1 -1
  95. package/dist/src/components/IkTree/IkTree.vue.d.ts +5263 -967
  96. package/package.json +1 -1
  97. package/dist/IkPrint/purify.es-Bb-cVdCo.mjs +0 -536
  98. package/dist/purify.es-Bb-cVdCo.mjs +0 -536
  99. package/dist/src/components/IkTree/index.d.ts +0 -4693
@@ -1,22 +1,22 @@
1
- import { defineComponent as L, createElementBlock as p, openBlock as d, createElementVNode as r, inject as P, computed as h, resolveComponent as ye, normalizeStyle as ee, normalizeClass as x, createBlock as W, Fragment as H, withCtx as z, 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 _, Transition as Xe, createCommentVNode as A, 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 N, 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 q, ikFile as ot } from "iking-utils-pro";
4
- const _e = (t, s) => (t.install = (n) => {
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
- n.component(e.name, e);
6
+ l.component(e.name, e);
7
7
  }, t);
8
- /*! Element Plus Icons Vue v2.3.1 */
8
+ /*! Element Plus Icons Vue v2.3.2 */
9
9
  var st = /* @__PURE__ */ L({
10
10
  name: "ArrowLeft",
11
11
  __name: "arrow-left",
12
12
  setup(t) {
13
- return (s, n) => (d(), p("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
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
  }
@@ -24,13 +24,13 @@ var st = /* @__PURE__ */ L({
24
24
  name: "ArrowRight",
25
25
  __name: "arrow-right",
26
26
  setup(t) {
27
- return (s, n) => (d(), p("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
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
  }
@@ -38,7 +38,7 @@ var st = /* @__PURE__ */ L({
38
38
  name: "Close",
39
39
  __name: "close",
40
40
  setup(t) {
41
- return (s, n) => (d(), p("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
  }, [
@@ -52,7 +52,7 @@ var st = /* @__PURE__ */ L({
52
52
  name: "Delete",
53
53
  __name: "delete",
54
54
  setup(t) {
55
- return (s, n) => (d(), p("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
  }, [
@@ -66,7 +66,7 @@ var st = /* @__PURE__ */ L({
66
66
  name: "Download",
67
67
  __name: "download",
68
68
  setup(t) {
69
- return (s, n) => (d(), p("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
  }, [
@@ -76,25 +76,25 @@ var st = /* @__PURE__ */ L({
76
76
  })
77
77
  ]));
78
78
  }
79
- }), mt = ft, _t = /* @__PURE__ */ L({
79
+ }), mt = ft, gt = /* @__PURE__ */ L({
80
80
  name: "FullScreen",
81
81
  __name: "full-screen",
82
82
  setup(t) {
83
- return (s, n) => (d(), p("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
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__ */ L({
93
+ }), ht = gt, _t = /* @__PURE__ */ L({
94
94
  name: "RefreshLeft",
95
95
  __name: "refresh-left",
96
96
  setup(t) {
97
- return (s, n) => (d(), p("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
  }, [
@@ -104,17 +104,17 @@ var st = /* @__PURE__ */ L({
104
104
  })
105
105
  ]));
106
106
  }
107
- }), wt = ht, yt = /* @__PURE__ */ L({
107
+ }), wt = _t, yt = /* @__PURE__ */ L({
108
108
  name: "RefreshRight",
109
109
  __name: "refresh-right",
110
110
  setup(t) {
111
- return (s, n) => (d(), p("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
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
  }
@@ -122,21 +122,21 @@ var st = /* @__PURE__ */ L({
122
122
  name: "ScaleToOriginal",
123
123
  __name: "scale-to-original",
124
124
  setup(t) {
125
- return (s, n) => (d(), p("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
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__ */ L({
135
+ }), xt = kt, Ct = /* @__PURE__ */ L({
136
136
  name: "ZoomIn",
137
137
  __name: "zoom-in",
138
138
  setup(t) {
139
- return (s, n) => (d(), p("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
  }, [
@@ -146,11 +146,11 @@ var st = /* @__PURE__ */ L({
146
146
  })
147
147
  ]));
148
148
  }
149
- }), Ae = zt, Ct = /* @__PURE__ */ L({
149
+ }), Ae = Ct, It = /* @__PURE__ */ L({
150
150
  name: "ZoomOut",
151
151
  __name: "zoom-out",
152
152
  setup(t) {
153
- return (s, n) => (d(), p("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
  }, [
@@ -160,12 +160,12 @@ var st = /* @__PURE__ */ L({
160
160
  })
161
161
  ]));
162
162
  }
163
- }), It = Ct;
164
- const ge = (t, s) => {
165
- const n = t.__vccOpts || t;
163
+ }), zt = It;
164
+ const he = (t, s) => {
165
+ const l = t.__vccOpts || t;
166
166
  for (const [e, f] of s)
167
- n[e] = f;
168
- return n;
167
+ l[e] = f;
168
+ return l;
169
169
  }, Ot = {}, Lt = {
170
170
  t: "1686214149488",
171
171
  class: "icon",
@@ -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,15 +316,15 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
316
316
  "flv",
317
317
  "tls"
318
318
  ], Bt = (t) => {
319
- const s = P("loadUrl"), n = h(() => t.loadUrl || t.fileUrl || (s == null ? void 0 : s.value)), e = P("uploadUrl"), f = h(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), m = P("token"), k = h(() => t.token || (m == null ? void 0 : m.value)), M = P("header"), g = h(() => t.header || (M == null ? void 0 : M.value) || {
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
320
  Authorization: k.value
321
- }), B = P("onlyofficeConfig"), C = h(() => t.onlyofficeConfig || (B == null ? void 0 : B.value)), u = P("userInfo"), O = h(() => t.userInfo || (u == null ? void 0 : u.value)), y = [...Ce, ...Ce.map((w) => w.toLocaleUpperCase())];
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())];
322
322
  return {
323
- cLoadUrl: n,
323
+ cLoadUrl: l,
324
324
  cUploadUrl: f,
325
325
  cToken: k,
326
- cHeader: g,
327
- cOnlyofficeConfig: C,
326
+ cHeader: h,
327
+ cOnlyofficeConfig: I,
328
328
  cUserInfo: O,
329
329
  cOnlyofficePreviewType: y
330
330
  };
@@ -365,10 +365,10 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
365
365
  },
366
366
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
367
367
  setup(t, { emit: s }) {
368
- const n = t, e = h(() => n), f = h(() => {
368
+ const l = t, e = _(() => l), f = _(() => {
369
369
  const { name: u } = e.value;
370
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 = h(() => {
371
+ }), m = _(() => {
372
372
  const u = [];
373
373
  if (e.value.flip)
374
374
  switch (e.value.flip) {
@@ -390,17 +390,17 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
390
390
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
391
391
  ...e.value.color && f.value !== "iksig" ? {
392
392
  "--ik-icon-deep-color": e.value.color,
393
- "--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)
394
394
  } : {}
395
395
  };
396
396
  return e.value.width && (O.width = O.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), O;
397
397
  }), k = s, M = (u) => {
398
398
  k("click", u);
399
- }, g = (u) => {
399
+ }, h = (u) => {
400
400
  k("mouseenter", u);
401
401
  }, B = (u) => {
402
402
  k("mouseleave", u);
403
- }, C = (u) => {
403
+ }, I = (u) => {
404
404
  k("dblclick", u);
405
405
  };
406
406
  return (u, O) => {
@@ -424,8 +424,8 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
424
424
  }]),
425
425
  style: ee(m.value),
426
426
  onClick: M,
427
- onDblclick: C,
428
- onMouseenter: g,
427
+ onDblclick: I,
428
+ onMouseenter: h,
429
429
  onMouseleave: B
430
430
  },
431
431
  [
@@ -474,7 +474,7 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
474
474
  "popper-class": "ik-svg-icon-tooltip",
475
475
  "hide-after": 0
476
476
  }, {
477
- default: z(() => [
477
+ default: C(() => [
478
478
  f.value === "iksig" ? (d(), p(
479
479
  "i",
480
480
  {
@@ -512,7 +512,7 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
512
512
  )) : (d(), W(w, Se({ key: 1 }, u.$attrs, {
513
513
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
514
514
  }), {
515
- default: z(() => [
515
+ default: C(() => [
516
516
  Ne(
517
517
  J(e.value.title),
518
518
  1
@@ -528,11 +528,11 @@ const Mt = /* @__PURE__ */ ge(Ot, [["render", $t]]), Ce = [
528
528
  );
529
529
  };
530
530
  }
531
- }), Pt = /* @__PURE__ */ ge(Rt, [["__scopeId", "data-v-9ebb0a94"]]), pe = _e(Pt);
532
- var Ie;
531
+ }), Pt = /* @__PURE__ */ he(Rt, [["__scopeId", "data-v-9ebb0a94"]]), pe = ge(Pt);
532
+ var ze;
533
533
  const Ve = typeof window < "u", Ut = (t) => typeof t == "string", Ht = () => {
534
534
  };
535
- Ve && ((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);
536
536
  function Re(t) {
537
537
  return typeof t == "function" ? t() : c(t);
538
538
  }
@@ -544,21 +544,21 @@ function jt(t) {
544
544
  }
545
545
  function Ft(t) {
546
546
  var s;
547
- const n = Re(t);
548
- return (s = n == null ? void 0 : n.$el) != null ? s : n;
547
+ const l = Re(t);
548
+ return (s = l == null ? void 0 : l.$el) != null ? s : l;
549
549
  }
550
550
  const Wt = Ve ? window : void 0;
551
551
  function K(...t) {
552
- let s, n, e, f;
553
- if (Ut(t[0]) || Array.isArray(t[0]) ? ([n, e, f] = t, s = Wt) : [s, n, e, f] = t, !s)
552
+ let s, l, e, f;
553
+ if (Ut(t[0]) || Array.isArray(t[0]) ? ([l, e, f] = t, s = Wt) : [s, l, e, f] = t, !s)
554
554
  return Ht;
555
- Array.isArray(n) || (n = [n]), Array.isArray(e) || (e = [e]);
555
+ Array.isArray(l) || (l = [l]), Array.isArray(e) || (e = [e]);
556
556
  const m = [], k = () => {
557
- m.forEach((C) => C()), m.length = 0;
558
- }, M = (C, u, O, y) => (C.addEventListener(u, O, y), () => C.removeEventListener(u, O, y)), g = te(() => [Ft(s), Re(f)], ([C, u]) => {
559
- k(), C && m.push(...n.flatMap((O) => e.map((y) => M(C, O, y, u))));
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))));
560
560
  }, { immediate: !0, flush: "post" }), B = () => {
561
- g(), k();
561
+ h(), k();
562
562
  };
563
563
  return jt(B), B;
564
564
  }
@@ -568,12 +568,12 @@ var $e;
568
568
  (function(t) {
569
569
  t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
570
570
  })($e || ($e = {}));
571
- var Xt = Object.defineProperty, Me = Object.getOwnPropertySymbols, Yt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, Be = (t, s, n) => s in t ? Xt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[s] = n, Gt = (t, s) => {
572
- for (var n in s || (s = {}))
573
- Yt.call(s, n) && Be(t, n, s[n]);
571
+ var Xt = Object.defineProperty, Me = Object.getOwnPropertySymbols, Yt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, Be = (t, s, l) => s in t ? Xt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[s] = l, Gt = (t, s) => {
572
+ for (var l in s || (s = {}))
573
+ Yt.call(s, l) && Be(t, l, s[l]);
574
574
  if (Me)
575
- for (var n of Me(s))
576
- Qt.call(s, n) && Be(t, n, s[n]);
575
+ for (var l of Me(s))
576
+ Qt.call(s, l) && Be(t, l, s[l]);
577
577
  return t;
578
578
  };
579
579
  const Zt = {
@@ -677,45 +677,45 @@ const Kt = {
677
677
  }
678
678
  }, Jt = {
679
679
  close: () => !0,
680
- switch: (t) => ze.isNumber(t),
681
- rotate: (t) => ze.isNumber(t)
680
+ switch: (t) => Ce.isNumber(t),
681
+ rotate: (t) => Ce.isNumber(t)
682
682
  }, qt = ["src", "crossorigin"], ea = /* @__PURE__ */ L({
683
683
  name: "ElImageViewer",
684
684
  __name: "IkImageViewer",
685
685
  props: Kt,
686
686
  emits: Jt,
687
- setup(t, { expose: s, emit: n }) {
687
+ setup(t, { expose: s, emit: l }) {
688
688
  const e = (a) => Object.keys(a), f = {
689
689
  CONTAIN: {
690
690
  name: "contain",
691
- icon: be(gt)
691
+ icon: be(ht)
692
692
  },
693
693
  ORIGINAL: {
694
694
  name: "original",
695
695
  icon: be(xt)
696
696
  }
697
- }, m = t, k = n, { t: M } = Je(), g = qe("image-viewer"), { nextZIndex: B } = et(), C = E(), u = E([]), O = He(), y = E(!0), w = E(m.initialIndex), S = De(f.CONTAIN), b = E({
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({
698
698
  scale: 1,
699
699
  deg: 0,
700
700
  offsetX: 0,
701
701
  offsetY: 0,
702
702
  enableTransition: !1
703
- }), X = E(m.zIndex ?? B()), ae = h(() => {
703
+ }), X = E(m.zIndex ?? B()), ae = _(() => {
704
704
  const { urlList: a } = m;
705
705
  return a.length <= 1;
706
- }), Y = h(() => w.value === 0), Q = h(() => w.value === m.urlList.length - 1), le = h(() => m.urlList[w.value]), ne = h(() => [
707
- g.e("btn"),
708
- g.e("prev"),
709
- g.is("disabled", !m.infinite && Y.value)
710
- ]), oe = h(() => [
711
- g.e("btn"),
712
- g.e("next"),
713
- g.is("disabled", !m.infinite && Q.value)
714
- ]), se = h(() => {
715
- const { scale: a, deg: i, offsetX: v, offsetY: I, enableTransition: $ } = b.value;
716
- let T = v / a, V = I / a;
717
- const F = i * Math.PI / 180, he = Math.cos(F), we = Math.sin(F);
718
- T = T * he + V * we, V = V * he - v / a * we;
706
+ }), Y = _(() => w.value === 0), Q = _(() => w.value === m.urlList.length - 1), ne = _(() => m.urlList[w.value]), le = _(() => [
707
+ h.e("btn"),
708
+ h.e("prev"),
709
+ h.is("disabled", !m.infinite && Y.value)
710
+ ]), oe = _(() => [
711
+ h.e("btn"),
712
+ h.e("next"),
713
+ h.is("disabled", !m.infinite && Q.value)
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
719
  const ve = {
720
720
  transform: `scale(${a}) rotate(${i}deg) translate(${T}px, ${V}px)`,
721
721
  transition: $ ? "transform .3s" : ""
@@ -746,7 +746,7 @@ const Kt = {
746
746
  break;
747
747
  // RIGHT_ARROW
748
748
  case U.right:
749
- l();
749
+ n();
750
750
  break;
751
751
  // DOWN_ARROW
752
752
  case U.down:
@@ -754,8 +754,8 @@ const Kt = {
754
754
  break;
755
755
  }
756
756
  }), i = q.throttle((v) => {
757
- const I = v.deltaY || v.deltaX;
758
- o(I < 0 ? "zoomIn" : "zoomOut", {
757
+ const z = v.deltaY || v.deltaX;
758
+ o(z < 0 ? "zoomIn" : "zoomOut", {
759
759
  zoomRate: m.zoomRate,
760
760
  enableTransition: !1
761
761
  });
@@ -774,12 +774,12 @@ const Kt = {
774
774
  y.value = !1, a.target.alt = M("el.image.error");
775
775
  }
776
776
  function de(a) {
777
- if (y.value || a.button !== 0 || !C.value) return;
777
+ if (y.value || a.button !== 0 || !I.value) return;
778
778
  b.value.enableTransition = !1;
779
- const { offsetX: i, offsetY: v } = b.value, I = a.pageX, $ = a.pageY, T = q.throttle((F) => {
779
+ const { offsetX: i, offsetY: v } = b.value, z = a.pageX, $ = a.pageY, T = q.throttle((F) => {
780
780
  b.value = {
781
781
  ...b.value,
782
- offsetX: i + F.pageX - I,
782
+ offsetX: i + F.pageX - z,
783
783
  offsetY: v + F.pageY - $
784
784
  };
785
785
  }), V = K(document, "mousemove", T);
@@ -808,12 +808,12 @@ const Kt = {
808
808
  function Z() {
809
809
  Y.value && !m.infinite || j(w.value - 1);
810
810
  }
811
- function l() {
811
+ function n() {
812
812
  Q.value && !m.infinite || j(w.value + 1);
813
813
  }
814
814
  function o(a, i = {}) {
815
815
  if (y.value) return;
816
- const { minScale: v, maxScale: I } = m, { zoomRate: $, rotateDeg: T, enableTransition: V } = {
816
+ const { minScale: v, maxScale: z } = m, { zoomRate: $, rotateDeg: T, enableTransition: V } = {
817
817
  zoomRate: m.zoomRate,
818
818
  rotateDeg: 90,
819
819
  enableTransition: !0,
@@ -826,7 +826,7 @@ const Kt = {
826
826
  ));
827
827
  break;
828
828
  case "zoomIn":
829
- b.value.scale < I && (b.value.scale = Number.parseFloat(
829
+ b.value.scale < z && (b.value.scale = Number.parseFloat(
830
830
  (b.value.scale * $).toFixed(3)
831
831
  ));
832
832
  break;
@@ -839,7 +839,7 @@ const Kt = {
839
839
  }
840
840
  b.value.enableTransition = V;
841
841
  }
842
- return te(le, () => {
842
+ return te(ne, () => {
843
843
  je(() => {
844
844
  const a = u.value[0];
845
845
  a != null && a.complete || (y.value = !0);
@@ -848,32 +848,32 @@ const Kt = {
848
848
  G(), k("switch", a);
849
849
  }), Fe(() => {
850
850
  var a, i;
851
- re(), (i = (a = C.value) == null ? void 0 : a.focus) == null || i.call(a);
851
+ re(), (i = (a = I.value) == null ? void 0 : a.focus) == null || i.call(a);
852
852
  }), s({
853
853
  /**
854
854
  * @description manually switch image
855
855
  */
856
856
  setActiveItem: j
857
857
  }), (a, i) => (d(), W(We, { to: "body" }, [
858
- _(Xe, {
858
+ g(Xe, {
859
859
  name: "viewer-fade",
860
860
  appear: ""
861
861
  }, {
862
- default: z(() => [
862
+ default: C(() => [
863
863
  r(
864
864
  "div",
865
865
  {
866
866
  ref_key: "wrapper",
867
- ref: C,
867
+ ref: I,
868
868
  tabindex: -1,
869
- class: x(c(g).e("wrapper")),
869
+ class: x(c(h).e("wrapper")),
870
870
  style: ee({ zIndex: X.value })
871
871
  },
872
872
  [
873
873
  r(
874
874
  "div",
875
875
  {
876
- class: x(c(g).e("mask")),
876
+ class: x(c(h).e("mask")),
877
877
  onClick: i[0] || (i[0] = Ye((v) => a.hideOnClickModal && D(), ["self"]))
878
878
  },
879
879
  null,
@@ -884,13 +884,13 @@ const Kt = {
884
884
  r(
885
885
  "span",
886
886
  {
887
- class: x([c(g).e("btn"), c(g).e("close")]),
887
+ class: x([c(h).e("btn"), c(h).e("close")]),
888
888
  onClick: D
889
889
  },
890
890
  [
891
- _(c(N), null, {
892
- default: z(() => [
893
- _(c(dt))
891
+ g(c(N), null, {
892
+ default: C(() => [
893
+ g(c(dt))
894
894
  ]),
895
895
  _: 1
896
896
  /* STABLE */
@@ -907,13 +907,13 @@ const Kt = {
907
907
  r(
908
908
  "span",
909
909
  {
910
- class: x(ne.value),
910
+ class: x(le.value),
911
911
  onClick: Z
912
912
  },
913
913
  [
914
- _(c(N), null, {
915
- default: z(() => [
916
- _(c(rt))
914
+ g(c(N), null, {
915
+ default: C(() => [
916
+ g(c(rt))
917
917
  ]),
918
918
  _: 1
919
919
  /* STABLE */
@@ -926,12 +926,12 @@ const Kt = {
926
926
  "span",
927
927
  {
928
928
  class: x(oe.value),
929
- onClick: l
929
+ onClick: n
930
930
  },
931
931
  [
932
- _(c(N), null, {
933
- default: z(() => [
934
- _(c(ut))
932
+ g(c(N), null, {
933
+ default: C(() => [
934
+ g(c(ut))
935
935
  ]),
936
936
  _: 1
937
937
  /* STABLE */
@@ -948,29 +948,29 @@ const Kt = {
948
948
  r(
949
949
  "div",
950
950
  {
951
- class: x([c(g).e("btn"), c(g).e("actions")])
951
+ class: x([c(h).e("btn"), c(h).e("actions")])
952
952
  },
953
953
  [
954
954
  r(
955
955
  "div",
956
956
  {
957
- class: x(c(g).e("actions__inner"))
957
+ class: x(c(h).e("actions__inner"))
958
958
  },
959
959
  [
960
- _(c(N), {
960
+ g(c(N), {
961
961
  onClick: i[1] || (i[1] = (v) => o("zoomOut"))
962
962
  }, {
963
- default: z(() => [
964
- _(c(It))
963
+ default: C(() => [
964
+ g(c(zt))
965
965
  ]),
966
966
  _: 1
967
967
  /* STABLE */
968
968
  }),
969
- _(c(N), {
969
+ g(c(N), {
970
970
  onClick: i[2] || (i[2] = (v) => o("zoomIn"))
971
971
  }, {
972
- default: z(() => [
973
- _(c(Ae))
972
+ default: C(() => [
973
+ g(c(Ae))
974
974
  ]),
975
975
  _: 1
976
976
  /* STABLE */
@@ -978,14 +978,14 @@ const Kt = {
978
978
  r(
979
979
  "i",
980
980
  {
981
- class: x(c(g).e("actions__divider"))
981
+ class: x(c(h).e("actions__divider"))
982
982
  },
983
983
  null,
984
984
  2
985
985
  /* CLASS */
986
986
  ),
987
- _(c(N), { onClick: R }, {
988
- default: z(() => [
987
+ g(c(N), { onClick: R }, {
988
+ default: C(() => [
989
989
  (d(), W(Qe(S.value.icon)))
990
990
  ]),
991
991
  _: 1
@@ -994,26 +994,26 @@ const Kt = {
994
994
  r(
995
995
  "i",
996
996
  {
997
- class: x(c(g).e("actions__divider"))
997
+ class: x(c(h).e("actions__divider"))
998
998
  },
999
999
  null,
1000
1000
  2
1001
1001
  /* CLASS */
1002
1002
  ),
1003
- _(c(N), {
1003
+ g(c(N), {
1004
1004
  onClick: i[3] || (i[3] = (v) => o("anticlockwise"))
1005
1005
  }, {
1006
- default: z(() => [
1007
- _(c(wt))
1006
+ default: C(() => [
1007
+ g(c(wt))
1008
1008
  ]),
1009
1009
  _: 1
1010
1010
  /* STABLE */
1011
1011
  }),
1012
- _(c(N), {
1012
+ g(c(N), {
1013
1013
  onClick: i[4] || (i[4] = (v) => o("clockwise"))
1014
1014
  }, {
1015
- default: z(() => [
1016
- _(c(bt))
1015
+ default: C(() => [
1016
+ g(c(bt))
1017
1017
  ]),
1018
1018
  _: 1
1019
1019
  /* STABLE */
@@ -1030,25 +1030,25 @@ const Kt = {
1030
1030
  r(
1031
1031
  "div",
1032
1032
  {
1033
- class: x(c(g).e("canvas"))
1033
+ class: x(c(h).e("canvas"))
1034
1034
  },
1035
1035
  [
1036
1036
  (d(!0), p(
1037
1037
  H,
1038
1038
  null,
1039
- Te(a.urlList, (v, I) => fe((d(), p("img", {
1039
+ Ee(a.urlList, (v, z) => fe((d(), p("img", {
1040
1040
  ref_for: !0,
1041
- ref: ($) => u.value[I] = $,
1041
+ ref: ($) => u.value[z] = $,
1042
1042
  key: v,
1043
1043
  src: v,
1044
1044
  style: ee(se.value),
1045
- class: x(c(g).e("img")),
1045
+ class: x(c(h).e("img")),
1046
1046
  crossorigin: a.crossorigin,
1047
1047
  onLoad: ue,
1048
1048
  onError: ce,
1049
1049
  onMousedown: de
1050
1050
  }, null, 46, qt)), [
1051
- [me, I === w.value]
1051
+ [me, z === w.value]
1052
1052
  ])),
1053
1053
  128
1054
1054
  /* KEYED_FRAGMENT */
@@ -1057,7 +1057,7 @@ const Kt = {
1057
1057
  2
1058
1058
  /* CLASS */
1059
1059
  ),
1060
- Ee(a.$slots, "default")
1060
+ Te(a.$slots, "default")
1061
1061
  ],
1062
1062
  6
1063
1063
  /* CLASS, STYLE */
@@ -1068,10 +1068,10 @@ const Kt = {
1068
1068
  })
1069
1069
  ]));
1070
1070
  }
1071
- }), ta = _e(ea), aa = {
1071
+ }), ta = ge(ea), aa = {
1072
1072
  key: 1,
1073
1073
  class: "upload-btn"
1074
- }, la = { class: "tip" }, na = { 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({
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({
1075
1075
  __name: "index",
1076
1076
  props: /* @__PURE__ */ ke({
1077
1077
  // 显示的文字
@@ -1165,38 +1165,38 @@ const Kt = {
1165
1165
  }),
1166
1166
  emits: /* @__PURE__ */ ke(["delete", "success", "change"], ["update:modelValue"]),
1167
1167
  setup(t, { emit: s }) {
1168
- Ge((l) => ({
1169
- v0b42f402: C.value,
1168
+ Ge((n) => ({
1169
+ v0b42f402: I.value,
1170
1170
  v434c926b: u.value,
1171
1171
  v17094e8c: Z.value,
1172
1172
  v16228280: j.value
1173
1173
  }));
1174
- const n = t, e = Ze(t, "modelValue"), { formItem: f } = tt(), m = (l) => Array.isArray(l) ? l.map((o) => {
1175
- var v, I;
1176
- const a = ((v = o.url) == null ? void 0 : v.startsWith("http")) || ((I = o.url) == null ? void 0 : I.startsWith("blob")), i = (o == null ? void 0 : o.url) || o;
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;
1177
1177
  return {
1178
1178
  ...o.url ? o : { url: i },
1179
1179
  __url: a ? i : `${M.value}${i}`
1180
1180
  };
1181
- }) : l ? [
1181
+ }) : n ? [
1182
1182
  {
1183
- url: l,
1184
- __url: l != null && l.startsWith("http") || l != null && l.startsWith("blob") ? l : `${M.value}${l}`
1183
+ url: n,
1184
+ __url: n != null && n.startsWith("http") || n != null && n.startsWith("blob") ? n : `${M.value}${n}`
1185
1185
  }
1186
1186
  ] : [];
1187
1187
  te(
1188
1188
  () => e.value,
1189
- (l) => {
1190
- !l || !l.length ? w.value = [] : w.value = q.cloneDeep(m(l)), f == null || f.validate("change");
1189
+ (n) => {
1190
+ !n || !n.length ? w.value = [] : w.value = q.cloneDeep(m(n)), f == null || f.validate("change");
1191
1191
  },
1192
1192
  { deep: !0 }
1193
1193
  );
1194
- const k = s, { cLoadUrl: M, cUploadUrl: g, cHeader: B } = Bt(n), C = h(() => `${n.width}px`), u = h(() => `${n.height}px`), O = h(() => n.size), y = E(null), w = E(m(e.value)), S = E([]), b = E(!1), X = E(0), ae = h(
1195
- () => n.tipText || `最多可上传${n.limit}张图片, 每张图片不能超过${n.size}MB`
1196
- ), Y = (l, o) => {
1197
- k("change", l);
1198
- }, Q = (l) => {
1199
- if (!l.type.includes("image")) {
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 = _(
1195
+ () => l.tipText || `最多可上传${l.limit}张图片, 每张图片不能超过${l.size}MB`
1196
+ ), Y = (n, o) => {
1197
+ k("change", n);
1198
+ }, Q = (n) => {
1199
+ if (!n.type.includes("image")) {
1200
1200
  xe.warning("只允许上传图片!");
1201
1201
  try {
1202
1202
  w.value.pop();
@@ -1204,8 +1204,8 @@ const Kt = {
1204
1204
  }
1205
1205
  return !1;
1206
1206
  }
1207
- if (!(l.size / 1024 / 1024 < O.value)) {
1208
- xe.warning(`图片大小超出系统限制的${n.size}MB!`);
1207
+ if (!(n.size / 1024 / 1024 < O.value)) {
1208
+ xe.warning(`图片大小超出系统限制的${l.size}MB!`);
1209
1209
  try {
1210
1210
  w.value.pop();
1211
1211
  } catch {
@@ -1213,55 +1213,55 @@ const Kt = {
1213
1213
  return !1;
1214
1214
  }
1215
1215
  return !0;
1216
- }, le = () => !1, ne = (l, o) => {
1216
+ }, ne = () => !1, le = (n, o) => {
1217
1217
  var a, i;
1218
- l.status = "ready", o !== void 0 && S.value.splice(o, 1), (a = y.value) == null || a.handleStart(l.raw), (i = y.value) == null || i.submit();
1219
- }, oe = (l, o) => {
1220
- var I, $;
1221
- const a = e.value.length, i = n.limit - a;
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
1222
  let v = 0;
1223
- for (; v < i && v < (l == null ? void 0 : l.length); )
1224
- (I = y.value) == null || I.handleStart(l == null ? void 0 : l[v]), ($ = y.value) == null || $.submit(), v++;
1225
- }, se = (l, o, a) => {
1226
- k("success", l, o, a), e.value = w.value, f == null || f.validate("change");
1227
- }, D = (l, o, a) => {
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
1228
  S.value.push({
1229
1229
  ...o,
1230
1230
  __url: o.url
1231
1231
  });
1232
- }, re = (l) => {
1232
+ }, re = (n) => {
1233
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 === l.url) : 0;
1235
- }, ie = (l) => {
1236
- ot.downloadFile(l.__url || l.url, l.name || l.url);
1237
- }, ue = (l) => {
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
1238
  var o;
1239
- (o = y.value) == null || o.abort(l);
1240
- }, ce = (l) => {
1239
+ (o = y.value) == null || o.abort(n);
1240
+ }, ce = (n) => {
1241
1241
  var o;
1242
- l.status !== "success" && ue(l), e.value = (o = w.value) == null ? void 0 : o.filter((a) => a.uid !== l.uid), k("delete", l);
1243
- }, de = (l, 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
1244
  S.value.splice(o, 1);
1245
- }, G = h(() => w.value.length + S.value.length < n.limit), R = h(
1246
- () => e.value.length >= n.limit || n.disabled
1247
- ), j = h(() => {
1248
- var l;
1249
- return !((l = e.value) != null && l.length) && !S.value.length || n.limit === 1 || typeof e.value == "string" ? "0" : `${n.width + 8}px`;
1250
- }), Z = h(() => {
1251
- var l;
1252
- return !((l = e.value) != null && l.length) && !S.value.length && typeof e.value != "string" || n.limit === 1 ? "none" : "absolute";
1245
+ }, G = _(() => w.value.length + S.value.length < l.limit), R = _(
1246
+ () => e.value.length >= l.limit || l.disabled
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";
1253
1253
  });
1254
- return (l, o) => (d(), p(
1254
+ return (n, o) => (d(), p(
1255
1255
  H,
1256
1256
  null,
1257
1257
  [
1258
- _(c(at), Se({
1258
+ g(c(at), Se({
1259
1259
  class: ["ik-image-upload", { preview: t.preview, "hide-upload": !G.value && t.limit === 1, disabled: R.value }],
1260
1260
  ref_key: "refUpload",
1261
1261
  ref: y,
1262
1262
  "list-type": "picture-card",
1263
1263
  accept: t.accept,
1264
- action: c(g),
1264
+ action: c(h),
1265
1265
  headers: t.headers || c(B),
1266
1266
  data: t.data,
1267
1267
  "file-list": w.value,
@@ -1270,15 +1270,15 @@ const Kt = {
1270
1270
  limit: t.limit,
1271
1271
  "on-change": Y,
1272
1272
  "before-upload": Q,
1273
- "before-remove": le,
1273
+ "before-remove": ne,
1274
1274
  "on-exceed": oe,
1275
1275
  "on-success": se,
1276
1276
  "on-error": D,
1277
1277
  drag: ""
1278
- }, l.$attrs, { disabled: R.value }), Ke({
1279
- trigger: z(() => [
1280
- l.$slots.trigger ? Ee(l.$slots, "trigger", { key: 0 }, void 0, !0) : (d(), p("div", aa, [
1281
- _(c(pe), {
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), {
1282
1282
  size: 20,
1283
1283
  name: "iksvg_guanbibeifen",
1284
1284
  disabled: R.value
@@ -1292,7 +1292,7 @@ const Kt = {
1292
1292
  )
1293
1293
  ]))
1294
1294
  ]),
1295
- file: z(({ file: a, index: i }) => [
1295
+ file: C(({ file: a, index: i }) => [
1296
1296
  r(
1297
1297
  "div",
1298
1298
  {
@@ -1302,9 +1302,9 @@ const Kt = {
1302
1302
  [
1303
1303
  fe(r(
1304
1304
  "div",
1305
- na,
1305
+ la,
1306
1306
  [
1307
- _(Mt),
1307
+ g(Mt),
1308
1308
  Ne(
1309
1309
  " 上传" + J(a.percentage) + "% ",
1310
1310
  1
@@ -1317,7 +1317,7 @@ const Kt = {
1317
1317
  [me, a.status === "uploading"]
1318
1318
  ]),
1319
1319
  A(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
1320
- _(c(lt), {
1320
+ g(c(nt), {
1321
1321
  style: { width: "100%", height: "100%" },
1322
1322
  src: a.__url || a.url,
1323
1323
  "zoom-rate": 1.2,
@@ -1326,34 +1326,34 @@ const Kt = {
1326
1326
  }, null, 8, ["src"]),
1327
1327
  r("span", oa, [
1328
1328
  r("span", null, [
1329
- _(c(N), {
1329
+ g(c(N), {
1330
1330
  onClick: (v) => re(a)
1331
1331
  }, {
1332
- default: z(() => [
1333
- _(c(Ae))
1332
+ default: C(() => [
1333
+ g(c(Ae))
1334
1334
  ]),
1335
1335
  _: 1
1336
1336
  /* STABLE */
1337
1337
  }, 8, ["onClick"])
1338
1338
  ]),
1339
1339
  r("span", null, [
1340
- _(c(N), {
1340
+ g(c(N), {
1341
1341
  onClick: (v) => ie(a)
1342
1342
  }, {
1343
- default: z(() => [
1344
- _(c(mt))
1343
+ default: C(() => [
1344
+ g(c(mt))
1345
1345
  ]),
1346
1346
  _: 1
1347
1347
  /* STABLE */
1348
1348
  }, 8, ["onClick"])
1349
1349
  ]),
1350
1350
  t.preview ? A("v-if", !0) : (d(), p("span", sa, [
1351
- _(c(N), {
1351
+ g(c(N), {
1352
1352
  type: "warning",
1353
1353
  onClick: (v) => ce(a)
1354
1354
  }, {
1355
- default: z(() => [
1356
- _(c(pt))
1355
+ default: C(() => [
1356
+ g(c(pt))
1357
1357
  ]),
1358
1358
  _: 1
1359
1359
  /* STABLE */
@@ -1365,17 +1365,17 @@ const Kt = {
1365
1365
  /* CLASS */
1366
1366
  )
1367
1367
  ]),
1368
- default: z(() => [
1368
+ default: C(() => [
1369
1369
  r("ul", ra, [
1370
1370
  (d(!0), p(
1371
1371
  H,
1372
1372
  null,
1373
- Te(S.value, (a, i) => (d(), p("li", {
1373
+ Ee(S.value, (a, i) => (d(), p("li", {
1374
1374
  class: "el-upload-list__item",
1375
1375
  key: a.uid
1376
1376
  }, [
1377
1377
  r("span", null, [
1378
- _(c(pe), {
1378
+ g(c(pe), {
1379
1379
  name: "iksvg_guanbi",
1380
1380
  error: "",
1381
1381
  onClick: (v) => de(a, i)
@@ -1393,9 +1393,9 @@ const Kt = {
1393
1393
  [
1394
1394
  fe(r("div", {
1395
1395
  class: "loading-statu",
1396
- onClick: (v) => ne(a, i)
1396
+ onClick: (v) => le(a, i)
1397
1397
  }, [
1398
- _(c(pe), {
1398
+ g(c(pe), {
1399
1399
  name: "iksvg_shuaxin-daohang",
1400
1400
  size: 24
1401
1401
  }),
@@ -1436,10 +1436,10 @@ const Kt = {
1436
1436
  }, [
1437
1437
  t.tip ? {
1438
1438
  name: "tip",
1439
- fn: z(() => [
1439
+ fn: C(() => [
1440
1440
  r(
1441
1441
  "span",
1442
- la,
1442
+ na,
1443
1443
  J(ae.value),
1444
1444
  1
1445
1445
  /* TEXT */
@@ -1466,8 +1466,8 @@ const Kt = {
1466
1466
  /* STABLE_FRAGMENT */
1467
1467
  ));
1468
1468
  }
1469
- }), va = /* @__PURE__ */ ge(da, [["__scopeId", "data-v-80227172"]]), _a = _e(va);
1469
+ }), va = /* @__PURE__ */ he(da, [["__scopeId", "data-v-80227172"]]), ga = ge(va);
1470
1470
  export {
1471
- _a as IkUploadImage,
1472
- _a as default
1471
+ ga as IkUploadImage,
1472
+ ga as default
1473
1473
  };