iking-web-ui-pro 0.2.28 → 0.2.30

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 (37) hide show
  1. package/dist/IKPreviewFile/ik.index.es.js +927 -872
  2. package/dist/IKPreviewFile/ik.index.umd.js +36 -36
  3. package/dist/IKSearch/ik.index.es.js +727 -665
  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 +580 -527
  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 +674 -619
  10. package/dist/IkApprovalProcessDetail/ik.index.umd.js +38 -38
  11. package/dist/IkCalendar/ik.index.es.js +1815 -1753
  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 +1031 -976
  15. package/dist/IkDescription/ik.index.umd.js +36 -36
  16. package/dist/IkDetailPreviewFiles/ik.index.es.js +970 -915
  17. package/dist/IkDetailPreviewFiles/ik.index.umd.js +42 -42
  18. package/dist/IkPageFull/ik.index.es.js +1038 -976
  19. package/dist/IkPageFull/ik.index.umd.js +3 -3
  20. package/dist/IkPageFull/style.css +1 -1
  21. package/dist/IkPickerUser/ik.index.es.js +741 -679
  22. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  23. package/dist/IkPickerUser/style.css +1 -1
  24. package/dist/IkPlayer/ik.index.es.js +54 -1
  25. package/dist/IkPlayer/ik.index.umd.js +1 -1
  26. package/dist/IkPreviewFileDialog/ik.index.es.js +54 -1
  27. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  28. package/dist/IkUploadFile/ik.index.es.js +1640 -1579
  29. package/dist/IkUploadFile/ik.index.umd.js +58 -58
  30. package/dist/IkUploadFile/style.css +1 -1
  31. package/dist/IkUploadImage/ik.index.es.js +143 -90
  32. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  33. package/dist/index.es.js +15155 -15092
  34. package/dist/index.umd.js +106 -106
  35. package/dist/src/utils/use-provider.d.ts +1 -0
  36. package/dist/style.css +1 -1
  37. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as z, openBlock as u, createElementBlock as r, createElementVNode as n, inject as S, computed as h, resolveComponent as W, normalizeClass as w, normalizeStyle as b, createCommentVNode as V, createBlock as H, withCtx as g, createTextVNode as J, toDisplayString as U, mergeModels as F, useCssVars as ce, useModel as de, watch as pe, ref as M, Fragment as O, createVNode as v, unref as p, mergeProps as ve, createSlots as _e, renderSlot as he, withDirectives as P, vShow as R, renderList as ge, pushScopeId as fe, popScopeId as me } from "vue";
