iking-web-ui-pro 0.2.0 → 0.2.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/IKDetailPreviewFiles/ik.index.es.js +329 -373
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +381 -425
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +231 -275
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +422 -466
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkOnlyOffice/ik.index.es.js +80 -127
- package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +144 -188
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +194 -241
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/ik.index.es.js +314 -352
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/index.es.js +5064 -5102
- package/dist/index.umd.js +56 -56
- package/dist/src/components/IkOnlyOffice/index.d.ts +0 -18
- package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +0 -18
- package/dist/src/components/IkUploadFile/index.d.ts +19 -0
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +9 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as F, openBlock as s, createElementBlock as h, createElementVNode as c, computed as
|
|
2
|
-
import { ElUpload as l3, ElButton as F3, ElProgress as a3, ElTooltip as c3, ElIcon as
|
|
3
|
-
import { buildUUID as C3, ikColor as x3, ikFile as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as F, openBlock as s, createElementBlock as h, createElementVNode as c, computed as L, mergeModels as Q, useModel as o3, ref as R, reactive as A3, watch as g3, nextTick as e3, resolveComponent as J, Fragment as H, createBlock as k, createCommentVNode as _, createVNode as A, unref as u, withCtx as w, normalizeClass as $, normalizeStyle as O, createTextVNode as U, toDisplayString as C, h as w3, mergeProps as t3, createSlots as h3, renderSlot as M, renderList as y3, withDirectives as _3, vShow as k3, pushScopeId as z3, popScopeId as b3 } from "vue";
|
|
2
|
+
import { ElUpload as l3, ElButton as F3, ElProgress as a3, ElTooltip as c3, ElIcon as E, ElMessage as X } from "element-plus";
|
|
3
|
+
import { buildUUID as C3, ikColor as x3, ikFile as B3 } from "iking-utils-pro";
|
|
4
|
+
const P = (e, t) => {
|
|
5
5
|
if (e.install = (o) => {
|
|
6
6
|
for (const r of [e, ...Object.values(t ?? {})])
|
|
7
7
|
o.component(r.name, r);
|
|
@@ -9,7 +9,7 @@ const q = (e, t) => {
|
|
|
9
9
|
for (const [o, r] of Object.entries(t))
|
|
10
10
|
e[o] = r;
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, S3 = "data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=";
|
|
13
13
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
14
14
|
var I3 = /* @__PURE__ */ F({
|
|
15
15
|
name: "Delete",
|
|
@@ -81,7 +81,7 @@ var I3 = /* @__PURE__ */ F({
|
|
|
81
81
|
})
|
|
82
82
|
]));
|
|
83
83
|
}
|
|
84
|
-
}),
|
|
84
|
+
}), O3 = H3, U3 = /* @__PURE__ */ F({
|
|
85
85
|
name: "WarningFilled",
|
|
86
86
|
__name: "warning-filled",
|
|
87
87
|
setup(e) {
|
|
@@ -95,10 +95,10 @@ var I3 = /* @__PURE__ */ F({
|
|
|
95
95
|
})
|
|
96
96
|
]));
|
|
97
97
|
}
|
|
98
|
-
}), q3 =
|
|
99
|
-
const
|
|
100
|
-
var a, l,
|
|
101
|
-
const o = (a = e == null ? void 0 : e.response) != null && a.data ? d3((
|
|
98
|
+
}), q3 = U3;
|
|
99
|
+
const z = (e, t) => {
|
|
100
|
+
var a, l, y, m;
|
|
101
|
+
const o = (a = e == null ? void 0 : e.response) != null && a.data ? d3((y = (l = e == null ? void 0 : e.response) == null ? void 0 : l.data) == null ? void 0 : y.suffix) : ((m = e.raw) == null ? void 0 : m.type) || d3(e[t.suffix]), r = o == null ? void 0 : o.toLowerCase(), n = {
|
|
102
102
|
sheet: "excel",
|
|
103
103
|
excel: "excel",
|
|
104
104
|
zip: "zip",
|
|
@@ -249,7 +249,7 @@ const b = (e, t) => {
|
|
|
249
249
|
null,
|
|
250
250
|
-1
|
|
251
251
|
/* HOISTED */
|
|
252
|
-
),
|
|
252
|
+
), Z3 = /* @__PURE__ */ c(
|
|
253
253
|
"path",
|
|
254
254
|
{
|
|
255
255
|
d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
|
|
@@ -259,12 +259,12 @@ const b = (e, t) => {
|
|
|
259
259
|
null,
|
|
260
260
|
-1
|
|
261
261
|
/* HOISTED */
|
|
262
|
-
),
|
|
262
|
+
), Q3 = [
|
|
263
263
|
P3,
|
|
264
264
|
W3,
|
|
265
265
|
N3,
|
|
266
|
-
|
|
267
|
-
],
|
|
266
|
+
Z3
|
|
267
|
+
], J3 = {
|
|
268
268
|
key: 1,
|
|
269
269
|
t: "1686301531714",
|
|
270
270
|
class: "icon",
|
|
@@ -274,7 +274,7 @@ const b = (e, t) => {
|
|
|
274
274
|
"p-id": "9067",
|
|
275
275
|
width: "200",
|
|
276
276
|
height: "200"
|
|
277
|
-
},
|
|
277
|
+
}, K3 = /* @__PURE__ */ c(
|
|
278
278
|
"path",
|
|
279
279
|
{
|
|
280
280
|
d: "M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",
|
|
@@ -284,7 +284,7 @@ const b = (e, t) => {
|
|
|
284
284
|
null,
|
|
285
285
|
-1
|
|
286
286
|
/* HOISTED */
|
|
287
|
-
),
|
|
287
|
+
), G3 = /* @__PURE__ */ c(
|
|
288
288
|
"path",
|
|
289
289
|
{
|
|
290
290
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -295,8 +295,8 @@ const b = (e, t) => {
|
|
|
295
295
|
-1
|
|
296
296
|
/* HOISTED */
|
|
297
297
|
), X3 = [
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
K3,
|
|
299
|
+
G3
|
|
300
300
|
], Y3 = {
|
|
301
301
|
key: 2,
|
|
302
302
|
t: "1686300141125",
|
|
@@ -426,10 +426,10 @@ const b = (e, t) => {
|
|
|
426
426
|
null,
|
|
427
427
|
-1
|
|
428
428
|
/* HOISTED */
|
|
429
|
-
),
|
|
429
|
+
), f6 = [
|
|
430
430
|
p6,
|
|
431
431
|
h6
|
|
432
|
-
],
|
|
432
|
+
], v6 = {
|
|
433
433
|
key: 6,
|
|
434
434
|
t: "1686300209288",
|
|
435
435
|
class: "icon",
|
|
@@ -540,7 +540,7 @@ const b = (e, t) => {
|
|
|
540
540
|
b6,
|
|
541
541
|
F6,
|
|
542
542
|
C6
|
|
543
|
-
],
|
|
543
|
+
], B6 = {
|
|
544
544
|
key: 9,
|
|
545
545
|
t: "1692251753690",
|
|
546
546
|
class: "icon",
|
|
@@ -550,7 +550,7 @@ const b = (e, t) => {
|
|
|
550
550
|
"p-id": "4336",
|
|
551
551
|
width: "200",
|
|
552
552
|
height: "200"
|
|
553
|
-
},
|
|
553
|
+
}, S6 = /* @__PURE__ */ c(
|
|
554
554
|
"path",
|
|
555
555
|
{
|
|
556
556
|
d: "M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",
|
|
@@ -592,7 +592,7 @@ const b = (e, t) => {
|
|
|
592
592
|
-1
|
|
593
593
|
/* HOISTED */
|
|
594
594
|
), $6 = [
|
|
595
|
-
|
|
595
|
+
S6,
|
|
596
596
|
I6,
|
|
597
597
|
D6,
|
|
598
598
|
V6
|
|
@@ -637,11 +637,11 @@ const b = (e, t) => {
|
|
|
637
637
|
null,
|
|
638
638
|
-1
|
|
639
639
|
/* HOISTED */
|
|
640
|
-
),
|
|
640
|
+
), O6 = [
|
|
641
641
|
M6,
|
|
642
642
|
E6,
|
|
643
643
|
H6
|
|
644
|
-
],
|
|
644
|
+
], U6 = {
|
|
645
645
|
key: 11,
|
|
646
646
|
t: "1686300037564",
|
|
647
647
|
class: "icon",
|
|
@@ -706,17 +706,17 @@ const b = (e, t) => {
|
|
|
706
706
|
}
|
|
707
707
|
},
|
|
708
708
|
setup(e) {
|
|
709
|
-
const t = e, o =
|
|
710
|
-
return (r, n) => o.value === "image" ? (s(), h("svg", j3,
|
|
709
|
+
const t = e, o = L(() => t.file ? z(t.file, t.fields) : t.type);
|
|
710
|
+
return (r, n) => o.value === "image" ? (s(), h("svg", j3, Q3)) : o.value === "zip" ? (s(), h("svg", J3, X3)) : o.value === "ppt" ? (s(), h("svg", Y3, n6)) : o.value === "word" ? (s(), h("svg", o6, l6)) : o.value === "pdf" ? (s(), h("svg", a6, d6)) : o.value === "txt" ? (s(), h("svg", u6, f6)) : o.value === "audio" ? (s(), h("svg", v6, g6)) : o.value === "video" ? (s(), h("svg", w6, k6)) : o.value === "excel" ? (s(), h("svg", z6, x6)) : o.value === "exe" ? (s(), h("svg", B6, $6)) : o.value === "json" ? (s(), h("svg", R6, O6)) : (s(), h("svg", U6, j6));
|
|
711
711
|
}
|
|
712
|
-
}),
|
|
712
|
+
}), K = (e, t) => {
|
|
713
713
|
const o = e.__vccOpts || e;
|
|
714
714
|
for (const [r, n] of t)
|
|
715
715
|
o[r] = n;
|
|
716
716
|
return o;
|
|
717
|
-
},
|
|
717
|
+
}, Y = (e) => e % 1 === 0 ? e.toString() : e.toFixed(2), n3 = (e, t) => t ? t.startsWith("http") ? t : `${e || location.origin}${t}` : "", P6 = /* @__PURE__ */ F({
|
|
718
718
|
__name: "IkPreviewFileDialog",
|
|
719
|
-
props: /* @__PURE__ */
|
|
719
|
+
props: /* @__PURE__ */ Q({
|
|
720
720
|
file: {
|
|
721
721
|
type: Object,
|
|
722
722
|
default: () => []
|
|
@@ -751,78 +751,81 @@ const b = (e, t) => {
|
|
|
751
751
|
}),
|
|
752
752
|
emits: ["update:show"],
|
|
753
753
|
setup(e) {
|
|
754
|
-
const t = e, o =
|
|
754
|
+
const t = e, o = o3(e, "show"), r = L(() => ({
|
|
755
755
|
name: "name",
|
|
756
756
|
url: "url",
|
|
757
757
|
suffix: "suffix",
|
|
758
758
|
size: "fileSize",
|
|
759
759
|
...t.field
|
|
760
|
-
})), n =
|
|
760
|
+
})), n = R(null), a = R(null), l = A3({
|
|
761
761
|
image: !1,
|
|
762
762
|
office: !1,
|
|
763
763
|
video: !1
|
|
764
|
-
}),
|
|
765
|
-
var
|
|
764
|
+
}), y = (d) => {
|
|
765
|
+
var g, x, I, D, V, W;
|
|
766
766
|
try {
|
|
767
|
-
const
|
|
767
|
+
const b = ((g = d == null ? void 0 : d.response) == null ? void 0 : g.data) || d, T = b[r.value.url] || (b == null ? void 0 : b.id) || b.attachmentId, q = (x = b[r.value.suffix] || b.attachmentSuffix) == null ? void 0 : x.toLowerCase(), j = b[r.value.name] || (b == null ? void 0 : b.attachmentName);
|
|
768
768
|
if (a.value = {
|
|
769
769
|
...d,
|
|
770
770
|
name: d[r.value.name],
|
|
771
|
-
url:
|
|
772
|
-
}, d &&
|
|
771
|
+
url: n3(t.loadUrl, T)
|
|
772
|
+
}, d && z(d, r.value) === "image") {
|
|
773
773
|
l.image = !0;
|
|
774
774
|
return;
|
|
775
|
-
} else if (t.onlyOfficeAccept.includes(
|
|
775
|
+
} else if (t.onlyOfficeAccept.includes(q)) {
|
|
776
776
|
l.office = !0, n.value = {
|
|
777
|
-
|
|
778
|
-
document: {
|
|
779
|
-
key: C3(),
|
|
780
|
-
title: N,
|
|
781
|
-
url: Y(t.loadUrl, D),
|
|
782
|
-
fileType: I
|
|
783
|
-
},
|
|
777
|
+
...t.onlyOfficeConfig,
|
|
784
778
|
editorConfig: {
|
|
779
|
+
...((I = t.onlyOfficeConfig) == null ? void 0 : I.editorConfig) || {},
|
|
785
780
|
customization: {
|
|
781
|
+
...((V = (D = t.onlyOfficeConfig) == null ? void 0 : D.editorConfig) == null ? void 0 : V.customization) || {},
|
|
786
782
|
review: {
|
|
787
783
|
reviewDisplay: "final"
|
|
788
784
|
}
|
|
789
785
|
}
|
|
790
786
|
},
|
|
791
|
-
|
|
787
|
+
document: {
|
|
788
|
+
key: C3(),
|
|
789
|
+
title: j,
|
|
790
|
+
url: n3(t.loadUrl, T),
|
|
791
|
+
fileType: q,
|
|
792
|
+
...((W = t.onlyOfficeConfig) == null ? void 0 : W.document) || {}
|
|
793
|
+
},
|
|
794
|
+
documentType: T3(q)
|
|
792
795
|
};
|
|
793
796
|
return;
|
|
794
797
|
}
|
|
795
|
-
} catch (
|
|
796
|
-
console.info("预览错误: ",
|
|
798
|
+
} catch (b) {
|
|
799
|
+
console.info("预览错误: ", b);
|
|
797
800
|
}
|
|
798
801
|
};
|
|
799
|
-
g3([o, t.file], ([d,
|
|
800
|
-
d &&
|
|
801
|
-
|
|
802
|
+
g3([o, t.file], ([d, g]) => {
|
|
803
|
+
d && e3(() => {
|
|
804
|
+
y(t.file);
|
|
802
805
|
});
|
|
803
806
|
});
|
|
804
807
|
const m = () => {
|
|
805
808
|
o.value = !1, l.office = !1, l.image = !1, l.video = !1;
|
|
806
809
|
};
|
|
807
|
-
return (d,
|
|
808
|
-
var
|
|
809
|
-
const x =
|
|
810
|
+
return (d, g) => {
|
|
811
|
+
var I, D;
|
|
812
|
+
const x = J("el-image-viewer");
|
|
810
813
|
return o.value ? (s(), h(
|
|
811
|
-
|
|
814
|
+
H,
|
|
812
815
|
{ key: 0 },
|
|
813
816
|
[
|
|
814
|
-
(
|
|
817
|
+
(I = a.value) != null && I.url && l.image ? (s(), k(x, {
|
|
815
818
|
key: 0,
|
|
816
|
-
onClose:
|
|
819
|
+
onClose: g[0] || (g[0] = (V) => {
|
|
817
820
|
a.value = null, l.image = !1;
|
|
818
821
|
}),
|
|
819
822
|
ref: "previewImgRef",
|
|
820
823
|
"url-list": [(D = a.value) == null ? void 0 : D.url]
|
|
821
|
-
}, null, 8, ["url-list"])) :
|
|
822
|
-
|
|
824
|
+
}, null, 8, ["url-list"])) : _("v-if", !0),
|
|
825
|
+
_(" 文档类 "),
|
|
823
826
|
A(u(le), {
|
|
824
827
|
modelValue: l.office,
|
|
825
|
-
"onUpdate:modelValue":
|
|
828
|
+
"onUpdate:modelValue": g[1] || (g[1] = (V) => l.office = V),
|
|
826
829
|
draggable: "",
|
|
827
830
|
"no-footer": "",
|
|
828
831
|
"no-header": "",
|
|
@@ -835,8 +838,8 @@ const b = (e, t) => {
|
|
|
835
838
|
onClose: m,
|
|
836
839
|
"modal-class": "ik-only-preview-dialog"
|
|
837
840
|
}, {
|
|
838
|
-
default:
|
|
839
|
-
A(u(
|
|
841
|
+
default: w(() => [
|
|
842
|
+
A(u(fe), {
|
|
840
843
|
configOptions: n.value,
|
|
841
844
|
documentServerUrl: e.onlyofficeServer,
|
|
842
845
|
mode: "view"
|
|
@@ -848,22 +851,22 @@ const b = (e, t) => {
|
|
|
848
851
|
],
|
|
849
852
|
64
|
|
850
853
|
/* STABLE_FRAGMENT */
|
|
851
|
-
)) :
|
|
854
|
+
)) : _("v-if", !0);
|
|
852
855
|
};
|
|
853
856
|
}
|
|
854
857
|
});
|
|
855
|
-
const W6 =
|
|
858
|
+
const W6 = P(P6), N6 = {
|
|
856
859
|
key: 0,
|
|
857
860
|
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
|
|
858
|
-
},
|
|
861
|
+
}, Z6 = {
|
|
859
862
|
key: 1,
|
|
860
863
|
class: "h-[1em] w-[1em]",
|
|
861
864
|
"aria-hidden": "true"
|
|
862
|
-
},
|
|
865
|
+
}, Q6 = ["xlink:href"], J6 = ["src"], K6 = {
|
|
863
866
|
key: 1,
|
|
864
867
|
class: "h-[1em] w-[1em]",
|
|
865
868
|
"aria-hidden": "true"
|
|
866
|
-
},
|
|
869
|
+
}, G6 = ["xlink:href"], X6 = ["src"], Y6 = /* @__PURE__ */ F({
|
|
867
870
|
name: "IkSvgIcon",
|
|
868
871
|
__name: "index",
|
|
869
872
|
props: {
|
|
@@ -890,10 +893,10 @@ const W6 = q(P6), N6 = {
|
|
|
890
893
|
tableIconType: { default: "icon" }
|
|
891
894
|
},
|
|
892
895
|
setup(e) {
|
|
893
|
-
const t = e, o =
|
|
896
|
+
const t = e, o = L(() => {
|
|
894
897
|
var n, a, l;
|
|
895
898
|
return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (n = t.name) != null && n.startsWith("iksig") ? "iksig" : (a = t.name) != null && a.includes(":") ? "iconify" : (l = t.name) != null && l.startsWith("iksvg") ? "svg" : "i";
|
|
896
|
-
}), r =
|
|
899
|
+
}), r = L(() => {
|
|
897
900
|
const n = [];
|
|
898
901
|
if (t.flip)
|
|
899
902
|
switch (t.flip) {
|
|
@@ -921,13 +924,13 @@ const W6 = q(P6), N6 = {
|
|
|
921
924
|
return t.width && (a.width = a.height = typeof t.width == "number" ? `${t.width}px` : t.width), a;
|
|
922
925
|
});
|
|
923
926
|
return (n, a) => {
|
|
924
|
-
const l =
|
|
927
|
+
const l = J("el-tooltip"), y = J("el-button");
|
|
925
928
|
return n.tableIconType === "icon" ? (s(), h("span", N6, [
|
|
926
929
|
n.notip || !n.title ? (s(), h(
|
|
927
930
|
"i",
|
|
928
931
|
{
|
|
929
932
|
key: 0,
|
|
930
|
-
class:
|
|
933
|
+
class: $(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
931
934
|
[n.name]: o.value === "unocss",
|
|
932
935
|
"show-bg": n.showBg || n.bg,
|
|
933
936
|
default: n.size === "default",
|
|
@@ -940,34 +943,34 @@ const W6 = q(P6), N6 = {
|
|
|
940
943
|
active: n.active,
|
|
941
944
|
disabled: n.disabled
|
|
942
945
|
}]),
|
|
943
|
-
style:
|
|
946
|
+
style: O(r.value)
|
|
944
947
|
},
|
|
945
948
|
[
|
|
946
|
-
|
|
949
|
+
_(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
947
950
|
o.value === "iksig" ? (s(), h(
|
|
948
951
|
"i",
|
|
949
952
|
{
|
|
950
953
|
key: 0,
|
|
951
|
-
class:
|
|
952
|
-
style:
|
|
954
|
+
class: $(`iksig ${n.name}`),
|
|
955
|
+
style: O(r.value)
|
|
953
956
|
},
|
|
954
957
|
null,
|
|
955
958
|
6
|
|
956
959
|
/* CLASS, STYLE */
|
|
957
|
-
)) : o.value === "svg" ? (s(), h("svg",
|
|
960
|
+
)) : o.value === "svg" ? (s(), h("svg", Z6, [
|
|
958
961
|
c("use", {
|
|
959
962
|
"xlink:href": `#${n.name}`
|
|
960
|
-
}, null, 8,
|
|
963
|
+
}, null, 8, Q6)
|
|
961
964
|
])) : o.value === "img" ? (s(), h("img", {
|
|
962
965
|
key: 2,
|
|
963
966
|
src: n.name,
|
|
964
967
|
class: "h-[1em] w-[1em]"
|
|
965
|
-
}, null, 8,
|
|
968
|
+
}, null, 8, J6)) : (s(), h(
|
|
966
969
|
"i",
|
|
967
970
|
{
|
|
968
971
|
key: 3,
|
|
969
|
-
class:
|
|
970
|
-
style:
|
|
972
|
+
class: $(n.name),
|
|
973
|
+
style: O(r.value)
|
|
971
974
|
},
|
|
972
975
|
null,
|
|
973
976
|
6
|
|
@@ -976,16 +979,16 @@ const W6 = q(P6), N6 = {
|
|
|
976
979
|
],
|
|
977
980
|
6
|
|
978
981
|
/* CLASS, STYLE */
|
|
979
|
-
)) : (s(),
|
|
982
|
+
)) : (s(), k(l, {
|
|
980
983
|
key: 1,
|
|
981
984
|
content: n.title,
|
|
982
985
|
placement: "top"
|
|
983
986
|
}, {
|
|
984
|
-
default:
|
|
987
|
+
default: w(() => [
|
|
985
988
|
c(
|
|
986
989
|
"i",
|
|
987
990
|
{
|
|
988
|
-
class:
|
|
991
|
+
class: $(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
989
992
|
[n.name]: o.value === "unocss",
|
|
990
993
|
"show-bg": n.showBg || n.bg,
|
|
991
994
|
default: n.size === "default",
|
|
@@ -997,23 +1000,23 @@ const W6 = q(P6), N6 = {
|
|
|
997
1000
|
error: n.error || t.type === "error",
|
|
998
1001
|
active: n.active
|
|
999
1002
|
}]),
|
|
1000
|
-
style:
|
|
1003
|
+
style: O(r.value)
|
|
1001
1004
|
},
|
|
1002
1005
|
[
|
|
1003
1006
|
o.value === "iksig" ? (s(), h(
|
|
1004
1007
|
"i",
|
|
1005
1008
|
{
|
|
1006
1009
|
key: 0,
|
|
1007
|
-
class:
|
|
1008
|
-
style:
|
|
1010
|
+
class: $(`iksig ${n.name}`),
|
|
1011
|
+
style: O(r.value)
|
|
1009
1012
|
},
|
|
1010
1013
|
null,
|
|
1011
1014
|
6
|
|
1012
1015
|
/* CLASS, STYLE */
|
|
1013
|
-
)) : o.value === "svg" ? (s(), h("svg",
|
|
1016
|
+
)) : o.value === "svg" ? (s(), h("svg", K6, [
|
|
1014
1017
|
c("use", {
|
|
1015
1018
|
"xlink:href": `#${n.name}`
|
|
1016
|
-
}, null, 8,
|
|
1019
|
+
}, null, 8, G6)
|
|
1017
1020
|
])) : o.value === "img" ? (s(), h("img", {
|
|
1018
1021
|
key: 2,
|
|
1019
1022
|
src: n.name,
|
|
@@ -1022,8 +1025,8 @@ const W6 = q(P6), N6 = {
|
|
|
1022
1025
|
"i",
|
|
1023
1026
|
{
|
|
1024
1027
|
key: 3,
|
|
1025
|
-
class:
|
|
1026
|
-
style:
|
|
1028
|
+
class: $(n.name),
|
|
1029
|
+
style: O(r.value)
|
|
1027
1030
|
},
|
|
1028
1031
|
null,
|
|
1029
1032
|
6
|
|
@@ -1037,11 +1040,11 @@ const W6 = q(P6), N6 = {
|
|
|
1037
1040
|
_: 1
|
|
1038
1041
|
/* STABLE */
|
|
1039
1042
|
}, 8, ["content"]))
|
|
1040
|
-
])) : (s(),
|
|
1043
|
+
])) : (s(), k(y, {
|
|
1041
1044
|
key: 1,
|
|
1042
1045
|
type: ["warning", "error"].includes(n.type) ? "danger" : ""
|
|
1043
1046
|
}, {
|
|
1044
|
-
default:
|
|
1047
|
+
default: w(() => [
|
|
1045
1048
|
U(
|
|
1046
1049
|
C(n.title),
|
|
1047
1050
|
1
|
|
@@ -1054,7 +1057,7 @@ const W6 = q(P6), N6 = {
|
|
|
1054
1057
|
};
|
|
1055
1058
|
}
|
|
1056
1059
|
});
|
|
1057
|
-
const ee = /* @__PURE__ */
|
|
1060
|
+
const ee = /* @__PURE__ */ K(Y6, [["__scopeId", "data-v-7d95dbf5"]]), S = P(ee), te = {
|
|
1058
1061
|
key: 0,
|
|
1059
1062
|
class: "exit-main-page-maximize"
|
|
1060
1063
|
}, ne = /* @__PURE__ */ F({
|
|
@@ -1072,13 +1075,13 @@ const ee = /* @__PURE__ */ W(Y6, [["__scopeId", "data-v-7d95dbf5"]]), B = q(ee),
|
|
|
1072
1075
|
setup(e) {
|
|
1073
1076
|
return (t, o) => (s(), h("div", null, [
|
|
1074
1077
|
e.showBg && e.fullscreen ? (s(), h("div", te, [
|
|
1075
|
-
A(u(
|
|
1078
|
+
A(u(S), {
|
|
1076
1079
|
name: "iksvg_guanbidanchuang",
|
|
1077
1080
|
title: "关闭",
|
|
1078
1081
|
size: 20,
|
|
1079
1082
|
error: ""
|
|
1080
1083
|
})
|
|
1081
|
-
])) : (s(),
|
|
1084
|
+
])) : (s(), k(u(S), {
|
|
1082
1085
|
key: 1,
|
|
1083
1086
|
error: "",
|
|
1084
1087
|
name: "iksvg_guanbidanchuang",
|
|
@@ -1088,9 +1091,9 @@ const ee = /* @__PURE__ */ W(Y6, [["__scopeId", "data-v-7d95dbf5"]]), B = q(ee),
|
|
|
1088
1091
|
]));
|
|
1089
1092
|
}
|
|
1090
1093
|
});
|
|
1091
|
-
const oe = /* @__PURE__ */
|
|
1094
|
+
const oe = /* @__PURE__ */ K(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { class: "base-header" }, se = /* @__PURE__ */ F({
|
|
1092
1095
|
__name: "IkBaseDialog",
|
|
1093
|
-
props: /* @__PURE__ */
|
|
1096
|
+
props: /* @__PURE__ */ Q({
|
|
1094
1097
|
title: { default: "" },
|
|
1095
1098
|
cancelText: { default: "取消" },
|
|
1096
1099
|
confirmText: { default: "确认" },
|
|
@@ -1109,7 +1112,7 @@ const oe = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
|
|
|
1109
1112
|
}),
|
|
1110
1113
|
emits: ["update:modelValue"],
|
|
1111
1114
|
setup(e) {
|
|
1112
|
-
const t = e, o =
|
|
1115
|
+
const t = e, o = o3(e, "modelValue"), r = R(t.fullscreen), n = () => {
|
|
1113
1116
|
r.value = !r.value;
|
|
1114
1117
|
}, a = F({
|
|
1115
1118
|
setup() {
|
|
@@ -1119,19 +1122,19 @@ const oe = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
|
|
|
1119
1122
|
});
|
|
1120
1123
|
}
|
|
1121
1124
|
});
|
|
1122
|
-
return (l,
|
|
1123
|
-
const m =
|
|
1124
|
-
return s(),
|
|
1125
|
+
return (l, y) => {
|
|
1126
|
+
const m = J("el-dialog");
|
|
1127
|
+
return s(), k(m, t3({
|
|
1125
1128
|
modelValue: o.value,
|
|
1126
|
-
"onUpdate:modelValue":
|
|
1129
|
+
"onUpdate:modelValue": y[0] || (y[0] = (d) => o.value = d)
|
|
1127
1130
|
}, l.$attrs, {
|
|
1128
1131
|
"close-icon": u(a),
|
|
1129
1132
|
class: `ik-base-dialog ${l.noHeader ? "no-header" : ""} ${l.noFooter ? "no-footer" : ""}`,
|
|
1130
1133
|
fullscreen: r.value,
|
|
1131
1134
|
"modal-class": "baseDialog"
|
|
1132
1135
|
}), h3({
|
|
1133
|
-
icon:
|
|
1134
|
-
|
|
1136
|
+
icon: w(() => [
|
|
1137
|
+
M(l.$slots, "title", {}, () => [
|
|
1135
1138
|
U(
|
|
1136
1139
|
C(l.title),
|
|
1137
1140
|
1
|
|
@@ -1139,9 +1142,9 @@ const oe = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
|
|
|
1139
1142
|
)
|
|
1140
1143
|
])
|
|
1141
1144
|
]),
|
|
1142
|
-
header:
|
|
1145
|
+
header: w(() => [
|
|
1143
1146
|
c("div", ie, [
|
|
1144
|
-
|
|
1147
|
+
M(l.$slots, "header", {}, () => [
|
|
1145
1148
|
U(
|
|
1146
1149
|
C(l.title),
|
|
1147
1150
|
1
|
|
@@ -1149,24 +1152,24 @@ const oe = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
|
|
|
1149
1152
|
)
|
|
1150
1153
|
])
|
|
1151
1154
|
]),
|
|
1152
|
-
l.$attrs.showClose ? (s(),
|
|
1155
|
+
l.$attrs.showClose ? (s(), k(u(S), {
|
|
1153
1156
|
key: 0,
|
|
1154
1157
|
onClick: n,
|
|
1155
1158
|
name: r.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
1156
1159
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
1157
1160
|
title: r.value ? "退出全屏" : "全屏"
|
|
1158
|
-
}, null, 8, ["name", "title"])) :
|
|
1161
|
+
}, null, 8, ["name", "title"])) : _("v-if", !0)
|
|
1159
1162
|
]),
|
|
1160
|
-
default:
|
|
1161
|
-
|
|
1163
|
+
default: w(() => [
|
|
1164
|
+
M(l.$slots, "default")
|
|
1162
1165
|
]),
|
|
1163
1166
|
_: 2
|
|
1164
1167
|
/* DYNAMIC */
|
|
1165
1168
|
}, [
|
|
1166
1169
|
l.$slots.footer ? {
|
|
1167
1170
|
name: "footer",
|
|
1168
|
-
fn:
|
|
1169
|
-
|
|
1171
|
+
fn: w(() => [
|
|
1172
|
+
M(l.$slots, "footer")
|
|
1170
1173
|
]),
|
|
1171
1174
|
key: "0"
|
|
1172
1175
|
} : void 0
|
|
@@ -1174,7 +1177,7 @@ const oe = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
|
|
|
1174
1177
|
};
|
|
1175
1178
|
}
|
|
1176
1179
|
});
|
|
1177
|
-
const le =
|
|
1180
|
+
const le = P(se);
|
|
1178
1181
|
function ae(e, t, o, r) {
|
|
1179
1182
|
function n(a) {
|
|
1180
1183
|
return a instanceof o ? a : new o(function(l) {
|
|
@@ -1182,22 +1185,22 @@ function ae(e, t, o, r) {
|
|
|
1182
1185
|
});
|
|
1183
1186
|
}
|
|
1184
1187
|
return new (o || (o = Promise))(function(a, l) {
|
|
1185
|
-
function g
|
|
1188
|
+
function y(g) {
|
|
1186
1189
|
try {
|
|
1187
|
-
d(r.next(
|
|
1190
|
+
d(r.next(g));
|
|
1188
1191
|
} catch (x) {
|
|
1189
1192
|
l(x);
|
|
1190
1193
|
}
|
|
1191
1194
|
}
|
|
1192
|
-
function m(
|
|
1195
|
+
function m(g) {
|
|
1193
1196
|
try {
|
|
1194
|
-
d(r.throw(
|
|
1197
|
+
d(r.throw(g));
|
|
1195
1198
|
} catch (x) {
|
|
1196
1199
|
l(x);
|
|
1197
1200
|
}
|
|
1198
1201
|
}
|
|
1199
|
-
function d(
|
|
1200
|
-
|
|
1202
|
+
function d(g) {
|
|
1203
|
+
g.done ? a(g.value) : n(g.value).then(y, m);
|
|
1201
1204
|
}
|
|
1202
1205
|
d((r = r.apply(e, t || [])).next());
|
|
1203
1206
|
});
|
|
@@ -1208,12 +1211,12 @@ function ce(e, t) {
|
|
|
1208
1211
|
throw a[1];
|
|
1209
1212
|
return a[1];
|
|
1210
1213
|
}, trys: [], ops: [] }, r, n, a, l;
|
|
1211
|
-
return l = { next:
|
|
1214
|
+
return l = { next: y(0), throw: y(1), return: y(2) }, typeof Symbol == "function" && (l[Symbol.iterator] = function() {
|
|
1212
1215
|
return this;
|
|
1213
1216
|
}), l;
|
|
1214
|
-
function
|
|
1215
|
-
return function(
|
|
1216
|
-
return m([d,
|
|
1217
|
+
function y(d) {
|
|
1218
|
+
return function(g) {
|
|
1219
|
+
return m([d, g]);
|
|
1217
1220
|
};
|
|
1218
1221
|
}
|
|
1219
1222
|
function m(d) {
|
|
@@ -1257,8 +1260,8 @@ function ce(e, t) {
|
|
|
1257
1260
|
continue;
|
|
1258
1261
|
}
|
|
1259
1262
|
d = t.call(e, o);
|
|
1260
|
-
} catch (
|
|
1261
|
-
d = [6,
|
|
1263
|
+
} catch (g) {
|
|
1264
|
+
d = [6, g], n = 0;
|
|
1262
1265
|
} finally {
|
|
1263
1266
|
r = a = 0;
|
|
1264
1267
|
}
|
|
@@ -1286,8 +1289,8 @@ var re = function(e, t) {
|
|
|
1286
1289
|
}
|
|
1287
1290
|
}, 500);
|
|
1288
1291
|
else {
|
|
1289
|
-
var
|
|
1290
|
-
document.body.appendChild(
|
|
1292
|
+
var y = p3(t, e, r, n);
|
|
1293
|
+
document.body.appendChild(y);
|
|
1291
1294
|
}
|
|
1292
1295
|
} catch (m) {
|
|
1293
1296
|
console.error(m);
|
|
@@ -1302,7 +1305,7 @@ var re = function(e, t) {
|
|
|
1302
1305
|
}, n.onerror = function(a) {
|
|
1303
1306
|
n.removeAttribute("loading"), r(a);
|
|
1304
1307
|
}, n.setAttribute("loading", ""), n;
|
|
1305
|
-
},
|
|
1308
|
+
}, i3 = F({
|
|
1306
1309
|
name: "DocumentEditor",
|
|
1307
1310
|
props: {
|
|
1308
1311
|
id: {
|
|
@@ -1475,8 +1478,8 @@ const de = ["id"];
|
|
|
1475
1478
|
function ue(e, t, o, r, n, a) {
|
|
1476
1479
|
return s(), h("div", { id: e.id }, null, 8, de);
|
|
1477
1480
|
}
|
|
1478
|
-
|
|
1479
|
-
|
|
1481
|
+
i3.render = ue;
|
|
1482
|
+
i3.__file = "src/components/DocumentEditor.vue";
|
|
1480
1483
|
const pe = /* @__PURE__ */ F({
|
|
1481
1484
|
__name: "IkOnlyOffice",
|
|
1482
1485
|
props: {
|
|
@@ -1485,80 +1488,33 @@ const pe = /* @__PURE__ */ F({
|
|
|
1485
1488
|
type: String,
|
|
1486
1489
|
default: ""
|
|
1487
1490
|
},
|
|
1488
|
-
// 当前onlyoffice的模式 (edit 编辑模式 view是查看模式)
|
|
1489
|
-
mode: {
|
|
1490
|
-
type: String,
|
|
1491
|
-
default: ""
|
|
1492
|
-
},
|
|
1493
1491
|
// 配置项
|
|
1494
1492
|
configOptions: {
|
|
1495
1493
|
type: Object,
|
|
1496
1494
|
default: () => {
|
|
1497
1495
|
}
|
|
1498
1496
|
},
|
|
1499
|
-
//
|
|
1497
|
+
// 元素的高度
|
|
1500
1498
|
officeHeight: {
|
|
1501
1499
|
type: String,
|
|
1502
1500
|
default: "100%"
|
|
1503
|
-
},
|
|
1504
|
-
// 加密后的token
|
|
1505
|
-
token: {
|
|
1506
|
-
type: String,
|
|
1507
|
-
default: ""
|
|
1508
1501
|
}
|
|
1509
1502
|
},
|
|
1510
1503
|
setup(e) {
|
|
1511
|
-
|
|
1512
|
-
const t = e, o = $({
|
|
1504
|
+
const t = e, o = R({
|
|
1513
1505
|
width: "100%",
|
|
1514
1506
|
height: "100%",
|
|
1515
|
-
|
|
1516
|
-
// word cell(表格) slide(PPT)
|
|
1517
|
-
documentType: (a = t.configOptions) == null ? void 0 : a.documentType,
|
|
1518
|
-
editorConfig: {
|
|
1519
|
-
callbackUrl: (g = (l = t.configOptions) == null ? void 0 : l.editorConfig) == null ? void 0 : g.callbackUrl,
|
|
1520
|
-
// 保存的回调函数
|
|
1521
|
-
lang: "zh-CN",
|
|
1522
|
-
mode: t.mode,
|
|
1523
|
-
// 强制保存
|
|
1524
|
-
customization: {
|
|
1525
|
-
forcesave: !0,
|
|
1526
|
-
autosave: !0
|
|
1527
|
-
}
|
|
1528
|
-
},
|
|
1529
|
-
// 权限
|
|
1530
|
-
permissions: {
|
|
1531
|
-
comment: !0,
|
|
1532
|
-
commentGroups: {
|
|
1533
|
-
edit: ["Group1"],
|
|
1534
|
-
remove: ["Group1"],
|
|
1535
|
-
view: ""
|
|
1536
|
-
},
|
|
1537
|
-
copy: !0,
|
|
1538
|
-
deleteCommentAuthorOnly: !0,
|
|
1539
|
-
download: !0,
|
|
1540
|
-
edit: !0,
|
|
1541
|
-
editCommentAuthorOnly: !0,
|
|
1542
|
-
fillForms: !0,
|
|
1543
|
-
modifyContentControl: !0,
|
|
1544
|
-
modifyFilter: !0,
|
|
1545
|
-
print: !0,
|
|
1546
|
-
review: !0,
|
|
1547
|
-
reviewGroups: ["Group1", "Group2", "Group3"],
|
|
1548
|
-
userInfoGroups: ["Group1"]
|
|
1549
|
-
},
|
|
1550
|
-
mode: t.mode,
|
|
1551
|
-
token: t.token
|
|
1507
|
+
...t.configOptions || {}
|
|
1552
1508
|
}), r = () => {
|
|
1553
|
-
console.info("文档加载完成");
|
|
1509
|
+
console.info("文档加载完成", t.configOptions);
|
|
1554
1510
|
};
|
|
1555
|
-
return (
|
|
1511
|
+
return (n, a) => (s(), h(
|
|
1556
1512
|
"div",
|
|
1557
1513
|
{
|
|
1558
|
-
style:
|
|
1514
|
+
style: O({ height: t.officeHeight })
|
|
1559
1515
|
},
|
|
1560
1516
|
[
|
|
1561
|
-
A(u(
|
|
1517
|
+
A(u(i3), {
|
|
1562
1518
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1563
1519
|
ref: "editorRef",
|
|
1564
1520
|
"document-server-url": e.documentServerUrl,
|
|
@@ -1571,24 +1527,24 @@ const pe = /* @__PURE__ */ F({
|
|
|
1571
1527
|
));
|
|
1572
1528
|
}
|
|
1573
1529
|
});
|
|
1574
|
-
const he = /* @__PURE__ */
|
|
1530
|
+
const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he), ve = (e) => (z3("data-v-10a62ee9"), e = e(), b3(), e), me = { class: "ik-flie-list" }, Ae = { class: "name" }, ge = { key: 1 }, we = ["src"], ye = { class: "file-icon" }, _e = { class: "file-name-loading" }, ke = { class: "file-name" }, ze = { key: 0 }, be = {
|
|
1575
1531
|
key: 0,
|
|
1576
1532
|
class: "file-size"
|
|
1577
|
-
}, Fe = { class: "name" }, Ce = { class: "file-name-loading" }, xe = { class: "file-name" },
|
|
1533
|
+
}, Fe = { class: "name" }, Ce = { class: "file-name-loading" }, xe = { class: "file-name" }, Be = { class: "file-size" }, Se = { class: "operate-btn" }, Ie = { class: "card" }, De = { class: "title" }, Ve = /* @__PURE__ */ ve(() => /* @__PURE__ */ c(
|
|
1578
1534
|
"img",
|
|
1579
1535
|
{
|
|
1580
|
-
src:
|
|
1536
|
+
src: S3,
|
|
1581
1537
|
class: "w-[48px] h-[48px]"
|
|
1582
1538
|
},
|
|
1583
1539
|
null,
|
|
1584
1540
|
-1
|
|
1585
1541
|
/* HOISTED */
|
|
1586
|
-
)), $e = { class: "ik-flie-list" }, Re = { class: "name" }, Me = { key: 1 }, Ee = ["src"], He = { class: "file-icon" },
|
|
1542
|
+
)), $e = { class: "ik-flie-list" }, Re = { class: "name" }, Me = { key: 1 }, Ee = ["src"], He = { class: "file-icon" }, Oe = { class: "file-name-loading" }, Ue = { class: "file-name" }, qe = { key: 0 }, Le = {
|
|
1587
1543
|
key: 0,
|
|
1588
1544
|
class: "file-size"
|
|
1589
1545
|
}, Te = { key: 0 }, je = /* @__PURE__ */ F({
|
|
1590
1546
|
__name: "index",
|
|
1591
|
-
props: /* @__PURE__ */
|
|
1547
|
+
props: /* @__PURE__ */ Q({
|
|
1592
1548
|
// 显示图标
|
|
1593
1549
|
showIcon: {
|
|
1594
1550
|
type: Boolean,
|
|
@@ -1711,6 +1667,11 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1711
1667
|
type: String,
|
|
1712
1668
|
default: ""
|
|
1713
1669
|
},
|
|
1670
|
+
// onlyoffice公共配置
|
|
1671
|
+
onlyOfficeConfig: {
|
|
1672
|
+
type: Object,
|
|
1673
|
+
default: () => ({})
|
|
1674
|
+
},
|
|
1714
1675
|
// onlyOffice的加密token
|
|
1715
1676
|
jwtToken: {
|
|
1716
1677
|
type: String,
|
|
@@ -1723,9 +1684,9 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1723
1684
|
},
|
|
1724
1685
|
modelModifiers: {}
|
|
1725
1686
|
}),
|
|
1726
|
-
emits: /* @__PURE__ */
|
|
1687
|
+
emits: /* @__PURE__ */ Q(["delete", "exceed", "success", "error", "outSize"], ["update:modelValue"]),
|
|
1727
1688
|
setup(e, { emit: t }) {
|
|
1728
|
-
const o = e, r = t, n =
|
|
1689
|
+
const o = e, r = t, n = o3(e, "modelValue"), l = {
|
|
1729
1690
|
...{
|
|
1730
1691
|
name: "name",
|
|
1731
1692
|
url: "url",
|
|
@@ -1733,109 +1694,109 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1733
1694
|
size: "size"
|
|
1734
1695
|
},
|
|
1735
1696
|
...o.defaultFileds
|
|
1736
|
-
},
|
|
1737
|
-
const
|
|
1738
|
-
return
|
|
1739
|
-
message: `上传文件大小(${
|
|
1697
|
+
}, y = L(() => o.size), m = R(null), d = R([]), g = R({}), x = R(!1), I = (p) => {
|
|
1698
|
+
const f = p.size / 1024 / 1024;
|
|
1699
|
+
return f < y.value ? !0 : (r("outSize"), X({
|
|
1700
|
+
message: `上传文件大小(${f.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,
|
|
1740
1701
|
type: "warning",
|
|
1741
1702
|
showClose: !0,
|
|
1742
1703
|
duration: 5e3
|
|
1743
1704
|
}), !1);
|
|
1744
|
-
}, D = (p,
|
|
1745
|
-
var
|
|
1746
|
-
p.size / 1024 / 1024 <
|
|
1705
|
+
}, D = (p, f) => {
|
|
1706
|
+
var B;
|
|
1707
|
+
p.size / 1024 / 1024 < y.value || e3(() => {
|
|
1747
1708
|
n.value.pop();
|
|
1748
|
-
}), o.accept !== "*" && !o.accept.split(",").includes((
|
|
1709
|
+
}), o.accept !== "*" && !o.accept.split(",").includes((B = p == null ? void 0 : p.raw) == null ? void 0 : B.type) && !o.accept.split(",").includes(`.${p.name.split(".").pop()}`) && (X({
|
|
1749
1710
|
message: `不允许的上传文件格式(${p.name}),请重新选择`,
|
|
1750
1711
|
type: "warning",
|
|
1751
1712
|
showClose: !0,
|
|
1752
1713
|
duration: 5e3
|
|
1753
|
-
}),
|
|
1714
|
+
}), e3(() => {
|
|
1754
1715
|
n.value.pop();
|
|
1755
1716
|
}));
|
|
1756
|
-
},
|
|
1757
|
-
var i,
|
|
1758
|
-
p.status = "ready",
|
|
1759
|
-
},
|
|
1760
|
-
var
|
|
1761
|
-
const i = n.value.length,
|
|
1762
|
-
let
|
|
1763
|
-
for (;
|
|
1764
|
-
(
|
|
1765
|
-
|
|
1717
|
+
}, V = () => !1, W = (p, f) => {
|
|
1718
|
+
var i, v;
|
|
1719
|
+
p.status = "ready", f !== void 0 && d.value.splice(f, 1), (i = m.value) == null || i.handleStart(p.raw), (v = m.value) == null || v.submit();
|
|
1720
|
+
}, b = (p, f) => {
|
|
1721
|
+
var Z, s3;
|
|
1722
|
+
const i = n.value.length, v = o.limit - i;
|
|
1723
|
+
let B = 0;
|
|
1724
|
+
for (; B < v && B < p.length; )
|
|
1725
|
+
(Z = m.value) == null || Z.handleStart(p[B]), (s3 = m.value) == null || s3.submit(), B++;
|
|
1726
|
+
X({
|
|
1766
1727
|
message: (o == null ? void 0 : o.limitText) || `最大可上传${o.limit}个文件,已忽略超出文件`,
|
|
1767
1728
|
type: "warning",
|
|
1768
1729
|
showClose: !0,
|
|
1769
1730
|
duration: 5e3
|
|
1770
1731
|
}), r("exceed", p);
|
|
1771
|
-
},
|
|
1772
|
-
r("success", p,
|
|
1773
|
-
},
|
|
1774
|
-
d.value.push(
|
|
1775
|
-
},
|
|
1776
|
-
var
|
|
1777
|
-
|
|
1732
|
+
}, T = (p, f, i) => {
|
|
1733
|
+
r("success", p, f, i);
|
|
1734
|
+
}, q = (p, f, i) => {
|
|
1735
|
+
d.value.push(f), r("error", p, f, i);
|
|
1736
|
+
}, j = (p) => {
|
|
1737
|
+
var f, i;
|
|
1738
|
+
g.value = {
|
|
1778
1739
|
...p,
|
|
1779
1740
|
name: p[l.name],
|
|
1780
|
-
url:
|
|
1741
|
+
url: n3(
|
|
1781
1742
|
o.loadUrl,
|
|
1782
|
-
p[l.url] || ((i = (
|
|
1743
|
+
p[l.url] || ((i = (f = p == null ? void 0 : p.response) == null ? void 0 : f.data) == null ? void 0 : i.id)
|
|
1783
1744
|
)
|
|
1784
1745
|
}, x.value = !0;
|
|
1785
|
-
},
|
|
1786
|
-
|
|
1746
|
+
}, f3 = (p) => {
|
|
1747
|
+
B3.downloadByOnlineUrl(
|
|
1787
1748
|
p[l.url],
|
|
1788
1749
|
p[l.name]
|
|
1789
1750
|
);
|
|
1790
|
-
},
|
|
1751
|
+
}, v3 = (p, f = !1) => {
|
|
1791
1752
|
var i;
|
|
1792
1753
|
(i = m.value) == null || i.abort(p);
|
|
1793
|
-
},
|
|
1794
|
-
var
|
|
1754
|
+
}, N = (p) => {
|
|
1755
|
+
var f, i;
|
|
1795
1756
|
try {
|
|
1796
|
-
p.status !== "success" &&
|
|
1797
|
-
} catch (
|
|
1798
|
-
(i = m.value) == null || i.handleRemove(p), n.value = n.value.filter((
|
|
1757
|
+
p.status !== "success" && v3(p), (f = m.value) == null || f.handleRemove(p), n.value = n.value.filter((v) => v.uid !== p.uid), r("delete", p);
|
|
1758
|
+
} catch (v) {
|
|
1759
|
+
(i = m.value) == null || i.handleRemove(p), n.value = n.value.filter((B) => B.uid !== p.uid), r("delete", p), console.error(v);
|
|
1799
1760
|
}
|
|
1800
|
-
}, m3 = (p,
|
|
1801
|
-
d.value.splice(
|
|
1802
|
-
},
|
|
1761
|
+
}, m3 = (p, f) => {
|
|
1762
|
+
d.value.splice(f, 1);
|
|
1763
|
+
}, G = L(
|
|
1803
1764
|
() => n.value.length >= o.limit || o.disabled
|
|
1804
1765
|
);
|
|
1805
|
-
return (p,
|
|
1806
|
-
|
|
1766
|
+
return (p, f) => (s(), h(
|
|
1767
|
+
H,
|
|
1807
1768
|
null,
|
|
1808
1769
|
[
|
|
1809
|
-
e.preview ?
|
|
1810
|
-
|
|
1770
|
+
e.preview ? _("v-if", !0) : (s(), h(
|
|
1771
|
+
H,
|
|
1811
1772
|
{ key: 0 },
|
|
1812
1773
|
[
|
|
1813
|
-
e.type === "button" ? (s(),
|
|
1774
|
+
e.type === "button" ? (s(), k(u(l3), t3({
|
|
1814
1775
|
key: 0,
|
|
1815
1776
|
class: "ik-file-upload"
|
|
1816
1777
|
}, p.$attrs, {
|
|
1817
1778
|
accept: e.accept,
|
|
1818
1779
|
action: e.action,
|
|
1819
1780
|
"file-list": n.value,
|
|
1820
|
-
"onUpdate:fileList":
|
|
1781
|
+
"onUpdate:fileList": f[0] || (f[0] = (i) => n.value = i),
|
|
1821
1782
|
ref_key: "refUpload",
|
|
1822
1783
|
ref: m,
|
|
1823
|
-
"before-upload":
|
|
1824
|
-
"before-remove":
|
|
1825
|
-
"on-exceed":
|
|
1784
|
+
"before-upload": I,
|
|
1785
|
+
"before-remove": V,
|
|
1786
|
+
"on-exceed": b,
|
|
1826
1787
|
"on-change": D,
|
|
1827
1788
|
multiple: e.multiple,
|
|
1828
1789
|
headers: e.headers,
|
|
1829
1790
|
limit: e.limit,
|
|
1830
|
-
"on-success":
|
|
1831
|
-
"on-error":
|
|
1791
|
+
"on-success": T,
|
|
1792
|
+
"on-error": q
|
|
1832
1793
|
}), {
|
|
1833
|
-
trigger:
|
|
1834
|
-
p.$slots.trigger ?
|
|
1794
|
+
trigger: w(() => [
|
|
1795
|
+
p.$slots.trigger ? M(p.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), k(u(F3), {
|
|
1835
1796
|
key: 1,
|
|
1836
|
-
disabled:
|
|
1797
|
+
disabled: G.value
|
|
1837
1798
|
}, h3({
|
|
1838
|
-
default:
|
|
1799
|
+
default: w(() => [
|
|
1839
1800
|
U(
|
|
1840
1801
|
" " + C(e.title),
|
|
1841
1802
|
1
|
|
@@ -1847,34 +1808,34 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1847
1808
|
}, [
|
|
1848
1809
|
e.showIcon ? {
|
|
1849
1810
|
name: "icon",
|
|
1850
|
-
fn:
|
|
1851
|
-
A(u(
|
|
1811
|
+
fn: w(() => [
|
|
1812
|
+
A(u(S), {
|
|
1852
1813
|
name: "iksvg_daoru",
|
|
1853
|
-
disabled:
|
|
1814
|
+
disabled: G.value
|
|
1854
1815
|
}, null, 8, ["disabled"])
|
|
1855
1816
|
]),
|
|
1856
1817
|
key: "0"
|
|
1857
1818
|
} : void 0
|
|
1858
1819
|
]), 1032, ["disabled"]))
|
|
1859
1820
|
]),
|
|
1860
|
-
file:
|
|
1821
|
+
file: w(({ file: i }) => [
|
|
1861
1822
|
c("div", me, [
|
|
1862
1823
|
c("div", Ae, [
|
|
1863
|
-
!p.$slots.fileIcon && (!e.customIconData[u(
|
|
1824
|
+
!p.$slots.fileIcon && (!e.customIconData[u(z)(i, l)] || !e.customIconData[u(z)(i, l)][e.customIconFields.icon]) ? (s(), k(u3, {
|
|
1864
1825
|
key: 0,
|
|
1865
|
-
type: u(
|
|
1866
|
-
}, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(
|
|
1867
|
-
e.customIconData[u(
|
|
1826
|
+
type: u(z)(i, l)
|
|
1827
|
+
}, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(z)(i, l)] && e.customIconData[u(z)(i, l)][e.customIconFields.icon] ? (s(), h("div", ge, [
|
|
1828
|
+
e.customIconData[u(z)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
|
|
1868
1829
|
key: 0,
|
|
1869
|
-
src: e.customIconData[u(
|
|
1830
|
+
src: e.customIconData[u(z)(i, l)][e.customIconFields.icon],
|
|
1870
1831
|
alt: "",
|
|
1871
1832
|
class: "file-img-icon"
|
|
1872
1833
|
}, null, 8, we)) : (s(), h(
|
|
1873
1834
|
"span",
|
|
1874
1835
|
{
|
|
1875
1836
|
key: 1,
|
|
1876
|
-
class:
|
|
1877
|
-
e.customIconData[u(
|
|
1837
|
+
class: $([
|
|
1838
|
+
e.customIconData[u(z)(i, l)][e.customIconFields.icon],
|
|
1878
1839
|
"file-icon-size"
|
|
1879
1840
|
])
|
|
1880
1841
|
},
|
|
@@ -1882,9 +1843,9 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1882
1843
|
2
|
|
1883
1844
|
/* CLASS */
|
|
1884
1845
|
))
|
|
1885
|
-
])) :
|
|
1846
|
+
])) : _("v-if", !0),
|
|
1886
1847
|
c("div", ye, [
|
|
1887
|
-
|
|
1848
|
+
M(p.$slots, "fileIcon", { file: i }, void 0, !0)
|
|
1888
1849
|
]),
|
|
1889
1850
|
c("div", _e, [
|
|
1890
1851
|
c("p", ke, [
|
|
@@ -1899,38 +1860,38 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1899
1860
|
"(" + C(i.percentage) + "%)",
|
|
1900
1861
|
1
|
|
1901
1862
|
/* TEXT */
|
|
1902
|
-
)) :
|
|
1863
|
+
)) : _("v-if", !0)
|
|
1903
1864
|
]),
|
|
1904
1865
|
i.status === "success" ? (s(), h(
|
|
1905
1866
|
"p",
|
|
1906
1867
|
be,
|
|
1907
|
-
C(u(
|
|
1868
|
+
C(u(Y)(i.size / 1024 / 1024)) + "MB ",
|
|
1908
1869
|
1
|
|
1909
1870
|
/* TEXT */
|
|
1910
|
-
)) :
|
|
1911
|
-
i.percentage && i.status === "uploading" ? (s(),
|
|
1871
|
+
)) : _("v-if", !0),
|
|
1872
|
+
i.percentage && i.status === "uploading" ? (s(), k(u(a3), {
|
|
1912
1873
|
key: 1,
|
|
1913
1874
|
"text-inside": "",
|
|
1914
1875
|
percentage: i.percentage,
|
|
1915
1876
|
color: "var(--el-color-primary)",
|
|
1916
1877
|
"show-text": !1
|
|
1917
|
-
}, null, 8, ["percentage"])) :
|
|
1878
|
+
}, null, 8, ["percentage"])) : _("v-if", !0)
|
|
1918
1879
|
])
|
|
1919
1880
|
]),
|
|
1920
1881
|
c("div", null, [
|
|
1921
1882
|
i.status === "success" ? (s(), h(
|
|
1922
|
-
|
|
1883
|
+
H,
|
|
1923
1884
|
{ key: 0 },
|
|
1924
1885
|
[
|
|
1925
|
-
A(u(
|
|
1926
|
-
onClick: (
|
|
1886
|
+
A(u(S), {
|
|
1887
|
+
onClick: (v) => j(i),
|
|
1927
1888
|
name: "iksvg_yulan",
|
|
1928
1889
|
title: "预览",
|
|
1929
1890
|
bg: "",
|
|
1930
1891
|
size: "default"
|
|
1931
1892
|
}, null, 8, ["onClick"]),
|
|
1932
|
-
A(u(
|
|
1933
|
-
onClick: (
|
|
1893
|
+
A(u(S), {
|
|
1894
|
+
onClick: (v) => N(i),
|
|
1934
1895
|
error: "",
|
|
1935
1896
|
name: "iksvg_shanchu",
|
|
1936
1897
|
title: "删除",
|
|
@@ -1940,9 +1901,9 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1940
1901
|
],
|
|
1941
1902
|
64
|
|
1942
1903
|
/* STABLE_FRAGMENT */
|
|
1943
|
-
)) : (s(),
|
|
1904
|
+
)) : (s(), k(u(S), {
|
|
1944
1905
|
key: 1,
|
|
1945
|
-
onClick: (
|
|
1906
|
+
onClick: (v) => N(i),
|
|
1946
1907
|
error: "",
|
|
1947
1908
|
name: "iksvg_guanbi",
|
|
1948
1909
|
size: "default",
|
|
@@ -1952,21 +1913,21 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1952
1913
|
])
|
|
1953
1914
|
])
|
|
1954
1915
|
]),
|
|
1955
|
-
default:
|
|
1916
|
+
default: w(() => {
|
|
1956
1917
|
var i;
|
|
1957
1918
|
return [
|
|
1958
|
-
!e.preview && e.tip ? (s(),
|
|
1919
|
+
!e.preview && e.tip ? (s(), k(u(c3), {
|
|
1959
1920
|
key: 0,
|
|
1960
1921
|
effect: "dark",
|
|
1961
1922
|
content: o.tipText || "",
|
|
1962
1923
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
1963
1924
|
}, {
|
|
1964
|
-
default:
|
|
1965
|
-
A(u(
|
|
1925
|
+
default: w(() => [
|
|
1926
|
+
A(u(E), {
|
|
1966
1927
|
size: 23,
|
|
1967
1928
|
class: "_ik_web_ui_file_help_icon"
|
|
1968
1929
|
}, {
|
|
1969
|
-
default:
|
|
1930
|
+
default: w(() => [
|
|
1970
1931
|
A(u(r3))
|
|
1971
1932
|
]),
|
|
1972
1933
|
_: 1
|
|
@@ -1975,21 +1936,21 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1975
1936
|
]),
|
|
1976
1937
|
_: 1
|
|
1977
1938
|
/* STABLE */
|
|
1978
|
-
}, 8, ["content"])) :
|
|
1939
|
+
}, 8, ["content"])) : _("v-if", !0),
|
|
1979
1940
|
(i = d.value) != null && i.length ? (s(!0), h(
|
|
1980
|
-
|
|
1941
|
+
H,
|
|
1981
1942
|
{ key: 1 },
|
|
1982
|
-
y3(d.value, (
|
|
1943
|
+
y3(d.value, (v, B) => (s(), h("div", {
|
|
1983
1944
|
class: "ik-error-flie-list",
|
|
1984
|
-
key:
|
|
1945
|
+
key: v.uid
|
|
1985
1946
|
}, [
|
|
1986
1947
|
c("div", Fe, [
|
|
1987
|
-
A(u(
|
|
1948
|
+
A(u(E), {
|
|
1988
1949
|
size: 32,
|
|
1989
1950
|
class: "info",
|
|
1990
1951
|
style: { "vertical-align": "middle" }
|
|
1991
1952
|
}, {
|
|
1992
|
-
default:
|
|
1953
|
+
default: w(() => [
|
|
1993
1954
|
A(u(q3))
|
|
1994
1955
|
]),
|
|
1995
1956
|
_: 1
|
|
@@ -1999,14 +1960,14 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1999
1960
|
c(
|
|
2000
1961
|
"p",
|
|
2001
1962
|
xe,
|
|
2002
|
-
C(
|
|
1963
|
+
C(v[l.name] || v.name),
|
|
2003
1964
|
1
|
|
2004
1965
|
/* TEXT */
|
|
2005
1966
|
),
|
|
2006
1967
|
c(
|
|
2007
1968
|
"p",
|
|
2008
|
-
|
|
2009
|
-
C(u(
|
|
1969
|
+
Be,
|
|
1970
|
+
C(u(Y)(v.size / 1024 / 1024)) + "MB ",
|
|
2010
1971
|
1
|
|
2011
1972
|
/* TEXT */
|
|
2012
1973
|
)
|
|
@@ -2014,26 +1975,26 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2014
1975
|
]),
|
|
2015
1976
|
_3(c(
|
|
2016
1977
|
"div",
|
|
2017
|
-
|
|
1978
|
+
Se,
|
|
2018
1979
|
[
|
|
2019
|
-
A(u(
|
|
1980
|
+
A(u(E), {
|
|
2020
1981
|
style: { "vertical-align": "middle" },
|
|
2021
|
-
onClick: (
|
|
1982
|
+
onClick: (Z) => W(v, B),
|
|
2022
1983
|
title: "重新上传",
|
|
2023
1984
|
class: "primary"
|
|
2024
1985
|
}, {
|
|
2025
|
-
default:
|
|
1986
|
+
default: w(() => [
|
|
2026
1987
|
A(u(E3))
|
|
2027
1988
|
]),
|
|
2028
1989
|
_: 2
|
|
2029
1990
|
/* DYNAMIC */
|
|
2030
1991
|
}, 1032, ["onClick"]),
|
|
2031
|
-
A(u(
|
|
1992
|
+
A(u(E), {
|
|
2032
1993
|
class: "error",
|
|
2033
|
-
onClick: (
|
|
1994
|
+
onClick: (Z) => m3(v, B),
|
|
2034
1995
|
title: "删除"
|
|
2035
1996
|
}, {
|
|
2036
|
-
default:
|
|
1997
|
+
default: w(() => [
|
|
2037
1998
|
A(u(D3))
|
|
2038
1999
|
]),
|
|
2039
2000
|
_: 2
|
|
@@ -2043,55 +2004,55 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2043
2004
|
512
|
|
2044
2005
|
/* NEED_PATCH */
|
|
2045
2006
|
), [
|
|
2046
|
-
[k3, (
|
|
2007
|
+
[k3, (v == null ? void 0 : v.status) === "fail"]
|
|
2047
2008
|
])
|
|
2048
2009
|
]))),
|
|
2049
2010
|
128
|
|
2050
2011
|
/* KEYED_FRAGMENT */
|
|
2051
|
-
)) :
|
|
2012
|
+
)) : _("v-if", !0)
|
|
2052
2013
|
];
|
|
2053
2014
|
}),
|
|
2054
2015
|
_: 3
|
|
2055
2016
|
/* FORWARDED */
|
|
2056
|
-
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(),
|
|
2017
|
+
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), k(u(l3), t3({
|
|
2057
2018
|
key: 1,
|
|
2058
2019
|
"file-list": n.value,
|
|
2059
|
-
"onUpdate:fileList":
|
|
2020
|
+
"onUpdate:fileList": f[1] || (f[1] = (i) => n.value = i),
|
|
2060
2021
|
class: ["ik-file-pload-card", { plain: e.plain }]
|
|
2061
2022
|
}, p.$attrs, {
|
|
2062
2023
|
accept: e.accept,
|
|
2063
2024
|
action: e.action,
|
|
2064
|
-
disabled:
|
|
2025
|
+
disabled: G.value,
|
|
2065
2026
|
ref_key: "refUpload",
|
|
2066
2027
|
ref: m,
|
|
2067
|
-
"before-upload":
|
|
2068
|
-
"before-remove":
|
|
2069
|
-
"on-exceed":
|
|
2028
|
+
"before-upload": I,
|
|
2029
|
+
"before-remove": V,
|
|
2030
|
+
"on-exceed": b,
|
|
2070
2031
|
multiple: e.multiple,
|
|
2071
2032
|
headers: e.headers,
|
|
2072
2033
|
limit: e.limit,
|
|
2073
|
-
"on-success":
|
|
2074
|
-
"on-error":
|
|
2034
|
+
"on-success": T,
|
|
2035
|
+
"on-error": q,
|
|
2075
2036
|
"on-change": D
|
|
2076
2037
|
}), {
|
|
2077
|
-
file:
|
|
2038
|
+
file: w(({ file: i }) => [
|
|
2078
2039
|
c("div", $e, [
|
|
2079
2040
|
c("div", Re, [
|
|
2080
|
-
!p.$slots.fileIcon && (!e.customIconData[u(
|
|
2041
|
+
!p.$slots.fileIcon && (!e.customIconData[u(z)(i, l)] || !e.customIconData[u(z)(i, l)][e.customIconFields.icon]) ? (s(), k(u3, {
|
|
2081
2042
|
key: 0,
|
|
2082
|
-
type: u(
|
|
2083
|
-
}, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(
|
|
2084
|
-
e.customIconData[u(
|
|
2043
|
+
type: u(z)(i, l)
|
|
2044
|
+
}, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(z)(i, l)] && e.customIconData[u(z)(i, l)][e.customIconFields.icon] ? (s(), h("div", Me, [
|
|
2045
|
+
e.customIconData[u(z)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
|
|
2085
2046
|
key: 0,
|
|
2086
|
-
src: e.customIconData[u(
|
|
2047
|
+
src: e.customIconData[u(z)(i, l)][e.customIconFields.icon],
|
|
2087
2048
|
alt: "",
|
|
2088
2049
|
class: "file-img-icon"
|
|
2089
2050
|
}, null, 8, Ee)) : (s(), h(
|
|
2090
2051
|
"span",
|
|
2091
2052
|
{
|
|
2092
2053
|
key: 1,
|
|
2093
|
-
class:
|
|
2094
|
-
e.customIconData[u(
|
|
2054
|
+
class: $([
|
|
2055
|
+
e.customIconData[u(z)(i, l)][e.customIconFields.icon],
|
|
2095
2056
|
"file-icon-size"
|
|
2096
2057
|
])
|
|
2097
2058
|
},
|
|
@@ -2099,12 +2060,12 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2099
2060
|
2
|
|
2100
2061
|
/* CLASS */
|
|
2101
2062
|
))
|
|
2102
|
-
])) :
|
|
2063
|
+
])) : _("v-if", !0),
|
|
2103
2064
|
c("div", He, [
|
|
2104
|
-
|
|
2065
|
+
M(p.$slots, "fileIcon", { file: i }, void 0, !0)
|
|
2105
2066
|
]),
|
|
2106
|
-
c("div",
|
|
2107
|
-
c("p",
|
|
2067
|
+
c("div", Oe, [
|
|
2068
|
+
c("p", Ue, [
|
|
2108
2069
|
U(
|
|
2109
2070
|
C(i[l.name] || i.name) + " ",
|
|
2110
2071
|
1
|
|
@@ -2116,39 +2077,39 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2116
2077
|
"(" + C(i.percentage) + "%)",
|
|
2117
2078
|
1
|
|
2118
2079
|
/* TEXT */
|
|
2119
|
-
)) :
|
|
2080
|
+
)) : _("v-if", !0)
|
|
2120
2081
|
]),
|
|
2121
2082
|
i.status === "success" ? (s(), h(
|
|
2122
2083
|
"p",
|
|
2123
2084
|
Le,
|
|
2124
|
-
C(u(
|
|
2085
|
+
C(u(Y)(i.size / 1024 / 1024)) + "MB ",
|
|
2125
2086
|
1
|
|
2126
2087
|
/* TEXT */
|
|
2127
|
-
)) :
|
|
2128
|
-
i.percentage && i.status === "uploading" ? (s(),
|
|
2088
|
+
)) : _("v-if", !0),
|
|
2089
|
+
i.percentage && i.status === "uploading" ? (s(), k(u(a3), {
|
|
2129
2090
|
key: 1,
|
|
2130
2091
|
"text-inside": "",
|
|
2131
2092
|
percentage: i.percentage,
|
|
2132
2093
|
color: "var(--el-color-primary)",
|
|
2133
2094
|
"show-text": !1
|
|
2134
|
-
}, null, 8, ["percentage"])) :
|
|
2095
|
+
}, null, 8, ["percentage"])) : _("v-if", !0)
|
|
2135
2096
|
])
|
|
2136
2097
|
]),
|
|
2137
2098
|
e.preview ? (s(), h(
|
|
2138
|
-
|
|
2099
|
+
H,
|
|
2139
2100
|
{ key: 1 },
|
|
2140
2101
|
[
|
|
2141
|
-
e.preview || i.percentage === 100 ? (s(),
|
|
2142
|
-
u(
|
|
2102
|
+
e.preview || i.percentage === 100 ? (s(), k(
|
|
2103
|
+
u(E),
|
|
2143
2104
|
{
|
|
2144
2105
|
key: 0,
|
|
2145
2106
|
title: "预览",
|
|
2146
2107
|
class: "primary"
|
|
2147
2108
|
},
|
|
2148
2109
|
{
|
|
2149
|
-
default:
|
|
2150
|
-
A(u(
|
|
2151
|
-
onClick: (
|
|
2110
|
+
default: w(() => [
|
|
2111
|
+
A(u(O3), {
|
|
2112
|
+
onClick: (v) => j(i)
|
|
2152
2113
|
}, null, 8, ["onClick"])
|
|
2153
2114
|
]),
|
|
2154
2115
|
_: 2
|
|
@@ -2156,17 +2117,17 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2156
2117
|
},
|
|
2157
2118
|
1024
|
|
2158
2119
|
/* DYNAMIC_SLOTS */
|
|
2159
|
-
)) :
|
|
2120
|
+
)) : _("v-if", !0),
|
|
2160
2121
|
A(
|
|
2161
|
-
u(
|
|
2122
|
+
u(E),
|
|
2162
2123
|
{
|
|
2163
2124
|
title: "下载",
|
|
2164
2125
|
class: "primary"
|
|
2165
2126
|
},
|
|
2166
2127
|
{
|
|
2167
|
-
default:
|
|
2128
|
+
default: w(() => [
|
|
2168
2129
|
A(u($3), {
|
|
2169
|
-
onClick: (
|
|
2130
|
+
onClick: (v) => f3(i)
|
|
2170
2131
|
}, null, 8, ["onClick"])
|
|
2171
2132
|
]),
|
|
2172
2133
|
_: 2
|
|
@@ -2180,18 +2141,18 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2180
2141
|
/* STABLE_FRAGMENT */
|
|
2181
2142
|
)) : (s(), h("div", Te, [
|
|
2182
2143
|
i.status === "success" ? (s(), h(
|
|
2183
|
-
|
|
2144
|
+
H,
|
|
2184
2145
|
{ key: 0 },
|
|
2185
2146
|
[
|
|
2186
|
-
A(u(
|
|
2187
|
-
onClick: (
|
|
2147
|
+
A(u(S), {
|
|
2148
|
+
onClick: (v) => j(i),
|
|
2188
2149
|
name: "iksvg_yulan",
|
|
2189
2150
|
title: "预览",
|
|
2190
2151
|
bg: "",
|
|
2191
2152
|
size: "default"
|
|
2192
2153
|
}, null, 8, ["onClick"]),
|
|
2193
|
-
A(u(
|
|
2194
|
-
onClick: (
|
|
2154
|
+
A(u(S), {
|
|
2155
|
+
onClick: (v) => N(i),
|
|
2195
2156
|
error: "",
|
|
2196
2157
|
name: "iksvg_shanchu",
|
|
2197
2158
|
title: "删除",
|
|
@@ -2201,9 +2162,9 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2201
2162
|
],
|
|
2202
2163
|
64
|
|
2203
2164
|
/* STABLE_FRAGMENT */
|
|
2204
|
-
)) : (s(),
|
|
2165
|
+
)) : (s(), k(u(S), {
|
|
2205
2166
|
key: 1,
|
|
2206
|
-
onClick: (
|
|
2167
|
+
onClick: (v) => N(i),
|
|
2207
2168
|
error: "",
|
|
2208
2169
|
name: "iksvg_guanbi",
|
|
2209
2170
|
size: "default",
|
|
@@ -2213,36 +2174,36 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2213
2174
|
]))
|
|
2214
2175
|
])
|
|
2215
2176
|
]),
|
|
2216
|
-
default:
|
|
2177
|
+
default: w(() => [
|
|
2217
2178
|
c("div", Ie, [
|
|
2218
2179
|
c("div", De, [
|
|
2219
|
-
e.imageMode ?
|
|
2180
|
+
e.imageMode ? M(p.$slots, "image", { key: 0 }, () => [
|
|
2220
2181
|
Ve
|
|
2221
|
-
], !0) : e.showIcon ? (s(),
|
|
2182
|
+
], !0) : e.showIcon ? (s(), k(u(S), {
|
|
2222
2183
|
key: 1,
|
|
2223
2184
|
name: "iksvg_img_shangchuanhetongfujianbeifen",
|
|
2224
2185
|
type: "primary",
|
|
2225
2186
|
bg: "",
|
|
2226
2187
|
size: 40
|
|
2227
|
-
})) :
|
|
2188
|
+
})) : _("v-if", !0),
|
|
2228
2189
|
c("span", null, [
|
|
2229
2190
|
U(
|
|
2230
2191
|
C(e.title) + " ",
|
|
2231
2192
|
1
|
|
2232
2193
|
/* TEXT */
|
|
2233
2194
|
),
|
|
2234
|
-
!e.preview && e.tip ? (s(),
|
|
2195
|
+
!e.preview && e.tip ? (s(), k(u(c3), {
|
|
2235
2196
|
key: 0,
|
|
2236
2197
|
effect: "dark",
|
|
2237
2198
|
content: o.tipText || "",
|
|
2238
2199
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
2239
2200
|
}, {
|
|
2240
|
-
default:
|
|
2241
|
-
A(u(
|
|
2201
|
+
default: w(() => [
|
|
2202
|
+
A(u(E), {
|
|
2242
2203
|
size: 23,
|
|
2243
2204
|
class: "_ik_web_ui_file_help_icon"
|
|
2244
2205
|
}, {
|
|
2245
|
-
default:
|
|
2206
|
+
default: w(() => [
|
|
2246
2207
|
A(u(r3))
|
|
2247
2208
|
]),
|
|
2248
2209
|
_: 1
|
|
@@ -2251,10 +2212,10 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2251
2212
|
]),
|
|
2252
2213
|
_: 1
|
|
2253
2214
|
/* STABLE */
|
|
2254
|
-
}, 8, ["content"])) :
|
|
2215
|
+
}, 8, ["content"])) : _("v-if", !0)
|
|
2255
2216
|
])
|
|
2256
2217
|
]),
|
|
2257
|
-
A(u(
|
|
2218
|
+
A(u(S), {
|
|
2258
2219
|
name: "iksvg_daoru",
|
|
2259
2220
|
bg: "",
|
|
2260
2221
|
size: 40,
|
|
@@ -2271,19 +2232,20 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2271
2232
|
)),
|
|
2272
2233
|
A(u(W6), {
|
|
2273
2234
|
show: x.value,
|
|
2274
|
-
"onUpdate:show":
|
|
2235
|
+
"onUpdate:show": f[2] || (f[2] = (i) => x.value = i),
|
|
2275
2236
|
loadUrl: e.loadUrl,
|
|
2276
|
-
file:
|
|
2277
|
-
onlyofficeServer: e.onlyofficeServer
|
|
2278
|
-
|
|
2237
|
+
file: g.value,
|
|
2238
|
+
onlyofficeServer: e.onlyofficeServer,
|
|
2239
|
+
onlyOfficeConfig: e.onlyOfficeConfig
|
|
2240
|
+
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig"])
|
|
2279
2241
|
],
|
|
2280
2242
|
64
|
|
2281
2243
|
/* STABLE_FRAGMENT */
|
|
2282
2244
|
));
|
|
2283
2245
|
}
|
|
2284
2246
|
});
|
|
2285
|
-
const Pe = /* @__PURE__ */
|
|
2247
|
+
const Pe = /* @__PURE__ */ K(je, [["__scopeId", "data-v-10a62ee9"]]), Qe = P(Pe);
|
|
2286
2248
|
export {
|
|
2287
|
-
|
|
2288
|
-
|
|
2249
|
+
Qe as IkUploadFile,
|
|
2250
|
+
Qe as default
|
|
2289
2251
|
};
|