iking-web-ui-pro 0.1.1 → 0.1.2
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.
- package/dist/IkUploadImage/index.es.js +179 -189
- package/dist/IkUploadImage/index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +1358 -1368
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as
|
|
2
|
-
import { ElUpload as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
5
|
-
if (a.install = (
|
|
6
|
-
for (const
|
|
7
|
-
|
|
1
|
+
import { defineComponent as f, openBlock as u, createElementBlock as d, createElementVNode as o, watch as K, computed as C, ref as y, Fragment as M, createVNode as s, unref as r, normalizeClass as $, createSlots as Q, withCtx as v, renderSlot as X, toDisplayString as L, 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 oe } from "vue";
|
|
2
|
+
import { ElUpload as ne, ElIcon as w, ElImage as se, ElImageViewer as re } from "element-plus";
|
|
3
|
+
import { _ as ie, ikFile as ue } from "iking-utils-pro";
|
|
4
|
+
const ce = (a, i) => {
|
|
5
|
+
if (a.install = (n) => {
|
|
6
|
+
for (const _ of [a, ...Object.values(i ?? {})])
|
|
7
|
+
n.component(_.name, _);
|
|
8
8
|
}, i)
|
|
9
|
-
for (const [
|
|
10
|
-
a[
|
|
9
|
+
for (const [n, _] of Object.entries(i))
|
|
10
|
+
a[n] = _;
|
|
11
11
|
return a;
|
|
12
12
|
};
|
|
13
13
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
14
|
-
var
|
|
14
|
+
var de = /* @__PURE__ */ f({
|
|
15
15
|
name: "Close",
|
|
16
16
|
__name: "close",
|
|
17
17
|
setup(a) {
|
|
18
|
-
return (i,
|
|
18
|
+
return (i, n) => (u(), d("svg", {
|
|
19
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
20
|
viewBox: "0 0 1024 1024"
|
|
21
21
|
}, [
|
|
22
|
-
|
|
22
|
+
o("path", {
|
|
23
23
|
fill: "currentColor",
|
|
24
24
|
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
25
25
|
})
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
28
|
+
}), _e = de, pe = /* @__PURE__ */ f({
|
|
29
29
|
name: "Delete",
|
|
30
30
|
__name: "delete",
|
|
31
31
|
setup(a) {
|
|
32
|
-
return (i,
|
|
32
|
+
return (i, n) => (u(), d("svg", {
|
|
33
33
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34
34
|
viewBox: "0 0 1024 1024"
|
|
35
35
|
}, [
|
|
36
|
-
|
|
36
|
+
o("path", {
|
|
37
37
|
fill: "currentColor",
|
|
38
38
|
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
|
|
39
39
|
})
|
|
40
40
|
]));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), ve = pe, he = /* @__PURE__ */ f({
|
|
43
43
|
name: "Download",
|
|
44
44
|
__name: "download",
|
|
45
45
|
setup(a) {
|
|
46
|
-
return (i,
|
|
46
|
+
return (i, n) => (u(), d("svg", {
|
|
47
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48
48
|
viewBox: "0 0 1024 1024"
|
|
49
49
|
}, [
|
|
50
|
-
|
|
50
|
+
o("path", {
|
|
51
51
|
fill: "currentColor",
|
|
52
52
|
d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
|
|
53
53
|
})
|
|
54
54
|
]));
|
|
55
55
|
}
|
|
56
|
-
}),
|
|
56
|
+
}), me = he, fe = /* @__PURE__ */ f({
|
|
57
57
|
name: "Plus",
|
|
58
58
|
__name: "plus",
|
|
59
59
|
setup(a) {
|
|
60
|
-
return (i,
|
|
60
|
+
return (i, n) => (u(), d("svg", {
|
|
61
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
62
|
viewBox: "0 0 1024 1024"
|
|
63
63
|
}, [
|
|
64
|
-
|
|
64
|
+
o("path", {
|
|
65
65
|
fill: "currentColor",
|
|
66
66
|
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
67
67
|
})
|
|
68
68
|
]));
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
70
|
+
}), ge = fe, we = /* @__PURE__ */ f({
|
|
71
71
|
name: "Refresh",
|
|
72
72
|
__name: "refresh",
|
|
73
73
|
setup(a) {
|
|
74
|
-
return (i,
|
|
74
|
+
return (i, n) => (u(), d("svg", {
|
|
75
75
|
xmlns: "http://www.w3.org/2000/svg",
|
|
76
76
|
viewBox: "0 0 1024 1024"
|
|
77
77
|
}, [
|
|
78
|
-
|
|
78
|
+
o("path", {
|
|
79
79
|
fill: "currentColor",
|
|
80
80
|
d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
|
|
81
81
|
})
|
|
82
82
|
]));
|
|
83
83
|
}
|
|
84
|
-
}),
|
|
84
|
+
}), ye = we, xe = /* @__PURE__ */ f({
|
|
85
85
|
name: "ZoomIn",
|
|
86
86
|
__name: "zoom-in",
|
|
87
87
|
setup(a) {
|
|
88
|
-
return (i,
|
|
88
|
+
return (i, n) => (u(), d("svg", {
|
|
89
89
|
xmlns: "http://www.w3.org/2000/svg",
|
|
90
90
|
viewBox: "0 0 1024 1024"
|
|
91
91
|
}, [
|
|
92
|
-
|
|
92
|
+
o("path", {
|
|
93
93
|
fill: "currentColor",
|
|
94
94
|
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"
|
|
95
95
|
})
|
|
96
96
|
]));
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
98
|
+
}), ze = xe;
|
|
99
99
|
const U = (a, i) => {
|
|
100
|
-
const
|
|
101
|
-
for (const [
|
|
102
|
-
|
|
103
|
-
return
|
|
104
|
-
},
|
|
100
|
+
const n = a.__vccOpts || a;
|
|
101
|
+
for (const [_, x] of i)
|
|
102
|
+
n[_] = 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
|
-
},
|
|
113
|
+
}, $e = /* @__PURE__ */ o(
|
|
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
|
-
),
|
|
122
|
+
), Le = /* @__PURE__ */ o(
|
|
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
|
-
),
|
|
131
|
+
), be = /* @__PURE__ */ o(
|
|
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
|
-
),
|
|
140
|
+
), Se = /* @__PURE__ */ o(
|
|
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
|
-
),
|
|
149
|
+
), Ve = /* @__PURE__ */ o(
|
|
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
|
-
),
|
|
158
|
+
), Me = /* @__PURE__ */ o(
|
|
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
|
-
),
|
|
167
|
+
), Be = /* @__PURE__ */ o(
|
|
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
|
-
),
|
|
176
|
+
), Ie = /* @__PURE__ */ o(
|
|
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
|
-
),
|
|
186
|
-
Ce,
|
|
187
|
-
ke,
|
|
185
|
+
), Ue = [
|
|
188
186
|
$e,
|
|
189
|
-
be,
|
|
190
187
|
Le,
|
|
188
|
+
be,
|
|
191
189
|
Se,
|
|
192
190
|
Ve,
|
|
193
|
-
Me
|
|
191
|
+
Me,
|
|
192
|
+
Be,
|
|
193
|
+
Ie
|
|
194
194
|
];
|
|
195
|
-
function
|
|
196
|
-
return
|
|
195
|
+
function Ee(a, i) {
|
|
196
|
+
return u(), d("svg", Ce, Ue);
|
|
197
197
|
}
|
|
198
|
-
const
|
|
198
|
+
const He = /* @__PURE__ */ U(ke, [["render", Ee]]), E = (a) => (ae("data-v-7f114281"), a = a(), oe(), a), Ae = {
|
|
199
199
|
key: 1,
|
|
200
200
|
class: "upload-btn"
|
|
201
|
-
},
|
|
201
|
+
}, De = { class: "tip" }, Ne = { class: "loading-statu" }, je = { class: "operate-btn" }, Re = { key: 0 }, Fe = {
|
|
202
202
|
class: "el-upload-list el-upload-list--picture-card",
|
|
203
203
|
style: { float: "left" }
|
|
204
|
-
},
|
|
204
|
+
}, Oe = ["onClick"], Pe = /* @__PURE__ */ E(() => /* @__PURE__ */ o(
|
|
205
205
|
"span",
|
|
206
206
|
{ class: "error" },
|
|
207
207
|
"上传错误",
|
|
208
208
|
-1
|
|
209
209
|
/* HOISTED */
|
|
210
|
-
)),
|
|
210
|
+
)), Te = /* @__PURE__ */ E(() => /* @__PURE__ */ o(
|
|
211
211
|
"p",
|
|
212
212
|
null,
|
|
213
213
|
"点击重新上传",
|
|
214
214
|
-1
|
|
215
215
|
/* HOISTED */
|
|
216
|
-
)),
|
|
216
|
+
)), Ge = ["src"], Je = { class: "demo-image__preview" }, We = /* @__PURE__ */ f({
|
|
217
217
|
__name: "index",
|
|
218
218
|
props: {
|
|
219
219
|
// 显示的文字
|
|
@@ -280,121 +280,109 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
|
|
|
280
280
|
},
|
|
281
281
|
emits: ["delete", "success"],
|
|
282
282
|
setup(a, { emit: i }) {
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
283
|
+
const n = a, _ = (e) => Array.isArray(e) ? e.map((l) => {
|
|
284
|
+
var t;
|
|
285
|
+
return {
|
|
286
|
+
...l,
|
|
287
|
+
__url: (t = l.url) != null && t.startsWith("http") ? l.url : `${n.loadUrl}${l.url}`
|
|
288
|
+
};
|
|
289
|
+
}) : [{ url: e, __url: e != null && e.startsWith("http") ? e : `${n.loadUrl}${e}` }];
|
|
290
|
+
K(
|
|
291
|
+
() => n.modelValue,
|
|
292
|
+
(e) => {
|
|
293
|
+
c.value = _(e);
|
|
294
294
|
},
|
|
295
295
|
{ deep: !0 }
|
|
296
296
|
);
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
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({
|
|
297
|
+
const x = i, H = C(() => n.size), h = y(null), c = y(_(n.modelValue)), m = y([]), k = y(!1), b = y(0), A = C(
|
|
298
|
+
() => n.tipText || `最多可上传${n.limit}张图片, 每张图片不能超过${n.size}MB`
|
|
299
|
+
), D = (e, l) => {
|
|
300
|
+
c.value = ie.cloneDeep(_(l));
|
|
301
|
+
}, N = (e) => !(!(e.type === "image/jpeg" || e.type === "image/png") || !(e.size / 1024 / 1024 < H.value)), j = () => !1, R = (e, l) => {
|
|
302
|
+
var t, p;
|
|
303
|
+
e.status = "ready", l !== void 0 && m.value.splice(l, 1), (t = h.value) == null || t.handleStart(e.raw), (p = h.value) == null || p.submit();
|
|
304
|
+
}, F = (e, l) => {
|
|
305
|
+
var S, V;
|
|
306
|
+
const t = c.value.length, p = n.limit - t;
|
|
307
|
+
let g = 0;
|
|
308
|
+
for (; g < p && g < e.length; )
|
|
309
|
+
(S = h.value) == null || S.handleStart(e[g]), (V = h.value) == null || V.submit(), g++;
|
|
310
|
+
}, O = (e, l, t) => {
|
|
311
|
+
x("success", e, l, t);
|
|
312
|
+
}, P = (e, l, t) => {
|
|
313
|
+
m.value.push({
|
|
326
314
|
...l,
|
|
327
315
|
__url: l.url
|
|
328
316
|
});
|
|
329
|
-
},
|
|
330
|
-
|
|
331
|
-
},
|
|
332
|
-
|
|
333
|
-
},
|
|
317
|
+
}, T = (e) => {
|
|
318
|
+
k.value = !0, b.value = c.value.findIndex((l) => l.url === e.url);
|
|
319
|
+
}, G = (e) => {
|
|
320
|
+
ue.downloadByOnlineUrl(e.__url || e.url, e.name);
|
|
321
|
+
}, J = (e) => {
|
|
334
322
|
var l;
|
|
335
|
-
(l =
|
|
336
|
-
},
|
|
323
|
+
(l = h.value) == null || l.abort(e);
|
|
324
|
+
}, W = (e) => {
|
|
337
325
|
var l;
|
|
338
|
-
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
};
|
|
342
|
-
return (
|
|
326
|
+
e.status !== "success" && J(e), (l = h.value) == null || l.handleRemove(e), c.value = c.value.filter((t) => t.uid !== e.uid), x("delete", e);
|
|
327
|
+
}, Z = (e, l) => {
|
|
328
|
+
m.value.splice(l, 1);
|
|
329
|
+
}, q = C(() => (console.log(c.value, m.value), n.multiple ? c.value.length + m.value.length < n.limit : c.value.length + m.value.length === 0));
|
|
330
|
+
return (e, l) => (u(), d(
|
|
343
331
|
M,
|
|
344
332
|
null,
|
|
345
333
|
[
|
|
346
|
-
|
|
347
|
-
class:
|
|
334
|
+
s(r(ne), {
|
|
335
|
+
class: $(["ik-image-upload", { preview: a.preview, "hide-upload": !q.value }]),
|
|
348
336
|
ref_key: "refUpload",
|
|
349
|
-
ref:
|
|
337
|
+
ref: h,
|
|
350
338
|
"list-type": "picture-card",
|
|
351
339
|
accept: a.accept,
|
|
352
340
|
action: a.action,
|
|
353
|
-
"file-list":
|
|
354
|
-
"onUpdate:fileList": l[0] || (l[0] = (
|
|
341
|
+
"file-list": c.value,
|
|
342
|
+
"onUpdate:fileList": l[0] || (l[0] = (t) => c.value = t),
|
|
355
343
|
multiple: a.multiple,
|
|
356
344
|
limit: a.limit,
|
|
357
345
|
"on-change": D,
|
|
358
346
|
"before-upload": N,
|
|
359
347
|
"before-remove": j,
|
|
360
|
-
"on-exceed":
|
|
361
|
-
"on-success":
|
|
362
|
-
"on-error":
|
|
348
|
+
"on-exceed": F,
|
|
349
|
+
"on-success": O,
|
|
350
|
+
"on-error": P,
|
|
363
351
|
drag: ""
|
|
364
|
-
},
|
|
365
|
-
trigger:
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
default:
|
|
369
|
-
|
|
352
|
+
}, Q({
|
|
353
|
+
trigger: v(() => [
|
|
354
|
+
e.$slots.trigger ? X(e.$slots, "trigger", { key: 0 }, void 0, !0) : (u(), d("div", Ae, [
|
|
355
|
+
s(r(w), null, {
|
|
356
|
+
default: v(() => [
|
|
357
|
+
s(r(ge))
|
|
370
358
|
]),
|
|
371
359
|
_: 1
|
|
372
360
|
/* STABLE */
|
|
373
361
|
}),
|
|
374
|
-
|
|
362
|
+
o(
|
|
375
363
|
"span",
|
|
376
364
|
null,
|
|
377
|
-
|
|
365
|
+
L(a.title),
|
|
378
366
|
1
|
|
379
367
|
/* TEXT */
|
|
380
368
|
)
|
|
381
369
|
]))
|
|
382
370
|
]),
|
|
383
|
-
file:
|
|
384
|
-
|
|
371
|
+
file: v(({ file: t }) => [
|
|
372
|
+
o(
|
|
385
373
|
"div",
|
|
386
374
|
{
|
|
387
|
-
class:
|
|
375
|
+
class: $(["load-list", { loading: t.status === "uploading" }]),
|
|
388
376
|
"element-loading-background": "var(--ik-upload-bg)"
|
|
389
377
|
},
|
|
390
378
|
[
|
|
391
|
-
B(
|
|
379
|
+
B(o(
|
|
392
380
|
"div",
|
|
393
|
-
|
|
381
|
+
Ne,
|
|
394
382
|
[
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
" 上传" +
|
|
383
|
+
s(He),
|
|
384
|
+
Y(
|
|
385
|
+
" 上传" + L(t.percentage) + "% ",
|
|
398
386
|
1
|
|
399
387
|
/* TEXT */
|
|
400
388
|
)
|
|
@@ -402,45 +390,46 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
|
|
|
402
390
|
512
|
|
403
391
|
/* NEED_PATCH */
|
|
404
392
|
), [
|
|
405
|
-
[I,
|
|
393
|
+
[I, t.status === "uploading"]
|
|
406
394
|
]),
|
|
407
|
-
|
|
408
|
-
|
|
395
|
+
z(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
|
|
396
|
+
s(r(se), {
|
|
409
397
|
style: { width: "100%", height: "100%" },
|
|
410
|
-
src:
|
|
398
|
+
src: t.__url || t.url,
|
|
411
399
|
"zoom-rate": 1.2,
|
|
412
400
|
"initial-index": 0,
|
|
413
401
|
fit: "contain"
|
|
414
402
|
}, null, 8, ["src"]),
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
onClick: (
|
|
403
|
+
o("span", je, [
|
|
404
|
+
o("span", null, [
|
|
405
|
+
s(r(w), {
|
|
406
|
+
onClick: (p) => T(t)
|
|
419
407
|
}, {
|
|
420
|
-
default:
|
|
421
|
-
|
|
408
|
+
default: v(() => [
|
|
409
|
+
s(r(ze))
|
|
422
410
|
]),
|
|
423
411
|
_: 2
|
|
424
412
|
/* DYNAMIC */
|
|
425
413
|
}, 1032, ["onClick"])
|
|
426
414
|
]),
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
onClick: (
|
|
415
|
+
o("span", null, [
|
|
416
|
+
s(r(w), {
|
|
417
|
+
onClick: (p) => G(t)
|
|
430
418
|
}, {
|
|
431
|
-
default:
|
|
432
|
-
|
|
419
|
+
default: v(() => [
|
|
420
|
+
s(r(me))
|
|
433
421
|
]),
|
|
434
422
|
_: 2
|
|
435
423
|
/* DYNAMIC */
|
|
436
424
|
}, 1032, ["onClick"])
|
|
437
425
|
]),
|
|
438
|
-
a.preview ?
|
|
439
|
-
|
|
440
|
-
|
|
426
|
+
a.preview ? z("v-if", !0) : (u(), d("span", Re, [
|
|
427
|
+
s(r(w), {
|
|
428
|
+
type: "warning",
|
|
429
|
+
onClick: (p) => W(t)
|
|
441
430
|
}, {
|
|
442
|
-
default:
|
|
443
|
-
|
|
431
|
+
default: v(() => [
|
|
432
|
+
s(r(ve))
|
|
444
433
|
]),
|
|
445
434
|
_: 2
|
|
446
435
|
/* DYNAMIC */
|
|
@@ -452,57 +441,57 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
|
|
|
452
441
|
/* CLASS */
|
|
453
442
|
)
|
|
454
443
|
]),
|
|
455
|
-
default:
|
|
456
|
-
|
|
457
|
-
(
|
|
444
|
+
default: v(() => [
|
|
445
|
+
o("ul", Fe, [
|
|
446
|
+
(u(!0), d(
|
|
458
447
|
M,
|
|
459
448
|
null,
|
|
460
|
-
|
|
449
|
+
ee(m.value, (t, p) => (u(), d("li", {
|
|
461
450
|
class: "el-upload-list__item",
|
|
462
|
-
key:
|
|
451
|
+
key: t.uid
|
|
463
452
|
}, [
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
onClick: (
|
|
453
|
+
o("span", null, [
|
|
454
|
+
s(r(w), {
|
|
455
|
+
onClick: (g) => Z(t, p)
|
|
467
456
|
}, {
|
|
468
|
-
default:
|
|
469
|
-
|
|
457
|
+
default: v(() => [
|
|
458
|
+
s(r(_e))
|
|
470
459
|
]),
|
|
471
460
|
_: 2
|
|
472
461
|
/* DYNAMIC */
|
|
473
462
|
}, 1032, ["onClick"])
|
|
474
463
|
]),
|
|
475
|
-
|
|
464
|
+
o(
|
|
476
465
|
"div",
|
|
477
466
|
{
|
|
478
|
-
class:
|
|
479
|
-
loading:
|
|
480
|
-
fail:
|
|
467
|
+
class: $(["load-list", {
|
|
468
|
+
loading: t.status === "uploading",
|
|
469
|
+
fail: t.status === "fail"
|
|
481
470
|
}]),
|
|
482
471
|
"element-loading-background": "var(--ik-upload-bg)"
|
|
483
472
|
},
|
|
484
473
|
[
|
|
485
|
-
B(
|
|
474
|
+
B(o("div", {
|
|
486
475
|
class: "loading-statu",
|
|
487
|
-
onClick: (
|
|
476
|
+
onClick: (g) => R(t, p)
|
|
488
477
|
}, [
|
|
489
|
-
|
|
490
|
-
default:
|
|
491
|
-
|
|
478
|
+
s(r(w), { size: 24 }, {
|
|
479
|
+
default: v(() => [
|
|
480
|
+
s(r(ye))
|
|
492
481
|
]),
|
|
493
482
|
_: 1
|
|
494
483
|
/* STABLE */
|
|
495
484
|
}),
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
], 8,
|
|
499
|
-
[I,
|
|
485
|
+
Pe,
|
|
486
|
+
Te
|
|
487
|
+
], 8, Oe), [
|
|
488
|
+
[I, t.status === "fail"]
|
|
500
489
|
]),
|
|
501
|
-
|
|
502
|
-
src:
|
|
490
|
+
o("img", {
|
|
491
|
+
src: t.__url,
|
|
503
492
|
alt: "",
|
|
504
|
-
style:
|
|
505
|
-
}, null, 12,
|
|
493
|
+
style: te({ "object-fit": a.fit })
|
|
494
|
+
}, null, 12, Ge)
|
|
506
495
|
],
|
|
507
496
|
2
|
|
508
497
|
/* CLASS */
|
|
@@ -518,11 +507,11 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
|
|
|
518
507
|
}, [
|
|
519
508
|
a.tip ? {
|
|
520
509
|
name: "tip",
|
|
521
|
-
fn:
|
|
522
|
-
|
|
510
|
+
fn: v(() => [
|
|
511
|
+
o(
|
|
523
512
|
"span",
|
|
524
|
-
|
|
525
|
-
|
|
513
|
+
De,
|
|
514
|
+
L(A.value),
|
|
526
515
|
1
|
|
527
516
|
/* TEXT */
|
|
528
517
|
)
|
|
@@ -530,17 +519,18 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
|
|
|
530
519
|
key: "0"
|
|
531
520
|
} : void 0
|
|
532
521
|
]), 1032, ["class", "accept", "action", "file-list", "multiple", "limit"]),
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
522
|
+
z(" 文件预览 "),
|
|
523
|
+
o("div", Je, [
|
|
524
|
+
k.value ? (u(), le(r(re), {
|
|
536
525
|
key: 0,
|
|
526
|
+
"lock-scroll": "",
|
|
537
527
|
"hide-on-click-modal": "",
|
|
538
528
|
onClose: l[1] || (l[1] = () => {
|
|
539
|
-
|
|
529
|
+
k.value = !1;
|
|
540
530
|
}),
|
|
541
|
-
"url-list":
|
|
531
|
+
"url-list": _(c.value).map((t) => t.__url),
|
|
542
532
|
"initial-index": b.value
|
|
543
|
-
}, null, 8, ["url-list", "initial-index"])) :
|
|
533
|
+
}, null, 8, ["url-list", "initial-index"])) : z("v-if", !0)
|
|
544
534
|
])
|
|
545
535
|
],
|
|
546
536
|
64
|
|
@@ -548,8 +538,8 @@ const Ue = /* @__PURE__ */ U(xe, [["render", Ie]]), E = (a) => (te("data-v-b1833
|
|
|
548
538
|
));
|
|
549
539
|
}
|
|
550
540
|
});
|
|
551
|
-
const
|
|
541
|
+
const Ze = /* @__PURE__ */ U(We, [["__scopeId", "data-v-7f114281"]]), Xe = ce(Ze);
|
|
552
542
|
export {
|
|
553
|
-
|
|
554
|
-
|
|
543
|
+
Xe as IkUploadImage,
|
|
544
|
+
Xe as default
|
|
555
545
|
};
|