iking-web-ui-pro 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKDetailPreviewFiles/ik.index.es.js +337 -381
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +387 -431
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +235 -279
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +426 -470
- 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 +160 -204
- 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 +316 -360
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/index.es.js +3929 -3973
- package/dist/index.umd.js +44 -44
- 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 +3 -3
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
- 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
|
|
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 i3, ref as R, reactive as A3, watch as g3, nextTick as t3, resolveComponent as J, Fragment as O, createBlock as k, createCommentVNode as _, createVNode as A, unref as u, withCtx as y, normalizeClass as $, normalizeStyle as U, createTextVNode as q, toDisplayString as C, h as y3, mergeProps as n3, createSlots as v3, renderSlot as M, renderList as w3, withDirectives as _3, vShow as k3, pushScopeId as z3, popScopeId as b3 } from "vue";
|
|
2
|
+
import { ElUpload as c3, ElButton as F3, ElProgress as r3, ElTooltip as d3, ElIcon as H, ElMessage as Y } 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,9 +9,9 @@ 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
|
+
}, I3 = "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
|
-
var
|
|
14
|
+
var S3 = /* @__PURE__ */ F({
|
|
15
15
|
name: "Delete",
|
|
16
16
|
__name: "delete",
|
|
17
17
|
setup(e) {
|
|
@@ -25,7 +25,7 @@ var I3 = /* @__PURE__ */ F({
|
|
|
25
25
|
})
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}), D3 =
|
|
28
|
+
}), D3 = S3, V3 = /* @__PURE__ */ F({
|
|
29
29
|
name: "Download",
|
|
30
30
|
__name: "download",
|
|
31
31
|
setup(e) {
|
|
@@ -53,7 +53,7 @@ var I3 = /* @__PURE__ */ F({
|
|
|
53
53
|
})
|
|
54
54
|
]));
|
|
55
55
|
}
|
|
56
|
-
}),
|
|
56
|
+
}), u3 = R3, M3 = /* @__PURE__ */ F({
|
|
57
57
|
name: "Refresh",
|
|
58
58
|
__name: "refresh",
|
|
59
59
|
setup(e) {
|
|
@@ -97,8 +97,8 @@ var I3 = /* @__PURE__ */ F({
|
|
|
97
97
|
}
|
|
98
98
|
}), q3 = U3;
|
|
99
99
|
const z = (e, t) => {
|
|
100
|
-
var a, l,
|
|
101
|
-
const o = (a = e == null ? void 0 : e.response) != null && a.data ?
|
|
100
|
+
var a, l, w, m;
|
|
101
|
+
const o = (a = e == null ? void 0 : e.response) != null && a.data ? p3((w = (l = e == null ? void 0 : e.response) == null ? void 0 : l.data) == null ? void 0 : w.suffix) : ((m = e.raw) == null ? void 0 : m.type) || p3(e[t.suffix]), r = o == null ? void 0 : o.toLowerCase(), n = {
|
|
102
102
|
sheet: "excel",
|
|
103
103
|
excel: "excel",
|
|
104
104
|
zip: "zip",
|
|
@@ -203,7 +203,7 @@ const z = (e, t) => {
|
|
|
203
203
|
".vob": "video",
|
|
204
204
|
".txt": "txt",
|
|
205
205
|
".pdf": "pdf"
|
|
206
|
-
},
|
|
206
|
+
}, p3 = (e) => {
|
|
207
207
|
const t = e == null ? void 0 : e.toLocaleLowerCase(), o = t != null && t.startsWith(".") ? t : `.${t}`;
|
|
208
208
|
return o && L3[o] || "unknow";
|
|
209
209
|
}, T3 = (e) => {
|
|
@@ -249,7 +249,7 @@ const z = (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 z = (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 z = (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 z = (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 z = (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 z = (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",
|
|
@@ -495,7 +495,7 @@ const z = (e, t) => {
|
|
|
495
495
|
), k6 = [
|
|
496
496
|
w6,
|
|
497
497
|
_6
|
|
498
|
-
],
|
|
498
|
+
], z6 = {
|
|
499
499
|
key: 8,
|
|
500
500
|
t: "1692251753690",
|
|
501
501
|
class: "icon",
|
|
@@ -505,7 +505,7 @@ const z = (e, t) => {
|
|
|
505
505
|
"p-id": "4336",
|
|
506
506
|
width: "200",
|
|
507
507
|
height: "200"
|
|
508
|
-
},
|
|
508
|
+
}, b6 = /* @__PURE__ */ c(
|
|
509
509
|
"path",
|
|
510
510
|
{
|
|
511
511
|
d: "M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",
|
|
@@ -537,10 +537,10 @@ const z = (e, t) => {
|
|
|
537
537
|
-1
|
|
538
538
|
/* HOISTED */
|
|
539
539
|
), x6 = [
|
|
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 z = (e, t) => {
|
|
|
550
550
|
"p-id": "4336",
|
|
551
551
|
width: "200",
|
|
552
552
|
height: "200"
|
|
553
|
-
},
|
|
553
|
+
}, I6 = /* @__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",
|
|
@@ -560,7 +560,7 @@ const z = (e, t) => {
|
|
|
560
560
|
null,
|
|
561
561
|
-1
|
|
562
562
|
/* HOISTED */
|
|
563
|
-
),
|
|
563
|
+
), S6 = /* @__PURE__ */ c(
|
|
564
564
|
"path",
|
|
565
565
|
{
|
|
566
566
|
d: "M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",
|
|
@@ -592,8 +592,8 @@ const z = (e, t) => {
|
|
|
592
592
|
-1
|
|
593
593
|
/* HOISTED */
|
|
594
594
|
), $6 = [
|
|
595
|
-
B6,
|
|
596
595
|
I6,
|
|
596
|
+
S6,
|
|
597
597
|
D6,
|
|
598
598
|
V6
|
|
599
599
|
], R6 = {
|
|
@@ -685,7 +685,7 @@ const z = (e, t) => {
|
|
|
685
685
|
q6,
|
|
686
686
|
L6,
|
|
687
687
|
T6
|
|
688
|
-
],
|
|
688
|
+
], h3 = /* @__PURE__ */ F({
|
|
689
689
|
__name: "FileIcon",
|
|
690
690
|
props: {
|
|
691
691
|
type: {
|
|
@@ -706,17 +706,17 @@ const z = (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", y6, 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
|
+
}, e3 = (e) => e % 1 === 0 ? e.toString() : e.toFixed(2), o3 = (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: () => []
|
|
@@ -726,12 +726,12 @@ const z = (e, t) => {
|
|
|
726
726
|
type: String,
|
|
727
727
|
default: ""
|
|
728
728
|
},
|
|
729
|
-
// 需要onlyoffice预览的文件类型
|
|
729
|
+
// 需要onlyoffice预览的文件类型 - 0.2.3版本后可不填
|
|
730
730
|
onlyOfficeAccept: {
|
|
731
731
|
type: String,
|
|
732
732
|
default: ".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"
|
|
733
733
|
},
|
|
734
|
-
// onlyoffice服务地址
|
|
734
|
+
// onlyoffice服务地址 - 0.2.3版本后可不填
|
|
735
735
|
onlyofficeServer: {
|
|
736
736
|
type: String,
|
|
737
737
|
default: ""
|
|
@@ -751,78 +751,81 @@ const z = (e, t) => {
|
|
|
751
751
|
}),
|
|
752
752
|
emits: ["update:show"],
|
|
753
753
|
setup(e) {
|
|
754
|
-
const t = e, o =
|
|
754
|
+
const t = e, o = i3(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
|
+
}), w = (d) => {
|
|
765
|
+
var g, x, S, D, V, W, T;
|
|
766
766
|
try {
|
|
767
|
-
const
|
|
767
|
+
const b = ((g = d == null ? void 0 : d.response) == null ? void 0 : g.data) || d, j = b[r.value.url] || (b == null ? void 0 : b.id) || b.attachmentId, E = (x = b[r.value.suffix] || b.attachmentSuffix) == null ? void 0 : x.toLowerCase(), G = 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:
|
|
771
|
+
url: o3(t.loadUrl, j)
|
|
772
772
|
}, d && z(d, r.value) === "image") {
|
|
773
773
|
l.image = !0;
|
|
774
774
|
return;
|
|
775
|
-
} else if (t.onlyOfficeAccept.includes(
|
|
775
|
+
} else if ((((S = t.onlyOfficeConfig) == null ? void 0 : S.accept) || t.onlyOfficeAccept).includes(E)) {
|
|
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
|
+
...((D = t.onlyOfficeConfig) == null ? void 0 : D.editorConfig) || {},
|
|
785
780
|
customization: {
|
|
781
|
+
...((W = (V = t.onlyOfficeConfig) == null ? void 0 : V.editorConfig) == null ? void 0 : W.customization) || {},
|
|
786
782
|
review: {
|
|
787
783
|
reviewDisplay: "final"
|
|
788
784
|
}
|
|
789
785
|
}
|
|
790
786
|
},
|
|
791
|
-
|
|
787
|
+
document: {
|
|
788
|
+
key: C3(),
|
|
789
|
+
title: G,
|
|
790
|
+
url: o3(t.loadUrl, j),
|
|
791
|
+
fileType: E,
|
|
792
|
+
...((T = t.onlyOfficeConfig) == null ? void 0 : T.document) || {}
|
|
793
|
+
},
|
|
794
|
+
documentType: T3(E)
|
|
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 && t3(() => {
|
|
804
|
+
w(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 S, D;
|
|
812
|
+
const x = J("el-image-viewer");
|
|
810
813
|
return o.value ? (s(), h(
|
|
811
|
-
|
|
814
|
+
O,
|
|
812
815
|
{ key: 0 },
|
|
813
816
|
[
|
|
814
|
-
(
|
|
817
|
+
(S = a.value) != null && S.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,12 +838,12 @@ const z = (e, t) => {
|
|
|
835
838
|
onClose: m,
|
|
836
839
|
"modal-class": "ik-only-preview-dialog"
|
|
837
840
|
}, {
|
|
838
|
-
default:
|
|
839
|
-
A(u(
|
|
840
|
-
|
|
841
|
-
|
|
841
|
+
default: y(() => [
|
|
842
|
+
A(u(fe), {
|
|
843
|
+
"config-options": n.value,
|
|
844
|
+
"document-server-url": e.onlyOfficeConfig.serverUrl || e.onlyofficeServer,
|
|
842
845
|
mode: "view"
|
|
843
|
-
}, null, 8, ["
|
|
846
|
+
}, null, 8, ["config-options", "document-server-url"])
|
|
844
847
|
]),
|
|
845
848
|
_: 1
|
|
846
849
|
/* STABLE */
|
|
@@ -848,22 +851,22 @@ const z = (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"), w = 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: U(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: U(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: U(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: y(() => [
|
|
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: U(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: U(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: U(r.value)
|
|
1027
1030
|
},
|
|
1028
1031
|
null,
|
|
1029
1032
|
6
|
|
@@ -1037,12 +1040,12 @@ const W6 = q(P6), N6 = {
|
|
|
1037
1040
|
_: 1
|
|
1038
1041
|
/* STABLE */
|
|
1039
1042
|
}, 8, ["content"]))
|
|
1040
|
-
])) : (s(),
|
|
1043
|
+
])) : (s(), k(w, {
|
|
1041
1044
|
key: 1,
|
|
1042
1045
|
type: ["warning", "error"].includes(n.type) ? "danger" : ""
|
|
1043
1046
|
}, {
|
|
1044
|
-
default:
|
|
1045
|
-
|
|
1047
|
+
default: y(() => [
|
|
1048
|
+
q(
|
|
1046
1049
|
C(n.title),
|
|
1047
1050
|
1
|
|
1048
1051
|
/* TEXT */
|
|
@@ -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"]]), I = 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(I), {
|
|
1076
1079
|
name: "iksvg_guanbidanchuang",
|
|
1077
1080
|
title: "关闭",
|
|
1078
1081
|
size: 20,
|
|
1079
1082
|
error: ""
|
|
1080
1083
|
})
|
|
1081
|
-
])) : (s(),
|
|
1084
|
+
])) : (s(), k(u(I), {
|
|
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 = i3(e, "modelValue"), r = R(t.fullscreen), n = () => {
|
|
1113
1116
|
r.value = !r.value;
|
|
1114
1117
|
}, a = F({
|
|
1115
1118
|
setup() {
|
|
@@ -1119,54 +1122,54 @@ 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, w) => {
|
|
1126
|
+
const m = J("el-dialog");
|
|
1127
|
+
return s(), k(m, n3({
|
|
1125
1128
|
modelValue: o.value,
|
|
1126
|
-
"onUpdate:modelValue":
|
|
1129
|
+
"onUpdate:modelValue": w[0] || (w[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
|
-
}),
|
|
1133
|
-
icon:
|
|
1134
|
-
|
|
1135
|
-
|
|
1135
|
+
}), v3({
|
|
1136
|
+
icon: y(() => [
|
|
1137
|
+
M(l.$slots, "title", {}, () => [
|
|
1138
|
+
q(
|
|
1136
1139
|
C(l.title),
|
|
1137
1140
|
1
|
|
1138
1141
|
/* TEXT */
|
|
1139
1142
|
)
|
|
1140
1143
|
])
|
|
1141
1144
|
]),
|
|
1142
|
-
header:
|
|
1145
|
+
header: y(() => [
|
|
1143
1146
|
c("div", ie, [
|
|
1144
|
-
|
|
1145
|
-
|
|
1147
|
+
M(l.$slots, "header", {}, () => [
|
|
1148
|
+
q(
|
|
1146
1149
|
C(l.title),
|
|
1147
1150
|
1
|
|
1148
1151
|
/* TEXT */
|
|
1149
1152
|
)
|
|
1150
1153
|
])
|
|
1151
1154
|
]),
|
|
1152
|
-
l.$attrs.showClose ? (s(),
|
|
1155
|
+
l.$attrs.showClose ? (s(), k(u(I), {
|
|
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: y(() => [
|
|
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: y(() => [
|
|
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 w(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(w, 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: w(0), throw: w(1), return: w(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 w(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
|
}
|
|
@@ -1281,13 +1284,13 @@ var re = function(e, t) {
|
|
|
1281
1284
|
if (!m) {
|
|
1282
1285
|
if (clearInterval(l), window.DocsAPI)
|
|
1283
1286
|
return r(null);
|
|
1284
|
-
var d =
|
|
1287
|
+
var d = f3(t, e, r, n);
|
|
1285
1288
|
a.remove(), document.body.appendChild(d);
|
|
1286
1289
|
}
|
|
1287
1290
|
}, 500);
|
|
1288
1291
|
else {
|
|
1289
|
-
var
|
|
1290
|
-
document.body.appendChild(
|
|
1292
|
+
var w = f3(t, e, r, n);
|
|
1293
|
+
document.body.appendChild(w);
|
|
1291
1294
|
}
|
|
1292
1295
|
} catch (m) {
|
|
1293
1296
|
console.error(m);
|
|
@@ -1295,14 +1298,14 @@ var re = function(e, t) {
|
|
|
1295
1298
|
})];
|
|
1296
1299
|
});
|
|
1297
1300
|
});
|
|
1298
|
-
},
|
|
1301
|
+
}, f3 = function(e, t, o, r) {
|
|
1299
1302
|
var n = document.createElement("script");
|
|
1300
1303
|
return n.id = e, n.type = "text/javascript", n.src = t, n.async = !0, n.onload = function() {
|
|
1301
1304
|
n.removeAttribute("loading"), o(null);
|
|
1302
1305
|
}, n.onerror = function(a) {
|
|
1303
1306
|
n.removeAttribute("loading"), r(a);
|
|
1304
1307
|
}, n.setAttribute("loading", ""), n;
|
|
1305
|
-
},
|
|
1308
|
+
}, s3 = 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
|
+
s3.render = ue;
|
|
1482
|
+
s3.__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: U({ height: t.officeHeight })
|
|
1559
1515
|
},
|
|
1560
1516
|
[
|
|
1561
|
-
A(u(
|
|
1517
|
+
A(u(s3), {
|
|
1562
1518
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1563
1519
|
ref: "editorRef",
|
|
1564
1520
|
"document-server-url": e.documentServerUrl,
|
|
@@ -1571,13 +1527,13 @@ 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 }, ye = ["src"], we = { 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" }, Ie = { class: "operate-btn" }, Se = { class: "card" }, De = { class: "title" }, Ve = /* @__PURE__ */ ve(() => /* @__PURE__ */ c(
|
|
1578
1534
|
"img",
|
|
1579
1535
|
{
|
|
1580
|
-
src:
|
|
1536
|
+
src: I3,
|
|
1581
1537
|
class: "w-[48px] h-[48px]"
|
|
1582
1538
|
},
|
|
1583
1539
|
null,
|
|
@@ -1588,7 +1544,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
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,
|
|
@@ -1728,9 +1684,9 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1728
1684
|
},
|
|
1729
1685
|
modelModifiers: {}
|
|
1730
1686
|
}),
|
|
1731
|
-
emits: /* @__PURE__ */
|
|
1687
|
+
emits: /* @__PURE__ */ Q(["delete", "exceed", "success", "error", "outSize"], ["update:modelValue"]),
|
|
1732
1688
|
setup(e, { emit: t }) {
|
|
1733
|
-
const o = e, r = t, n =
|
|
1689
|
+
const o = e, r = t, n = i3(e, "modelValue"), l = {
|
|
1734
1690
|
...{
|
|
1735
1691
|
name: "name",
|
|
1736
1692
|
url: "url",
|
|
@@ -1738,110 +1694,110 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1738
1694
|
size: "size"
|
|
1739
1695
|
},
|
|
1740
1696
|
...o.defaultFileds
|
|
1741
|
-
},
|
|
1742
|
-
const
|
|
1743
|
-
return
|
|
1744
|
-
message: `上传文件大小(${
|
|
1697
|
+
}, w = L(() => o.size), m = R(null), d = R([]), g = R({}), x = R(!1), S = (p) => {
|
|
1698
|
+
const f = p.size / 1024 / 1024;
|
|
1699
|
+
return f < w.value ? !0 : (r("outSize"), Y({
|
|
1700
|
+
message: `上传文件大小(${f.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,
|
|
1745
1701
|
type: "warning",
|
|
1746
1702
|
showClose: !0,
|
|
1747
1703
|
duration: 5e3
|
|
1748
1704
|
}), !1);
|
|
1749
|
-
}, D = (p,
|
|
1750
|
-
var
|
|
1751
|
-
p.size / 1024 / 1024 <
|
|
1705
|
+
}, D = (p, f) => {
|
|
1706
|
+
var B;
|
|
1707
|
+
p.size / 1024 / 1024 < w.value || t3(() => {
|
|
1752
1708
|
n.value.pop();
|
|
1753
|
-
}), 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()}`) && (Y({
|
|
1754
1710
|
message: `不允许的上传文件格式(${p.name}),请重新选择`,
|
|
1755
1711
|
type: "warning",
|
|
1756
1712
|
showClose: !0,
|
|
1757
1713
|
duration: 5e3
|
|
1758
|
-
}),
|
|
1714
|
+
}), t3(() => {
|
|
1759
1715
|
n.value.pop();
|
|
1760
1716
|
}));
|
|
1761
|
-
},
|
|
1762
|
-
var i,
|
|
1763
|
-
p.status = "ready",
|
|
1764
|
-
},
|
|
1765
|
-
var
|
|
1766
|
-
const i = n.value.length,
|
|
1767
|
-
let
|
|
1768
|
-
for (;
|
|
1769
|
-
(
|
|
1770
|
-
|
|
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
|
+
}, T = (p, f) => {
|
|
1721
|
+
var Z, a3;
|
|
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]), (a3 = m.value) == null || a3.submit(), B++;
|
|
1726
|
+
Y({
|
|
1771
1727
|
message: (o == null ? void 0 : o.limitText) || `最大可上传${o.limit}个文件,已忽略超出文件`,
|
|
1772
1728
|
type: "warning",
|
|
1773
1729
|
showClose: !0,
|
|
1774
1730
|
duration: 5e3
|
|
1775
1731
|
}), r("exceed", p);
|
|
1776
|
-
},
|
|
1777
|
-
r("success", p,
|
|
1778
|
-
},
|
|
1779
|
-
d.value.push(
|
|
1780
|
-
},
|
|
1781
|
-
var
|
|
1782
|
-
|
|
1732
|
+
}, b = (p, f, i) => {
|
|
1733
|
+
r("success", p, f, i);
|
|
1734
|
+
}, j = (p, f, i) => {
|
|
1735
|
+
d.value.push(f), r("error", p, f, i);
|
|
1736
|
+
}, E = (p) => {
|
|
1737
|
+
var f, i;
|
|
1738
|
+
g.value = {
|
|
1783
1739
|
...p,
|
|
1784
1740
|
name: p[l.name],
|
|
1785
|
-
url:
|
|
1741
|
+
url: o3(
|
|
1786
1742
|
o.loadUrl,
|
|
1787
|
-
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)
|
|
1788
1744
|
)
|
|
1789
1745
|
}, x.value = !0;
|
|
1790
|
-
},
|
|
1791
|
-
|
|
1746
|
+
}, G = (p) => {
|
|
1747
|
+
B3.downloadByOnlineUrl(
|
|
1792
1748
|
p[l.url],
|
|
1793
1749
|
p[l.name]
|
|
1794
1750
|
);
|
|
1795
|
-
},
|
|
1751
|
+
}, l3 = (p, f = !1) => {
|
|
1796
1752
|
var i;
|
|
1797
1753
|
(i = m.value) == null || i.abort(p);
|
|
1798
|
-
},
|
|
1799
|
-
var
|
|
1754
|
+
}, N = (p) => {
|
|
1755
|
+
var f, i;
|
|
1800
1756
|
try {
|
|
1801
|
-
p.status !== "success" &&
|
|
1802
|
-
} catch (
|
|
1803
|
-
(i = m.value) == null || i.handleRemove(p), n.value = n.value.filter((
|
|
1757
|
+
p.status !== "success" && l3(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);
|
|
1804
1760
|
}
|
|
1805
|
-
}, m3 = (p,
|
|
1806
|
-
d.value.splice(
|
|
1807
|
-
},
|
|
1761
|
+
}, m3 = (p, f) => {
|
|
1762
|
+
d.value.splice(f, 1);
|
|
1763
|
+
}, X = L(
|
|
1808
1764
|
() => n.value.length >= o.limit || o.disabled
|
|
1809
1765
|
);
|
|
1810
|
-
return (p,
|
|
1811
|
-
|
|
1766
|
+
return (p, f) => (s(), h(
|
|
1767
|
+
O,
|
|
1812
1768
|
null,
|
|
1813
1769
|
[
|
|
1814
|
-
e.preview ?
|
|
1815
|
-
|
|
1770
|
+
e.preview ? _("v-if", !0) : (s(), h(
|
|
1771
|
+
O,
|
|
1816
1772
|
{ key: 0 },
|
|
1817
1773
|
[
|
|
1818
|
-
e.type === "button" ? (s(),
|
|
1774
|
+
e.type === "button" ? (s(), k(u(c3), n3({
|
|
1819
1775
|
key: 0,
|
|
1820
1776
|
class: "ik-file-upload"
|
|
1821
1777
|
}, p.$attrs, {
|
|
1822
1778
|
accept: e.accept,
|
|
1823
1779
|
action: e.action,
|
|
1824
1780
|
"file-list": n.value,
|
|
1825
|
-
"onUpdate:fileList":
|
|
1781
|
+
"onUpdate:fileList": f[0] || (f[0] = (i) => n.value = i),
|
|
1826
1782
|
ref_key: "refUpload",
|
|
1827
1783
|
ref: m,
|
|
1828
|
-
"before-upload":
|
|
1829
|
-
"before-remove":
|
|
1830
|
-
"on-exceed":
|
|
1784
|
+
"before-upload": S,
|
|
1785
|
+
"before-remove": V,
|
|
1786
|
+
"on-exceed": T,
|
|
1831
1787
|
"on-change": D,
|
|
1832
1788
|
multiple: e.multiple,
|
|
1833
1789
|
headers: e.headers,
|
|
1834
1790
|
limit: e.limit,
|
|
1835
|
-
"on-success":
|
|
1836
|
-
"on-error":
|
|
1791
|
+
"on-success": b,
|
|
1792
|
+
"on-error": j
|
|
1837
1793
|
}), {
|
|
1838
|
-
trigger:
|
|
1839
|
-
p.$slots.trigger ?
|
|
1794
|
+
trigger: y(() => [
|
|
1795
|
+
p.$slots.trigger ? M(p.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), k(u(F3), {
|
|
1840
1796
|
key: 1,
|
|
1841
|
-
disabled:
|
|
1842
|
-
},
|
|
1843
|
-
default:
|
|
1844
|
-
|
|
1797
|
+
disabled: X.value
|
|
1798
|
+
}, v3({
|
|
1799
|
+
default: y(() => [
|
|
1800
|
+
q(
|
|
1845
1801
|
" " + C(e.title),
|
|
1846
1802
|
1
|
|
1847
1803
|
/* TEXT */
|
|
@@ -1852,20 +1808,20 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1852
1808
|
}, [
|
|
1853
1809
|
e.showIcon ? {
|
|
1854
1810
|
name: "icon",
|
|
1855
|
-
fn:
|
|
1856
|
-
A(u(
|
|
1811
|
+
fn: y(() => [
|
|
1812
|
+
A(u(I), {
|
|
1857
1813
|
name: "iksvg_daoru",
|
|
1858
|
-
disabled:
|
|
1814
|
+
disabled: X.value
|
|
1859
1815
|
}, null, 8, ["disabled"])
|
|
1860
1816
|
]),
|
|
1861
1817
|
key: "0"
|
|
1862
1818
|
} : void 0
|
|
1863
1819
|
]), 1032, ["disabled"]))
|
|
1864
1820
|
]),
|
|
1865
|
-
file:
|
|
1821
|
+
file: y(({ file: i }) => [
|
|
1866
1822
|
c("div", me, [
|
|
1867
1823
|
c("div", Ae, [
|
|
1868
|
-
!p.$slots.fileIcon && (!e.customIconData[u(z)(i, l)] || !e.customIconData[u(z)(i, l)][e.customIconFields.icon]) ? (s(),
|
|
1824
|
+
!p.$slots.fileIcon && (!e.customIconData[u(z)(i, l)] || !e.customIconData[u(z)(i, l)][e.customIconFields.icon]) ? (s(), k(h3, {
|
|
1869
1825
|
key: 0,
|
|
1870
1826
|
type: u(z)(i, l)
|
|
1871
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, [
|
|
@@ -1878,7 +1834,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1878
1834
|
"span",
|
|
1879
1835
|
{
|
|
1880
1836
|
key: 1,
|
|
1881
|
-
class:
|
|
1837
|
+
class: $([
|
|
1882
1838
|
e.customIconData[u(z)(i, l)][e.customIconFields.icon],
|
|
1883
1839
|
"file-icon-size"
|
|
1884
1840
|
])
|
|
@@ -1887,55 +1843,55 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1887
1843
|
2
|
|
1888
1844
|
/* CLASS */
|
|
1889
1845
|
))
|
|
1890
|
-
])) :
|
|
1846
|
+
])) : _("v-if", !0),
|
|
1891
1847
|
c("div", we, [
|
|
1892
|
-
|
|
1848
|
+
M(p.$slots, "fileIcon", { file: i }, void 0, !0)
|
|
1893
1849
|
]),
|
|
1894
1850
|
c("div", _e, [
|
|
1895
1851
|
c("p", ke, [
|
|
1896
|
-
|
|
1852
|
+
q(
|
|
1897
1853
|
C(i[l.name] || i.name) + " ",
|
|
1898
1854
|
1
|
|
1899
1855
|
/* TEXT */
|
|
1900
1856
|
),
|
|
1901
1857
|
i.percentage && i.status === "uploading" ? (s(), h(
|
|
1902
1858
|
"span",
|
|
1903
|
-
|
|
1859
|
+
ze,
|
|
1904
1860
|
"(" + C(i.percentage) + "%)",
|
|
1905
1861
|
1
|
|
1906
1862
|
/* TEXT */
|
|
1907
|
-
)) :
|
|
1863
|
+
)) : _("v-if", !0)
|
|
1908
1864
|
]),
|
|
1909
1865
|
i.status === "success" ? (s(), h(
|
|
1910
1866
|
"p",
|
|
1911
|
-
|
|
1912
|
-
C(u(
|
|
1867
|
+
be,
|
|
1868
|
+
C(u(e3)(i.size / 1024 / 1024)) + "MB ",
|
|
1913
1869
|
1
|
|
1914
1870
|
/* TEXT */
|
|
1915
|
-
)) :
|
|
1916
|
-
i.percentage && i.status === "uploading" ? (s(),
|
|
1871
|
+
)) : _("v-if", !0),
|
|
1872
|
+
i.percentage && i.status === "uploading" ? (s(), k(u(r3), {
|
|
1917
1873
|
key: 1,
|
|
1918
1874
|
"text-inside": "",
|
|
1919
1875
|
percentage: i.percentage,
|
|
1920
1876
|
color: "var(--el-color-primary)",
|
|
1921
1877
|
"show-text": !1
|
|
1922
|
-
}, null, 8, ["percentage"])) :
|
|
1878
|
+
}, null, 8, ["percentage"])) : _("v-if", !0)
|
|
1923
1879
|
])
|
|
1924
1880
|
]),
|
|
1925
1881
|
c("div", null, [
|
|
1926
1882
|
i.status === "success" ? (s(), h(
|
|
1927
|
-
|
|
1883
|
+
O,
|
|
1928
1884
|
{ key: 0 },
|
|
1929
1885
|
[
|
|
1930
|
-
A(u(
|
|
1931
|
-
onClick: (
|
|
1886
|
+
A(u(I), {
|
|
1887
|
+
onClick: (v) => E(i),
|
|
1932
1888
|
name: "iksvg_yulan",
|
|
1933
1889
|
title: "预览",
|
|
1934
1890
|
bg: "",
|
|
1935
1891
|
size: "default"
|
|
1936
1892
|
}, null, 8, ["onClick"]),
|
|
1937
|
-
A(u(
|
|
1938
|
-
onClick: (
|
|
1893
|
+
A(u(I), {
|
|
1894
|
+
onClick: (v) => N(i),
|
|
1939
1895
|
error: "",
|
|
1940
1896
|
name: "iksvg_shanchu",
|
|
1941
1897
|
title: "删除",
|
|
@@ -1945,9 +1901,9 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1945
1901
|
],
|
|
1946
1902
|
64
|
|
1947
1903
|
/* STABLE_FRAGMENT */
|
|
1948
|
-
)) : (s(),
|
|
1904
|
+
)) : (s(), k(u(I), {
|
|
1949
1905
|
key: 1,
|
|
1950
|
-
onClick: (
|
|
1906
|
+
onClick: (v) => N(i),
|
|
1951
1907
|
error: "",
|
|
1952
1908
|
name: "iksvg_guanbi",
|
|
1953
1909
|
size: "default",
|
|
@@ -1957,22 +1913,22 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1957
1913
|
])
|
|
1958
1914
|
])
|
|
1959
1915
|
]),
|
|
1960
|
-
default:
|
|
1916
|
+
default: y(() => {
|
|
1961
1917
|
var i;
|
|
1962
1918
|
return [
|
|
1963
|
-
!e.preview && e.tip ? (s(),
|
|
1919
|
+
!e.preview && e.tip ? (s(), k(u(d3), {
|
|
1964
1920
|
key: 0,
|
|
1965
1921
|
effect: "dark",
|
|
1966
1922
|
content: o.tipText || "",
|
|
1967
1923
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
1968
1924
|
}, {
|
|
1969
|
-
default:
|
|
1970
|
-
A(u(
|
|
1925
|
+
default: y(() => [
|
|
1926
|
+
A(u(H), {
|
|
1971
1927
|
size: 23,
|
|
1972
1928
|
class: "_ik_web_ui_file_help_icon"
|
|
1973
1929
|
}, {
|
|
1974
|
-
default:
|
|
1975
|
-
A(u(
|
|
1930
|
+
default: y(() => [
|
|
1931
|
+
A(u(u3))
|
|
1976
1932
|
]),
|
|
1977
1933
|
_: 1
|
|
1978
1934
|
/* STABLE */
|
|
@@ -1980,21 +1936,21 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
1980
1936
|
]),
|
|
1981
1937
|
_: 1
|
|
1982
1938
|
/* STABLE */
|
|
1983
|
-
}, 8, ["content"])) :
|
|
1939
|
+
}, 8, ["content"])) : _("v-if", !0),
|
|
1984
1940
|
(i = d.value) != null && i.length ? (s(!0), h(
|
|
1985
|
-
|
|
1941
|
+
O,
|
|
1986
1942
|
{ key: 1 },
|
|
1987
|
-
w3(d.value, (
|
|
1943
|
+
w3(d.value, (v, B) => (s(), h("div", {
|
|
1988
1944
|
class: "ik-error-flie-list",
|
|
1989
|
-
key:
|
|
1945
|
+
key: v.uid
|
|
1990
1946
|
}, [
|
|
1991
1947
|
c("div", Fe, [
|
|
1992
|
-
A(u(
|
|
1948
|
+
A(u(H), {
|
|
1993
1949
|
size: 32,
|
|
1994
1950
|
class: "info",
|
|
1995
1951
|
style: { "vertical-align": "middle" }
|
|
1996
1952
|
}, {
|
|
1997
|
-
default:
|
|
1953
|
+
default: y(() => [
|
|
1998
1954
|
A(u(q3))
|
|
1999
1955
|
]),
|
|
2000
1956
|
_: 1
|
|
@@ -2004,14 +1960,14 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2004
1960
|
c(
|
|
2005
1961
|
"p",
|
|
2006
1962
|
xe,
|
|
2007
|
-
C(
|
|
1963
|
+
C(v[l.name] || v.name),
|
|
2008
1964
|
1
|
|
2009
1965
|
/* TEXT */
|
|
2010
1966
|
),
|
|
2011
1967
|
c(
|
|
2012
1968
|
"p",
|
|
2013
|
-
|
|
2014
|
-
C(u(
|
|
1969
|
+
Be,
|
|
1970
|
+
C(u(e3)(v.size / 1024 / 1024)) + "MB ",
|
|
2015
1971
|
1
|
|
2016
1972
|
/* TEXT */
|
|
2017
1973
|
)
|
|
@@ -2019,26 +1975,26 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2019
1975
|
]),
|
|
2020
1976
|
_3(c(
|
|
2021
1977
|
"div",
|
|
2022
|
-
|
|
1978
|
+
Ie,
|
|
2023
1979
|
[
|
|
2024
|
-
A(u(
|
|
1980
|
+
A(u(H), {
|
|
2025
1981
|
style: { "vertical-align": "middle" },
|
|
2026
|
-
onClick: (
|
|
1982
|
+
onClick: (Z) => W(v, B),
|
|
2027
1983
|
title: "重新上传",
|
|
2028
1984
|
class: "primary"
|
|
2029
1985
|
}, {
|
|
2030
|
-
default:
|
|
1986
|
+
default: y(() => [
|
|
2031
1987
|
A(u(E3))
|
|
2032
1988
|
]),
|
|
2033
1989
|
_: 2
|
|
2034
1990
|
/* DYNAMIC */
|
|
2035
1991
|
}, 1032, ["onClick"]),
|
|
2036
|
-
A(u(
|
|
1992
|
+
A(u(H), {
|
|
2037
1993
|
class: "error",
|
|
2038
|
-
onClick: (
|
|
1994
|
+
onClick: (Z) => m3(v, B),
|
|
2039
1995
|
title: "删除"
|
|
2040
1996
|
}, {
|
|
2041
|
-
default:
|
|
1997
|
+
default: y(() => [
|
|
2042
1998
|
A(u(D3))
|
|
2043
1999
|
]),
|
|
2044
2000
|
_: 2
|
|
@@ -2048,41 +2004,41 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2048
2004
|
512
|
|
2049
2005
|
/* NEED_PATCH */
|
|
2050
2006
|
), [
|
|
2051
|
-
[k3, (
|
|
2007
|
+
[k3, (v == null ? void 0 : v.status) === "fail"]
|
|
2052
2008
|
])
|
|
2053
2009
|
]))),
|
|
2054
2010
|
128
|
|
2055
2011
|
/* KEYED_FRAGMENT */
|
|
2056
|
-
)) :
|
|
2012
|
+
)) : _("v-if", !0)
|
|
2057
2013
|
];
|
|
2058
2014
|
}),
|
|
2059
2015
|
_: 3
|
|
2060
2016
|
/* FORWARDED */
|
|
2061
|
-
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(),
|
|
2017
|
+
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), k(u(c3), n3({
|
|
2062
2018
|
key: 1,
|
|
2063
2019
|
"file-list": n.value,
|
|
2064
|
-
"onUpdate:fileList":
|
|
2020
|
+
"onUpdate:fileList": f[1] || (f[1] = (i) => n.value = i),
|
|
2065
2021
|
class: ["ik-file-pload-card", { plain: e.plain }]
|
|
2066
2022
|
}, p.$attrs, {
|
|
2067
2023
|
accept: e.accept,
|
|
2068
2024
|
action: e.action,
|
|
2069
|
-
disabled:
|
|
2025
|
+
disabled: X.value,
|
|
2070
2026
|
ref_key: "refUpload",
|
|
2071
2027
|
ref: m,
|
|
2072
|
-
"before-upload":
|
|
2073
|
-
"before-remove":
|
|
2074
|
-
"on-exceed":
|
|
2028
|
+
"before-upload": S,
|
|
2029
|
+
"before-remove": V,
|
|
2030
|
+
"on-exceed": T,
|
|
2075
2031
|
multiple: e.multiple,
|
|
2076
2032
|
headers: e.headers,
|
|
2077
2033
|
limit: e.limit,
|
|
2078
|
-
"on-success":
|
|
2079
|
-
"on-error":
|
|
2034
|
+
"on-success": b,
|
|
2035
|
+
"on-error": j,
|
|
2080
2036
|
"on-change": D
|
|
2081
2037
|
}), {
|
|
2082
|
-
file:
|
|
2038
|
+
file: y(({ file: i }) => [
|
|
2083
2039
|
c("div", $e, [
|
|
2084
2040
|
c("div", Re, [
|
|
2085
|
-
!p.$slots.fileIcon && (!e.customIconData[u(z)(i, l)] || !e.customIconData[u(z)(i, l)][e.customIconFields.icon]) ? (s(),
|
|
2041
|
+
!p.$slots.fileIcon && (!e.customIconData[u(z)(i, l)] || !e.customIconData[u(z)(i, l)][e.customIconFields.icon]) ? (s(), k(h3, {
|
|
2086
2042
|
key: 0,
|
|
2087
2043
|
type: u(z)(i, l)
|
|
2088
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, [
|
|
@@ -2095,7 +2051,7 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2095
2051
|
"span",
|
|
2096
2052
|
{
|
|
2097
2053
|
key: 1,
|
|
2098
|
-
class:
|
|
2054
|
+
class: $([
|
|
2099
2055
|
e.customIconData[u(z)(i, l)][e.customIconFields.icon],
|
|
2100
2056
|
"file-icon-size"
|
|
2101
2057
|
])
|
|
@@ -2104,13 +2060,13 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2104
2060
|
2
|
|
2105
2061
|
/* CLASS */
|
|
2106
2062
|
))
|
|
2107
|
-
])) :
|
|
2063
|
+
])) : _("v-if", !0),
|
|
2108
2064
|
c("div", He, [
|
|
2109
|
-
|
|
2065
|
+
M(p.$slots, "fileIcon", { file: i }, void 0, !0)
|
|
2110
2066
|
]),
|
|
2111
2067
|
c("div", Oe, [
|
|
2112
2068
|
c("p", Ue, [
|
|
2113
|
-
|
|
2069
|
+
q(
|
|
2114
2070
|
C(i[l.name] || i.name) + " ",
|
|
2115
2071
|
1
|
|
2116
2072
|
/* TEXT */
|
|
@@ -2121,39 +2077,39 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2121
2077
|
"(" + C(i.percentage) + "%)",
|
|
2122
2078
|
1
|
|
2123
2079
|
/* TEXT */
|
|
2124
|
-
)) :
|
|
2080
|
+
)) : _("v-if", !0)
|
|
2125
2081
|
]),
|
|
2126
2082
|
i.status === "success" ? (s(), h(
|
|
2127
2083
|
"p",
|
|
2128
2084
|
Le,
|
|
2129
|
-
C(u(
|
|
2085
|
+
C(u(e3)(i.size / 1024 / 1024)) + "MB ",
|
|
2130
2086
|
1
|
|
2131
2087
|
/* TEXT */
|
|
2132
|
-
)) :
|
|
2133
|
-
i.percentage && i.status === "uploading" ? (s(),
|
|
2088
|
+
)) : _("v-if", !0),
|
|
2089
|
+
i.percentage && i.status === "uploading" ? (s(), k(u(r3), {
|
|
2134
2090
|
key: 1,
|
|
2135
2091
|
"text-inside": "",
|
|
2136
2092
|
percentage: i.percentage,
|
|
2137
2093
|
color: "var(--el-color-primary)",
|
|
2138
2094
|
"show-text": !1
|
|
2139
|
-
}, null, 8, ["percentage"])) :
|
|
2095
|
+
}, null, 8, ["percentage"])) : _("v-if", !0)
|
|
2140
2096
|
])
|
|
2141
2097
|
]),
|
|
2142
2098
|
e.preview ? (s(), h(
|
|
2143
|
-
|
|
2099
|
+
O,
|
|
2144
2100
|
{ key: 1 },
|
|
2145
2101
|
[
|
|
2146
|
-
e.preview || i.percentage === 100 ? (s(),
|
|
2147
|
-
u(
|
|
2102
|
+
e.preview || i.percentage === 100 ? (s(), k(
|
|
2103
|
+
u(H),
|
|
2148
2104
|
{
|
|
2149
2105
|
key: 0,
|
|
2150
2106
|
title: "预览",
|
|
2151
2107
|
class: "primary"
|
|
2152
2108
|
},
|
|
2153
2109
|
{
|
|
2154
|
-
default:
|
|
2110
|
+
default: y(() => [
|
|
2155
2111
|
A(u(O3), {
|
|
2156
|
-
onClick: (
|
|
2112
|
+
onClick: (v) => E(i)
|
|
2157
2113
|
}, null, 8, ["onClick"])
|
|
2158
2114
|
]),
|
|
2159
2115
|
_: 2
|
|
@@ -2161,17 +2117,17 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2161
2117
|
},
|
|
2162
2118
|
1024
|
|
2163
2119
|
/* DYNAMIC_SLOTS */
|
|
2164
|
-
)) :
|
|
2120
|
+
)) : _("v-if", !0),
|
|
2165
2121
|
A(
|
|
2166
|
-
u(
|
|
2122
|
+
u(H),
|
|
2167
2123
|
{
|
|
2168
2124
|
title: "下载",
|
|
2169
2125
|
class: "primary"
|
|
2170
2126
|
},
|
|
2171
2127
|
{
|
|
2172
|
-
default:
|
|
2128
|
+
default: y(() => [
|
|
2173
2129
|
A(u($3), {
|
|
2174
|
-
onClick: (
|
|
2130
|
+
onClick: (v) => G(i)
|
|
2175
2131
|
}, null, 8, ["onClick"])
|
|
2176
2132
|
]),
|
|
2177
2133
|
_: 2
|
|
@@ -2185,18 +2141,18 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2185
2141
|
/* STABLE_FRAGMENT */
|
|
2186
2142
|
)) : (s(), h("div", Te, [
|
|
2187
2143
|
i.status === "success" ? (s(), h(
|
|
2188
|
-
|
|
2144
|
+
O,
|
|
2189
2145
|
{ key: 0 },
|
|
2190
2146
|
[
|
|
2191
|
-
A(u(
|
|
2192
|
-
onClick: (
|
|
2147
|
+
A(u(I), {
|
|
2148
|
+
onClick: (v) => E(i),
|
|
2193
2149
|
name: "iksvg_yulan",
|
|
2194
2150
|
title: "预览",
|
|
2195
2151
|
bg: "",
|
|
2196
2152
|
size: "default"
|
|
2197
2153
|
}, null, 8, ["onClick"]),
|
|
2198
|
-
A(u(
|
|
2199
|
-
onClick: (
|
|
2154
|
+
A(u(I), {
|
|
2155
|
+
onClick: (v) => N(i),
|
|
2200
2156
|
error: "",
|
|
2201
2157
|
name: "iksvg_shanchu",
|
|
2202
2158
|
title: "删除",
|
|
@@ -2206,9 +2162,9 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2206
2162
|
],
|
|
2207
2163
|
64
|
|
2208
2164
|
/* STABLE_FRAGMENT */
|
|
2209
|
-
)) : (s(),
|
|
2165
|
+
)) : (s(), k(u(I), {
|
|
2210
2166
|
key: 1,
|
|
2211
|
-
onClick: (
|
|
2167
|
+
onClick: (v) => N(i),
|
|
2212
2168
|
error: "",
|
|
2213
2169
|
name: "iksvg_guanbi",
|
|
2214
2170
|
size: "default",
|
|
@@ -2218,37 +2174,37 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2218
2174
|
]))
|
|
2219
2175
|
])
|
|
2220
2176
|
]),
|
|
2221
|
-
default:
|
|
2222
|
-
c("div",
|
|
2177
|
+
default: y(() => [
|
|
2178
|
+
c("div", Se, [
|
|
2223
2179
|
c("div", De, [
|
|
2224
|
-
e.imageMode ?
|
|
2180
|
+
e.imageMode ? M(p.$slots, "image", { key: 0 }, () => [
|
|
2225
2181
|
Ve
|
|
2226
|
-
], !0) : e.showIcon ? (s(),
|
|
2182
|
+
], !0) : e.showIcon ? (s(), k(u(I), {
|
|
2227
2183
|
key: 1,
|
|
2228
2184
|
name: "iksvg_img_shangchuanhetongfujianbeifen",
|
|
2229
2185
|
type: "primary",
|
|
2230
2186
|
bg: "",
|
|
2231
2187
|
size: 40
|
|
2232
|
-
})) :
|
|
2188
|
+
})) : _("v-if", !0),
|
|
2233
2189
|
c("span", null, [
|
|
2234
|
-
|
|
2190
|
+
q(
|
|
2235
2191
|
C(e.title) + " ",
|
|
2236
2192
|
1
|
|
2237
2193
|
/* TEXT */
|
|
2238
2194
|
),
|
|
2239
|
-
!e.preview && e.tip ? (s(),
|
|
2195
|
+
!e.preview && e.tip ? (s(), k(u(d3), {
|
|
2240
2196
|
key: 0,
|
|
2241
2197
|
effect: "dark",
|
|
2242
2198
|
content: o.tipText || "",
|
|
2243
2199
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
2244
2200
|
}, {
|
|
2245
|
-
default:
|
|
2246
|
-
A(u(
|
|
2201
|
+
default: y(() => [
|
|
2202
|
+
A(u(H), {
|
|
2247
2203
|
size: 23,
|
|
2248
2204
|
class: "_ik_web_ui_file_help_icon"
|
|
2249
2205
|
}, {
|
|
2250
|
-
default:
|
|
2251
|
-
A(u(
|
|
2206
|
+
default: y(() => [
|
|
2207
|
+
A(u(u3))
|
|
2252
2208
|
]),
|
|
2253
2209
|
_: 1
|
|
2254
2210
|
/* STABLE */
|
|
@@ -2256,10 +2212,10 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2256
2212
|
]),
|
|
2257
2213
|
_: 1
|
|
2258
2214
|
/* STABLE */
|
|
2259
|
-
}, 8, ["content"])) :
|
|
2215
|
+
}, 8, ["content"])) : _("v-if", !0)
|
|
2260
2216
|
])
|
|
2261
2217
|
]),
|
|
2262
|
-
A(u(
|
|
2218
|
+
A(u(I), {
|
|
2263
2219
|
name: "iksvg_daoru",
|
|
2264
2220
|
bg: "",
|
|
2265
2221
|
size: 40,
|
|
@@ -2276,9 +2232,9 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2276
2232
|
)),
|
|
2277
2233
|
A(u(W6), {
|
|
2278
2234
|
show: x.value,
|
|
2279
|
-
"onUpdate:show":
|
|
2235
|
+
"onUpdate:show": f[2] || (f[2] = (i) => x.value = i),
|
|
2280
2236
|
loadUrl: e.loadUrl,
|
|
2281
|
-
file:
|
|
2237
|
+
file: g.value,
|
|
2282
2238
|
onlyofficeServer: e.onlyofficeServer,
|
|
2283
2239
|
onlyOfficeConfig: e.onlyOfficeConfig
|
|
2284
2240
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig"])
|
|
@@ -2288,8 +2244,8 @@ const he = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ea0a8f6d"]]), ve = q(he)
|
|
|
2288
2244
|
));
|
|
2289
2245
|
}
|
|
2290
2246
|
});
|
|
2291
|
-
const Pe = /* @__PURE__ */
|
|
2247
|
+
const Pe = /* @__PURE__ */ K(je, [["__scopeId", "data-v-10a62ee9"]]), Qe = P(Pe);
|
|
2292
2248
|
export {
|
|
2293
|
-
|
|
2294
|
-
|
|
2249
|
+
Qe as IkUploadFile,
|
|
2250
|
+
Qe as default
|
|
2295
2251
|
};
|