iking-web-ui-pro 0.2.34 → 0.2.35

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 (39) hide show
  1. package/dist/IKPreviewFile/ik.index.es.js +602 -599
  2. package/dist/IKPreviewFile/ik.index.umd.js +46 -46
  3. package/dist/IKSearch/ik.index.es.js +623 -623
  4. package/dist/IKSearch/ik.index.umd.js +2 -2
  5. package/dist/IKSearch/style.css +1 -1
  6. package/dist/IkApprovalProcess/ik.index.es.js +463 -463
  7. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  8. package/dist/IkApprovalProcess/style.css +1 -1
  9. package/dist/IkApprovalProcessDetail/ik.index.es.js +673 -670
  10. package/dist/IkApprovalProcessDetail/ik.index.umd.js +46 -46
  11. package/dist/IkCalendar/ik.index.es.js +1583 -1583
  12. package/dist/IkCalendar/ik.index.umd.js +1 -1
  13. package/dist/IkCalendar/style.css +1 -1
  14. package/dist/IkDescription/ik.index.es.js +825 -846
  15. package/dist/IkDescription/ik.index.umd.js +46 -46
  16. package/dist/IkDescription/style.css +1 -1
  17. package/dist/IkDetailPreviewFiles/ik.index.es.js +617 -614
  18. package/dist/IkDetailPreviewFiles/ik.index.umd.js +46 -46
  19. package/dist/IkPageFull/ik.index.es.js +689 -689
  20. package/dist/IkPageFull/ik.index.umd.js +3 -3
  21. package/dist/IkPageFull/style.css +1 -1
  22. package/dist/IkPickerUser/ik.index.es.js +317 -317
  23. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  24. package/dist/IkPickerUser/style.css +1 -1
  25. package/dist/IkPlayer/ik.index.es.js +342 -339
  26. package/dist/IkPlayer/ik.index.umd.js +45 -45
  27. package/dist/IkPreviewFileDialog/ik.index.es.js +509 -506
  28. package/dist/IkPreviewFileDialog/ik.index.umd.js +46 -46
  29. package/dist/IkUploadFile/ik.index.es.js +1719 -1718
  30. package/dist/IkUploadFile/ik.index.umd.js +56 -56
  31. package/dist/IkUploadFile/style.css +1 -1
  32. package/dist/IkUploadImage/ik.index.es.js +273 -270
  33. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  34. package/dist/index.es.js +13188 -13214
  35. package/dist/index.umd.js +106 -106
  36. package/dist/src/components/IkDescription/index.d.ts +0 -76
  37. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +0 -36
  38. package/dist/style.css +1 -1
  39. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as $, openBlock as d, createElementBlock as v, createElementVNode as s, inject as Y, computed as w, resolveComponent as we, normalizeClass as k, normalizeStyle as U, createCommentVNode as R, createBlock as Q, withCtx as h, createTextVNode as Me, toDisplayString as J, unref as r, getCurrentScope as Pe, onScopeDispose as Re, watch as ee, markRaw as ye, ref as T, effectScope as Ue, shallowRef as He, nextTick as je, onMounted as De, Teleport as Fe, createVNode as p, Transition as We, withModifiers as Xe, Fragment as te, resolveDynamicComponent as Ye, renderList as Be, withDirectives as ve, vShow as _e, renderSlot as Se, mergeModels as be, useCssVars as Qe, useModel as Ge, mergeProps as Ze, createSlots as Ke, pushScopeId as Je, popScopeId as qe } from "vue";
2
- import { useLocale as et, useNamespace as tt, useZIndex as at, ElIcon as L, EVENT_CODE as D, ElUpload as lt, ElImage as nt, ElMessage as ke } from "element-plus";
3
- import { ikColor as st, paramType as xe, _ as q, ikFile as ot } from "iking-utils-pro";
1
+ import { defineComponent as $, openBlock as d, createElementBlock as v, createElementVNode as s, inject as Y, computed as w, resolveComponent as we, normalizeClass as x, normalizeStyle as U, createCommentVNode as P, createBlock as Q, withCtx as h, createTextVNode as Be, toDisplayString as J, unref as r, getCurrentScope as Pe, onScopeDispose as Ue, watch as ee, markRaw as ye, ref as T, effectScope as He, shallowRef as je, nextTick as De, onMounted as Fe, Teleport as We, createVNode as p, Transition as Xe, withModifiers as Ye, Fragment as te, resolveDynamicComponent as Qe, renderList as Se, withDirectives as ve, vShow as _e, renderSlot as Ee, mergeModels as be, useCssVars as Ge, useModel as Ze, mergeProps as Ke, createSlots as Je, pushScopeId as qe, popScopeId as et } from "vue";
2
+ import { useLocale as tt, useNamespace as at, useZIndex as lt, ElIcon as L, EVENT_CODE as D, ElUpload as nt, ElImage as st, ElMessage as ke } from "element-plus";
3
+ import { ikColor as ot, paramType as xe, _ as q, ikFile as rt } from "iking-utils-pro";
4
4
  const fe = (t, n) => {
5
5
  if (t.install = (e) => {
6
6
  for (const i of [t, ...Object.values(n ?? {})])
@@ -11,7 +11,7 @@ const fe = (t, n) => {
11
11
  return t;
12
12
  };
13
13
  /*! Element Plus Icons Vue v2.3.1 */
14
- var rt = /* @__PURE__ */ $({
14
+ var it = /* @__PURE__ */ $({
15
15
  name: "ArrowLeft",
16
16
  __name: "arrow-left",
17
17
  setup(t) {
@@ -25,7 +25,7 @@ var rt = /* @__PURE__ */ $({
25
25
  })
26
26
  ]));
27
27
  }
28
- }), it = rt, ut = /* @__PURE__ */ $({
28
+ }), ut = it, ct = /* @__PURE__ */ $({
29
29
  name: "ArrowRight",
30
30
  __name: "arrow-right",
31
31
  setup(t) {
@@ -39,7 +39,7 @@ var rt = /* @__PURE__ */ $({
39
39
  })
40
40
  ]));
41
41
  }
42
- }), ct = ut, dt = /* @__PURE__ */ $({
42
+ }), dt = ct, pt = /* @__PURE__ */ $({
43
43
  name: "Close",
44
44
  __name: "close",
45
45
  setup(t) {
@@ -53,7 +53,7 @@ var rt = /* @__PURE__ */ $({
53
53
  })
54
54
  ]));
55
55
  }
56
- }), Ee = dt, pt = /* @__PURE__ */ $({
56
+ }), Ne = pt, vt = /* @__PURE__ */ $({
57
57
  name: "Delete",
58
58
  __name: "delete",
59
59
  setup(t) {
@@ -67,7 +67,7 @@ var rt = /* @__PURE__ */ $({
67
67
  })
68
68
  ]));
69
69
  }
70
- }), vt = pt, _t = /* @__PURE__ */ $({
70
+ }), _t = vt, ft = /* @__PURE__ */ $({
71
71
  name: "Download",
72
72
  __name: "download",
73
73
  setup(t) {
@@ -81,7 +81,7 @@ var rt = /* @__PURE__ */ $({
81
81
  })
82
82
  ]));
83
83
  }
84
- }), ft = _t, mt = /* @__PURE__ */ $({
84
+ }), mt = ft, gt = /* @__PURE__ */ $({
85
85
  name: "FullScreen",
86
86
  __name: "full-screen",
87
87
  setup(t) {
@@ -95,7 +95,7 @@ var rt = /* @__PURE__ */ $({
95
95
  })
96
96
  ]));
97
97
  }
