iking-web-ui-pro 0.2.30 → 0.2.32
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/IKPreviewFile/ik.index.es.js +2168 -1519
- package/dist/IKPreviewFile/ik.index.umd.js +61 -61
- package/dist/IkApprovalProcessDetail/ik.index.es.js +3194 -2545
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +58 -58
- package/dist/IkDescription/ik.index.es.js +2300 -1651
- package/dist/IkDescription/ik.index.umd.js +61 -61
- package/dist/IkDetailPreviewFiles/ik.index.es.js +2385 -1736
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +61 -61
- package/dist/IkImageViewer/ik.index.es.js +681 -0
- package/dist/IkImageViewer/ik.index.umd.js +1 -0
- package/dist/IkPreviewFileDialog/ik.index.es.js +2762 -2113
- package/dist/IkPreviewFileDialog/ik.index.umd.js +58 -58
- package/dist/IkUploadFile/ik.index.es.js +3189 -2540
- package/dist/IkUploadFile/ik.index.umd.js +58 -58
- package/dist/IkUploadImage/ik.index.es.js +914 -279
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +27129 -26521
- package/dist/index.umd.js +112 -112
- package/dist/src/components/IkImageViewer/index.d.ts +6 -0
- package/dist/src/components/IkImageViewer/src/IkImageViewer.vue.d.ts +11 -0
- package/dist/src/components/IkImageViewer/src/image-viewer.d.ts +87 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,93 +1,191 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { ikColor as
|
|
4
|
-
const
|
|
5
|
-
if (
|
|
6
|
-
for (const i of [
|
|
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";
|
|
4
|
+
const fe = (t, n) => {
|
|
5
|
+
if (t.install = (e) => {
|
|
6
|
+
for (const i of [t, ...Object.values(n ?? {})])
|
|
7
7
|
e.component(i.name, i);
|
|
8
|
-
},
|
|
9
|
-
for (const [e, i] of Object.entries(
|
|
10
|
-
|
|
11
|
-
return
|
|
8
|
+
}, n)
|
|
9
|
+
for (const [e, i] of Object.entries(n))
|
|
10
|
+
t[e] = i;
|
|
11
|
+
return t;
|
|
12
12
|
};
|
|
13
13
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
14
|
-
var
|
|
14
|
+
var rt = /* @__PURE__ */ $({
|
|
15
|
+
name: "ArrowLeft",
|
|
16
|
+
__name: "arrow-left",
|
|
17
|
+
setup(t) {
|
|
18
|
+
return (n, e) => (d(), v("svg", {
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
+
viewBox: "0 0 1024 1024"
|
|
21
|
+
}, [
|
|
22
|
+
s("path", {
|
|
23
|
+
fill: "currentColor",
|
|
24
|
+
d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"
|
|
25
|
+
})
|
|
26
|
+
]));
|
|
27
|
+
}
|
|
28
|
+
}), it = rt, ut = /* @__PURE__ */ $({
|
|
29
|
+
name: "ArrowRight",
|
|
30
|
+
__name: "arrow-right",
|
|
31
|
+
setup(t) {
|
|
32
|
+
return (n, e) => (d(), v("svg", {
|
|
33
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
34
|
+
viewBox: "0 0 1024 1024"
|
|
35
|
+
}, [
|
|
36
|
+
s("path", {
|
|
37
|
+
fill: "currentColor",
|
|
38
|
+
d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
|
|
39
|
+
})
|
|
40
|
+
]));
|
|
41
|
+
}
|
|
42
|
+
}), ct = ut, dt = /* @__PURE__ */ $({
|
|
15
43
|
name: "Close",
|
|
16
44
|
__name: "close",
|
|
17
|
-
setup(
|
|
18
|
-
return (
|
|
45
|
+
setup(t) {
|
|
46
|
+
return (n, e) => (d(), v("svg", {
|
|
19
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
48
|
viewBox: "0 0 1024 1024"
|
|
21
49
|
}, [
|
|
22
|
-
|
|
50
|
+
s("path", {
|
|
23
51
|
fill: "currentColor",
|
|
24
52
|
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
53
|
})
|
|
26
54
|
]));
|
|
27
55
|
}
|
|
28
|
-
}),
|
|
56
|
+
}), Ee = dt, pt = /* @__PURE__ */ $({
|
|
29
57
|
name: "Delete",
|
|
30
58
|
__name: "delete",
|
|
31
|
-
setup(
|
|
32
|
-
return (
|
|
59
|
+
setup(t) {
|
|
60
|
+
return (n, e) => (d(), v("svg", {
|
|
33
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34
62
|
viewBox: "0 0 1024 1024"
|
|
35
63
|
}, [
|
|
36
|
-
|
|
64
|
+
s("path", {
|
|
37
65
|
fill: "currentColor",
|
|
38
66
|
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
67
|
})
|
|
40
68
|
]));
|
|
41
69
|
}
|
|
42
|
-
}),
|
|
70
|
+
}), vt = pt, _t = /* @__PURE__ */ $({
|
|
43
71
|
name: "Download",
|
|
44
72
|
__name: "download",
|
|
45
|
-
setup(
|
|
46
|
-
return (
|
|
73
|
+
setup(t) {
|
|
74
|
+
return (n, e) => (d(), v("svg", {
|
|
47
75
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48
76
|
viewBox: "0 0 1024 1024"
|
|
49
77
|
}, [
|
|
50
|
-
|
|
78
|
+
s("path", {
|
|
51
79
|
fill: "currentColor",
|
|
52
80
|
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
81
|
})
|
|
54
82
|
]));
|
|
55
83
|
}
|
|
56
|
-
}),
|
|
84
|
+
}), ft = _t, mt = /* @__PURE__ */ $({
|
|
85
|
+
name: "FullScreen",
|
|
86
|
+
__name: "full-screen",
|
|
87
|
+
setup(t) {
|
|
88
|
+
return (n, e) => (d(), v("svg", {
|
|
89
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
90
|
+
viewBox: "0 0 1024 1024"
|
|
91
|
+
}, [
|
|
92
|
+
s("path", {
|
|
93
|
+
fill: "currentColor",
|
|
94
|
+
d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
|
|
95
|
+
})
|
|
96
|
+
]));
|
|
97
|
+
}
|
|
98
|
+
}), gt = mt, ht = /* @__PURE__ */ $({
|
|
99
|
+
name: "RefreshLeft",
|
|
100
|
+
__name: "refresh-left",
|
|
101
|
+
setup(t) {
|
|
102
|
+
return (n, e) => (d(), v("svg", {
|
|
103
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
104
|
+
viewBox: "0 0 1024 1024"
|
|
105
|
+
}, [
|
|
106
|
+
s("path", {
|
|
107
|
+
fill: "currentColor",
|
|
108
|
+
d: "M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"
|
|
109
|
+
})
|
|
110
|
+
]));
|
|
111
|
+
}
|
|
112
|
+
}), wt = ht, yt = /* @__PURE__ */ $({
|
|
113
|
+
name: "RefreshRight",
|
|
114
|
+
__name: "refresh-right",
|
|
115
|
+
setup(t) {
|
|
116
|
+
return (n, e) => (d(), v("svg", {
|
|
117
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
118
|
+
viewBox: "0 0 1024 1024"
|
|
119
|
+
}, [
|
|
120
|
+
s("path", {
|
|
121
|
+
fill: "currentColor",
|
|
122
|
+
d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"
|
|
123
|
+
})
|
|
124
|
+
]));
|
|
125
|
+
}
|
|
126
|
+
}), bt = yt, kt = /* @__PURE__ */ $({
|
|
57
127
|
name: "Refresh",
|
|
58
128
|
__name: "refresh",
|
|
59
|
-
setup(
|
|
60
|
-
return (
|
|
129
|
+
setup(t) {
|
|
130
|
+
return (n, e) => (d(), v("svg", {
|
|
61
131
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
132
|
viewBox: "0 0 1024 1024"
|
|
63
133
|
}, [
|
|
64
|
-
|
|
134
|
+
s("path", {
|
|
65
135
|
fill: "currentColor",
|
|
66
136
|
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"
|
|
67
137
|
})
|
|
68
138
|
]));
|
|
69
139
|
}
|
|
70
|
-
}),
|
|
140
|
+
}), xt = kt, zt = /* @__PURE__ */ $({
|
|
141
|
+
name: "ScaleToOriginal",
|
|
142
|
+
__name: "scale-to-original",
|
|
143
|
+
setup(t) {
|
|
144
|
+
return (n, e) => (d(), v("svg", {
|
|
145
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
146
|
+
viewBox: "0 0 1024 1024"
|
|
147
|
+
}, [
|
|
148
|
+
s("path", {
|
|
149
|
+
fill: "currentColor",
|
|
150
|
+
d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"
|
|
151
|
+
})
|
|
152
|
+
]));
|
|
153
|
+
}
|
|
154
|
+
}), It = zt, Ct = /* @__PURE__ */ $({
|
|
71
155
|
name: "ZoomIn",
|
|
72
156
|
__name: "zoom-in",
|
|
73
|
-
setup(
|
|
74
|
-
return (
|
|
157
|
+
setup(t) {
|
|
158
|
+
return (n, e) => (d(), v("svg", {
|
|
75
159
|
xmlns: "http://www.w3.org/2000/svg",
|
|
76
160
|
viewBox: "0 0 1024 1024"
|
|
77
161
|
}, [
|
|
78
|
-
|
|
162
|
+
s("path", {
|
|
79
163
|
fill: "currentColor",
|
|
80
164
|
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"
|
|
81
165
|
})
|
|
82
166
|
]));
|
|
83
167
|
}
|
|
84
|
-
}),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
e
|
|
168
|
+
}), Ne = Ct, Ot = /* @__PURE__ */ $({
|
|
169
|
+
name: "ZoomOut",
|
|
170
|
+
__name: "zoom-out",
|
|
171
|
+
setup(t) {
|
|
172
|
+
return (n, e) => (d(), v("svg", {
|
|
173
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
174
|
+
viewBox: "0 0 1024 1024"
|
|
175
|
+
}, [
|
|
176
|
+
s("path", {
|
|
177
|
+
fill: "currentColor",
|
|
178
|
+
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 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"
|
|
179
|
+
})
|
|
180
|
+
]));
|
|
181
|
+
}
|
|
182
|
+
}), $t = Ot;
|
|
183
|
+
const me = (t, n) => {
|
|
184
|
+
const e = t.__vccOpts || t;
|
|
185
|
+
for (const [i, m] of n)
|
|
186
|
+
e[i] = m;
|
|
89
187
|
return e;
|
|
90
|
-
},
|
|
188
|
+
}, Lt = {}, Mt = {
|
|
91
189
|
t: "1686214149488",
|
|
92
190
|
class: "icon",
|
|
93
191
|
viewBox: "0 0 1024 1024",
|
|
@@ -96,7 +194,7 @@ const H = (l, c) => {
|
|
|
96
194
|
"p-id": "8490",
|
|
97
195
|
width: "200",
|
|
98
196
|
height: "200"
|
|
99
|
-
},
|
|
197
|
+
}, Bt = /* @__PURE__ */ s(
|
|
100
198
|
"path",
|
|
101
199
|
{
|
|
102
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",
|
|
@@ -105,7 +203,7 @@ const H = (l, c) => {
|
|
|
105
203
|
null,
|
|
106
204
|
-1
|
|
107
205
|
/* HOISTED */
|
|
108
|
-
),
|
|
206
|
+
), St = /* @__PURE__ */ s(
|
|
109
207
|
"path",
|
|
110
208
|
{
|
|
111
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",
|
|
@@ -114,7 +212,7 @@ const H = (l, c) => {
|
|
|
114
212
|
null,
|
|
115
213
|
-1
|
|
116
214
|
/* HOISTED */
|
|
117
|
-
),
|
|
215
|
+
), Et = /* @__PURE__ */ s(
|
|
118
216
|
"path",
|
|
119
217
|
{
|
|
120
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",
|
|
@@ -123,7 +221,7 @@ const H = (l, c) => {
|
|
|
123
221
|
null,
|
|
124
222
|
-1
|
|
125
223
|
/* HOISTED */
|
|
126
|
-
),
|
|
224
|
+
), Nt = /* @__PURE__ */ s(
|
|
127
225
|
"path",
|
|
128
226
|
{
|
|
129
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",
|
|
@@ -132,7 +230,7 @@ const H = (l, c) => {
|
|
|
132
230
|
null,
|
|
133
231
|
-1
|
|
134
232
|
/* HOISTED */
|
|
135
|
-
),
|
|
233
|
+
), Tt = /* @__PURE__ */ s(
|
|
136
234
|
"path",
|
|
137
235
|
{
|
|
138
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",
|
|
@@ -141,7 +239,7 @@ const H = (l, c) => {
|
|
|
141
239
|
null,
|
|
142
240
|
-1
|
|
143
241
|
/* HOISTED */
|
|
144
|
-
),
|
|
242
|
+
), At = /* @__PURE__ */ s(
|
|
145
243
|
"path",
|
|
146
244
|
{
|
|
147
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",
|
|
@@ -150,7 +248,7 @@ const H = (l, c) => {
|
|
|
150
248
|
null,
|
|
151
249
|
-1
|
|
152
250
|
/* HOISTED */
|
|
153
|
-
),
|
|
251
|
+
), Vt = /* @__PURE__ */ s(
|
|
154
252
|
"path",
|
|
155
253
|
{
|
|
156
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",
|
|
@@ -159,7 +257,7 @@ const H = (l, c) => {
|
|
|
159
257
|
null,
|
|
160
258
|
-1
|
|
161
259
|
/* HOISTED */
|
|
162
|
-
),
|
|
260
|
+
), Pt = /* @__PURE__ */ s(
|
|
163
261
|
"path",
|
|
164
262
|
{
|
|
165
263
|
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",
|
|
@@ -168,27 +266,27 @@ const H = (l, c) => {
|
|
|
168
266
|
null,
|
|
169
267
|
-1
|
|
170
268
|
/* HOISTED */
|
|
171
|
-
),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
269
|
+
), Rt = [
|
|
270
|
+
Bt,
|
|
271
|
+
St,
|
|
272
|
+
Et,
|
|
273
|
+
Nt,
|
|
274
|
+
Tt,
|
|
275
|
+
At,
|
|
276
|
+
Vt,
|
|
277
|
+
Pt
|
|
180
278
|
];
|
|
181
|
-
function
|
|
182
|
-
return
|
|
279
|
+
function Ut(t, n) {
|
|
280
|
+
return d(), v("svg", Mt, Rt);
|
|
183
281
|
}
|
|
184
|
-
const
|
|
185
|
-
const
|
|
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));
|
|
186
284
|
return {
|
|
187
285
|
cLoadUrl: e,
|
|
188
|
-
cUploadUrl:
|
|
189
|
-
cToken:
|
|
190
|
-
cOnlyofficeConfig:
|
|
191
|
-
cUserInfo:
|
|
286
|
+
cUploadUrl: m,
|
|
287
|
+
cToken: z,
|
|
288
|
+
cOnlyofficeConfig: f,
|
|
289
|
+
cUserInfo: C,
|
|
192
290
|
cOnlyofficePreviewType: [
|
|
193
291
|
"csv",
|
|
194
292
|
"djvu",
|
|
@@ -243,18 +341,18 @@ const Je = /* @__PURE__ */ H(Ee, [["render", Ge]]), Xe = (l) => {
|
|
|
243
341
|
"mp4"
|
|
244
342
|
]
|
|
245
343
|
};
|
|
246
|
-
},
|
|
344
|
+
}, Dt = jt, Ft = {
|
|
247
345
|
key: 0,
|
|
248
346
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
249
|
-
},
|
|
347
|
+
}, Wt = {
|
|
250
348
|
key: 1,
|
|
251
349
|
class: "h-[1em] w-[1em]",
|
|
252
350
|
"aria-hidden": "true"
|
|
253
|
-
},
|
|
351
|
+
}, Xt = ["xlink:href"], Yt = ["src"], Qt = {
|
|
254
352
|
key: 1,
|
|
255
353
|
class: "h-[1em] w-[1em]",
|
|
256
354
|
"aria-hidden": "true"
|
|
257
|
-
},
|
|
355
|
+
}, Gt = ["xlink:href"], Zt = ["src"], Kt = /* @__PURE__ */ $({
|
|
258
356
|
name: "IkSvgIcon",
|
|
259
357
|
__name: "index",
|
|
260
358
|
props: {
|
|
@@ -280,86 +378,86 @@ const Je = /* @__PURE__ */ H(Ee, [["render", Ge]]), Xe = (l) => {
|
|
|
280
378
|
warning: { type: Boolean },
|
|
281
379
|
width: {}
|
|
282
380
|
},
|
|
283
|
-
setup(
|
|
284
|
-
const
|
|
285
|
-
const { name:
|
|
286
|
-
return /^http?:\/\//.test(
|
|
287
|
-
}),
|
|
288
|
-
const
|
|
381
|
+
setup(t) {
|
|
382
|
+
const n = t, e = w(() => n), i = w(() => {
|
|
383
|
+
const { name: l } = e.value;
|
|
384
|
+
return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
|
|
385
|
+
}), m = w(() => {
|
|
386
|
+
const l = [];
|
|
289
387
|
if (e.value.flip)
|
|
290
388
|
switch (e.value.flip) {
|
|
291
389
|
case "horizontal":
|
|
292
|
-
|
|
390
|
+
l.push("rotateY(180deg)");
|
|
293
391
|
break;
|
|
294
392
|
case "vertical":
|
|
295
|
-
|
|
393
|
+
l.push("rotateX(180deg)");
|
|
296
394
|
break;
|
|
297
395
|
case "both":
|
|
298
|
-
|
|
396
|
+
l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
|
|
299
397
|
break;
|
|
300
398
|
}
|
|
301
|
-
e.value.rotate &&
|
|
302
|
-
const
|
|
399
|
+
e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
400
|
+
const z = {
|
|
303
401
|
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
304
402
|
...e.value.color && { color: e.value.color },
|
|
305
403
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
306
|
-
...
|
|
404
|
+
...l.length && { transform: l.join(" ") },
|
|
307
405
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
308
406
|
...e.value.color && i.value !== "iksig" ? {
|
|
309
407
|
"--ik-color-icon-dark": e.value.color,
|
|
310
|
-
"--ik-color-icon-light": e.value.colorLight ||
|
|
408
|
+
"--ik-color-icon-light": e.value.colorLight || st.setOpacity(e.value.color, e.value.opacity)
|
|
311
409
|
} : {}
|
|
312
410
|
};
|
|
313
|
-
return e.value.width && (
|
|
411
|
+
return e.value.width && (z.width = z.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), z;
|
|
314
412
|
});
|
|
315
|
-
return (
|
|
316
|
-
const
|
|
317
|
-
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (
|
|
318
|
-
e.value.notip || !e.value.title ? (
|
|
413
|
+
return (l, z) => {
|
|
414
|
+
const E = we("el-tooltip"), f = we("el-button");
|
|
415
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (d(), v("span", Ft, [
|
|
416
|
+
e.value.notip || !e.value.title ? (d(), v(
|
|
319
417
|
"i",
|
|
320
418
|
{
|
|
321
419
|
key: 0,
|
|
322
|
-
class:
|
|
323
|
-
[
|
|
420
|
+
class: k(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
421
|
+
[l.name]: i.value === "unocss",
|
|
324
422
|
"show-bg": e.value.showBg || e.value.bg,
|
|
325
423
|
default: e.value.size === "default",
|
|
326
424
|
small: e.value.size === "small",
|
|
327
425
|
big: e.value.size === "big",
|
|
328
426
|
warning: e.value.warning || e.value.type === "warning",
|
|
329
427
|
primary: e.value.primary || e.value.type === "primary",
|
|
330
|
-
success:
|
|
428
|
+
success: l.success || e.value.type === "success",
|
|
331
429
|
error: e.value.error || e.value.type === "error",
|
|
332
430
|
active: e.value.active,
|
|
333
431
|
disabled: e.value.disabled
|
|
334
432
|
}]),
|
|
335
|
-
style:
|
|
433
|
+
style: U(m.value)
|
|
336
434
|
},
|
|
337
435
|
[
|
|
338
|
-
|
|
339
|
-
i.value === "iksig" ? (
|
|
436
|
+
R(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
437
|
+
i.value === "iksig" ? (d(), v(
|
|
340
438
|
"i",
|
|
341
439
|
{
|
|
342
440
|
key: 0,
|
|
343
|
-
class:
|
|
344
|
-
style:
|
|
441
|
+
class: k(`iksig ${e.value.name}`),
|
|
442
|
+
style: U(m.value)
|
|
345
443
|
},
|
|
346
444
|
null,
|
|
347
445
|
6
|
|
348
446
|
/* CLASS, STYLE */
|
|
349
|
-
)) : i.value === "svg" ? (
|
|
350
|
-
|
|
447
|
+
)) : i.value === "svg" ? (d(), v("svg", Wt, [
|
|
448
|
+
s("use", {
|
|
351
449
|
"xlink:href": `#${e.value.name}`
|
|
352
|
-
}, null, 8,
|
|
353
|
-
])) : i.value === "img" ? (
|
|
450
|
+
}, null, 8, Xt)
|
|
451
|
+
])) : i.value === "img" ? (d(), v("img", {
|
|
354
452
|
key: 2,
|
|
355
453
|
src: e.value.name,
|
|
356
454
|
class: "h-[1em] w-[1em]"
|
|
357
|
-
}, null, 8,
|
|
455
|
+
}, null, 8, Yt)) : (d(), v(
|
|
358
456
|
"i",
|
|
359
457
|
{
|
|
360
458
|
key: 3,
|
|
361
|
-
class:
|
|
362
|
-
style:
|
|
459
|
+
class: k(e.value.name),
|
|
460
|
+
style: U(m.value)
|
|
363
461
|
},
|
|
364
462
|
null,
|
|
365
463
|
6
|
|
@@ -368,54 +466,54 @@ const Je = /* @__PURE__ */ H(Ee, [["render", Ge]]), Xe = (l) => {
|
|
|
368
466
|
],
|
|
369
467
|
6
|
|
370
468
|
/* CLASS, STYLE */
|
|
371
|
-
)) : (
|
|
469
|
+
)) : (d(), Q(E, {
|
|
372
470
|
key: 1,
|
|
373
471
|
content: e.value.title,
|
|
374
472
|
placement: "top"
|
|
375
473
|
}, {
|
|
376
|
-
default:
|
|
377
|
-
|
|
474
|
+
default: h(() => [
|
|
475
|
+
s(
|
|
378
476
|
"i",
|
|
379
477
|
{
|
|
380
|
-
class:
|
|
381
|
-
[
|
|
478
|
+
class: k(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
479
|
+
[l.name]: i.value === "unocss",
|
|
382
480
|
"show-bg": e.value.showBg || e.value.bg,
|
|
383
481
|
default: e.value.size === "default",
|
|
384
482
|
small: e.value.size === "small",
|
|
385
483
|
big: e.value.size === "big",
|
|
386
484
|
warning: e.value.warning || e.value.type === "warning",
|
|
387
|
-
primary:
|
|
388
|
-
success:
|
|
485
|
+
primary: l.primary || e.value.type === "primary",
|
|
486
|
+
success: l.success || e.value.type === "success",
|
|
389
487
|
error: e.value.error || e.value.type === "error",
|
|
390
488
|
active: e.value.active
|
|
391
489
|
}]),
|
|
392
|
-
style:
|
|
490
|
+
style: U(m.value)
|
|
393
491
|
},
|
|
394
492
|
[
|
|
395
|
-
i.value === "iksig" ? (
|
|
493
|
+
i.value === "iksig" ? (d(), v(
|
|
396
494
|
"i",
|
|
397
495
|
{
|
|
398
496
|
key: 0,
|
|
399
|
-
class:
|
|
400
|
-
style:
|
|
497
|
+
class: k(`iksig ${e.value.name}`),
|
|
498
|
+
style: U(m.value)
|
|
401
499
|
},
|
|
402
500
|
null,
|
|
403
501
|
6
|
|
404
502
|
/* CLASS, STYLE */
|
|
405
|
-
)) : i.value === "svg" ? (
|
|
406
|
-
|
|
503
|
+
)) : i.value === "svg" ? (d(), v("svg", Qt, [
|
|
504
|
+
s("use", {
|
|
407
505
|
"xlink:href": `#${e.value.name}`
|
|
408
|
-
}, null, 8,
|
|
409
|
-
])) : i.value === "img" ? (
|
|
506
|
+
}, null, 8, Gt)
|
|
507
|
+
])) : i.value === "img" ? (d(), v("img", {
|
|
410
508
|
key: 2,
|
|
411
509
|
src: e.value.name,
|
|
412
510
|
class: "h-[1em] w-[1em]"
|
|
413
|
-
}, null, 8,
|
|
511
|
+
}, null, 8, Zt)) : (d(), v(
|
|
414
512
|
"i",
|
|
415
513
|
{
|
|
416
514
|
key: 3,
|
|
417
|
-
class:
|
|
418
|
-
style:
|
|
515
|
+
class: k(e.value.name),
|
|
516
|
+
style: U(m.value)
|
|
419
517
|
},
|
|
420
518
|
null,
|
|
421
519
|
6
|
|
@@ -429,13 +527,13 @@ const Je = /* @__PURE__ */ H(Ee, [["render", Ge]]), Xe = (l) => {
|
|
|
429
527
|
_: 1
|
|
430
528
|
/* STABLE */
|
|
431
529
|
}, 8, ["content"]))
|
|
432
|
-
])) : (
|
|
530
|
+
])) : (d(), Q(f, {
|
|
433
531
|
key: 1,
|
|
434
532
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
435
533
|
}, {
|
|
436
|
-
default:
|
|
437
|
-
|
|
438
|
-
|
|
534
|
+
default: h(() => [
|
|
535
|
+
Me(
|
|
536
|
+
J(e.value.title),
|
|
439
537
|
1
|
|
440
538
|
/* TEXT */
|
|
441
539
|
)
|
|
@@ -446,27 +544,564 @@ const Je = /* @__PURE__ */ H(Ee, [["render", Ge]]), Xe = (l) => {
|
|
|
446
544
|
};
|
|
447
545
|
}
|
|
448
546
|
});
|
|
449
|
-
const
|
|
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
|
+
};
|
|
551
|
+
Te && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
552
|
+
function Ae(t) {
|
|
553
|
+
return typeof t == "function" ? t() : r(t);
|
|
554
|
+
}
|
|
555
|
+
function aa(t) {
|
|
556
|
+
return t;
|
|
557
|
+
}
|
|
558
|
+
function la(t) {
|
|
559
|
+
return Pe() ? (Re(t), !0) : !1;
|
|
560
|
+
}
|
|
561
|
+
function na(t) {
|
|
562
|
+
var n;
|
|
563
|
+
const e = Ae(t);
|
|
564
|
+
return (n = e == null ? void 0 : e.$el) != null ? n : e;
|
|
565
|
+
}
|
|
566
|
+
const sa = Te ? window : void 0;
|
|
567
|
+
function K(...t) {
|
|
568
|
+
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;
|
|
571
|
+
Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
|
|
572
|
+
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
|
+
}, { immediate: !0, flush: "post" }), A = () => {
|
|
577
|
+
f(), z();
|
|
578
|
+
};
|
|
579
|
+
return la(A), A;
|
|
580
|
+
}
|
|
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
|
+
(function(t) {
|
|
585
|
+
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) => {
|
|
588
|
+
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]);
|
|
593
|
+
return t;
|
|
594
|
+
};
|
|
595
|
+
const ca = {
|
|
596
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
597
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
598
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
599
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
600
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
601
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
602
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
603
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
604
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
605
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
606
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
607
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
608
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
609
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
610
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
611
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
612
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
613
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
614
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
615
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
616
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
617
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
618
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
619
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
620
|
+
};
|
|
621
|
+
ua({
|
|
622
|
+
linear: aa
|
|
623
|
+
}, ca);
|
|
624
|
+
const da = {
|
|
625
|
+
/**
|
|
626
|
+
* @description preview link list.
|
|
627
|
+
*/
|
|
628
|
+
urlList: {
|
|
629
|
+
type: Array,
|
|
630
|
+
default: () => []
|
|
631
|
+
},
|
|
632
|
+
/**
|
|
633
|
+
* @description preview backdrop z-index.
|
|
634
|
+
*/
|
|
635
|
+
zIndex: {
|
|
636
|
+
type: Number
|
|
637
|
+
},
|
|
638
|
+
/**
|
|
639
|
+
* @description the initial preview image index, less than or equal to the length of `url-list`.
|
|
640
|
+
*/
|
|
641
|
+
initialIndex: {
|
|
642
|
+
type: Number,
|
|
643
|
+
default: 0
|
|
644
|
+
},
|
|
645
|
+
/**
|
|
646
|
+
* @description whether preview is infinite.
|
|
647
|
+
*/
|
|
648
|
+
infinite: {
|
|
649
|
+
type: Boolean,
|
|
650
|
+
default: !0
|
|
651
|
+
},
|
|
652
|
+
/**
|
|
653
|
+
* @description whether user can emit close event when clicking backdrop.
|
|
654
|
+
*/
|
|
655
|
+
hideOnClickModal: Boolean,
|
|
656
|
+
/**
|
|
657
|
+
* @description whether to append image itself to body. A nested parent element attribute transform should have this attribute set to `true`.
|
|
658
|
+
*/
|
|
659
|
+
teleported: Boolean,
|
|
660
|
+
/**
|
|
661
|
+
* @description whether the image-viewer can be closed by pressing ESC.
|
|
662
|
+
*/
|
|
663
|
+
closeOnPressEscape: {
|
|
664
|
+
type: Boolean,
|
|
665
|
+
default: !0
|
|
666
|
+
},
|
|
667
|
+
/**
|
|
668
|
+
* @description the zoom rate of the image viewer zoom event.
|
|
669
|
+
*/
|
|
670
|
+
zoomRate: {
|
|
671
|
+
type: Number,
|
|
672
|
+
default: 1.2
|
|
673
|
+
},
|
|
674
|
+
/**
|
|
675
|
+
* @description the min scale of the image viewer zoom event.
|
|
676
|
+
*/
|
|
677
|
+
minScale: {
|
|
678
|
+
type: Number,
|
|
679
|
+
default: 0.2
|
|
680
|
+
},
|
|
681
|
+
/**
|
|
682
|
+
* @description the max scale of the image viewer zoom event.
|
|
683
|
+
*/
|
|
684
|
+
maxScale: {
|
|
685
|
+
type: Number,
|
|
686
|
+
default: 7
|
|
687
|
+
},
|
|
688
|
+
/**
|
|
689
|
+
* @description set HTML attribute: crossorigin.
|
|
690
|
+
*/
|
|
691
|
+
crossorigin: {
|
|
692
|
+
type: ["anonymous", "use-credentials", ""]
|
|
693
|
+
}
|
|
694
|
+
}, pa = {
|
|
695
|
+
close: () => !0,
|
|
696
|
+
switch: (t) => xe.isNumber(t),
|
|
697
|
+
rotate: (t) => xe.isNumber(t)
|
|
698
|
+
}, va = ["src", "crossorigin"], _a = /* @__PURE__ */ $({
|
|
699
|
+
name: "ElImageViewer",
|
|
700
|
+
__name: "IkImageViewer",
|
|
701
|
+
props: da,
|
|
702
|
+
emits: pa,
|
|
703
|
+
setup(t, { expose: n, emit: e }) {
|
|
704
|
+
const i = (o) => Object.keys(o), m = {
|
|
705
|
+
CONTAIN: {
|
|
706
|
+
name: "contain",
|
|
707
|
+
icon: ye(gt)
|
|
708
|
+
},
|
|
709
|
+
ORIGINAL: {
|
|
710
|
+
name: "original",
|
|
711
|
+
icon: ye(It)
|
|
712
|
+
}
|
|
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({
|
|
714
|
+
scale: 1,
|
|
715
|
+
deg: 0,
|
|
716
|
+
offsetX: 0,
|
|
717
|
+
offsetY: 0,
|
|
718
|
+
enableTransition: !1
|
|
719
|
+
}), ae = T(l.zIndex ?? A()), le = w(() => {
|
|
720
|
+
const { urlList: o } = l;
|
|
721
|
+
return o.length <= 1;
|
|
722
|
+
}), G = w(() => B.value === 0), Z = w(() => B.value === l.urlList.length - 1), ne = w(() => l.urlList[B.value]), se = w(() => [
|
|
723
|
+
f.e("btn"),
|
|
724
|
+
f.e("prev"),
|
|
725
|
+
f.is("disabled", !l.infinite && G.value)
|
|
726
|
+
]), oe = w(() => [
|
|
727
|
+
f.e("btn"),
|
|
728
|
+
f.e("next"),
|
|
729
|
+
f.is("disabled", !l.infinite && Z.value)
|
|
730
|
+
]), re = w(() => {
|
|
731
|
+
const { scale: o, deg: _, offsetX: g, offsetY: N, enableTransition: V } = y.value;
|
|
732
|
+
let P = g / o, H = N / o;
|
|
733
|
+
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;
|
|
735
|
+
const pe = {
|
|
736
|
+
transform: `scale(${o}) rotate(${_}deg) translate(${P}px, ${H}px)`,
|
|
737
|
+
transition: V ? "transform .3s" : ""
|
|
738
|
+
};
|
|
739
|
+
return j.value.name === m.CONTAIN.name && (pe.maxWidth = pe.maxHeight = "100%"), pe;
|
|
740
|
+
});
|
|
741
|
+
function F() {
|
|
742
|
+
ue(), z("close");
|
|
743
|
+
}
|
|
744
|
+
function ie() {
|
|
745
|
+
const o = q.throttle((g) => {
|
|
746
|
+
switch (g.code) {
|
|
747
|
+
case D.esc:
|
|
748
|
+
l.closeOnPressEscape && F();
|
|
749
|
+
break;
|
|
750
|
+
case D.space:
|
|
751
|
+
c();
|
|
752
|
+
break;
|
|
753
|
+
case D.left:
|
|
754
|
+
b();
|
|
755
|
+
break;
|
|
756
|
+
case D.up:
|
|
757
|
+
M("zoomIn");
|
|
758
|
+
break;
|
|
759
|
+
case D.right:
|
|
760
|
+
S();
|
|
761
|
+
break;
|
|
762
|
+
case D.down:
|
|
763
|
+
M("zoomOut");
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
}), _ = q.throttle((g) => {
|
|
767
|
+
const N = g.deltaY || g.deltaX;
|
|
768
|
+
M(N < 0 ? "zoomIn" : "zoomOut", {
|
|
769
|
+
zoomRate: l.zoomRate,
|
|
770
|
+
enableTransition: !1
|
|
771
|
+
});
|
|
772
|
+
});
|
|
773
|
+
x.run(() => {
|
|
774
|
+
K(document, "keydown", o), K(document, "wheel", _);
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
function ue() {
|
|
778
|
+
x.stop();
|
|
779
|
+
}
|
|
780
|
+
function ce() {
|
|
781
|
+
I.value = !1;
|
|
782
|
+
}
|
|
783
|
+
function de(o) {
|
|
784
|
+
I.value = !1, o.target.alt = E("el.image.error");
|
|
785
|
+
}
|
|
786
|
+
function W(o) {
|
|
787
|
+
if (I.value || o.button !== 0 || !C.value)
|
|
788
|
+
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,
|
|
793
|
+
offsetX: _ + X.pageX - N,
|
|
794
|
+
offsetY: g + X.pageY - V
|
|
795
|
+
};
|
|
796
|
+
}), H = K(document, "mousemove", P);
|
|
797
|
+
K(document, "mouseup", () => {
|
|
798
|
+
H();
|
|
799
|
+
}), o.preventDefault();
|
|
800
|
+
}
|
|
801
|
+
function a() {
|
|
802
|
+
y.value = {
|
|
803
|
+
scale: 1,
|
|
804
|
+
deg: 0,
|
|
805
|
+
offsetX: 0,
|
|
806
|
+
offsetY: 0,
|
|
807
|
+
enableTransition: !1
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
function c() {
|
|
811
|
+
if (I.value)
|
|
812
|
+
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;
|
|
814
|
+
j.value = m[o[V]], a();
|
|
815
|
+
}
|
|
816
|
+
function u(o) {
|
|
817
|
+
const _ = l.urlList.length;
|
|
818
|
+
B.value = (o + _) % _;
|
|
819
|
+
}
|
|
820
|
+
function b() {
|
|
821
|
+
G.value && !l.infinite || u(B.value - 1);
|
|
822
|
+
}
|
|
823
|
+
function S() {
|
|
824
|
+
Z.value && !l.infinite || u(B.value + 1);
|
|
825
|
+
}
|
|
826
|
+
function M(o, _ = {}) {
|
|
827
|
+
if (I.value)
|
|
828
|
+
return;
|
|
829
|
+
const { minScale: g, maxScale: N } = l, { zoomRate: V, rotateDeg: P, enableTransition: H } = {
|
|
830
|
+
zoomRate: l.zoomRate,
|
|
831
|
+
rotateDeg: 90,
|
|
832
|
+
enableTransition: !0,
|
|
833
|
+
..._
|
|
834
|
+
};
|
|
835
|
+
switch (o) {
|
|
836
|
+
case "zoomOut":
|
|
837
|
+
y.value.scale > g && (y.value.scale = Number.parseFloat(
|
|
838
|
+
(y.value.scale / V).toFixed(3)
|
|
839
|
+
));
|
|
840
|
+
break;
|
|
841
|
+
case "zoomIn":
|
|
842
|
+
y.value.scale < N && (y.value.scale = Number.parseFloat(
|
|
843
|
+
(y.value.scale * V).toFixed(3)
|
|
844
|
+
));
|
|
845
|
+
break;
|
|
846
|
+
case "clockwise":
|
|
847
|
+
y.value.deg += P, z("rotate", y.value.deg);
|
|
848
|
+
break;
|
|
849
|
+
case "anticlockwise":
|
|
850
|
+
y.value.deg -= P, z("rotate", y.value.deg);
|
|
851
|
+
break;
|
|
852
|
+
}
|
|
853
|
+
y.value.enableTransition = H;
|
|
854
|
+
}
|
|
855
|
+
return ee(ne, () => {
|
|
856
|
+
je(() => {
|
|
857
|
+
const o = O.value[0];
|
|
858
|
+
o != null && o.complete || (I.value = !0);
|
|
859
|
+
});
|
|
860
|
+
}), ee(B, (o) => {
|
|
861
|
+
a(), z("switch", o);
|
|
862
|
+
}), De(() => {
|
|
863
|
+
var o, _;
|
|
864
|
+
ie(), (_ = (o = C.value) == null ? void 0 : o.focus) == null || _.call(o);
|
|
865
|
+
}), n({
|
|
866
|
+
/**
|
|
867
|
+
* @description manually switch image
|
|
868
|
+
*/
|
|
869
|
+
setActiveItem: u
|
|
870
|
+
}), (o, _) => (d(), Q(Fe, { to: "body" }, [
|
|
871
|
+
p(We, {
|
|
872
|
+
name: "viewer-fade",
|
|
873
|
+
appear: ""
|
|
874
|
+
}, {
|
|
875
|
+
default: h(() => [
|
|
876
|
+
s(
|
|
877
|
+
"div",
|
|
878
|
+
{
|
|
879
|
+
ref_key: "wrapper",
|
|
880
|
+
ref: C,
|
|
881
|
+
tabindex: -1,
|
|
882
|
+
class: k(r(f).e("wrapper")),
|
|
883
|
+
style: U({ zIndex: ae.value })
|
|
884
|
+
},
|
|
885
|
+
[
|
|
886
|
+
s(
|
|
887
|
+
"div",
|
|
888
|
+
{
|
|
889
|
+
class: k(r(f).e("mask")),
|
|
890
|
+
onClick: _[0] || (_[0] = Xe((g) => o.hideOnClickModal && F(), ["self"]))
|
|
891
|
+
},
|
|
892
|
+
null,
|
|
893
|
+
2
|
|
894
|
+
/* CLASS */
|
|
895
|
+
),
|
|
896
|
+
R(" CLOSE "),
|
|
897
|
+
s(
|
|
898
|
+
"span",
|
|
899
|
+
{
|
|
900
|
+
class: k([r(f).e("btn"), r(f).e("close")]),
|
|
901
|
+
onClick: F
|
|
902
|
+
},
|
|
903
|
+
[
|
|
904
|
+
p(r(L), null, {
|
|
905
|
+
default: h(() => [
|
|
906
|
+
p(r(Ee))
|
|
907
|
+
]),
|
|
908
|
+
_: 1
|
|
909
|
+
/* STABLE */
|
|
910
|
+
})
|
|
911
|
+
],
|
|
912
|
+
2
|
|
913
|
+
/* CLASS */
|
|
914
|
+
),
|
|
915
|
+
R(" ARROW "),
|
|
916
|
+
le.value ? R("v-if", !0) : (d(), v(
|
|
917
|
+
te,
|
|
918
|
+
{ key: 0 },
|
|
919
|
+
[
|
|
920
|
+
s(
|
|
921
|
+
"span",
|
|
922
|
+
{
|
|
923
|
+
class: k(se.value),
|
|
924
|
+
onClick: b
|
|
925
|
+
},
|
|
926
|
+
[
|
|
927
|
+
p(r(L), null, {
|
|
928
|
+
default: h(() => [
|
|
929
|
+
p(r(it))
|
|
930
|
+
]),
|
|
931
|
+
_: 1
|
|
932
|
+
/* STABLE */
|
|
933
|
+
})
|
|
934
|
+
],
|
|
935
|
+
2
|
|
936
|
+
/* CLASS */
|
|
937
|
+
),
|
|
938
|
+
s(
|
|
939
|
+
"span",
|
|
940
|
+
{
|
|
941
|
+
class: k(oe.value),
|
|
942
|
+
onClick: S
|
|
943
|
+
},
|
|
944
|
+
[
|
|
945
|
+
p(r(L), null, {
|
|
946
|
+
default: h(() => [
|
|
947
|
+
p(r(ct))
|
|
948
|
+
]),
|
|
949
|
+
_: 1
|
|
950
|
+
/* STABLE */
|
|
951
|
+
})
|
|
952
|
+
],
|
|
953
|
+
2
|
|
954
|
+
/* CLASS */
|
|
955
|
+
)
|
|
956
|
+
],
|
|
957
|
+
64
|
|
958
|
+
/* STABLE_FRAGMENT */
|
|
959
|
+
)),
|
|
960
|
+
R(" ACTIONS "),
|
|
961
|
+
s(
|
|
962
|
+
"div",
|
|
963
|
+
{
|
|
964
|
+
class: k([r(f).e("btn"), r(f).e("actions")])
|
|
965
|
+
},
|
|
966
|
+
[
|
|
967
|
+
s(
|
|
968
|
+
"div",
|
|
969
|
+
{
|
|
970
|
+
class: k(r(f).e("actions__inner"))
|
|
971
|
+
},
|
|
972
|
+
[
|
|
973
|
+
p(r(L), {
|
|
974
|
+
onClick: _[1] || (_[1] = (g) => M("zoomOut"))
|
|
975
|
+
}, {
|
|
976
|
+
default: h(() => [
|
|
977
|
+
p(r($t))
|
|
978
|
+
]),
|
|
979
|
+
_: 1
|
|
980
|
+
/* STABLE */
|
|
981
|
+
}),
|
|
982
|
+
p(r(L), {
|
|
983
|
+
onClick: _[2] || (_[2] = (g) => M("zoomIn"))
|
|
984
|
+
}, {
|
|
985
|
+
default: h(() => [
|
|
986
|
+
p(r(Ne))
|
|
987
|
+
]),
|
|
988
|
+
_: 1
|
|
989
|
+
/* STABLE */
|
|
990
|
+
}),
|
|
991
|
+
s(
|
|
992
|
+
"i",
|
|
993
|
+
{
|
|
994
|
+
class: k(r(f).e("actions__divider"))
|
|
995
|
+
},
|
|
996
|
+
null,
|
|
997
|
+
2
|
|
998
|
+
/* CLASS */
|
|
999
|
+
),
|
|
1000
|
+
p(r(L), { onClick: c }, {
|
|
1001
|
+
default: h(() => [
|
|
1002
|
+
(d(), Q(Ye(j.value.icon)))
|
|
1003
|
+
]),
|
|
1004
|
+
_: 1
|
|
1005
|
+
/* STABLE */
|
|
1006
|
+
}),
|
|
1007
|
+
s(
|
|
1008
|
+
"i",
|
|
1009
|
+
{
|
|
1010
|
+
class: k(r(f).e("actions__divider"))
|
|
1011
|
+
},
|
|
1012
|
+
null,
|
|
1013
|
+
2
|
|
1014
|
+
/* CLASS */
|
|
1015
|
+
),
|
|
1016
|
+
p(r(L), {
|
|
1017
|
+
onClick: _[3] || (_[3] = (g) => M("anticlockwise"))
|
|
1018
|
+
}, {
|
|
1019
|
+
default: h(() => [
|
|
1020
|
+
p(r(wt))
|
|
1021
|
+
]),
|
|
1022
|
+
_: 1
|
|
1023
|
+
/* STABLE */
|
|
1024
|
+
}),
|
|
1025
|
+
p(r(L), {
|
|
1026
|
+
onClick: _[4] || (_[4] = (g) => M("clockwise"))
|
|
1027
|
+
}, {
|
|
1028
|
+
default: h(() => [
|
|
1029
|
+
p(r(bt))
|
|
1030
|
+
]),
|
|
1031
|
+
_: 1
|
|
1032
|
+
/* STABLE */
|
|
1033
|
+
})
|
|
1034
|
+
],
|
|
1035
|
+
2
|
|
1036
|
+
/* CLASS */
|
|
1037
|
+
)
|
|
1038
|
+
],
|
|
1039
|
+
2
|
|
1040
|
+
/* CLASS */
|
|
1041
|
+
),
|
|
1042
|
+
R(" CANVAS "),
|
|
1043
|
+
s(
|
|
1044
|
+
"div",
|
|
1045
|
+
{
|
|
1046
|
+
class: k(r(f).e("canvas"))
|
|
1047
|
+
},
|
|
1048
|
+
[
|
|
1049
|
+
(d(!0), v(
|
|
1050
|
+
te,
|
|
1051
|
+
null,
|
|
1052
|
+
Be(o.urlList, (g, N) => ve((d(), v("img", {
|
|
1053
|
+
ref_for: !0,
|
|
1054
|
+
ref: (V) => O.value[N] = V,
|
|
1055
|
+
key: g,
|
|
1056
|
+
src: g,
|
|
1057
|
+
style: U(re.value),
|
|
1058
|
+
class: k(r(f).e("img")),
|
|
1059
|
+
crossorigin: o.crossorigin,
|
|
1060
|
+
onLoad: ce,
|
|
1061
|
+
onError: de,
|
|
1062
|
+
onMousedown: W
|
|
1063
|
+
}, null, 46, va)), [
|
|
1064
|
+
[_e, N === B.value]
|
|
1065
|
+
])),
|
|
1066
|
+
128
|
|
1067
|
+
/* KEYED_FRAGMENT */
|
|
1068
|
+
))
|
|
1069
|
+
],
|
|
1070
|
+
2
|
|
1071
|
+
/* CLASS */
|
|
1072
|
+
),
|
|
1073
|
+
Se(o.$slots, "default")
|
|
1074
|
+
],
|
|
1075
|
+
6
|
|
1076
|
+
/* CLASS, STYLE */
|
|
1077
|
+
)
|
|
1078
|
+
]),
|
|
1079
|
+
_: 3
|
|
1080
|
+
/* FORWARDED */
|
|
1081
|
+
})
|
|
1082
|
+
]));
|
|
1083
|
+
}
|
|
1084
|
+
}), fa = fe(_a), Ve = (t) => (Je("data-v-633498bc"), t = t(), qe(), t), ma = {
|
|
450
1085
|
key: 1,
|
|
451
1086
|
class: "upload-btn"
|
|
452
|
-
},
|
|
1087
|
+
}, ga = { class: "tip" }, ha = { class: "loading-statu" }, wa = { class: "operate-btn" }, ya = { key: 0 }, ba = {
|
|
453
1088
|
class: "el-upload-list el-upload-list--picture-card",
|
|
454
1089
|
style: { float: "left" }
|
|
455
|
-
},
|
|
1090
|
+
}, ka = ["onClick"], xa = /* @__PURE__ */ Ve(() => /* @__PURE__ */ s(
|
|
456
1091
|
"span",
|
|
457
1092
|
{ class: "error" },
|
|
458
1093
|
"上传错误",
|
|
459
1094
|
-1
|
|
460
1095
|
/* HOISTED */
|
|
461
|
-
)),
|
|
1096
|
+
)), za = /* @__PURE__ */ Ve(() => /* @__PURE__ */ s(
|
|
462
1097
|
"p",
|
|
463
1098
|
null,
|
|
464
1099
|
"点击重新上传",
|
|
465
1100
|
-1
|
|
466
1101
|
/* HOISTED */
|
|
467
|
-
)),
|
|
1102
|
+
)), Ia = ["src"], Ca = { class: "demo-image__preview" }, Oa = /* @__PURE__ */ $({
|
|
468
1103
|
__name: "index",
|
|
469
|
-
props: /* @__PURE__ */
|
|
1104
|
+
props: /* @__PURE__ */ be({
|
|
470
1105
|
// 显示的文字
|
|
471
1106
|
title: {
|
|
472
1107
|
type: String,
|
|
@@ -557,146 +1192,146 @@ const st = /* @__PURE__ */ H(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
|
|
|
557
1192
|
},
|
|
558
1193
|
modelModifiers: {}
|
|
559
1194
|
}),
|
|
560
|
-
emits: /* @__PURE__ */
|
|
561
|
-
setup(
|
|
562
|
-
|
|
563
|
-
"
|
|
564
|
-
"
|
|
1195
|
+
emits: /* @__PURE__ */ be(["delete", "success"], ["update:modelValue"]),
|
|
1196
|
+
setup(t, { emit: n }) {
|
|
1197
|
+
Qe((a) => ({
|
|
1198
|
+
"3b3b8751": f.value,
|
|
1199
|
+
"126668fc": A.value
|
|
565
1200
|
}));
|
|
566
|
-
const e =
|
|
567
|
-
var
|
|
568
|
-
const
|
|
1201
|
+
const e = t, i = Ge(t, "modelValue"), m = (a) => Array.isArray(a) ? a.map((c) => {
|
|
1202
|
+
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;
|
|
569
1204
|
return {
|
|
570
|
-
...
|
|
571
|
-
__url:
|
|
1205
|
+
...c.url ? c : { url: b },
|
|
1206
|
+
__url: u ? b : `${z.value}${b}`
|
|
572
1207
|
};
|
|
573
|
-
}) :
|
|
1208
|
+
}) : a ? [
|
|
574
1209
|
{
|
|
575
|
-
url:
|
|
576
|
-
__url:
|
|
1210
|
+
url: a,
|
|
1211
|
+
__url: a != null && a.startsWith("http") || a != null && a.startsWith("blob") ? a : `${z.value}${a}`
|
|
577
1212
|
}
|
|
578
1213
|
] : [];
|
|
579
|
-
|
|
1214
|
+
ee(
|
|
580
1215
|
() => i.value,
|
|
581
|
-
(
|
|
582
|
-
!
|
|
1216
|
+
(a) => {
|
|
1217
|
+
!a || !a.length ? x.value = [] : x.value = q.cloneDeep(m(a));
|
|
583
1218
|
},
|
|
584
1219
|
{ deep: !0 }
|
|
585
1220
|
);
|
|
586
|
-
const
|
|
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(
|
|
587
1222
|
() => e.tipText || `最多可上传${e.limit}张图片, 每张图片不能超过${e.size}MB`
|
|
588
|
-
),
|
|
589
|
-
},
|
|
590
|
-
if (!
|
|
591
|
-
|
|
1223
|
+
), ae = (a, c) => {
|
|
1224
|
+
}, le = (a) => {
|
|
1225
|
+
if (!a.type.includes("image")) {
|
|
1226
|
+
ke.warning("只允许上传图片!");
|
|
592
1227
|
try {
|
|
593
|
-
|
|
1228
|
+
x.value.pop();
|
|
594
1229
|
} catch {
|
|
595
1230
|
}
|
|
596
1231
|
return !1;
|
|
597
1232
|
}
|
|
598
|
-
if (!(
|
|
599
|
-
|
|
1233
|
+
if (!(a.size / 1024 / 1024 < C.value)) {
|
|
1234
|
+
ke.warning("图片大小超出限制!");
|
|
600
1235
|
try {
|
|
601
|
-
|
|
1236
|
+
x.value.pop();
|
|
602
1237
|
} catch {
|
|
603
1238
|
}
|
|
604
1239
|
return !1;
|
|
605
1240
|
}
|
|
606
1241
|
return !0;
|
|
607
|
-
},
|
|
608
|
-
var
|
|
609
|
-
|
|
610
|
-
},
|
|
611
|
-
var
|
|
612
|
-
const
|
|
613
|
-
let
|
|
614
|
-
for (;
|
|
615
|
-
(
|
|
616
|
-
},
|
|
617
|
-
|
|
618
|
-
},
|
|
1242
|
+
}, 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();
|
|
1245
|
+
}, ne = (a, c) => {
|
|
1246
|
+
var M, o;
|
|
1247
|
+
const u = i.value.length, b = e.limit - u;
|
|
1248
|
+
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++;
|
|
1251
|
+
}, se = (a, c, u) => {
|
|
1252
|
+
l("success", a, c, u), i.value = x.value;
|
|
1253
|
+
}, oe = (a, c, u) => {
|
|
619
1254
|
I.value.push({
|
|
620
|
-
...
|
|
621
|
-
__url:
|
|
1255
|
+
...c,
|
|
1256
|
+
__url: c.url
|
|
622
1257
|
});
|
|
623
|
-
},
|
|
624
|
-
var
|
|
625
|
-
|
|
626
|
-
},
|
|
627
|
-
|
|
628
|
-
},
|
|
629
|
-
var
|
|
630
|
-
(
|
|
631
|
-
},
|
|
632
|
-
var
|
|
633
|
-
|
|
634
|
-
},
|
|
635
|
-
I.value.splice(
|
|
636
|
-
},
|
|
1258
|
+
}, re = (a) => {
|
|
1259
|
+
var c;
|
|
1260
|
+
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
|
+
}, F = (a) => {
|
|
1262
|
+
ot.downloadFile(a.__url || a.url, a.name || a.url);
|
|
1263
|
+
}, ie = (a) => {
|
|
1264
|
+
var c;
|
|
1265
|
+
(c = O.value) == null || c.abort(a);
|
|
1266
|
+
}, ue = (a) => {
|
|
1267
|
+
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);
|
|
1269
|
+
}, ce = (a, c) => {
|
|
1270
|
+
I.value.splice(c, 1);
|
|
1271
|
+
}, de = w(() => x.value.length + I.value.length < e.limit), W = w(
|
|
637
1272
|
() => i.value.length >= e.limit || e.disabled
|
|
638
1273
|
);
|
|
639
|
-
return (
|
|
640
|
-
|
|
1274
|
+
return (a, c) => (d(), v(
|
|
1275
|
+
te,
|
|
641
1276
|
null,
|
|
642
1277
|
[
|
|
643
|
-
|
|
644
|
-
class: ["ik-image-upload", { preview:
|
|
1278
|
+
p(r(lt), Ze({
|
|
1279
|
+
class: ["ik-image-upload", { preview: t.preview, "hide-upload": !de.value, disabled: W.value }],
|
|
645
1280
|
ref_key: "refUpload",
|
|
646
|
-
ref:
|
|
1281
|
+
ref: O,
|
|
647
1282
|
"list-type": "picture-card",
|
|
648
|
-
accept:
|
|
649
|
-
action:
|
|
650
|
-
headers:
|
|
651
|
-
data:
|
|
652
|
-
"file-list":
|
|
653
|
-
"onUpdate:fileList":
|
|
654
|
-
multiple:
|
|
655
|
-
limit:
|
|
656
|
-
"on-change":
|
|
657
|
-
"before-upload":
|
|
658
|
-
"before-remove":
|
|
659
|
-
"on-exceed":
|
|
660
|
-
"on-success":
|
|
661
|
-
"on-error":
|
|
1283
|
+
accept: t.accept,
|
|
1284
|
+
action: r(E),
|
|
1285
|
+
headers: t.headers,
|
|
1286
|
+
data: t.data,
|
|
1287
|
+
"file-list": x.value,
|
|
1288
|
+
"onUpdate:fileList": c[0] || (c[0] = (u) => x.value = u),
|
|
1289
|
+
multiple: t.multiple,
|
|
1290
|
+
limit: t.limit,
|
|
1291
|
+
"on-change": ae,
|
|
1292
|
+
"before-upload": le,
|
|
1293
|
+
"before-remove": G,
|
|
1294
|
+
"on-exceed": ne,
|
|
1295
|
+
"on-success": se,
|
|
1296
|
+
"on-error": oe,
|
|
662
1297
|
drag: ""
|
|
663
|
-
},
|
|
664
|
-
trigger:
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
default:
|
|
668
|
-
|
|
1298
|
+
}, a.$attrs, { disabled: W.value }), Ke({
|
|
1299
|
+
trigger: h(() => [
|
|
1300
|
+
a.$slots.trigger ? Se(a.$slots, "trigger", { key: 0 }, void 0, !0) : (d(), v("div", ma, [
|
|
1301
|
+
p(r(L), { size: 20 }, {
|
|
1302
|
+
default: h(() => [
|
|
1303
|
+
p(r(qt), {
|
|
669
1304
|
name: "iksvg_guanbibeifen",
|
|
670
|
-
disabled:
|
|
1305
|
+
disabled: W.value
|
|
671
1306
|
}, null, 8, ["disabled"])
|
|
672
1307
|
]),
|
|
673
1308
|
_: 1
|
|
674
1309
|
/* STABLE */
|
|
675
1310
|
}),
|
|
676
|
-
|
|
1311
|
+
s(
|
|
677
1312
|
"span",
|
|
678
1313
|
null,
|
|
679
|
-
|
|
1314
|
+
J(t.title),
|
|
680
1315
|
1
|
|
681
1316
|
/* TEXT */
|
|
682
1317
|
)
|
|
683
1318
|
]))
|
|
684
1319
|
]),
|
|
685
|
-
file:
|
|
686
|
-
|
|
1320
|
+
file: h(({ file: u }) => [
|
|
1321
|
+
s(
|
|
687
1322
|
"div",
|
|
688
1323
|
{
|
|
689
|
-
class:
|
|
1324
|
+
class: k(["load-list", { loading: u.status === "uploading" }]),
|
|
690
1325
|
"element-loading-background": "var(--ik-upload-bg)"
|
|
691
1326
|
},
|
|
692
1327
|
[
|
|
693
|
-
|
|
1328
|
+
ve(s(
|
|
694
1329
|
"div",
|
|
695
|
-
|
|
1330
|
+
ha,
|
|
696
1331
|
[
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
" 上传" +
|
|
1332
|
+
p(Ht),
|
|
1333
|
+
Me(
|
|
1334
|
+
" 上传" + J(u.percentage) + "% ",
|
|
700
1335
|
1
|
|
701
1336
|
/* TEXT */
|
|
702
1337
|
)
|
|
@@ -704,46 +1339,46 @@ const st = /* @__PURE__ */ H(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
|
|
|
704
1339
|
512
|
|
705
1340
|
/* NEED_PATCH */
|
|
706
1341
|
), [
|
|
707
|
-
[
|
|
1342
|
+
[_e, u.status === "uploading"]
|
|
708
1343
|
]),
|
|
709
|
-
|
|
710
|
-
|
|
1344
|
+
R(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
|
|
1345
|
+
p(r(nt), {
|
|
711
1346
|
style: { width: "100%", height: "100%" },
|
|
712
|
-
src:
|
|
1347
|
+
src: u.__url || u.url,
|
|
713
1348
|
"zoom-rate": 1.2,
|
|
714
1349
|
"initial-index": 0,
|
|
715
1350
|
fit: "contain"
|
|
716
1351
|
}, null, 8, ["src"]),
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
onClick: (
|
|
1352
|
+
s("span", wa, [
|
|
1353
|
+
s("span", null, [
|
|
1354
|
+
p(r(L), {
|
|
1355
|
+
onClick: (b) => re(u)
|
|
721
1356
|
}, {
|
|
722
|
-
default:
|
|
723
|
-
|
|
1357
|
+
default: h(() => [
|
|
1358
|
+
p(r(Ne))
|
|
724
1359
|
]),
|
|
725
1360
|
_: 2
|
|
726
1361
|
/* DYNAMIC */
|
|
727
1362
|
}, 1032, ["onClick"])
|
|
728
1363
|
]),
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
onClick: (
|
|
1364
|
+
s("span", null, [
|
|
1365
|
+
p(r(L), {
|
|
1366
|
+
onClick: (b) => F(u)
|
|
732
1367
|
}, {
|
|
733
|
-
default:
|
|
734
|
-
|
|
1368
|
+
default: h(() => [
|
|
1369
|
+
p(r(ft))
|
|
735
1370
|
]),
|
|
736
1371
|
_: 2
|
|
737
1372
|
/* DYNAMIC */
|
|
738
1373
|
}, 1032, ["onClick"])
|
|
739
1374
|
]),
|
|
740
|
-
|
|
741
|
-
|
|
1375
|
+
t.preview ? R("v-if", !0) : (d(), v("span", ya, [
|
|
1376
|
+
p(r(L), {
|
|
742
1377
|
type: "warning",
|
|
743
|
-
onClick: (
|
|
1378
|
+
onClick: (b) => ue(u)
|
|
744
1379
|
}, {
|
|
745
|
-
default:
|
|
746
|
-
|
|
1380
|
+
default: h(() => [
|
|
1381
|
+
p(r(vt))
|
|
747
1382
|
]),
|
|
748
1383
|
_: 2
|
|
749
1384
|
/* DYNAMIC */
|
|
@@ -755,57 +1390,57 @@ const st = /* @__PURE__ */ H(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
|
|
|
755
1390
|
/* CLASS */
|
|
756
1391
|
)
|
|
757
1392
|
]),
|
|
758
|
-
default:
|
|
759
|
-
|
|
760
|
-
(
|
|
761
|
-
|
|
1393
|
+
default: h(() => [
|
|
1394
|
+
s("ul", ba, [
|
|
1395
|
+
(d(!0), v(
|
|
1396
|
+
te,
|
|
762
1397
|
null,
|
|
763
|
-
|
|
1398
|
+
Be(I.value, (u, b) => (d(), v("li", {
|
|
764
1399
|
class: "el-upload-list__item",
|
|
765
|
-
key:
|
|
1400
|
+
key: u.uid
|
|
766
1401
|
}, [
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
onClick: (
|
|
1402
|
+
s("span", null, [
|
|
1403
|
+
p(r(L), {
|
|
1404
|
+
onClick: (S) => ce(u, b)
|
|
770
1405
|
}, {
|
|
771
|
-
default:
|
|
772
|
-
|
|
1406
|
+
default: h(() => [
|
|
1407
|
+
p(r(Ee))
|
|
773
1408
|
]),
|
|
774
1409
|
_: 2
|
|
775
1410
|
/* DYNAMIC */
|
|
776
1411
|
}, 1032, ["onClick"])
|
|
777
1412
|
]),
|
|
778
|
-
|
|
1413
|
+
s(
|
|
779
1414
|
"div",
|
|
780
1415
|
{
|
|
781
|
-
class:
|
|
782
|
-
loading:
|
|
783
|
-
fail:
|
|
1416
|
+
class: k(["load-list", {
|
|
1417
|
+
loading: u.status === "uploading",
|
|
1418
|
+
fail: u.status === "fail"
|
|
784
1419
|
}]),
|
|
785
1420
|
"element-loading-background": "var(--ik-upload-bg)"
|
|
786
1421
|
},
|
|
787
1422
|
[
|
|
788
|
-
|
|
1423
|
+
ve(s("div", {
|
|
789
1424
|
class: "loading-statu",
|
|
790
|
-
onClick: (
|
|
1425
|
+
onClick: (S) => Z(u, b)
|
|
791
1426
|
}, [
|
|
792
|
-
|
|
793
|
-
default:
|
|
794
|
-
|
|
1427
|
+
p(r(L), { size: 24 }, {
|
|
1428
|
+
default: h(() => [
|
|
1429
|
+
p(r(xt))
|
|
795
1430
|
]),
|
|
796
1431
|
_: 1
|
|
797
1432
|
/* STABLE */
|
|
798
1433
|
}),
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
], 8,
|
|
802
|
-
[
|
|
1434
|
+
xa,
|
|
1435
|
+
za
|
|
1436
|
+
], 8, ka), [
|
|
1437
|
+
[_e, u.status === "fail"]
|
|
803
1438
|
]),
|
|
804
|
-
|
|
805
|
-
src:
|
|
1439
|
+
s("img", {
|
|
1440
|
+
src: u.__url,
|
|
806
1441
|
alt: "",
|
|
807
|
-
style:
|
|
808
|
-
}, null, 12,
|
|
1442
|
+
style: U({ "object-fit": t.fit })
|
|
1443
|
+
}, null, 12, Ia)
|
|
809
1444
|
],
|
|
810
1445
|
2
|
|
811
1446
|
/* CLASS */
|
|
@@ -819,13 +1454,13 @@ const st = /* @__PURE__ */ H(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
|
|
|
819
1454
|
_: 2
|
|
820
1455
|
/* DYNAMIC */
|
|
821
1456
|
}, [
|
|
822
|
-
|
|
1457
|
+
t.tip ? {
|
|
823
1458
|
name: "tip",
|
|
824
|
-
fn:
|
|
825
|
-
|
|
1459
|
+
fn: h(() => [
|
|
1460
|
+
s(
|
|
826
1461
|
"span",
|
|
827
|
-
|
|
828
|
-
|
|
1462
|
+
ga,
|
|
1463
|
+
J(y.value),
|
|
829
1464
|
1
|
|
830
1465
|
/* TEXT */
|
|
831
1466
|
)
|
|
@@ -833,18 +1468,18 @@ const st = /* @__PURE__ */ H(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
|
|
|
833
1468
|
key: "0"
|
|
834
1469
|
} : void 0
|
|
835
1470
|
]), 1040, ["class", "accept", "action", "headers", "data", "file-list", "multiple", "limit", "disabled"]),
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
1471
|
+
R(" 文件预览 "),
|
|
1472
|
+
s("div", Ca, [
|
|
1473
|
+
B.value ? (d(), Q(r(fa), {
|
|
839
1474
|
key: 0,
|
|
840
1475
|
"lock-scroll": "",
|
|
841
1476
|
"hide-on-click-modal": "",
|
|
842
|
-
onClose:
|
|
843
|
-
|
|
1477
|
+
onClose: c[1] || (c[1] = () => {
|
|
1478
|
+
B.value = !1;
|
|
844
1479
|
}),
|
|
845
|
-
"url-list":
|
|
846
|
-
"initial-index":
|
|
847
|
-
}, null, 8, ["url-list", "initial-index"])) :
|
|
1480
|
+
"url-list": m(x.value).map((u) => u.__url),
|
|
1481
|
+
"initial-index": j.value
|
|
1482
|
+
}, null, 8, ["url-list", "initial-index"])) : R("v-if", !0)
|
|
848
1483
|
])
|
|
849
1484
|
],
|
|
850
1485
|
64
|
|
@@ -852,8 +1487,8 @@ const st = /* @__PURE__ */ H(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st)
|
|
|
852
1487
|
));
|
|
853
1488
|
}
|
|
854
1489
|
});
|
|
855
|
-
const
|
|
1490
|
+
const $a = /* @__PURE__ */ me(Oa, [["__scopeId", "data-v-633498bc"]]), Sa = fe($a);
|
|
856
1491
|
export {
|
|
857
|
-
|
|
858
|
-
|
|
1492
|
+
Sa as IkUploadImage,
|
|
1493
|
+
Sa as default
|
|
859
1494
|
};
|