2
- import { ElUpload as ye, ElIcon as x, ElImage as we, ElImageViewer as ke, ElMessage as G } from "element-plus";
3
- import { ikColor as be, _ as ze, ikFile as $e } from "iking-utils-pro";
1
+ import { defineComponent as z, openBlock as u, createElementBlock as r, createElementVNode as n, inject as S, computed as h, resolveComponent as P, normalizeClass as w, normalizeStyle as x, createCommentVNode as V, createBlock as D, withCtx as f, createTextVNode as J, toDisplayString as U, mergeModels as A, useCssVars as ce, useModel as de, watch as pe, ref as M, Fragment as W, createVNode as v, unref as p, mergeProps as ve, createSlots as _e, renderSlot as he, withDirectives as F, vShow as R, renderList as fe, pushScopeId as me, popScopeId as ge } from "vue";
2
+ import { ElUpload as ye, ElIcon as $, ElImage as we, ElImageViewer as ke, ElMessage as G } from "element-plus";
3
+ import { ikColor as be, _ as xe, ikFile as ze } from "iking-utils-pro";
4
4
  const X = (l, c) => {
5
5
  if (l.install = (e) => {
6
6
  for (const i of [l, ...Object.values(c ?? {})])
@@ -11,7 +11,7 @@ const X = (l, c) => {
11
11
  return l;
12
12
  };
13
13
  /*! Element Plus Icons Vue v2.3.1 */
14
- var xe = /* @__PURE__ */ z({
14
+ var $e = /* @__PURE__ */ z({
15
15
  name: "Close",
16
16
  __name: "close",
17
17
  setup(l) {
@@ -25,7 +25,7 @@ var xe = /* @__PURE__ */ z({
25
25
  })
26
26
  ]));
27
27
  }
28
- }), Ce = xe, Be = /* @__PURE__ */ z({
28
+ }), Ce = $e, Be = /* @__PURE__ */ z({
29
29
  name: "Delete",
30
30
  __name: "delete",
31
31
  setup(l) {
@@ -82,12 +82,12 @@ var xe = /* @__PURE__ */ z({
82
82
  ]));
83
83
  }
84
84
  }), je = Ue;
85
- const N = (l, c) => {
85
+ const H = (l, c) => {
86
86
  const e = l.__vccOpts || l;
87
87
  for (const [i, _] of c)
88
88
  e[i] = _;
89
89
  return e;
90
- }, Ee = {}, De = {
90
+ }, Ee = {}, Te = {
91
91
  t: "1686214149488",
92
92
  class: "icon",
93
93
  viewBox: "0 0 1024 1024",
@@ -96,7 +96,7 @@ const N = (l, c) => {
96
96
  "p-id": "8490",
97
97
  width: "200",
98
98
  height: "200"
99
- }, He = /* @__PURE__ */ n(
99
+ }, De = /* @__PURE__ */ n(
100
100
  "path",
101
101
  {
102
102
  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",
@@ -105,7 +105,7 @@ const N = (l, c) => {
105
105
  null,
106
106
  -1
107
107
  /* HOISTED */
108
- ), Ne = /* @__PURE__ */ n(
108
+ ), He = /* @__PURE__ */ n(
109
109
  "path",
110
110
  {
111
111
  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",
@@ -114,7 +114,7 @@ const N = (l, c) => {
114
114
  null,
115
115
  -1
116
116
  /* HOISTED */
117
- ), Te = /* @__PURE__ */ n(
117
+ ), Ne = /* @__PURE__ */ n(
118
118
  "path",
119
119
  {
120
120
  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",
@@ -123,7 +123,7 @@ const N = (l, c) => {
123
123
  null,
124
124
  -1
125
125
  /* HOISTED */
126
- ), Ae = /* @__PURE__ */ n(
126
+ ), Oe = /* @__PURE__ */ n(
127
127
  "path",
128
128
  {
129
129
  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",
@@ -132,7 +132,7 @@ const N = (l, c) => {
132
132
  null,
133
133
  -1
134
134
  /* HOISTED */
135
- ), We = /* @__PURE__ */ n(
135
+ ), Pe = /* @__PURE__ */ n(
136
136
  "path",
137
137
  {
138
138
  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",
@@ -141,7 +141,7 @@ const N = (l, c) => {
141
141
  null,
142
142
  -1
143
143
  /* HOISTED */
144
- ), Fe = /* @__PURE__ */ n(
144
+ ), Ae = /* @__PURE__ */ n(
145
145
  "path",
146
146
  {
147
147
  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",
@@ -150,7 +150,7 @@ const N = (l, c) => {
150
150
  null,
151
151
  -1
152
152
  /* HOISTED */
153
- ), Oe = /* @__PURE__ */ n(
153
+ ), We = /* @__PURE__ */ n(
154
154
  "path",
155
155
  {
156
156
  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",
@@ -159,7 +159,7 @@ const N = (l, c) => {
159
159
  null,
160
160
  -1
161
161
  /* HOISTED */
162
- ), Pe = /* @__PURE__ */ n(
162
+ ), Fe = /* @__PURE__ */ n(
163
163
  "path",
164
164
  {
165
165
  d: "M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z",
@@ -169,26 +169,79 @@ const N = (l, c) => {
169
169
  -1
170
170
  /* HOISTED */
171
171
  ), Re = [
172
+ De,
172
173
  He,
173
174
  Ne,
174
- Te,
175
+ Oe,
176
+ Pe,
175
177
  Ae,
176
178
  We,
177
- Fe,
178
- Oe,
179
- Pe
179
+ Fe
180
180
  ];
181
181
  function Ge(l, c) {
182
- return u(), r("svg", De, Re);
182
+ return u(), r("svg", Te, Re);
183
183
  }
184
- const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
185
- const c = S("loadUrl"), e = h(() => l.loadUrl || l.fileUrl || (c == null ? void 0 : c.value)), i = S("uploadUrl"), _ = h(() => l.action || l.uploadUrl || (i == null ? void 0 : i.value)), o = S("token"), m = h(() => l.token || (o == null ? void 0 : o.value)), k = S("onlyofficeConfig"), C = h(() => l.onlyofficeConfig || (k == null ? void 0 : k.value)), B = S("userInfo"), j = h(() => l.userInfo || (B == null ? void 0 : B.value));
184
+ const Je = /* @__PURE__ */ H(Ee, [["render", Ge]]), Xe = (l) => {
185
+ const c = S("loadUrl"), e = h(() => l.loadUrl || l.fileUrl || (c == null ? void 0 : c.value)), i = S("uploadUrl"), _ = h(() => l.action || l.uploadUrl || (i == null ? void 0 : i.value)), o = S("token"), g = h(() => l.token || (o == null ? void 0 : o.value)), k = S("onlyofficeConfig"), C = h(() => l.onlyofficeConfig || (k == null ? void 0 : k.value)), B = S("userInfo"), j = h(() => l.userInfo || (B == null ? void 0 : B.value));
186
186
  return {
187
187
  cLoadUrl: e,
188
188
  cUploadUrl: _,
189
- cToken: m,
189
+ cToken: g,
190
190
  cOnlyofficeConfig: C,
191
- cUserInfo: j
191
+ cUserInfo: j,
192
+ cOnlyofficePreviewType: [
193
+ "csv",
194
+ "djvu",
195
+ "doc",
196
+ "docm",
197
+ "docx",
198
+ "docxf",
199
+ "dot",
200
+ "dotm",
201
+ "dotx",
202
+ "epub",
203
+ "fb2",
204
+ "fodp",
205
+ "fods",
206
+ "fodt",
207
+ "htm",
208
+ "html",
209
+ "mht",
210
+ "odp",
211
+ "ods",
212
+ "odt",
213
+ "oform",
214
+ "otp",
215
+ "ots",
216
+ "ott",
217
+ "oxps",
218
+ "pdf",
219
+ "pot",
220
+ "potm",
221
+ "potx",
222
+ "pps",
223
+ "ppsm",
224
+ "ppsx",
225
+ "ppt",
226
+ "pptm",
227
+ "pptx",
228
+ "rtf",
229
+ "txt",
230
+ "xls",
231
+ "xlsb",
232
+ "xlsm",
233
+ "xlsx",
234
+ "xlt",
235
+ "xltm",
236
+ "xltx",
237
+ "xml",
238
+ "xps",
239
+ "png",
240
+ "jpeg",
241
+ "jpg",
242
+ "video",
243
+ "mp4"
244
+ ]
192
245
  };
193
246
  }, Ye = Xe, Ze = {
194
247
  key: 0,
@@ -246,7 +299,7 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
246
299
  break;
247
300
  }
248
301
  e.value.rotate && o.push(`rotate(${e.value.rotate % 360}deg)`);
249
- const m = {
302
+ const g = {
250
303
  pointerEvents: e.value.disabled ? "none" : "auto",
251
304
  ...e.value.color && { color: e.value.color },
252
305
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
@@ -257,10 +310,10 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
257
310
  "--ik-color-icon-light": e.value.colorLight || be.setOpacity(e.value.color, e.value.opacity)
258
311
  } : {}
259
312
  };
260
- return e.value.width && (m.width = m.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), m;
313
+ return e.value.width && (g.width = g.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), g;
261
314
  });
262
- return (o, m) => {
263
- const k = W("el-tooltip"), C = W("el-button");
315
+ return (o, g) => {
316
+ const k = P("el-tooltip"), C = P("el-button");
264
317
  return e.value.tableIconType === "icon" || !e.value.tableIconType ? (u(), r("span", Ze, [
265
318
  e.value.notip || !e.value.title ? (u(), r(
266
319
  "i",
@@ -279,7 +332,7 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
279
332
  active: e.value.active,
280
333
  disabled: e.value.disabled
281
334
  }]),
282
- style: b(_.value)
335
+ style: x(_.value)
283
336
  },
284
337
  [
285
338
  V(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
@@ -288,7 +341,7 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
288
341
  {
289
342
  key: 0,
290
343
  class: w(`iksig ${e.value.name}`),
291
- style: b(_.value)
344
+ style: x(_.value)
292
345
  },
293
346
  null,
294
347
  6
@@ -306,7 +359,7 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
306
359
  {
307
360
  key: 3,
308
361
  class: w(e.value.name),
309
- style: b(_.value)
362
+ style: x(_.value)
310
363
  },
311
364
  null,
312
365
  6
@@ -315,12 +368,12 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
315
368
  ],
316
369
  6
317
370
  /* CLASS, STYLE */
318
- )) : (u(), H(k, {
371
+ )) : (u(), D(k, {
319
372
  key: 1,
320
373
  content: e.value.title,
321
374
  placement: "top"
322
375
  }, {
323
- default: g(() => [
376
+ default: f(() => [
324
377
  n(
325
378
  "i",
326
379
  {
@@ -336,7 +389,7 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
336
389
  error: e.value.error || e.value.type === "error",
337
390
  active: e.value.active
338
391
  }]),
339
- style: b(_.value)
392
+ style: x(_.value)
340
393
  },
341
394
  [
342
395
  i.value === "iksig" ? (u(), r(
@@ -344,7 +397,7 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
344
397
  {
345
398
  key: 0,
346
399
  class: w(`iksig ${e.value.name}`),
347
- style: b(_.value)
400
+ style: x(_.value)
348
401
  },
349
402
  null,
350
403
  6
@@ -362,7 +415,7 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
362
415
  {
363
416
  key: 3,
364
417
  class: w(e.value.name),
365
- style: b(_.value)
418
+ style: x(_.value)
366
419
  },
367
420
  null,
368
421
  6
@@ -376,11 +429,11 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
376
429
  _: 1
377
430
  /* STABLE */
378
431
  }, 8, ["content"]))
379
- ])) : (u(), H(C, {
432
+ ])) : (u(), D(C, {
380
433
  key: 1,
381
434
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
382
435
  }, {
383
- default: g(() => [
436
+ default: f(() => [
384
437
  J(
385
438
  U(e.value.title),
386
439
  1
@@ -393,7 +446,7 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
393
446
  };
394
447
  }
395
448
  });
396
- const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st), Y = (l) => (fe("data-v-d12a12c0"), l = l(), me(), l), nt = {
449
+ const st = /* @__PURE__ */ H(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st), Y = (l) => (me("data-v-d12a12c0"), l = l(), ge(), l), nt = {
397
450
  key: 1,
398
451
  class: "upload-btn"
399
452
  }, it = { class: "tip" }, ut = { class: "loading-statu" }, rt = { class: "operate-btn" }, ct = { key: 0 }, dt = {
@@ -411,9 +464,9 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
411
464
  "点击重新上传",
412
465
  -1
413
466
  /* HOISTED */
414
- )), ht = ["src"], gt = { class: "demo-image__preview" }, ft = /* @__PURE__ */ z({
467
+ )), ht = ["src"], ft = { class: "demo-image__preview" }, mt = /* @__PURE__ */ z({
415
468
  __name: "index",
416
- props: /* @__PURE__ */ F({
469
+ props: /* @__PURE__ */ A({
417
470
  // 显示的文字
418
471
  title: {
419
472
  type: String,
@@ -504,7 +557,7 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
504
557
  },
505
558
  modelModifiers: {}
506
559
  }),
507
- emits: /* @__PURE__ */ F(["delete", "success"], ["update:modelValue"]),
560
+ emits: /* @__PURE__ */ A(["delete", "success"], ["update:modelValue"]),
508
561
  setup(l, { emit: c }) {
509
562
  ce((t) => ({
510
563
  "48c07ec5": C.value,
@@ -515,29 +568,29 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
515
568
  const s = ((y = a.url) == null ? void 0 : y.startsWith("http")) || ((L = a.url) == null ? void 0 : L.startsWith("blob")), d = (a == null ? void 0 : a.url) || a;
516
569
  return {
517
570
  ...a.url ? a : { url: d },
518
- __url: s ? d : `${m.value}${d}`
571
+ __url: s ? d : `${g.value}${d}`
519
572
  };
520
573
  }) : t ? [
521
574
  {
522
575
  url: t,
523
- __url: t != null && t.startsWith("http") || t != null && t.startsWith("blob") ? t : `${m.value}${t}`
576
+ __url: t != null && t.startsWith("http") || t != null && t.startsWith("blob") ? t : `${g.value}${t}`
524
577
  }
525
578
  ] : [];
526
579
  pe(
527
580
  () => i.value,
528
581
  (t) => {
529
- !t || !t.length ? f.value = [] : f.value = ze.cloneDeep(_(t));
582
+ !t || !t.length ? m.value = [] : m.value = xe.cloneDeep(_(t));
530
583
  },
531
584
  { deep: !0 }
532
585
  );
533
- const o = c, { cLoadUrl: m, cUploadUrl: k } = Ye(e), C = h(() => `${e.width}px`), B = h(() => `${e.height}px`), j = h(() => e.size), $ = M(null), f = M(_(i.value)), I = M([]), E = M(!1), T = M(0), Z = h(
586
+ const o = c, { cLoadUrl: g, cUploadUrl: k } = Ye(e), C = h(() => `${e.width}px`), B = h(() => `${e.height}px`), j = h(() => e.size), b = M(null), m = M(_(i.value)), I = M([]), E = M(!1), N = M(0), Z = h(
534
587
  () => e.tipText || `最多可上传${e.limit}张图片, 每张图片不能超过${e.size}MB`
535
588
  ), q = (t, a) => {
536
589
  }, K = (t) => {
537
590
  if (!t.type.includes("image")) {
538
591
  G.warning("只允许上传图片!");
539
592
  try {
540
- f.value.pop();
593
+ m.value.pop();
541
594
  } catch {
542
595
  }
543
596
  return !1;
@@ -545,7 +598,7 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
545
598
  if (!(t.size / 1024 / 1024 < j.value)) {
546
599
  G.warning("图片大小超出限制!");
547
600
  try {
548
- f.value.pop();
601
+ m.value.pop();
549
602
  } catch {
550
603
  }
551
604
  return !1;
@@ -553,15 +606,15 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
553
606
  return !0;
554
607
  }, Q = () => !1, ee = (t, a) => {
555
608
  var s, d;
556
- t.status = "ready", a !== void 0 && I.value.splice(a, 1), (s = $.value) == null || s.handleStart(t.raw), (d = $.value) == null || d.submit();
609
+ t.status = "ready", a !== void 0 && I.value.splice(a, 1), (s = b.value) == null || s.handleStart(t.raw), (d = b.value) == null || d.submit();
557
610
  }, te = (t, a) => {
558
- var L, A;
611
+ var L, O;
559
612
  const s = i.value.length, d = e.limit - s;
560
613
  let y = 0;
561
614
  for (; y < d && y < (t == null ? void 0 : t.length); )
562
- (L = $.value) == null || L.handleStart(t == null ? void 0 : t[y]), (A = $.value) == null || A.submit(), y++;
615
+ (L = b.value) == null || L.handleStart(t == null ? void 0 : t[y]), (O = b.value) == null || O.submit(), y++;
563
616
  }, le = (t, a, s) => {
564
- o("success", t, a, s), i.value = f.value;
617
+ o("success", t, a, s), i.value = m.value;
565
618
  }, ae = (t, a, s) => {
566
619
  I.value.push({
567
620
  ...a,
@@ -569,35 +622,35 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
569
622
  });
570
623
  }, se = (t) => {
571
624
  var a;
572
- E.value = !0, T.value = (a = i.value) == null ? void 0 : a.findIndex((s) => s.url === t.url);
625
+ E.value = !0, N.value = (a = i.value) == null ? void 0 : a.findIndex((s) => s.url === t.url);
573
626
  }, oe = (t) => {
574
- $e.downloadFile(t.__url || t.url, t.name || t.url);
627
+ ze.downloadFile(t.__url || t.url, t.name || t.url);
575
628
  }, ne = (t) => {
576
629
  var a;
577
- (a = $.value) == null || a.abort(t);
630
+ (a = b.value) == null || a.abort(t);
578
631
  }, ie = (t) => {
579
632
  var a;
580
- t.status !== "success" && ne(t), i.value = (a = f.value) == null ? void 0 : a.filter((s) => s.uid !== t.uid), o("delete", t);
633
+ t.status !== "success" && ne(t), i.value = (a = m.value) == null ? void 0 : a.filter((s) => s.uid !== t.uid), o("delete", t);
581
634
  }, ue = (t, a) => {
582
635
  I.value.splice(a, 1);
583
- }, re = h(() => f.value.length + I.value.length < e.limit), D = h(
636
+ }, re = h(() => m.value.length + I.value.length < e.limit), T = h(
584
637
  () => i.value.length >= e.limit || e.disabled
585
638
  );
586
639
  return (t, a) => (u(), r(
587
- O,
640
+ W,
588
641
  null,
589
642
  [
590
643
  v(p(ye), ve({
591
- class: ["ik-image-upload", { preview: l.preview, "hide-upload": !re.value, disabled: D.value }],
644
+ class: ["ik-image-upload", { preview: l.preview, "hide-upload": !re.value, disabled: T.value }],
592
645
  ref_key: "refUpload",
593
- ref: $,
646
+ ref: b,
594
647
  "list-type": "picture-card",
595
648
  accept: l.accept,
596
649
  action: p(k),
597
650
  headers: l.headers,
598
651
  data: l.data,
599
- "file-list": f.value,
600
- "onUpdate:fileList": a[0] || (a[0] = (s) => f.value = s),
652
+ "file-list": m.value,
653
+ "onUpdate:fileList": a[0] || (a[0] = (s) => m.value = s),
601
654
  multiple: l.multiple,
602
655
  limit: l.limit,
603
656
  "on-change": q,
@@ -607,14 +660,14 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
607
660
  "on-success": le,
608
661
  "on-error": ae,
609
662
  drag: ""
610
- }, t.$attrs, { disabled: D.value }), _e({
611
- trigger: g(() => [
663
+ }, t.$attrs, { disabled: T.value }), _e({
664
+ trigger: f(() => [
612
665
  t.$slots.trigger ? he(t.$slots, "trigger", { key: 0 }, void 0, !0) : (u(), r("div", nt, [
613
- v(p(x), { size: 20 }, {
614
- default: g(() => [
666
+ v(p($), { size: 20 }, {
667
+ default: f(() => [
615
668
  v(p(ot), {
616
669
  name: "iksvg_guanbibeifen",
617
- disabled: D.value
670
+ disabled: T.value
618
671
  }, null, 8, ["disabled"])
619
672
  ]),
620
673
  _: 1
@@ -629,7 +682,7 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
629
682
  )
630
683
  ]))
631
684
  ]),
632
- file: g(({ file: s }) => [
685
+ file: f(({ file: s }) => [
633
686
  n(
634
687
  "div",
635
688
  {
@@ -637,7 +690,7 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
637
690
  "element-loading-background": "var(--ik-upload-bg)"
638
691
  },
639
692
  [
640
- P(n(
693
+ F(n(
641
694
  "div",
642
695
  ut,
643
696
  [
@@ -663,10 +716,10 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
663
716
  }, null, 8, ["src"]),
664
717
  n("span", rt, [
665
718
  n("span", null, [
666
- v(p(x), {
719
+ v(p($), {
667
720
  onClick: (d) => se(s)
668
721
  }, {
669
- default: g(() => [
722
+ default: f(() => [
670
723
  v(p(je))
671
724
  ]),
672
725
  _: 2
@@ -674,10 +727,10 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
674
727
  }, 1032, ["onClick"])
675
728
  ]),
676
729
  n("span", null, [
677
- v(p(x), {
730
+ v(p($), {
678
731
  onClick: (d) => oe(s)
679
732
  }, {
680
- default: g(() => [
733
+ default: f(() => [
681
734
  v(p(Se))
682
735
  ]),
683
736
  _: 2
@@ -685,11 +738,11 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
685
738
  }, 1032, ["onClick"])
686
739
  ]),
687
740
  l.preview ? V("v-if", !0) : (u(), r("span", ct, [
688
- v(p(x), {
741
+ v(p($), {
689
742
  type: "warning",
690
743
  onClick: (d) => ie(s)
691
744
  }, {
692
- default: g(() => [
745
+ default: f(() => [
693
746
  v(p(Ie))
694
747
  ]),
695
748
  _: 2
@@ -702,20 +755,20 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
702
755
  /* CLASS */
703
756
  )
704
757
  ]),
705
- default: g(() => [
758
+ default: f(() => [
706
759
  n("ul", dt, [
707
760
  (u(!0), r(
708
- O,
761
+ W,
709
762
  null,
710
- ge(I.value, (s, d) => (u(), r("li", {
763
+ fe(I.value, (s, d) => (u(), r("li", {
711
764
  class: "el-upload-list__item",
712
765
  key: s.uid
713
766
  }, [
714
767
  n("span", null, [
715
- v(p(x), {
768
+ v(p($), {
716
769
  onClick: (y) => ue(s, d)
717
770
  }, {
718
- default: g(() => [
771
+ default: f(() => [
719
772
  v(p(Ce))
720
773
  ]),
721
774
  _: 2
@@ -732,12 +785,12 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
732
785
  "element-loading-background": "var(--ik-upload-bg)"
733
786
  },
734
787
  [
735
- P(n("div", {
788
+ F(n("div", {
736
789
  class: "loading-statu",
737
790
  onClick: (y) => ee(s, d)
738
791
  }, [
739
- v(p(x), { size: 24 }, {
740
- default: g(() => [
792
+ v(p($), { size: 24 }, {
793
+ default: f(() => [
741
794
  v(p(Ve))
742
795
  ]),
743
796
  _: 1
@@ -751,7 +804,7 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
751
804
  n("img", {
752
805
  src: s.__url,
753
806
  alt: "",
754
- style: b({ "object-fit": l.fit })
807
+ style: x({ "object-fit": l.fit })
755
808
  }, null, 12, ht)
756
809
  ],
757
810
  2
@@ -768,7 +821,7 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
768
821
  }, [
769
822
  l.tip ? {
770
823
  name: "tip",
771
- fn: g(() => [
824
+ fn: f(() => [
772
825
  n(
773
826
  "span",
774
827
  it,
@@ -781,16 +834,16 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
781
834
  } : void 0
782
835
  ]), 1040, ["class", "accept", "action", "headers", "data", "file-list", "multiple", "limit", "disabled"]),
783
836
  V(" 文件预览 "),
784
- n("div", gt, [
785
- E.value ? (u(), H(p(ke), {
837
+ n("div", ft, [
838
+ E.value ? (u(), D(p(ke), {
786
839
  key: 0,
787
840
  "lock-scroll": "",
788
841
  "hide-on-click-modal": "",
789
842
  onClose: a[1] || (a[1] = () => {
790
843
  E.value = !1;
791
844
  }),
792
- "url-list": _(f.value).map((s) => s.__url),
793
- "initial-index": T.value
845
+ "url-list": _(m.value).map((s) => s.__url),
846
+ "initial-index": N.value
794
847
  }, null, 8, ["url-list", "initial-index"])) : V("v-if", !0)
795
848
  ])
796
849
  ],
@@ -799,7 +852,7 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
799
852
  ));
800
853
  }
801
854
  });
802
- const mt = /* @__PURE__ */ N(ft, [["__scopeId", "data-v-d12a12c0"]]), bt = X(mt);
855
+ const gt = /* @__PURE__ */ H(mt, [["__scopeId", "data-v-d12a12c0"]]), bt = X(gt);
803
856
  export {
804
857
  bt as IkUploadImage,
805
858
  bt as default