98
- }), gt = mt, ht = /* @__PURE__ */ $({
98
+ }), ht = gt, wt = /* @__PURE__ */ $({
99
99
  name: "RefreshLeft",
100
100
  __name: "refresh-left",
101
101
  setup(t) {
@@ -109,7 +109,7 @@ var rt = /* @__PURE__ */ $({
109
109
  })
110
110
  ]));
111
111
  }
112
- }), wt = ht, yt = /* @__PURE__ */ $({
112
+ }), yt = wt, bt = /* @__PURE__ */ $({
113
113
  name: "RefreshRight",
114
114
  __name: "refresh-right",
115
115
  setup(t) {
@@ -123,7 +123,7 @@ var rt = /* @__PURE__ */ $({
123
123
  })
124
124
  ]));
125
125
  }
126
- }), bt = yt, kt = /* @__PURE__ */ $({
126
+ }), kt = bt, xt = /* @__PURE__ */ $({
127
127
  name: "Refresh",
128
128
  __name: "refresh",
129
129
  setup(t) {
@@ -137,7 +137,7 @@ var rt = /* @__PURE__ */ $({
137
137
  })
138
138
  ]));
139
139
  }
140
- }), xt = kt, zt = /* @__PURE__ */ $({
140
+ }), zt = xt, It = /* @__PURE__ */ $({
141
141
  name: "ScaleToOriginal",
142
142
  __name: "scale-to-original",
143
143
  setup(t) {
@@ -151,7 +151,7 @@ var rt = /* @__PURE__ */ $({
151
151
  })
152
152
  ]));
153
153
  }
154
- }), It = zt, Ct = /* @__PURE__ */ $({
154
+ }), Ct = It, Ot = /* @__PURE__ */ $({
155
155
  name: "ZoomIn",
156
156
  __name: "zoom-in",
157
157
  setup(t) {
@@ -165,7 +165,7 @@ var rt = /* @__PURE__ */ $({
165
165
  })
166
166
  ]));
167
167
  }
168
- }), Ne = Ct, Ot = /* @__PURE__ */ $({
168
+ }), Te = Ot, $t = /* @__PURE__ */ $({
169
169
  name: "ZoomOut",
170
170
  __name: "zoom-out",
171
171
  setup(t) {
@@ -179,13 +179,13 @@ var rt = /* @__PURE__ */ $({
179
179
  })
180
180
  ]));
181
181
  }
