iking-web-ui-pro 0.1.1 → 0.1.3

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.
@@ -1,21 +1,21 @@
1
- import { defineComponent as f, openBlock as c, createElementBlock as d, createElementVNode as s, watch as Z, computed as V, ref as w, Fragment as M, createVNode as n, unref as r, normalizeClass as k, createSlots as q, withCtx as _, renderSlot as K, toDisplayString as $, withDirectives as B, createTextVNode as Q, vShow as I, createCommentVNode as x, renderList as X, normalizeStyle as Y, createBlock as ee, pushScopeId as te, popScopeId as le } from "vue";
2
- import { ElUpload as ae, ElIcon as g, ElImage as se, ElImageViewer as oe } from "element-plus";
3
- import { _ as ne, ikFile as re } from "iking-utils-pro";
4
- const ie = (a, i) => {
5
- if (a.install = (o) => {
6
- for (const p of [a, ...Object.values(i ?? {})])
7
- o.component(p.name, p);
1
+ import { defineComponent as m, openBlock as u, createElementBlock as c, createElementVNode as s, watch as K, computed as C, ref as y, Fragment as M, createVNode as o, unref as r, normalizeClass as b, createSlots as Q, withCtx as v, renderSlot as X, toDisplayString as $, withDirectives as B, createTextVNode as Y, vShow as I, createCommentVNode as z, renderList as ee, normalizeStyle as te, createBlock as le, pushScopeId as ae, popScopeId as se } from "vue";
2
+ import { ElUpload as ne, ElIcon as w, ElImage as oe, ElImageViewer as re } from "element-plus";
3
+ import { _ as ie, ikFile as ue } from "iking-utils-pro";
4
+ const ce = (l, i) => {
5
+ if (l.install = (n) => {
6
+ for (const d of [l, ...Object.values(i ?? {})])
7
+ n.component(d.name, d);
8
8
  }, i)
9
- for (const [o, p] of Object.entries(i))
10
- a[o] = p;
11
- return a;
9
+ for (const [n, d] of Object.entries(i))
10
+ l[n] = d;
11
+ return l;
12
12
  };
13
13
  /*! Element Plus Icons Vue v2.3.1 */
14
- var ue = /* @__PURE__ */ f({
14
+ var de = /* @__PURE__ */ m({
15
15
  name: "Close",
16
16
  __name: "close",
17
- setup(a) {
18
- return (i, o) => (c(), d("svg", {
17
+ setup(l) {
18
+ return (i, n) => (u(), c("svg", {
19
19
  xmlns: "http://www.w3.org/2000/svg",
20
20
  viewBox: "0 0 1024 1024"
21
21
  }, [
@@ -25,11 +25,11 @@ var ue = /* @__PURE__ */ f({
25
25
  })
26
26
  ]));
27
27
  }
28
- }), ce = ue, de = /* @__PURE__ */ f({
28
+ }), _e = de, pe = /* @__PURE__ */ m({
29
29
  name: "Delete",
30
30
  __name: "delete",
31
- setup(a) {
32
- return (i, o) => (c(), d("svg", {
31
+ setup(l) {
32
+ return (i, n) => (u(), c("svg", {
33
33
  xmlns: "http://www.w3.org/2000/svg",
34
34
  viewBox: "0 0 1024 1024"
35
35
  }, [
@@ -39,11 +39,11 @@ var ue = /* @__PURE__ */ f({
39
39
  })
40
40
  ]));
41
41
  }
42
- }), _e = de, pe = /* @__PURE__ */ f({
42
+ }), ve = pe, he = /* @__PURE__ */ m({
43
43
  name: "Download",
44
44
  __name: "download",
45
- setup(a) {
46
- return (i, o) => (c(), d("svg", {
45
+ setup(l) {
46
+ return (i, n) => (u(), c("svg", {
47
47
  xmlns: "http://www.w3.org/2000/svg",
48
48
  viewBox: "0 0 1024 1024"
49
49
  }, [
@@ -53,11 +53,11 @@ var ue = /* @__PURE__ */ f({
53
53
  })
54
54
  ]));
55
55
  }
56
- }), ve = pe, he = /* @__PURE__ */ f({
56
+ }), me = he, fe = /* @__PURE__ */ m({
57
57
  name: "Plus",
58
58
  __name: "plus",
59
- setup(a) {
60
- return (i, o) => (c(), d("svg", {
59
+ setup(l) {
60
+ return (i, n) => (u(), c("svg", {
61
61
  xmlns: "http://www.w3.org/2000/svg",
62
62
  viewBox: "0 0 1024 1024"
63
63
  }, [
@@ -67,11 +67,11 @@ var ue = /* @__PURE__ */ f({
67
67
  })
68
68
  ]));
69
69
  }
70
- }), me = he, fe = /* @__PURE__ */ f({
70
+ }), ge = fe, we = /* @__PURE__ */ m({
71
71
  name: "Refresh",
72
72
  __name: "refresh",
73
- setup(a) {
74
- return (i, o) => (c(), d("svg", {
73
+ setup(l) {
74
+ return (i, n) => (u(), c("svg", {
75
75
  xmlns: "http://www.w3.org/2000/svg",
76
76
  viewBox: "0 0 1024 1024"
77
77
  }, [
@@ -81,11 +81,11 @@ var ue = /* @__PURE__ */ f({
81
81
  })
82
82
  ]));
83
83
  }
84
- }), ge = fe, we = /* @__PURE__ */ f({
84
+ }), ye = we, xe = /* @__PURE__ */ m({
85
85
  name: "ZoomIn",
86
86
  __name: "zoom-in",
87
- setup(a) {
88
- return (i, o) => (c(), d("svg", {
87
+ setup(l) {
88
+ return (i, n) => (u(), c("svg", {
89
89
  xmlns: "http://www.w3.org/2000/svg",
90
90
  viewBox: "0 0 1024 1024"
91
91
  }, [
@@ -95,13 +95,13 @@ var ue = /* @__PURE__ */ f({
95
95
  })
96
96
  ]));
97
97
  }
98
- }), ye = we;
99
- const U = (a, i) => {
100
- const o = a.__vccOpts || a;
101
- for (const [p, z] of i)
102
- o[p] = z;
103
- return o;
104
- }, xe = {}, ze = {
98
+ }), ze = xe;
99
+ const U = (l, i) => {
100
+ const n = l.__vccOpts || l;
101
+ for (const [d, x] of i)
102
+ n[d] = x;
103
+ return n;
104
+ }, ke = {}, Ce = {
105
105
  t: "1686214149488",
106
106
  class: "icon",
107
107
  viewBox: "0 0 1024 1024",
@@ -110,7 +110,7 @@ const U = (a, i) => {
110
110
  "p-id": "8490",
111
111
  width: "200",
112
112
  height: "200"
113
- }, Ce = /* @__PURE__ */ s(
113
+ }, be = /* @__PURE__ */ s(
114
114
  "path",
115
115
  {
116
116
  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",
@@ -119,7 +119,7 @@ const U = (a, i) => {
119
119
  null,
120
120
  -1
121
121
  /* HOISTED */
122
- ), ke = /* @__PURE__ */ s(
122
+ ), $e = /* @__PURE__ */ s(
123
123
  "path",
124
124
  {
125
125
  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",
@@ -128,7 +128,7 @@ const U = (a, i) => {
128
128
  null,
129
129
  -1
130
130
  /* HOISTED */
131
- ), $e = /* @__PURE__ */ s(
131
+ ), Le = /* @__PURE__ */ s(
132
132
  "path",
133
133
  {
134
134
  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",
@@ -137,7 +137,7 @@ const U = (a, i) => {
137
137
  null,
138
138
  -1
139
139
  /* HOISTED */
140
- ), be = /* @__PURE__ */ s(
140
+ ), Ve = /* @__PURE__ */ s(
141
141
  "path",
142
142
  {
143
143
  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",
@@ -146,7 +146,7 @@ const U = (a, i) => {
146
146
  null,
147
147
  -1
148
148
  /* HOISTED */
149
- ), Le = /* @__PURE__ */ s(
149
+ ), Se = /* @__PURE__ */ s(
150
150
  "path",
151
151
  {
152
152
  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",
@@ -155,7 +155,7 @@ const U = (a, i) => {
155
155
  null,
156
156
  -1
157
157
  /* HOISTED */
158
- ), Se = /* @__PURE__ */ s(
158
+ ), Me = /* @__PURE__ */ s(
159
159
  "path",
160
160
  {
161
161
  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",
@@ -164,7 +164,7 @@ const U = (a, i) => {
164
164
  null,
165
165
  -1
166
166
  /* HOISTED */
167
- ), Ve = /* @__PURE__ */ s(
167
+ ), Be = /* @__PURE__ */ s(
168
168
  "path",
169
169
  {
170
170
  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",
@@ -173,7 +173,7 @@ const U = (a, i) => {
173
173
  null,
174
174
  -1
175
175
  /* HOISTED */
176
- ), Me = /* @__PURE__ */ s(
176
+ ), Ie = /* @__PURE__ */ s(
177
177
  "path",
178
178
  {
179
179
  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",
@@ -182,38 +182,38 @@ const U = (a, i) => {
182
182
  null,
183
183
  -1
184
184
  /* HOISTED */
185
- ), Be = [
186
- Ce,
187
- ke,
188
- $e,
185
+ ), Ue = [
189
186
  be,
187
+ $e,
190
188
  Le,
191
- Se,
192
189
  Ve,
193
- Me
190
+ Se,
191
+ Me,
192
+ Be,
193
+ Ie
194
194
  ];
195
- function Ie(a, i) {
196
- return c(), d("svg", ze, Be);
195
+ function Ee(l, i) {
196
+ return u(), c("svg", Ce, Ue);
197
197
  }
198
- const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b18337d2"), a = a(), le(), a), Ee = {
198
+ const He = /* @__PURE__ */ U(ke, [["render", Ee]]), E = (l) => (ae("data-v-0b59ad5e"), l = l(), se(), l), je = {
199
199
  key: 1,
200
200
  class: "upload-btn"
201
- }, He = { class: "tip" }, De = { class: "loading-statu" }, Ne = { class: "operate-btn" }, je = { key: 0 }, Re = {
201
+ }, Ae = { class: "tip" }, De = { class: "loading-statu" }, Ne = { class: "operate-btn" }, Oe = { key: 0 }, Re = {
202
202
  class: "el-upload-list el-upload-list--picture-card",
203
203
  style: { float: "left" }
204
- }, Ae = ["onClick"], Fe = /* @__PURE__ */ E(() => /* @__PURE__ */ s(
204
+ }, Fe = ["onClick"], Pe = /* @__PURE__ */ E(() => /* @__PURE__ */ s(
205
205
  "span",
206
206
  { class: "error" },
207
207
  "上传错误",
208
208
  -1
209
209
  /* HOISTED */
210
- )), Oe = /* @__PURE__ */ E(() => /* @__PURE__ */ s(
210
+ )), Te = /* @__PURE__ */ E(() => /* @__PURE__ */ s(
211
211
  "p",
212
212
  null,
213
213
  "点击重新上传",
214
214
  -1
215
215
  /* HOISTED */
216
- )), Pe = ["src"], We = { class: "demo-image__preview" }, Te = /* @__PURE__ */ f({
216
+ )), Ge = ["src"], Je = { class: "demo-image__preview" }, We = /* @__PURE__ */ m({
217
217
  __name: "index",
218
218
  props: {
219
219
  // 显示的文字
@@ -231,6 +231,18 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
231
231
  type: String,
232
232
  default: ""
233
233
  },
234
+ // 设置上传的请求头部
235
+ headers: {
236
+ type: Object,
237
+ default: () => {
238
+ }
239
+ },
240
+ // 上传时附带的额外参数
241
+ data: {
242
+ type: Object,
243
+ default: () => {
244
+ }
245
+ },
234
246
  // 最多上传图片数量
235
247
  limit: {
236
248
  type: Number,
@@ -278,95 +290,85 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
278
290
  default: () => []
279
291
  }
280
292
  },
281
- emits: ["delete", "success"],
282
- setup(a, { emit: i }) {
283
- const o = a;
284
- Z(
285
- () => o.modelValue,
286
- (t) => {
287
- v.value = t.map((l) => {
288
- var e;
289
- return {
290
- ...l,
291
- __url: (e = l.url) != null && e.startsWith("http") ? l.url : `${o.loadUrl}${l.url}`
292
- };
293
- });
293
+ emits: ["delete", "success", "update:modelValue"],
294
+ setup(l, { emit: i }) {
295
+ const n = l, d = (e) => Array.isArray(e) ? e.map((a) => {
296
+ var t;
297
+ return {
298
+ ...a,
299
+ __url: (t = a.url) != null && t.startsWith("http") ? a.url : `${n.loadUrl}${a.url}`
300
+ };
301
+ }) : e ? [{ url: e, __url: e != null && e.startsWith("http") ? e : `${n.loadUrl}${e}` }] : [];
302
+ K(
303
+ () => n.modelValue,
304
+ (e) => {
305
+ _.value = d(e);
294
306
  },
295
307
  { deep: !0 }
296
308
  );
297
- const p = i, z = V(() => o.size), m = w(null), v = w(o.modelValue.map((t) => {
298
- var l;
299
- return {
300
- ...t,
301
- __url: (l = t.url) != null && l.startsWith("http") ? t.url : `${o.loadUrl}${t.url}`
302
- };
303
- })), y = w([]), C = w(!1), b = w(0), H = V(
304
- () => o.tipText || `最多可上传${o.limit}张图片, 每张图片不能超过${o.size}MB`
305
- ), D = (t, l) => {
306
- v.value = ne.cloneDeep(l.map((e) => {
307
- var u, h;
308
- return {
309
- ...e,
310
- __url: (u = e.url) != null && u.startsWith("http") || (h = e.url) != null && h.startsWith("blob:") ? e.url : `${o.loadUrl}${e.url}`
311
- };
312
- }));
313
- }, N = (t) => !(!(t.type === "image/jpeg" || t.type === "image/png") || !(t.size / 1024 / 1024 < z.value)), j = () => !1, R = (t, l) => {
314
- var e, u;
315
- t.status = "ready", l !== void 0 && y.value.splice(l, 1), (e = m.value) == null || e.handleStart(t.raw), (u = m.value) == null || u.submit();
316
- }, A = (t, l) => {
317
- var L, S;
318
- const e = v.value.length, u = o.limit - e;
319
- let h = 0;
320
- for (; h < u && h < t.length; )
321
- (L = m.value) == null || L.handleStart(t[h]), (S = m.value) == null || S.submit(), h++;
322
- }, F = (t, l, e) => {
323
- p("success", t, l, e);
324
- }, O = (t, l, e) => {
325
- y.value.push({
326
- ...l,
327
- __url: l.url
309
+ const x = i, H = C(() => n.size), h = y(null), _ = y(d(n.modelValue)), f = y([]), k = y(!1), L = y(0), j = C(
310
+ () => n.tipText || `最多可上传${n.limit}张图片, 每张图片不能超过${n.size}MB`
311
+ ), A = (e, a) => {
312
+ _.value = ie.cloneDeep(d(a));
313
+ }, D = (e) => !(!(e.type === "image/jpeg" || e.type === "image/png") || !(e.size / 1024 / 1024 < H.value)), N = () => !1, O = (e, a) => {
314
+ var t, p;
315
+ e.status = "ready", a !== void 0 && f.value.splice(a, 1), (t = h.value) == null || t.handleStart(e.raw), (p = h.value) == null || p.submit();
316
+ }, R = (e, a) => {
317
+ var V, S;
318
+ const t = _.value.length, p = n.limit - t;
319
+ let g = 0;
320
+ for (; g < p && g < e.length; )
321
+ (V = h.value) == null || V.handleStart(e[g]), (S = h.value) == null || S.submit(), g++;
322
+ }, F = (e, a, t) => {
323
+ x("success", e, a, t);
324
+ }, P = (e, a, t) => {
325
+ f.value.push({
326
+ ...a,
327
+ __url: a.url
328
328
  });
329
- }, P = (t) => {
330
- C.value = !0, b.value = v.value.findIndex((l) => l.url === t.url);
331
- }, W = (t) => {
332
- re.downloadByOnlineUrl(t.__url || t.url, t.name);
333
- }, T = (t) => {
334
- var l;
335
- (l = m.value) == null || l.abort(t);
336
- }, G = (t) => {
337
- var l;
338
- t.status !== "success" && T(t), (l = m.value) == null || l.handleRemove(t), v.value = v.value.filter((e) => e.uid !== t.uid), p("delete", t);
339
- }, J = (t, l) => {
340
- y.value.splice(l, 1);
341
- };
342
- return (t, l) => (c(), d(
329
+ }, T = (e) => {
330
+ k.value = !0, L.value = _.value.findIndex((a) => a.url === e.url);
331
+ }, G = (e) => {
332
+ ue.downloadByOnlineUrl(e.__url || e.url, e.name);
333
+ }, J = (e) => {
334
+ var a;
335
+ (a = h.value) == null || a.abort(e);
336
+ }, W = (e) => {
337
+ var a;
338
+ e.status !== "success" && J(e), (a = h.value) == null || a.handleRemove(e), _.value = _.value.filter((t) => t.uid !== e.uid), x("delete", e);
339
+ }, Z = (e, a) => {
340
+ f.value.splice(a, 1);
341
+ }, q = C(() => n.multiple ? _.value.length + f.value.length < n.limit : _.value.length + f.value.length === 0);
342
+ return (e, a) => (u(), c(
343
343
  M,
344
344
  null,
345
345
  [
346
- n(r(ae), {
347
- class: k(["ik-image-upload", { preview: a.preview }]),
346
+ o(r(ne), {
347
+ class: b(["ik-image-upload", { preview: l.preview, "hide-upload": !q.value }]),
348
348
  ref_key: "refUpload",
349
- ref: m,
349
+ ref: h,
350
350
  "list-type": "picture-card",
351
- accept: a.accept,
352
- action: a.action,
353
- "file-list": v.value,
354
- "onUpdate:fileList": l[0] || (l[0] = (e) => v.value = e),
355
- multiple: a.multiple,
356
- limit: a.limit,
357
- "on-change": D,
358
- "before-upload": N,
359
- "before-remove": j,
360
- "on-exceed": A,
351
+ accept: l.accept,
352
+ action: l.action,
353
+ headers: l.headers,
354
+ data: l.data,
355
+ "file-list": _.value,
356
+ "onUpdate:fileList": a[0] || (a[0] = (t) => _.value = t),
357
+ multiple: l.multiple,
358
+ limit: l.limit,
359
+ "on-change": A,
360
+ "before-upload": D,
361
+ "before-remove": N,
362
+ "on-exceed": R,
361
363
  "on-success": F,
362
- "on-error": O,
364
+ "on-error": P,
363
365
  drag: ""
364
- }, q({
365
- trigger: _(() => [
366
- t.$slots.trigger ? K(t.$slots, "trigger", { key: 0 }, void 0, !0) : (c(), d("div", Ee, [
367
- n(r(g), null, {
368
- default: _(() => [
369
- n(r(me))
366
+ }, Q({
367
+ trigger: v(() => [
368
+ e.$slots.trigger ? X(e.$slots, "trigger", { key: 0 }, void 0, !0) : (u(), c("div", je, [
369
+ o(r(w), null, {
370
+ default: v(() => [
371
+ o(r(ge))
370
372
  ]),
371
373
  _: 1
372
374
  /* STABLE */
@@ -374,17 +376,17 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
374
376
  s(
375
377
  "span",
376
378
  null,
377
- $(a.title),
379
+ $(l.title),
378
380
  1
379
381
  /* TEXT */
380
382
  )
381
383
  ]))
382
384
  ]),
383
- file: _(({ file: e }) => [
385
+ file: v(({ file: t }) => [
384
386
  s(
385
387
  "div",
386
388
  {
387
- class: k(["load-list", { loading: e.status === "uploading" }]),
389
+ class: b(["load-list", { loading: t.status === "uploading" }]),
388
390
  "element-loading-background": "var(--ik-upload-bg)"
389
391
  },
390
392
  [
@@ -392,9 +394,9 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
392
394
  "div",
393
395
  De,
394
396
  [
395
- n(Ue),
396
- Q(
397
- " 上传" + $(e.percentage) + "% ",
397
+ o(He),
398
+ Y(
399
+ " 上传" + $(t.percentage) + "% ",
398
400
  1
399
401
  /* TEXT */
400
402
  )
@@ -402,45 +404,46 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
402
404
  512
403
405
  /* NEED_PATCH */
404
406
  ), [
405
- [I, e.status === "uploading"]
407
+ [I, t.status === "uploading"]
406
408
  ]),
407
- x(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
408
- n(r(se), {
409
+ z(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
410
+ o(r(oe), {
409
411
  style: { width: "100%", height: "100%" },
410
- src: e.__url || e.url,
412
+ src: t.__url || t.url,
411
413
  "zoom-rate": 1.2,
412
414
  "initial-index": 0,
413
415
  fit: "contain"
414
416
  }, null, 8, ["src"]),
415
417
  s("span", Ne, [
416
418
  s("span", null, [
417
- n(r(g), {
418
- onClick: (u) => P(e)
419
+ o(r(w), {
420
+ onClick: (p) => T(t)
419
421
  }, {
420
- default: _(() => [
421
- n(r(ye))
422
+ default: v(() => [
423
+ o(r(ze))
422
424
  ]),
423
425
  _: 2
424
426
  /* DYNAMIC */
425
427
  }, 1032, ["onClick"])
426
428
  ]),
427
429
  s("span", null, [
428
- n(r(g), {
429
- onClick: (u) => W(e)
430
+ o(r(w), {
431
+ onClick: (p) => G(t)
430
432
  }, {
431
- default: _(() => [
432
- n(r(ve))
433
+ default: v(() => [
434
+ o(r(me))
433
435
  ]),
434
436
  _: 2
435
437
  /* DYNAMIC */
436
438
  }, 1032, ["onClick"])
437
439
  ]),
438
- a.preview ? x("v-if", !0) : (c(), d("span", je, [
439
- n(r(g), {
440
- onClick: (u) => G(e)
440
+ l.preview ? z("v-if", !0) : (u(), c("span", Oe, [
441
+ o(r(w), {
442
+ type: "warning",
443
+ onClick: (p) => W(t)
441
444
  }, {
442
- default: _(() => [
443
- n(r(_e))
445
+ default: v(() => [
446
+ o(r(ve))
444
447
  ]),
445
448
  _: 2
446
449
  /* DYNAMIC */
@@ -452,21 +455,21 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
452
455
  /* CLASS */
453
456
  )
454
457
  ]),
455
- default: _(() => [
458
+ default: v(() => [
456
459
  s("ul", Re, [
457
- (c(!0), d(
460
+ (u(!0), c(
458
461
  M,
459
462
  null,
460
- X(y.value, (e, u) => (c(), d("li", {
463
+ ee(f.value, (t, p) => (u(), c("li", {
461
464
  class: "el-upload-list__item",
462
- key: e.uid
465
+ key: t.uid
463
466
  }, [
464
467
  s("span", null, [
465
- n(r(g), {
466
- onClick: (h) => J(e, u)
468
+ o(r(w), {
469
+ onClick: (g) => Z(t, p)
467
470
  }, {
468
- default: _(() => [
469
- n(r(ce))
471
+ default: v(() => [
472
+ o(r(_e))
470
473
  ]),
471
474
  _: 2
472
475
  /* DYNAMIC */
@@ -475,34 +478,34 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
475
478
  s(
476
479
  "div",
477
480
  {
478
- class: k(["load-list", {
479
- loading: e.status === "uploading",
480
- fail: e.status === "fail"
481
+ class: b(["load-list", {
482
+ loading: t.status === "uploading",
483
+ fail: t.status === "fail"
481
484
  }]),
482
485
  "element-loading-background": "var(--ik-upload-bg)"
483
486
  },
484
487
  [
485
488
  B(s("div", {
486
489
  class: "loading-statu",
487
- onClick: (h) => R(e, u)
490
+ onClick: (g) => O(t, p)
488
491
  }, [
489
- n(r(g), { size: 24 }, {
490
- default: _(() => [
491
- n(r(ge))
492
+ o(r(w), { size: 24 }, {
493
+ default: v(() => [
494
+ o(r(ye))
492
495
  ]),
493
496
  _: 1
494
497
  /* STABLE */
495
498
  }),
496
- Fe,
497
- Oe
498
- ], 8, Ae), [
499
- [I, e.status === "fail"]
499
+ Pe,
500
+ Te
501
+ ], 8, Fe), [
502
+ [I, t.status === "fail"]
500
503
  ]),
501
504
  s("img", {
502
- src: e.__url,
505
+ src: t.__url,
503
506
  alt: "",
504
- style: Y({ "object-fit": a.fit })
505
- }, null, 12, Pe)
507
+ style: te({ "object-fit": l.fit })
508
+ }, null, 12, Ge)
506
509
  ],
507
510
  2
508
511
  /* CLASS */
@@ -516,31 +519,32 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
516
519
  _: 2
517
520
  /* DYNAMIC */
518
521
  }, [
519
- a.tip ? {
522
+ l.tip ? {
520
523
  name: "tip",
521
- fn: _(() => [
524
+ fn: v(() => [
522
525
  s(
523
526
  "span",
524
- He,
525
- $(H.value),
527
+ Ae,
528
+ $(j.value),
526
529
  1
527
530
  /* TEXT */
528
531
  )
529
532
  ]),
530
533
  key: "0"
531
534
  } : void 0
532
- ]), 1032, ["class", "accept", "action", "file-list", "multiple", "limit"]),
533
- x(" 文件预览 "),
534
- s("div", We, [
535
- C.value ? (c(), ee(r(oe), {
535
+ ]), 1032, ["class", "accept", "action", "headers", "data", "file-list", "multiple", "limit"]),
536
+ z(" 文件预览 "),
537
+ s("div", Je, [
538
+ k.value ? (u(), le(r(re), {
536
539
  key: 0,
540
+ "lock-scroll": "",
537
541
  "hide-on-click-modal": "",
538
- onClose: l[1] || (l[1] = () => {
539
- C.value = !1;
542
+ onClose: a[1] || (a[1] = () => {
543
+ k.value = !1;
540
544
  }),
541
- "url-list": v.value.map((e) => e.__url),
542
- "initial-index": b.value
543
- }, null, 8, ["url-list", "initial-index"])) : x("v-if", !0)
545
+ "url-list": d(_.value).map((t) => t.__url),
546
+ "initial-index": L.value
547
+ }, null, 8, ["url-list", "initial-index"])) : z("v-if", !0)
544
548
  ])
545
549
  ],
546
550
  64
@@ -548,8 +552,8 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
548
552
  ));
549
553
  }
550
554
  });
551
- const Ge = /* @__PURE__ */ U(Te, [["__scopeId", "data-v-b18337d2"]]), Ke = ie(Ge);
555
+ const Ze = /* @__PURE__ */ U(We, [["__scopeId", "data-v-0b59ad5e"]]), Xe = ce(Ze);
552
556
  export {
553
- Ke as IkUploadImage,
554
- Ke as default
557
+ Xe as IkUploadImage,
558
+ Xe as default
555
559
  };