182
- }), $t = Ot;
182
+ }), Lt = $t;
183
183
  const me = (t, n) => {
184
184
  const e = t.__vccOpts || t;
185
185
  for (const [i, m] of n)
186
186
  e[i] = m;
187
187
  return e;
188
- }, Lt = {}, Mt = {
188
+ }, Mt = {}, Bt = {
189
189
  t: "1686214149488",
190
190
  class: "icon",
191
191
  viewBox: "0 0 1024 1024",
@@ -194,7 +194,7 @@ const me = (t, n) => {
194
194
  "p-id": "8490",
195
195
  width: "200",
196
196
  height: "200"
197
- }, Bt = /* @__PURE__ */ s(
197
+ }, St = /* @__PURE__ */ s(
198
198
  "path",
199
199
  {
200
200
  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",
@@ -203,7 +203,7 @@ const me = (t, n) => {
203
203
  null,
204
204
  -1
205
205
  /* HOISTED */
206
- ), St = /* @__PURE__ */ s(
206
+ ), Et = /* @__PURE__ */ s(
207
207
  "path",
208
208
  {
209
209
  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",
@@ -212,7 +212,7 @@ const me = (t, n) => {
212
212
  null,
213
213
  -1
214
214
  /* HOISTED */
215
- ), Et = /* @__PURE__ */ s(
215
+ ), Nt = /* @__PURE__ */ s(
216
216
  "path",
217
217
  {
218
218
  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",
@@ -221,7 +221,7 @@ const me = (t, n) => {
221
221
  null,
222
222
  -1
223
223
  /* HOISTED */
224
- ), Nt = /* @__PURE__ */ s(
224
+ ), Tt = /* @__PURE__ */ s(
225
225
  "path",
226
226
  {
227
227
  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",
@@ -230,7 +230,7 @@ const me = (t, n) => {
230
230
  null,
231
231
  -1
232
232
  /* HOISTED */
233
- ), Tt = /* @__PURE__ */ s(
233
+ ), At = /* @__PURE__ */ s(
234
234
  "path",
235
235
  {
236
236
  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",
@@ -239,7 +239,7 @@ const me = (t, n) => {
239
239
  null,
240
240
  -1
241
241
  /* HOISTED */
242
- ), At = /* @__PURE__ */ s(
242
+ ), Vt = /* @__PURE__ */ s(
243
243
  "path",
244
244
  {
245
245
  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",
@@ -248,7 +248,7 @@ const me = (t, n) => {
248
248
  null,
249
249
  -1
250
250
  /* HOISTED */
251
- ), Vt = /* @__PURE__ */ s(
251
+ ), Rt = /* @__PURE__ */ s(
252
252
  "path",
253
253
  {
254
254
  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",
@@ -266,93 +266,96 @@ const me = (t, n) => {
266
266
  null,
267
267
  -1
268
268
  /* HOISTED */
269
- ), Rt = [
270
- Bt,
269
+ ), Ut = [
271
270
  St,
272
271
  Et,
273
272
  Nt,
274
273
  Tt,
275
274
  At,
276
275
  Vt,
276
+ Rt,
277
277
  Pt
278
278
  ];
279
- function Ut(t, n) {
280
- return d(), v("svg", Mt, Rt);
279
+ function Ht(t, n) {
280
+ return d(), v("svg", Bt, Ut);
281
281
  }
282
- const Ht = /* @__PURE__ */ me(Lt, [["render", Ut]]), jt = (t) => {
283
- const n = Y("loadUrl"), e = w(() => t.loadUrl || t.fileUrl || (n == null ? void 0 : n.value)), i = Y("uploadUrl"), m = w(() => t.action || t.uploadUrl || (i == null ? void 0 : i.value)), l = Y("token"), z = w(() => t.token || (l == null ? void 0 : l.value)), E = Y("onlyofficeConfig"), f = w(() => t.onlyofficeConfig || (E == null ? void 0 : E.value)), A = Y("userInfo"), C = w(() => t.userInfo || (A == null ? void 0 : A.value));
282
+ const jt = /* @__PURE__ */ me(Mt, [["render", Ht]]), ze = [
283
+ "csv",
284
+ "djvu",
285
+ "doc",
286
+ "docm",
287
+ "docx",
288
+ "docxf",
289
+ "dot",
290
+ "dotm",
291
+ "dotx",
292
+ "epub",
293
+ "fb2",
294
+ "fodp",
295
+ "fods",
296
+ "fodt",
297
+ "htm",
298
+ "html",
299
+ "mht",
300
+ "odp",
301
+ "ods",
302
+ "odt",
303
+ "oform",
304
+ "otp",
305
+ "ots",
306
+ "ott",
307
+ "oxps",
308
+ "pdf",
309
+ "pot",
310
+ "potm",
311
+ "potx",
312
+ "pps",
313
+ "ppsm",
314
+ "ppsx",
315
+ "ppt",
316
+ "pptm",
317
+ "pptx",
318
+ "rtf",
319
+ "txt",
320
+ "xls",
321
+ "xlsb",
322
+ "xlsm",
323
+ "xlsx",
324
+ "xlt",
325
+ "xltm",
326
+ "xltx",
327
+ "xml",
328
+ "xps",
329
+ "png",
330
+ "jpeg",
331
+ "jpg",
332
+ "webp",
333
+ "video",
334
+ "mp4",
335
+ "flv",
336
+ "tls"
337
+ ], Dt = (t) => {
338
+ const n = Y("loadUrl"), e = w(() => t.loadUrl || t.fileUrl || (n == null ? void 0 : n.value)), i = Y("uploadUrl"), m = w(() => t.action || t.uploadUrl || (i == null ? void 0 : i.value)), l = Y("token"), z = w(() => t.token || (l == null ? void 0 : l.value)), E = Y("onlyofficeConfig"), f = w(() => t.onlyofficeConfig || (E == null ? void 0 : E.value)), A = Y("userInfo"), O = w(() => t.userInfo || (A == null ? void 0 : A.value)), C = [...ze, ...ze.map((y) => y.toLocaleUpperCase())];
284
339
  return {
285
340
  cLoadUrl: e,
286
341
  cUploadUrl: m,
287
342
  cToken: z,
288
343
  cOnlyofficeConfig: f,
289
- cUserInfo: C,
290
- cOnlyofficePreviewType: [
291
- "csv",
292
- "djvu",
293
- "doc",
294
- "docm",
295
- "docx",
296
- "docxf",
297
- "dot",
298
- "dotm",
299
- "dotx",
300
- "epub",
301
- "fb2",
302
- "fodp",
303
- "fods",
304
- "fodt",
305
- "htm",
306
- "html",
307
- "mht",
308
- "odp",
309
- "ods",
310
- "odt",
311
- "oform",
312
- "otp",
313
- "ots",
314
- "ott",
315
- "oxps",
316
- "pdf",
317
- "pot",
318
- "potm",
319
- "potx",
320
- "pps",
321
- "ppsm",
322
- "ppsx",
323
- "ppt",
324
- "pptm",
325
- "pptx",
326
- "rtf",
327
- "txt",
328
- "xls",
329
- "xlsb",
330
- "xlsm",
331
- "xlsx",
332
- "xlt",
333
- "xltm",
334
- "xltx",
335
- "xml",
336
- "xps",
337
- "png",
338
- "jpeg",
339
- "jpg",
340
- "video",
341
- "mp4"
342
- ]
344
+ cUserInfo: O,
345
+ cOnlyofficePreviewType: C
343
346
  };
344
- }, Dt = jt, Ft = {
347
+ }, Ft = Dt, Wt = {
345
348
  key: 0,
346
349
  class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
347
- }, Wt = {
350
+ }, Xt = {
348
351
  key: 1,
349
352
  class: "h-[1em] w-[1em]",
350
353
  "aria-hidden": "true"
351
- }, Xt = ["xlink:href"], Yt = ["src"], Qt = {
354
+ }, Yt = ["xlink:href"], Qt = ["src"], Gt = {
352
355
  key: 1,
353
356
  class: "h-[1em] w-[1em]",
354
357
  "aria-hidden": "true"
355
- }, Gt = ["xlink:href"], Zt = ["src"], Kt = /* @__PURE__ */ $({
358
+ }, Zt = ["xlink:href"], Kt = ["src"], Jt = /* @__PURE__ */ $({
356
359
  name: "IkSvgIcon",
357
360
  __name: "index",
358
361
  props: {
@@ -405,19 +408,19 @@ const Ht = /* @__PURE__ */ me(Lt, [["render", Ut]]), jt = (t) => {
405
408
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
406
409
  ...e.value.color && i.value !== "iksig" ? {
407
410
  "--ik-color-icon-dark": e.value.color,
408
- "--ik-color-icon-light": e.value.colorLight || st.setOpacity(e.value.color, e.value.opacity)
411
+ "--ik-color-icon-light": e.value.colorLight || ot.setOpacity(e.value.color, e.value.opacity)
409
412
  } : {}
410
413
  };
411
414
  return e.value.width && (z.width = z.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), z;
412
415
  });
413
416
  return (l, z) => {
414
417
  const E = we("el-tooltip"), f = we("el-button");
415
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (d(), v("span", Ft, [
418
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (d(), v("span", Wt, [
416
419
  e.value.notip || !e.value.title ? (d(), v(
417
420
  "i",
418
421
  {
419
422
  key: 0,
420
- class: k(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
423
+ class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
421
424
  [l.name]: i.value === "unocss",
422
425
  "show-bg": e.value.showBg || e.value.bg,
423
426
  default: e.value.size === "default",
@@ -433,30 +436,30 @@ const Ht = /* @__PURE__ */ me(Lt, [["render", Ut]]), jt = (t) => {
433
436
  style: U(m.value)
434
437
  },
435
438
  [
436
- R(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
439
+ P(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
437
440
  i.value === "iksig" ? (d(), v(
438
441
  "i",
439
442
  {
440
443
  key: 0,
441
- class: k(`iksig ${e.value.name}`),
444
+ class: x(`iksig ${e.value.name}`),
442
445
  style: U(m.value)
443
446
  },
444
447
  null,
445
448
  6
446
449
  /* CLASS, STYLE */
447
- )) : i.value === "svg" ? (d(), v("svg", Wt, [
450
+ )) : i.value === "svg" ? (d(), v("svg", Xt, [
448
451
  s("use", {
449
452
  "xlink:href": `#${e.value.name}`
450
- }, null, 8, Xt)
453
+ }, null, 8, Yt)
451
454
  ])) : i.value === "img" ? (d(), v("img", {
452
455
  key: 2,
453
456
  src: e.value.name,
454
457
  class: "h-[1em] w-[1em]"
455
- }, null, 8, Yt)) : (d(), v(
458
+ }, null, 8, Qt)) : (d(), v(
456
459
  "i",
457
460
  {
458
461
  key: 3,
459
- class: k(e.value.name),
462
+ class: x(e.value.name),
460
463
  style: U(m.value)
461
464
  },
462
465
  null,
@@ -475,7 +478,7 @@ const Ht = /* @__PURE__ */ me(Lt, [["render", Ut]]), jt = (t) => {
475
478
  s(
476
479
  "i",
477
480
  {
478
- class: k(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
481
+ class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
479
482
  [l.name]: i.value === "unocss",
480
483
  "show-bg": e.value.showBg || e.value.bg,
481
484
  default: e.value.size === "default",
@@ -494,25 +497,25 @@ const Ht = /* @__PURE__ */ me(Lt, [["render", Ut]]), jt = (t) => {
494
497
  "i",
495
498
  {
496
499
  key: 0,
497
- class: k(`iksig ${e.value.name}`),
500
+ class: x(`iksig ${e.value.name}`),
498
501
  style: U(m.value)
499
502
  },
500
503
  null,
501
504
  6
502
505
  /* CLASS, STYLE */
503
- )) : i.value === "svg" ? (d(), v("svg", Qt, [
506
+ )) : i.value === "svg" ? (d(), v("svg", Gt, [
504
507
  s("use", {
505
508
  "xlink:href": `#${e.value.name}`
506
- }, null, 8, Gt)
509
+ }, null, 8, Zt)
507
510
  ])) : i.value === "img" ? (d(), v("img", {
508
511
  key: 2,
509
512
  src: e.value.name,
510
513
  class: "h-[1em] w-[1em]"
511
- }, null, 8, Zt)) : (d(), v(
514
+ }, null, 8, Kt)) : (d(), v(
512
515
  "i",
513
516
  {
514
517
  key: 3,
515
- class: k(e.value.name),
518
+ class: x(e.value.name),
516
519
  style: U(m.value)
517
520
  },
518
521
  null,
@@ -532,7 +535,7 @@ const Ht = /* @__PURE__ */ me(Lt, [["render", Ut]]), jt = (t) => {
532
535
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
533
536
  }, {
534
537
  default: h(() => [
535
- Me(
538
+ Be(
536
539
  J(e.value.title),
537
540
  1
538
541
  /* TEXT */
@@ -544,55 +547,55 @@ const Ht = /* @__PURE__ */ me(Lt, [["render", Ut]]), jt = (t) => {
544
547
  };
545
548
  }
546
549
  });
547
- const Jt = /* @__PURE__ */ me(Kt, [["__scopeId", "data-v-52806adf"]]), qt = fe(Jt);
548
- var ze;
549
- const Te = typeof window < "u", ea = (t) => typeof t == "string", ta = () => {
550
+ const qt = /* @__PURE__ */ me(Jt, [["__scopeId", "data-v-52806adf"]]), ea = fe(qt);
551
+ var Ie;
552
+ const Ae = typeof window < "u", ta = (t) => typeof t == "string", aa = () => {
550
553
  };
551
- Te && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
552
- function Ae(t) {
554
+ Ae && ((Ie = window == null ? void 0 : window.navigator) != null && Ie.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
555
+ function Ve(t) {
553
556
  return typeof t == "function" ? t() : r(t);
554
557
  }
555
- function aa(t) {
556
- return t;
557
- }
558
558
  function la(t) {
559
- return Pe() ? (Re(t), !0) : !1;
559
+ return t;
560
560
  }
561
561
  function na(t) {
562
+ return Pe() ? (Ue(t), !0) : !1;
563
+ }
564
+ function sa(t) {
562
565
  var n;
563
- const e = Ae(t);
566
+ const e = Ve(t);
564
567
  return (n = e == null ? void 0 : e.$el) != null ? n : e;
565
568
  }
566
- const sa = Te ? window : void 0;
569
+ const oa = Ae ? window : void 0;
567
570
  function K(...t) {
568
571
  let n, e, i, m;
569
- if (ea(t[0]) || Array.isArray(t[0]) ? ([e, i, m] = t, n = sa) : [n, e, i, m] = t, !n)
570
- return ta;
572
+ if (ta(t[0]) || Array.isArray(t[0]) ? ([e, i, m] = t, n = oa) : [n, e, i, m] = t, !n)
573
+ return aa;
571
574
  Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
572
575
  const l = [], z = () => {
573
- l.forEach((C) => C()), l.length = 0;
574
- }, E = (C, O, x, I) => (C.addEventListener(O, x, I), () => C.removeEventListener(O, x, I)), f = ee(() => [na(n), Ae(m)], ([C, O]) => {
575
- z(), C && l.push(...e.flatMap((x) => i.map((I) => E(C, x, I, O))));
576
+ l.forEach((O) => O()), l.length = 0;
577
+ }, E = (O, C, y, I) => (O.addEventListener(C, y, I), () => O.removeEventListener(C, y, I)), f = ee(() => [sa(n), Ve(m)], ([O, C]) => {
578
+ z(), O && l.push(...e.flatMap((y) => i.map((I) => E(O, y, I, C))));
576
579
  }, { immediate: !0, flush: "post" }), A = () => {
577
580
  f(), z();
578
581
  };
579
- return la(A), A;
582
+ return na(A), A;
580
583
  }
581
- const Ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ce = "__vueuse_ssr_handlers__";
582
- Ie[Ce] = Ie[Ce] || {};
583
- var Oe;
584
+ const Ce = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Oe = "__vueuse_ssr_handlers__";
585
+ Ce[Oe] = Ce[Oe] || {};
586
+ var $e;
584
587
  (function(t) {
585
588
  t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
586
- })(Oe || (Oe = {}));
587
- var oa = Object.defineProperty, $e = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Le = (t, n, e) => n in t ? oa(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, ua = (t, n) => {
589
+ })($e || ($e = {}));
590
+ var ra = Object.defineProperty, Le = Object.getOwnPropertySymbols, ia = Object.prototype.hasOwnProperty, ua = Object.prototype.propertyIsEnumerable, Me = (t, n, e) => n in t ? ra(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, ca = (t, n) => {
588
591
  for (var e in n || (n = {}))
589
- ra.call(n, e) && Le(t, e, n[e]);
590
- if ($e)
591
- for (var e of $e(n))
592
- ia.call(n, e) && Le(t, e, n[e]);
592
+ ia.call(n, e) && Me(t, e, n[e]);
593
+ if (Le)
594
+ for (var e of Le(n))
595
+ ua.call(n, e) && Me(t, e, n[e]);
593
596
  return t;
594
597
  };
595
- const ca = {
598
+ const da = {
596
599
  easeInSine: [0.12, 0, 0.39, 0],
597
600
  easeOutSine: [0.61, 1, 0.88, 1],
598
601
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -618,10 +621,10 @@ const ca = {
618
621
  easeOutBack: [0.34, 1.56, 0.64, 1],
619
622
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
620
623
  };
621
- ua({
622
- linear: aa
623
- }, ca);
624
- const da = {
624
+ ca({
625
+ linear: la
626
+ }, da);
627
+ const pa = {
625
628
  /**
626
629
  * @description preview link list.
627
630
  */
@@ -691,26 +694,26 @@ const da = {
691
694
  crossorigin: {
692
695
  type: ["anonymous", "use-credentials", ""]
693
696
  }
694
- }, pa = {
697
+ }, va = {
695
698
  close: () => !0,
696
699
  switch: (t) => xe.isNumber(t),
697
700
  rotate: (t) => xe.isNumber(t)
698
- }, va = ["src", "crossorigin"], _a = /* @__PURE__ */ $({
701
+ }, _a = ["src", "crossorigin"], fa = /* @__PURE__ */ $({
699
702
  name: "ElImageViewer",
700
703
  __name: "IkImageViewer",
701
- props: da,
702
- emits: pa,
704
+ props: pa,
705
+ emits: va,
703
706
  setup(t, { expose: n, emit: e }) {
704
707
  const i = (o) => Object.keys(o), m = {
705
708
  CONTAIN: {
706
709
  name: "contain",
707
- icon: ye(gt)
710
+ icon: ye(ht)
708
711
  },
709
712
  ORIGINAL: {
710
713
  name: "original",
711
- icon: ye(It)
714
+ icon: ye(Ct)
712
715
  }
713
- }, l = t, z = e, { t: E } = et(), f = tt("image-viewer"), { nextZIndex: A } = at(), C = T(), O = T([]), x = Ue(), I = T(!0), B = T(l.initialIndex), j = He(m.CONTAIN), y = T({
716
+ }, l = t, z = e, { t: E } = tt(), f = at("image-viewer"), { nextZIndex: A } = lt(), O = T(), C = T([]), y = He(), I = T(!0), B = T(l.initialIndex), j = je(m.CONTAIN), b = T({
714
717
  scale: 1,
715
718
  deg: 0,
716
719
  offsetX: 0,
@@ -728,12 +731,12 @@ const da = {
728
731
  f.e("next"),
729
732
  f.is("disabled", !l.infinite && Z.value)
730
733
  ]), re = w(() => {
731
- const { scale: o, deg: _, offsetX: g, offsetY: N, enableTransition: V } = y.value;
732
- let P = g / o, H = N / o;
734
+ const { scale: o, deg: _, offsetX: g, offsetY: N, enableTransition: V } = b.value;
735
+ let R = g / o, H = N / o;
733
736
  const X = _ * Math.PI / 180, ge = Math.cos(X), he = Math.sin(X);
734
- P = P * ge + H * he, H = H * ge - g / o * he;
737
+ R = R * ge + H * he, H = H * ge - g / o * he;
735
738
  const pe = {
736
- transform: `scale(${o}) rotate(${_}deg) translate(${P}px, ${H}px)`,
739
+ transform: `scale(${o}) rotate(${_}deg) translate(${R}px, ${H}px)`,
737
740
  transition: V ? "transform .3s" : ""
738
741
  };
739
742
  return j.value.name === m.CONTAIN.name && (pe.maxWidth = pe.maxHeight = "100%"), pe;
@@ -751,7 +754,7 @@ const da = {
751
754
  c();
752
755
  break;
753
756
  case D.left:
754
- b();
757
+ k();
755
758
  break;
756
759
  case D.up:
757
760
  M("zoomIn");
@@ -770,12 +773,12 @@ const da = {
770
773
  enableTransition: !1
771
774
  });
772
775
  });
773
- x.run(() => {
776
+ y.run(() => {
774
777
  K(document, "keydown", o), K(document, "wheel", _);
775
778
  });
776
779
  }
777
780
  function ue() {
778
- x.stop();
781
+ y.stop();
779
782
  }
780
783
  function ce() {
781
784
  I.value = !1;
@@ -784,22 +787,22 @@ const da = {
784
787
  I.value = !1, o.target.alt = E("el.image.error");
785
788
  }
786
789
  function W(o) {
787
- if (I.value || o.button !== 0 || !C.value)
790
+ if (I.value || o.button !== 0 || !O.value)
788
791
  return;
789
- y.value.enableTransition = !1;
790
- const { offsetX: _, offsetY: g } = y.value, N = o.pageX, V = o.pageY, P = q.throttle((X) => {
791
- y.value = {
792
- ...y.value,
792
+ b.value.enableTransition = !1;
793
+ const { offsetX: _, offsetY: g } = b.value, N = o.pageX, V = o.pageY, R = q.throttle((X) => {
794
+ b.value = {
795
+ ...b.value,
793
796
  offsetX: _ + X.pageX - N,
794
797
  offsetY: g + X.pageY - V
795
798
  };
796
- }), H = K(document, "mousemove", P);
799
+ }), H = K(document, "mousemove", R);
797
800
  K(document, "mouseup", () => {
798
801
  H();
799
802
  }), o.preventDefault();
800
803
  }
801
804
  function a() {
802
- y.value = {
805
+ b.value = {
803
806
  scale: 1,
804
807
  deg: 0,
805
808
  offsetX: 0,
@@ -810,14 +813,14 @@ const da = {
810
813
  function c() {
811
814
  if (I.value)
812
815
  return;
813
- const o = i(m), _ = Object.values(m), g = j.value.name, V = ((_ == null ? void 0 : _.findIndex((P) => P.name === g)) + 1) % o.length;
816
+ const o = i(m), _ = Object.values(m), g = j.value.name, V = ((_ == null ? void 0 : _.findIndex((R) => R.name === g)) + 1) % o.length;
814
817
  j.value = m[o[V]], a();
815
818
  }
816
819
  function u(o) {
817
820
  const _ = l.urlList.length;
818
821
  B.value = (o + _) % _;
819
822
  }
820
- function b() {
823
+ function k() {
821
824
  G.value && !l.infinite || u(B.value - 1);
822
825
  }
823
826
  function S() {
@@ -826,7 +829,7 @@ const da = {
826
829
  function M(o, _ = {}) {
827
830
  if (I.value)
828
831
  return;
829
- const { minScale: g, maxScale: N } = l, { zoomRate: V, rotateDeg: P, enableTransition: H } = {
832
+ const { minScale: g, maxScale: N } = l, { zoomRate: V, rotateDeg: R, enableTransition: H } = {
830
833
  zoomRate: l.zoomRate,
831
834
  rotateDeg: 90,
832
835
  enableTransition: !0,
@@ -834,41 +837,41 @@ const da = {
834
837
  };
835
838
  switch (o) {
836
839
  case "zoomOut":
837
- y.value.scale > g && (y.value.scale = Number.parseFloat(
838
- (y.value.scale / V).toFixed(3)
840
+ b.value.scale > g && (b.value.scale = Number.parseFloat(
841
+ (b.value.scale / V).toFixed(3)
839
842
  ));
840
843
  break;
841
844
  case "zoomIn":
842
- y.value.scale < N && (y.value.scale = Number.parseFloat(
843
- (y.value.scale * V).toFixed(3)
845
+ b.value.scale < N && (b.value.scale = Number.parseFloat(
846
+ (b.value.scale * V).toFixed(3)
844
847
  ));
845
848
  break;
846
849
  case "clockwise":
847
- y.value.deg += P, z("rotate", y.value.deg);
850
+ b.value.deg += R, z("rotate", b.value.deg);
848
851
  break;
849
852
  case "anticlockwise":
850
- y.value.deg -= P, z("rotate", y.value.deg);
853
+ b.value.deg -= R, z("rotate", b.value.deg);
851
854
  break;
852
855
  }
853
- y.value.enableTransition = H;
856
+ b.value.enableTransition = H;
854
857
  }
855
858
  return ee(ne, () => {
856
- je(() => {
857
- const o = O.value[0];
859
+ De(() => {
860
+ const o = C.value[0];
858
861
  o != null && o.complete || (I.value = !0);
859
862
  });
860
863
  }), ee(B, (o) => {
861
864
  a(), z("switch", o);
862
- }), De(() => {
865
+ }), Fe(() => {
863
866
  var o, _;
864
- ie(), (_ = (o = C.value) == null ? void 0 : o.focus) == null || _.call(o);
867
+ ie(), (_ = (o = O.value) == null ? void 0 : o.focus) == null || _.call(o);
865
868
  }), n({
866
869
  /**
867
870
  * @description manually switch image
868
871
  */
869
872
  setActiveItem: u
870
- }), (o, _) => (d(), Q(Fe, { to: "body" }, [
871
- p(We, {
873
+ }), (o, _) => (d(), Q(We, { to: "body" }, [
874
+ p(Xe, {
872
875
  name: "viewer-fade",
873
876
  appear: ""
874
877
  }, {
@@ -877,33 +880,33 @@ const da = {
877
880
  "div",
878
881
  {
879
882
  ref_key: "wrapper",
880
- ref: C,
883
+ ref: O,
881
884
  tabindex: -1,
882
- class: k(r(f).e("wrapper")),
885
+ class: x(r(f).e("wrapper")),
883
886
  style: U({ zIndex: ae.value })
884
887
  },
885
888
  [
886
889
  s(
887
890
  "div",
888
891
  {
889
- class: k(r(f).e("mask")),
890
- onClick: _[0] || (_[0] = Xe((g) => o.hideOnClickModal && F(), ["self"]))
892
+ class: x(r(f).e("mask")),
893
+ onClick: _[0] || (_[0] = Ye((g) => o.hideOnClickModal && F(), ["self"]))
891
894
  },
892
895
  null,
893
896
  2
894
897
  /* CLASS */
895
898
  ),
896
- R(" CLOSE "),
899
+ P(" CLOSE "),
897
900
  s(
898
901
  "span",
899
902
  {
900
- class: k([r(f).e("btn"), r(f).e("close")]),
903
+ class: x([r(f).e("btn"), r(f).e("close")]),
901
904
  onClick: F
902
905
  },
903
906
  [
904
907
  p(r(L), null, {
905
908
  default: h(() => [
906
- p(r(Ee))
909
+ p(r(Ne))
907
910
  ]),
908
911
  _: 1
909
912
  /* STABLE */
@@ -912,21 +915,21 @@ const da = {
912
915
  2
913
916
  /* CLASS */
914
917
  ),
915
- R(" ARROW "),
916
- le.value ? R("v-if", !0) : (d(), v(
918
+ P(" ARROW "),
919
+ le.value ? P("v-if", !0) : (d(), v(
917
920
  te,
918
921
  { key: 0 },
919
922
  [
920
923
  s(
921
924
  "span",
922
925
  {
923
- class: k(se.value),
924
- onClick: b
926
+ class: x(se.value),
927
+ onClick: k
925
928
  },
926
929
  [
927
930
  p(r(L), null, {
928
931
  default: h(() => [
929
- p(r(it))
932
+ p(r(ut))
930
933
  ]),
931
934
  _: 1
932
935
  /* STABLE */
@@ -938,13 +941,13 @@ const da = {
938
941
  s(
939
942
  "span",
940
943
  {
941
- class: k(oe.value),
944
+ class: x(oe.value),
942
945
  onClick: S
943
946
  },
944
947
  [
945
948
  p(r(L), null, {
946
949
  default: h(() => [
947
- p(r(ct))
950
+ p(r(dt))
948
951
  ]),
949
952
  _: 1
950
953
  /* STABLE */
@@ -957,24 +960,24 @@ const da = {
957
960
  64
958
961
  /* STABLE_FRAGMENT */
959
962
  )),
960
- R(" ACTIONS "),
963
+ P(" ACTIONS "),
961
964
  s(
962
965
  "div",
963
966
  {
964
- class: k([r(f).e("btn"), r(f).e("actions")])
967
+ class: x([r(f).e("btn"), r(f).e("actions")])
965
968
  },
966
969
  [
967
970
  s(
968
971
  "div",
969
972
  {
970
- class: k(r(f).e("actions__inner"))
973
+ class: x(r(f).e("actions__inner"))
971
974
  },
972
975
  [
973
976
  p(r(L), {
974
977
  onClick: _[1] || (_[1] = (g) => M("zoomOut"))
975
978
  }, {
976
979
  default: h(() => [
977
- p(r($t))
980
+ p(r(Lt))
978
981
  ]),
979
982
  _: 1
980
983
  /* STABLE */
@@ -983,7 +986,7 @@ const da = {
983
986
  onClick: _[2] || (_[2] = (g) => M("zoomIn"))
984
987
  }, {
985
988
  default: h(() => [
986
- p(r(Ne))
989
+ p(r(Te))
987
990
  ]),
988
991
  _: 1
989
992
  /* STABLE */
@@ -991,7 +994,7 @@ const da = {
991
994
  s(
992
995
  "i",
993
996
  {
994
- class: k(r(f).e("actions__divider"))
997
+ class: x(r(f).e("actions__divider"))
995
998
  },
996
999
  null,
997
1000
  2
@@ -999,7 +1002,7 @@ const da = {
999
1002
  ),
1000
1003
  p(r(L), { onClick: c }, {
1001
1004
  default: h(() => [
1002
- (d(), Q(Ye(j.value.icon)))
1005
+ (d(), Q(Qe(j.value.icon)))
1003
1006
  ]),
1004
1007
  _: 1
1005
1008
  /* STABLE */
@@ -1007,7 +1010,7 @@ const da = {
1007
1010
  s(
1008
1011
  "i",
1009
1012
  {
1010
- class: k(r(f).e("actions__divider"))
1013
+ class: x(r(f).e("actions__divider"))
1011
1014
  },
1012
1015
  null,
1013
1016
  2
@@ -1017,7 +1020,7 @@ const da = {
1017
1020
  onClick: _[3] || (_[3] = (g) => M("anticlockwise"))
1018
1021
  }, {
1019
1022
  default: h(() => [
1020
- p(r(wt))
1023
+ p(r(yt))
1021
1024
  ]),
1022
1025
  _: 1
1023
1026
  /* STABLE */
@@ -1026,7 +1029,7 @@ const da = {
1026
1029
  onClick: _[4] || (_[4] = (g) => M("clockwise"))
1027
1030
  }, {
1028
1031
  default: h(() => [
1029
- p(r(bt))
1032
+ p(r(kt))
1030
1033
  ]),
1031
1034
  _: 1
1032
1035
  /* STABLE */
@@ -1039,28 +1042,28 @@ const da = {
1039
1042
  2
1040
1043
  /* CLASS */
1041
1044
  ),
1042
- R(" CANVAS "),
1045
+ P(" CANVAS "),
1043
1046
  s(
1044
1047
  "div",
1045
1048
  {
1046
- class: k(r(f).e("canvas"))
1049
+ class: x(r(f).e("canvas"))
1047
1050
  },
1048
1051
  [
1049
1052
  (d(!0), v(
1050
1053
  te,
1051
1054
  null,
1052
- Be(o.urlList, (g, N) => ve((d(), v("img", {
1055
+ Se(o.urlList, (g, N) => ve((d(), v("img", {
1053
1056
  ref_for: !0,
1054
- ref: (V) => O.value[N] = V,
1057
+ ref: (V) => C.value[N] = V,
1055
1058
  key: g,
1056
1059
  src: g,
1057
1060
  style: U(re.value),
1058
- class: k(r(f).e("img")),
1061
+ class: x(r(f).e("img")),
1059
1062
  crossorigin: o.crossorigin,
1060
1063
  onLoad: ce,
1061
1064
  onError: de,
1062
1065
  onMousedown: W
1063
- }, null, 46, va)), [
1066
+ }, null, 46, _a)), [
1064
1067
  [_e, N === B.value]
1065
1068
  ])),
1066
1069
  128
@@ -1070,7 +1073,7 @@ const da = {
1070
1073
  2
1071
1074
  /* CLASS */
1072
1075
  ),
1073
- Se(o.$slots, "default")
1076
+ Ee(o.$slots, "default")
1074
1077
  ],
1075
1078
  6
1076
1079
  /* CLASS, STYLE */
@@ -1081,25 +1084,25 @@ const da = {
1081
1084
  })
1082
1085
  ]));
1083
1086
  }
1084
- }), fa = fe(_a), Ve = (t) => (Je("data-v-633498bc"), t = t(), qe(), t), ma = {
1087
+ }), ma = fe(fa), Re = (t) => (qe("data-v-633498bc"), t = t(), et(), t), ga = {
1085
1088
  key: 1,
1086
1089
  class: "upload-btn"
1087
- }, ga = { class: "tip" }, ha = { class: "loading-statu" }, wa = { class: "operate-btn" }, ya = { key: 0 }, ba = {
1090
+ }, ha = { class: "tip" }, wa = { class: "loading-statu" }, ya = { class: "operate-btn" }, ba = { key: 0 }, ka = {
1088
1091
  class: "el-upload-list el-upload-list--picture-card",
1089
1092
  style: { float: "left" }
1090
- }, ka = ["onClick"], xa = /* @__PURE__ */ Ve(() => /* @__PURE__ */ s(
1093
+ }, xa = ["onClick"], za = /* @__PURE__ */ Re(() => /* @__PURE__ */ s(
1091
1094
  "span",
1092
1095
  { class: "error" },
1093
1096
  "上传错误",
1094
1097
  -1
1095
1098
  /* HOISTED */
1096
- )), za = /* @__PURE__ */ Ve(() => /* @__PURE__ */ s(
1099
+ )), Ia = /* @__PURE__ */ Re(() => /* @__PURE__ */ s(
1097
1100
  "p",
1098
1101
  null,
1099
1102
  "点击重新上传",
1100
1103
  -1
1101
1104
  /* HOISTED */
1102
- )), Ia = ["src"], Ca = { class: "demo-image__preview" }, Oa = /* @__PURE__ */ $({
1105
+ )), Ca = ["src"], Oa = { class: "demo-image__preview" }, $a = /* @__PURE__ */ $({
1103
1106
  __name: "index",
1104
1107
  props: /* @__PURE__ */ be({
1105
1108
  // 显示的文字
@@ -1194,16 +1197,16 @@ const da = {
1194
1197
  }),
1195
1198
  emits: /* @__PURE__ */ be(["delete", "success"], ["update:modelValue"]),
1196
1199
  setup(t, { emit: n }) {
1197
- Qe((a) => ({
1200
+ Ge((a) => ({
1198
1201
  "3b3b8751": f.value,
1199
1202
  "126668fc": A.value
1200
1203
  }));
1201
- const e = t, i = Ge(t, "modelValue"), m = (a) => Array.isArray(a) ? a.map((c) => {
1204
+ const e = t, i = Ze(t, "modelValue"), m = (a) => Array.isArray(a) ? a.map((c) => {
1202
1205
  var S, M;
1203
- const u = ((S = c.url) == null ? void 0 : S.startsWith("http")) || ((M = c.url) == null ? void 0 : M.startsWith("blob")), b = (c == null ? void 0 : c.url) || c;
1206
+ const u = ((S = c.url) == null ? void 0 : S.startsWith("http")) || ((M = c.url) == null ? void 0 : M.startsWith("blob")), k = (c == null ? void 0 : c.url) || c;
1204
1207
  return {
1205
- ...c.url ? c : { url: b },
1206
- __url: u ? b : `${z.value}${b}`
1208
+ ...c.url ? c : { url: k },
1209
+ __url: u ? k : `${z.value}${k}`
1207
1210
  };
1208
1211
  }) : a ? [
1209
1212
  {
@@ -1214,42 +1217,42 @@ const da = {
1214
1217
  ee(
1215
1218
  () => i.value,
1216
1219
  (a) => {
1217
- !a || !a.length ? x.value = [] : x.value = q.cloneDeep(m(a));
1220
+ !a || !a.length ? y.value = [] : y.value = q.cloneDeep(m(a));
1218
1221
  },
1219
1222
  { deep: !0 }
1220
1223
  );
1221
- const l = n, { cLoadUrl: z, cUploadUrl: E } = Dt(e), f = w(() => `${e.width}px`), A = w(() => `${e.height}px`), C = w(() => e.size), O = T(null), x = T(m(i.value)), I = T([]), B = T(!1), j = T(0), y = w(
1224
+ const l = n, { cLoadUrl: z, cUploadUrl: E } = Ft(e), f = w(() => `${e.width}px`), A = w(() => `${e.height}px`), O = w(() => e.size), C = T(null), y = T(m(i.value)), I = T([]), B = T(!1), j = T(0), b = w(
1222
1225
  () => e.tipText || `最多可上传${e.limit}张图片, 每张图片不能超过${e.size}MB`
1223
1226
  ), ae = (a, c) => {
1224
1227
  }, le = (a) => {
1225
1228
  if (!a.type.includes("image")) {
1226
1229
  ke.warning("只允许上传图片!");
1227
1230
  try {
1228
- x.value.pop();
1231
+ y.value.pop();
1229
1232
  } catch {
1230
1233
  }
1231
1234
  return !1;
1232
1235
  }
1233
- if (!(a.size / 1024 / 1024 < C.value)) {
1236
+ if (!(a.size / 1024 / 1024 < O.value)) {
1234
1237
  ke.warning("图片大小超出限制!");
1235
1238
  try {
1236
- x.value.pop();
1239
+ y.value.pop();
1237
1240
  } catch {
1238
1241
  }
1239
1242
  return !1;
1240
1243
  }
1241
1244
  return !0;
1242
1245
  }, G = () => !1, Z = (a, c) => {
1243
- var u, b;
1244
- a.status = "ready", c !== void 0 && I.value.splice(c, 1), (u = O.value) == null || u.handleStart(a.raw), (b = O.value) == null || b.submit();
1246
+ var u, k;
1247
+ a.status = "ready", c !== void 0 && I.value.splice(c, 1), (u = C.value) == null || u.handleStart(a.raw), (k = C.value) == null || k.submit();
1245
1248
  }, ne = (a, c) => {
1246
1249
  var M, o;
1247
- const u = i.value.length, b = e.limit - u;
1250
+ const u = i.value.length, k = e.limit - u;
1248
1251
  let S = 0;
1249
- for (; S < b && S < (a == null ? void 0 : a.length); )
1250
- (M = O.value) == null || M.handleStart(a == null ? void 0 : a[S]), (o = O.value) == null || o.submit(), S++;
1252
+ for (; S < k && S < (a == null ? void 0 : a.length); )
1253
+ (M = C.value) == null || M.handleStart(a == null ? void 0 : a[S]), (o = C.value) == null || o.submit(), S++;
1251
1254
  }, se = (a, c, u) => {
1252
- l("success", a, c, u), i.value = x.value;
1255
+ l("success", a, c, u), i.value = y.value;
1253
1256
  }, oe = (a, c, u) => {
1254
1257
  I.value.push({
1255
1258
  ...c,
@@ -1259,33 +1262,33 @@ const da = {
1259
1262
  var c;
1260
1263
  B.value = !0, j.value = Array.isArray(i == null ? void 0 : i.value) ? (c = i == null ? void 0 : i.value) == null ? void 0 : c.findIndex((u) => u.url === a.url) : 0;
1261
1264
  }, F = (a) => {
1262
- ot.downloadFile(a.__url || a.url, a.name || a.url);
1265
+ rt.downloadFile(a.__url || a.url, a.name || a.url);
1263
1266
  }, ie = (a) => {
1264
1267
  var c;
1265
- (c = O.value) == null || c.abort(a);
1268
+ (c = C.value) == null || c.abort(a);
1266
1269
  }, ue = (a) => {
1267
1270
  var c;
1268
- a.status !== "success" && ie(a), i.value = (c = x.value) == null ? void 0 : c.filter((u) => u.uid !== a.uid), l("delete", a);
1271
+ a.status !== "success" && ie(a), i.value = (c = y.value) == null ? void 0 : c.filter((u) => u.uid !== a.uid), l("delete", a);
1269
1272
  }, ce = (a, c) => {
1270
1273
  I.value.splice(c, 1);
1271
- }, de = w(() => x.value.length + I.value.length < e.limit), W = w(
1274
+ }, de = w(() => y.value.length + I.value.length < e.limit), W = w(
1272
1275
  () => i.value.length >= e.limit || e.disabled
1273
1276
  );
1274
1277
  return (a, c) => (d(), v(
1275
1278
  te,
1276
1279
  null,
1277
1280
  [
1278
- p(r(lt), Ze({
1281
+ p(r(nt), Ke({
1279
1282
  class: ["ik-image-upload", { preview: t.preview, "hide-upload": !de.value, disabled: W.value }],
1280
1283
  ref_key: "refUpload",
1281
- ref: O,
1284
+ ref: C,
1282
1285
  "list-type": "picture-card",
1283
1286
  accept: t.accept,
1284
1287
  action: r(E),
1285
1288
  headers: t.headers,
1286
1289
  data: t.data,
1287
- "file-list": x.value,
1288
- "onUpdate:fileList": c[0] || (c[0] = (u) => x.value = u),
1290
+ "file-list": y.value,
1291
+ "onUpdate:fileList": c[0] || (c[0] = (u) => y.value = u),
1289
1292
  multiple: t.multiple,
1290
1293
  limit: t.limit,
1291
1294
  "on-change": ae,
@@ -1295,12 +1298,12 @@ const da = {
1295
1298
  "on-success": se,
1296
1299
  "on-error": oe,
1297
1300
  drag: ""
1298
- }, a.$attrs, { disabled: W.value }), Ke({
1301
+ }, a.$attrs, { disabled: W.value }), Je({
1299
1302
  trigger: h(() => [
1300
- a.$slots.trigger ? Se(a.$slots, "trigger", { key: 0 }, void 0, !0) : (d(), v("div", ma, [
1303
+ a.$slots.trigger ? Ee(a.$slots, "trigger", { key: 0 }, void 0, !0) : (d(), v("div", ga, [
1301
1304
  p(r(L), { size: 20 }, {
1302
1305
  default: h(() => [
1303
- p(r(qt), {
1306
+ p(r(ea), {
1304
1307
  name: "iksvg_guanbibeifen",
1305
1308
  disabled: W.value
1306
1309
  }, null, 8, ["disabled"])
@@ -1321,16 +1324,16 @@ const da = {
1321
1324
  s(
1322
1325
  "div",
1323
1326
  {
1324
- class: k(["load-list", { loading: u.status === "uploading" }]),
1327
+ class: x(["load-list", { loading: u.status === "uploading" }]),
1325
1328
  "element-loading-background": "var(--ik-upload-bg)"
1326
1329
  },
1327
1330
  [
1328
1331
  ve(s(
1329
1332
  "div",
1330
- ha,
1333
+ wa,
1331
1334
  [
1332
- p(Ht),
1333
- Me(
1335
+ p(jt),
1336
+ Be(
1334
1337
  " 上传" + J(u.percentage) + "% ",
1335
1338
  1
1336
1339
  /* TEXT */
@@ -1341,21 +1344,21 @@ const da = {
1341
1344
  ), [
1342
1345
  [_e, u.status === "uploading"]
1343
1346
  ]),
1344
- R(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
1345
- p(r(nt), {
1347
+ P(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
1348
+ p(r(st), {
1346
1349
  style: { width: "100%", height: "100%" },
1347
1350
  src: u.__url || u.url,
1348
1351
  "zoom-rate": 1.2,
1349
1352
  "initial-index": 0,
1350
1353
  fit: "contain"
1351
1354
  }, null, 8, ["src"]),
1352
- s("span", wa, [
1355
+ s("span", ya, [
1353
1356
  s("span", null, [
1354
1357
  p(r(L), {
1355
- onClick: (b) => re(u)
1358
+ onClick: (k) => re(u)
1356
1359
  }, {
1357
1360
  default: h(() => [
1358
- p(r(Ne))
1361
+ p(r(Te))
1359
1362
  ]),
1360
1363
  _: 2
1361
1364
  /* DYNAMIC */
@@ -1363,22 +1366,22 @@ const da = {
1363
1366
  ]),
1364
1367
  s("span", null, [
1365
1368
  p(r(L), {
1366
- onClick: (b) => F(u)
1369
+ onClick: (k) => F(u)
1367
1370
  }, {
1368
1371
  default: h(() => [
1369
- p(r(ft))
1372
+ p(r(mt))
1370
1373
  ]),
1371
1374
  _: 2
1372
1375
  /* DYNAMIC */
1373
1376
  }, 1032, ["onClick"])
1374
1377
  ]),
1375
- t.preview ? R("v-if", !0) : (d(), v("span", ya, [
1378
+ t.preview ? P("v-if", !0) : (d(), v("span", ba, [
1376
1379
  p(r(L), {
1377
1380
  type: "warning",
1378
- onClick: (b) => ue(u)
1381
+ onClick: (k) => ue(u)
1379
1382
  }, {
1380
1383
  default: h(() => [
1381
- p(r(vt))
1384
+ p(r(_t))
1382
1385
  ]),
1383
1386
  _: 2
1384
1387
  /* DYNAMIC */
@@ -1391,20 +1394,20 @@ const da = {
1391
1394
  )
1392
1395
  ]),
1393
1396
  default: h(() => [
1394
- s("ul", ba, [
1397
+ s("ul", ka, [
1395
1398
  (d(!0), v(
1396
1399
  te,
1397
1400
  null,
1398
- Be(I.value, (u, b) => (d(), v("li", {
1401
+ Se(I.value, (u, k) => (d(), v("li", {
1399
1402
  class: "el-upload-list__item",
1400
1403
  key: u.uid
1401
1404
  }, [
1402
1405
  s("span", null, [
1403
1406
  p(r(L), {
1404
- onClick: (S) => ce(u, b)
1407
+ onClick: (S) => ce(u, k)
1405
1408
  }, {
1406
1409
  default: h(() => [
1407
- p(r(Ee))
1410
+ p(r(Ne))
1408
1411
  ]),
1409
1412
  _: 2
1410
1413
  /* DYNAMIC */
@@ -1413,7 +1416,7 @@ const da = {
1413
1416
  s(
1414
1417
  "div",
1415
1418
  {
1416
- class: k(["load-list", {
1419
+ class: x(["load-list", {
1417
1420
  loading: u.status === "uploading",
1418
1421
  fail: u.status === "fail"
1419
1422
  }]),
@@ -1422,25 +1425,25 @@ const da = {
1422
1425
  [
1423
1426
  ve(s("div", {
1424
1427
  class: "loading-statu",
1425
- onClick: (S) => Z(u, b)
1428
+ onClick: (S) => Z(u, k)
1426
1429
  }, [
1427
1430
  p(r(L), { size: 24 }, {
1428
1431
  default: h(() => [
1429
- p(r(xt))
1432
+ p(r(zt))
1430
1433
  ]),
1431
1434
  _: 1
1432
1435
  /* STABLE */
1433
1436
  }),
1434
- xa,
1435
- za
1436
- ], 8, ka), [
1437
+ za,
1438
+ Ia
1439
+ ], 8, xa), [
1437
1440
  [_e, u.status === "fail"]
1438
1441
  ]),
1439
1442
  s("img", {
1440
1443
  src: u.__url,
1441
1444
  alt: "",
1442
1445
  style: U({ "object-fit": t.fit })
1443
- }, null, 12, Ia)
1446
+ }, null, 12, Ca)
1444
1447
  ],
1445
1448
  2
1446
1449
  /* CLASS */
@@ -1459,8 +1462,8 @@ const da = {
1459
1462
  fn: h(() => [
1460
1463
  s(
1461
1464
  "span",
1462
- ga,
1463
- J(y.value),
1465
+ ha,
1466
+ J(b.value),
1464
1467
  1
1465
1468
  /* TEXT */
1466
1469
  )
@@ -1468,18 +1471,18 @@ const da = {
1468
1471
  key: "0"
1469
1472
  } : void 0
1470
1473
  ]), 1040, ["class", "accept", "action", "headers", "data", "file-list", "multiple", "limit", "disabled"]),
1471
- R(" 文件预览 "),
1472
- s("div", Ca, [
1473
- B.value ? (d(), Q(r(fa), {
1474
+ P(" 文件预览 "),
1475
+ s("div", Oa, [
1476
+ B.value ? (d(), Q(r(ma), {
1474
1477
  key: 0,
1475
1478
  "lock-scroll": "",
1476
1479
  "hide-on-click-modal": "",
1477
1480
  onClose: c[1] || (c[1] = () => {
1478
1481
  B.value = !1;
1479
1482
  }),
1480
- "url-list": m(x.value).map((u) => u.__url),
1483
+ "url-list": m(y.value).map((u) => u.__url),
1481
1484
  "initial-index": j.value
1482
- }, null, 8, ["url-list", "initial-index"])) : R("v-if", !0)
1485
+ }, null, 8, ["url-list", "initial-index"])) : P("v-if", !0)
1483
1486
  ])
1484
1487
  ],
1485
1488
  64
@@ -1487,8 +1490,8 @@ const da = {
1487
1490
  ));
1488
1491
  }
1489
1492
  });
1490
- const $a = /* @__PURE__ */ me(Oa, [["__scopeId", "data-v-633498bc"]]), Sa = fe($a);
1493
+ const La = /* @__PURE__ */ me($a, [["__scopeId", "data-v-633498bc"]]), Ea = fe(La);
1491
1494
  export {
1492
- Sa as IkUploadImage,
1493
- Sa as default
1495
+ Ea as IkUploadImage,
1496
+ Ea as default
1494
1497
  };