iking-web-ui-pro 0.2.5 → 0.2.6
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 +409 -406
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +123 -120
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +358 -355
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +564 -561
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +125 -122
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +252 -249
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +129 -126
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +357 -354
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +196 -193
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +397 -394
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1122 -1119
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +293 -290
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +968 -965
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +148 -145
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +106 -103
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +530 -526
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +269 -266
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +50 -46
- package/dist/Provider/ik.index.umd.js +5 -5
- package/dist/index.es.js +7052 -7044
- package/dist/index.umd.js +36 -36
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
- package/dist/src/components/Provider/index.d.ts +19 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElUpload as
|
|
1
|
+
import { defineComponent as C, openBlock as s, createElementBlock as p, createElementVNode as d, computed as D, inject as T, mergeModels as G, useModel as c3, ref as M, reactive as w3, watch as k3, nextTick as s3, resolveComponent as X, Fragment as U, createBlock as z, createCommentVNode as b, createVNode as m, unref as u, withCtx as _, normalizeClass as R, normalizeStyle as O, createTextVNode as q, toDisplayString as I, h as b3, mergeProps as l3, createSlots as A3, renderSlot as E, renderList as z3, withDirectives as x3, vShow as F3, pushScopeId as C3, popScopeId as I3 } from "vue";
|
|
2
|
+
import { ElUpload as u3, ElButton as B3, ElProgress as d3, ElTooltip as v3, ElIcon as H, ElMessage as o3 } from "element-plus";
|
|
3
3
|
import { buildUUID as S3, ikColor as D3, ikFile as V3 } from "iking-utils-pro";
|
|
4
|
-
const N = (e,
|
|
4
|
+
const N = (e, n) => {
|
|
5
5
|
if (e.install = (o) => {
|
|
6
|
-
for (const
|
|
7
|
-
o.component(
|
|
8
|
-
},
|
|
9
|
-
for (const [o,
|
|
10
|
-
e[o] =
|
|
6
|
+
for (const t of [e, ...Object.values(n ?? {})])
|
|
7
|
+
o.component(t.name, t);
|
|
8
|
+
}, n)
|
|
9
|
+
for (const [o, t] of Object.entries(n))
|
|
10
|
+
e[o] = t;
|
|
11
11
|
return e;
|
|
12
12
|
}, $3 = "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 R3 = /* @__PURE__ */
|
|
14
|
+
var R3 = /* @__PURE__ */ C({
|
|
15
15
|
name: "Delete",
|
|
16
16
|
__name: "delete",
|
|
17
17
|
setup(e) {
|
|
18
|
-
return (
|
|
18
|
+
return (n, o) => (s(), p("svg", {
|
|
19
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
20
|
viewBox: "0 0 1024 1024"
|
|
21
21
|
}, [
|
|
@@ -25,11 +25,11 @@ var R3 = /* @__PURE__ */ x({
|
|
|
25
25
|
})
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}), M3 = R3, E3 = /* @__PURE__ */
|
|
28
|
+
}), M3 = R3, E3 = /* @__PURE__ */ C({
|
|
29
29
|
name: "Download",
|
|
30
30
|
__name: "download",
|
|
31
31
|
setup(e) {
|
|
32
|
-
return (
|
|
32
|
+
return (n, o) => (s(), p("svg", {
|
|
33
33
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34
34
|
viewBox: "0 0 1024 1024"
|
|
35
35
|
}, [
|
|
@@ -39,11 +39,11 @@ var R3 = /* @__PURE__ */ x({
|
|
|
39
39
|
})
|
|
40
40
|
]));
|
|
41
41
|
}
|
|
42
|
-
}), H3 = E3, U3 = /* @__PURE__ */
|
|
42
|
+
}), H3 = E3, U3 = /* @__PURE__ */ C({
|
|
43
43
|
name: "QuestionFilled",
|
|
44
44
|
__name: "question-filled",
|
|
45
45
|
setup(e) {
|
|
46
|
-
return (
|
|
46
|
+
return (n, o) => (s(), p("svg", {
|
|
47
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48
48
|
viewBox: "0 0 1024 1024"
|
|
49
49
|
}, [
|
|
@@ -53,11 +53,11 @@ var R3 = /* @__PURE__ */ x({
|
|
|
53
53
|
})
|
|
54
54
|
]));
|
|
55
55
|
}
|
|
56
|
-
}),
|
|
56
|
+
}), p3 = U3, O3 = /* @__PURE__ */ C({
|
|
57
57
|
name: "Refresh",
|
|
58
58
|
__name: "refresh",
|
|
59
59
|
setup(e) {
|
|
60
|
-
return (
|
|
60
|
+
return (n, o) => (s(), p("svg", {
|
|
61
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
62
|
viewBox: "0 0 1024 1024"
|
|
63
63
|
}, [
|
|
@@ -67,11 +67,11 @@ var R3 = /* @__PURE__ */ x({
|
|
|
67
67
|
})
|
|
68
68
|
]));
|
|
69
69
|
}
|
|
70
|
-
}), q3 = O3, L3 = /* @__PURE__ */
|
|
70
|
+
}), q3 = O3, L3 = /* @__PURE__ */ C({
|
|
71
71
|
name: "View",
|
|
72
72
|
__name: "view",
|
|
73
73
|
setup(e) {
|
|
74
|
-
return (
|
|
74
|
+
return (n, o) => (s(), p("svg", {
|
|
75
75
|
xmlns: "http://www.w3.org/2000/svg",
|
|
76
76
|
viewBox: "0 0 1024 1024"
|
|
77
77
|
}, [
|
|
@@ -81,11 +81,11 @@ var R3 = /* @__PURE__ */ x({
|
|
|
81
81
|
})
|
|
82
82
|
]));
|
|
83
83
|
}
|
|
84
|
-
}), T3 = L3, j3 = /* @__PURE__ */
|
|
84
|
+
}), T3 = L3, j3 = /* @__PURE__ */ C({
|
|
85
85
|
name: "WarningFilled",
|
|
86
86
|
__name: "warning-filled",
|
|
87
87
|
setup(e) {
|
|
88
|
-
return (
|
|
88
|
+
return (n, o) => (s(), p("svg", {
|
|
89
89
|
xmlns: "http://www.w3.org/2000/svg",
|
|
90
90
|
viewBox: "0 0 1024 1024"
|
|
91
91
|
}, [
|
|
@@ -96,9 +96,9 @@ var R3 = /* @__PURE__ */ x({
|
|
|
96
96
|
]));
|
|
97
97
|
}
|
|
98
98
|
}), P3 = j3;
|
|
99
|
-
const
|
|
100
|
-
var
|
|
101
|
-
const o = (
|
|
99
|
+
const F = (e, n) => {
|
|
100
|
+
var c, i, f, w;
|
|
101
|
+
const o = (c = e == null ? void 0 : e.response) != null && c.data ? h3((f = (i = e == null ? void 0 : e.response) == null ? void 0 : i.data) == null ? void 0 : f.suffix) : ((w = e.raw) == null ? void 0 : w.type) || h3(e[n.suffix]), t = o == null ? void 0 : o.toLowerCase(), a = {
|
|
102
102
|
sheet: "excel",
|
|
103
103
|
excel: "excel",
|
|
104
104
|
zip: "zip",
|
|
@@ -114,9 +114,9 @@ const C = (e, t) => {
|
|
|
114
114
|
exe: "exe",
|
|
115
115
|
json: "json"
|
|
116
116
|
};
|
|
117
|
-
for (let
|
|
118
|
-
if (typeof
|
|
119
|
-
return
|
|
117
|
+
for (let r in a)
|
|
118
|
+
if (typeof t == "string" && (t.includes(r) || t === r))
|
|
119
|
+
return a[r];
|
|
120
120
|
return "unknown";
|
|
121
121
|
}, W3 = {
|
|
122
122
|
".doc": "word",
|
|
@@ -203,12 +203,12 @@ const C = (e, t) => {
|
|
|
203
203
|
".vob": "video",
|
|
204
204
|
".txt": "txt",
|
|
205
205
|
".pdf": "pdf"
|
|
206
|
-
},
|
|
207
|
-
const
|
|
206
|
+
}, h3 = (e) => {
|
|
207
|
+
const n = e == null ? void 0 : e.toLocaleLowerCase(), o = n != null && n.startsWith(".") ? n : `.${n}`;
|
|
208
208
|
return o && W3[o] || "unknow";
|
|
209
209
|
}, N3 = (e) => {
|
|
210
|
-
let
|
|
211
|
-
return o.includes(e) && (
|
|
210
|
+
let n = "", o = ["doc", "docx"], t = ["xls", "xlsx"], a = ["ppt", "pptx"], c = ["pdf"];
|
|
211
|
+
return o.includes(e) && (n = "word"), t.includes(e) && (n = "cell"), a.includes(e) && (n = "slide"), c.includes(e) && (n = "text-pdf"), n;
|
|
212
212
|
}, Z3 = {
|
|
213
213
|
key: 0,
|
|
214
214
|
t: "1686300059786",
|
|
@@ -360,10 +360,10 @@ const C = (e, t) => {
|
|
|
360
360
|
null,
|
|
361
361
|
-1
|
|
362
362
|
/* HOISTED */
|
|
363
|
-
),
|
|
363
|
+
), u6 = [
|
|
364
364
|
c6,
|
|
365
365
|
r6
|
|
366
|
-
],
|
|
366
|
+
], d6 = {
|
|
367
367
|
key: 4,
|
|
368
368
|
t: "1686300180947",
|
|
369
369
|
class: "icon",
|
|
@@ -373,7 +373,7 @@ const C = (e, t) => {
|
|
|
373
373
|
"p-id": "8447",
|
|
374
374
|
width: "200",
|
|
375
375
|
height: "200"
|
|
376
|
-
},
|
|
376
|
+
}, v6 = /* @__PURE__ */ d(
|
|
377
377
|
"path",
|
|
378
378
|
{
|
|
379
379
|
d: "M204.8 0h477.866667l273.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 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",
|
|
@@ -383,7 +383,7 @@ const C = (e, t) => {
|
|
|
383
383
|
null,
|
|
384
384
|
-1
|
|
385
385
|
/* HOISTED */
|
|
386
|
-
),
|
|
386
|
+
), p6 = /* @__PURE__ */ d(
|
|
387
387
|
"path",
|
|
388
388
|
{
|
|
389
389
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -393,10 +393,10 @@ const C = (e, t) => {
|
|
|
393
393
|
null,
|
|
394
394
|
-1
|
|
395
395
|
/* HOISTED */
|
|
396
|
-
),
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
],
|
|
396
|
+
), h6 = [
|
|
397
|
+
v6,
|
|
398
|
+
p6
|
|
399
|
+
], f6 = {
|
|
400
400
|
key: 5,
|
|
401
401
|
t: "1686300195363",
|
|
402
402
|
class: "icon",
|
|
@@ -406,7 +406,7 @@ const C = (e, t) => {
|
|
|
406
406
|
"p-id": "8602",
|
|
407
407
|
width: "200",
|
|
408
408
|
height: "200"
|
|
409
|
-
},
|
|
409
|
+
}, g6 = /* @__PURE__ */ d(
|
|
410
410
|
"path",
|
|
411
411
|
{
|
|
412
412
|
d: "M204.8 0h477.866667l273.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 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",
|
|
@@ -416,7 +416,7 @@ const C = (e, t) => {
|
|
|
416
416
|
null,
|
|
417
417
|
-1
|
|
418
418
|
/* HOISTED */
|
|
419
|
-
),
|
|
419
|
+
), A6 = /* @__PURE__ */ d(
|
|
420
420
|
"path",
|
|
421
421
|
{
|
|
422
422
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -426,10 +426,10 @@ const C = (e, t) => {
|
|
|
426
426
|
null,
|
|
427
427
|
-1
|
|
428
428
|
/* HOISTED */
|
|
429
|
-
),
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
],
|
|
429
|
+
), m6 = [
|
|
430
|
+
g6,
|
|
431
|
+
A6
|
|
432
|
+
], _6 = {
|
|
433
433
|
key: 6,
|
|
434
434
|
t: "1686300209288",
|
|
435
435
|
class: "icon",
|
|
@@ -439,7 +439,7 @@ const C = (e, t) => {
|
|
|
439
439
|
"p-id": "8757",
|
|
440
440
|
width: "200",
|
|
441
441
|
height: "200"
|
|
442
|
-
},
|
|
442
|
+
}, y6 = /* @__PURE__ */ d(
|
|
443
443
|
"path",
|
|
444
444
|
{
|
|
445
445
|
d: "M204.8 0h477.866667l273.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 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",
|
|
@@ -449,7 +449,7 @@ const C = (e, t) => {
|
|
|
449
449
|
null,
|
|
450
450
|
-1
|
|
451
451
|
/* HOISTED */
|
|
452
|
-
),
|
|
452
|
+
), w6 = /* @__PURE__ */ d(
|
|
453
453
|
"path",
|
|
454
454
|
{
|
|
455
455
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -460,9 +460,9 @@ const C = (e, t) => {
|
|
|
460
460
|
-1
|
|
461
461
|
/* HOISTED */
|
|
462
462
|
), k6 = [
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
],
|
|
463
|
+
y6,
|
|
464
|
+
w6
|
|
465
|
+
], b6 = {
|
|
466
466
|
key: 7,
|
|
467
467
|
t: "1686300225262",
|
|
468
468
|
class: "icon",
|
|
@@ -472,7 +472,7 @@ const C = (e, t) => {
|
|
|
472
472
|
"p-id": "8912",
|
|
473
473
|
width: "200",
|
|
474
474
|
height: "200"
|
|
475
|
-
},
|
|
475
|
+
}, z6 = /* @__PURE__ */ d(
|
|
476
476
|
"path",
|
|
477
477
|
{
|
|
478
478
|
d: "M204.8 0h477.866667l273.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 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",
|
|
@@ -482,7 +482,7 @@ const C = (e, t) => {
|
|
|
482
482
|
null,
|
|
483
483
|
-1
|
|
484
484
|
/* HOISTED */
|
|
485
|
-
),
|
|
485
|
+
), x6 = /* @__PURE__ */ d(
|
|
486
486
|
"path",
|
|
487
487
|
{
|
|
488
488
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -492,10 +492,10 @@ const C = (e, t) => {
|
|
|
492
492
|
null,
|
|
493
493
|
-1
|
|
494
494
|
/* HOISTED */
|
|
495
|
-
),
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
],
|
|
495
|
+
), F6 = [
|
|
496
|
+
z6,
|
|
497
|
+
x6
|
|
498
|
+
], C6 = {
|
|
499
499
|
key: 8,
|
|
500
500
|
t: "1692251753690",
|
|
501
501
|
class: "icon",
|
|
@@ -685,7 +685,7 @@ const C = (e, t) => {
|
|
|
685
685
|
P6,
|
|
686
686
|
W6,
|
|
687
687
|
N6
|
|
688
|
-
],
|
|
688
|
+
], f3 = /* @__PURE__ */ C({
|
|
689
689
|
__name: "FileIcon",
|
|
690
690
|
props: {
|
|
691
691
|
type: {
|
|
@@ -706,24 +706,24 @@ const C = (e, t) => {
|
|
|
706
706
|
}
|
|
707
707
|
},
|
|
708
708
|
setup(e) {
|
|
709
|
-
const
|
|
710
|
-
return (
|
|
709
|
+
const n = e, o = D(() => n.file ? F(n.file, n.fields) : n.type);
|
|
710
|
+
return (t, a) => o.value === "image" ? (s(), p("svg", Z3, X3)) : o.value === "zip" ? (s(), p("svg", Y3, n6)) : o.value === "ppt" ? (s(), p("svg", o6, l6)) : o.value === "word" ? (s(), p("svg", a6, u6)) : o.value === "pdf" ? (s(), p("svg", d6, h6)) : o.value === "txt" ? (s(), p("svg", f6, m6)) : o.value === "audio" ? (s(), p("svg", _6, k6)) : o.value === "video" ? (s(), p("svg", b6, F6)) : o.value === "excel" ? (s(), p("svg", C6, D6)) : o.value === "exe" ? (s(), p("svg", V6, H6)) : o.value === "json" ? (s(), p("svg", U6, T6)) : (s(), p("svg", j6, Z6));
|
|
711
711
|
}
|
|
712
|
-
}), Y = (e,
|
|
712
|
+
}), Y = (e, n) => {
|
|
713
713
|
const o = e.__vccOpts || e;
|
|
714
|
-
for (const [
|
|
715
|
-
o[
|
|
714
|
+
for (const [t, a] of n)
|
|
715
|
+
o[t] = a;
|
|
716
716
|
return o;
|
|
717
|
-
}, i3 = (e) => e % 1 === 0 ? e.toString() : e.toFixed(2), a3 = (e,
|
|
718
|
-
const
|
|
717
|
+
}, i3 = (e) => e % 1 === 0 ? e.toString() : e.toFixed(2), a3 = (e, n) => n ? n.startsWith("http") ? n : `${e || location.origin}${n}` : "", Q6 = (e) => {
|
|
718
|
+
const n = T("loadUrl"), o = D(() => e.loadUrl || (n == null ? void 0 : n.value)), t = T("uploadUrl"), a = D(() => e.action || e.uploadUrl || (t == null ? void 0 : t.value)), c = T("token"), i = D(() => e.token || (c == null ? void 0 : c.value)), f = T("onlyofficeConfig"), w = D(() => e.onlyofficeConfig || (f == null ? void 0 : f.value)), r = T("userInfo"), A = D(() => e.userInfo || (r == null ? void 0 : r.value));
|
|
719
719
|
return {
|
|
720
720
|
cLoadUrl: o,
|
|
721
|
-
cUploadUrl:
|
|
722
|
-
cToken:
|
|
723
|
-
cOnlyofficeConfig:
|
|
724
|
-
cUserInfo:
|
|
721
|
+
cUploadUrl: a,
|
|
722
|
+
cToken: i,
|
|
723
|
+
cOnlyofficeConfig: w,
|
|
724
|
+
cUserInfo: A
|
|
725
725
|
};
|
|
726
|
-
}, J6 = Q6, K6 = /* @__PURE__ */
|
|
726
|
+
}, J6 = Q6, K6 = /* @__PURE__ */ C({
|
|
727
727
|
__name: "IkPreviewFileDialog",
|
|
728
728
|
props: /* @__PURE__ */ G({
|
|
729
729
|
file: {
|
|
@@ -760,34 +760,34 @@ const C = (e, t) => {
|
|
|
760
760
|
}),
|
|
761
761
|
emits: ["update:show"],
|
|
762
762
|
setup(e) {
|
|
763
|
-
const
|
|
763
|
+
const n = e, o = c3(e, "show"), t = D(() => ({
|
|
764
764
|
name: "name",
|
|
765
765
|
url: "url",
|
|
766
766
|
suffix: "suffix",
|
|
767
767
|
size: "fileSize",
|
|
768
|
-
...
|
|
769
|
-
})),
|
|
768
|
+
...n.field
|
|
769
|
+
})), a = M(null), c = M(null), i = w3({
|
|
770
770
|
image: !1,
|
|
771
771
|
office: !1,
|
|
772
772
|
video: !1
|
|
773
|
-
}),
|
|
774
|
-
var
|
|
773
|
+
}), f = (r) => {
|
|
774
|
+
var A, x, V, $, B, j, P;
|
|
775
775
|
try {
|
|
776
|
-
const k = ((
|
|
777
|
-
if (
|
|
778
|
-
...
|
|
779
|
-
name:
|
|
780
|
-
url: a3(
|
|
781
|
-
},
|
|
782
|
-
|
|
776
|
+
const k = ((A = r == null ? void 0 : r.response) == null ? void 0 : A.data) || r, Z = k[t.value.url] || (k == null ? void 0 : k.id) || k.attachmentId, L = (x = k[t.value.suffix] || k.attachmentSuffix) == null ? void 0 : x.toLowerCase(), Q = k[t.value.name] || (k == null ? void 0 : k.attachmentName) || (k == null ? void 0 : k.originName);
|
|
777
|
+
if (c.value = {
|
|
778
|
+
...r,
|
|
779
|
+
name: r[t.value.name],
|
|
780
|
+
url: a3(n.loadUrl, Z)
|
|
781
|
+
}, r && F(r, t.value) === "image") {
|
|
782
|
+
i.image = !0;
|
|
783
783
|
return;
|
|
784
|
-
} else if ((((
|
|
785
|
-
|
|
786
|
-
...
|
|
784
|
+
} else if ((((V = n.onlyOfficeConfig) == null ? void 0 : V.accept) || n.onlyOfficeAccept).includes(L)) {
|
|
785
|
+
i.office = !0, a.value = {
|
|
786
|
+
...n.onlyOfficeConfig,
|
|
787
787
|
editorConfig: {
|
|
788
|
-
...(($ =
|
|
788
|
+
...(($ = n.onlyOfficeConfig) == null ? void 0 : $.editorConfig) || {},
|
|
789
789
|
customization: {
|
|
790
|
-
...((
|
|
790
|
+
...((j = (B = n.onlyOfficeConfig) == null ? void 0 : B.editorConfig) == null ? void 0 : j.customization) || {},
|
|
791
791
|
review: {
|
|
792
792
|
reviewDisplay: "final"
|
|
793
793
|
}
|
|
@@ -796,9 +796,9 @@ const C = (e, t) => {
|
|
|
796
796
|
document: {
|
|
797
797
|
key: S3(),
|
|
798
798
|
title: Q,
|
|
799
|
-
url: a3(
|
|
799
|
+
url: a3(n.loadUrl, Z),
|
|
800
800
|
fileType: L,
|
|
801
|
-
...((
|
|
801
|
+
...((P = n.onlyOfficeConfig) == null ? void 0 : P.document) || {}
|
|
802
802
|
},
|
|
803
803
|
documentType: N3(L)
|
|
804
804
|
};
|
|
@@ -808,33 +808,33 @@ const C = (e, t) => {
|
|
|
808
808
|
console.info("预览错误: ", k);
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
|
-
k3([o,
|
|
812
|
-
|
|
813
|
-
|
|
811
|
+
k3([o, n.file], ([r, A]) => {
|
|
812
|
+
r && s3(() => {
|
|
813
|
+
f(n.file);
|
|
814
814
|
});
|
|
815
815
|
});
|
|
816
|
-
const
|
|
817
|
-
o.value = !1,
|
|
816
|
+
const w = () => {
|
|
817
|
+
o.value = !1, i.office = !1, i.image = !1, i.video = !1;
|
|
818
818
|
};
|
|
819
|
-
return (
|
|
820
|
-
var
|
|
821
|
-
const
|
|
822
|
-
return o.value ? (
|
|
819
|
+
return (r, A) => {
|
|
820
|
+
var V, $;
|
|
821
|
+
const x = X("el-image-viewer");
|
|
822
|
+
return o.value ? (s(), p(
|
|
823
823
|
U,
|
|
824
824
|
{ key: 0 },
|
|
825
825
|
[
|
|
826
|
-
(
|
|
826
|
+
(V = c.value) != null && V.url && i.image ? (s(), z(x, {
|
|
827
827
|
key: 0,
|
|
828
|
-
onClose:
|
|
829
|
-
|
|
828
|
+
onClose: A[0] || (A[0] = (B) => {
|
|
829
|
+
c.value = null, i.image = !1;
|
|
830
830
|
}),
|
|
831
831
|
ref: "previewImgRef",
|
|
832
|
-
"url-list": [($ =
|
|
833
|
-
}, null, 8, ["url-list"])) :
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
modelValue:
|
|
837
|
-
"onUpdate:modelValue":
|
|
832
|
+
"url-list": [($ = c.value) == null ? void 0 : $.url]
|
|
833
|
+
}, null, 8, ["url-list"])) : b("v-if", !0),
|
|
834
|
+
b(" 文档类 "),
|
|
835
|
+
m(u(ve), {
|
|
836
|
+
modelValue: i.office,
|
|
837
|
+
"onUpdate:modelValue": A[1] || (A[1] = (B) => i.office = B),
|
|
838
838
|
draggable: "",
|
|
839
839
|
"no-footer": "",
|
|
840
840
|
"no-header": "",
|
|
@@ -844,14 +844,14 @@ const C = (e, t) => {
|
|
|
844
844
|
"close-on-click-modal": "",
|
|
845
845
|
"close-on-press-escape": !1,
|
|
846
846
|
"append-to-body": "",
|
|
847
|
-
onClose:
|
|
847
|
+
onClose: w,
|
|
848
848
|
"modal-class": "ik-only-preview-dialog"
|
|
849
849
|
}, {
|
|
850
|
-
default:
|
|
850
|
+
default: _(() => {
|
|
851
851
|
var B;
|
|
852
852
|
return [
|
|
853
|
-
|
|
854
|
-
"config-options":
|
|
853
|
+
m(u(ye), {
|
|
854
|
+
"config-options": a.value,
|
|
855
855
|
"document-server-url": ((B = e.onlyOfficeConfig) == null ? void 0 : B.serverUrl) || e.onlyofficeServer
|
|
856
856
|
}, null, 8, ["config-options", "document-server-url"])
|
|
857
857
|
];
|
|
@@ -862,7 +862,7 @@ const C = (e, t) => {
|
|
|
862
862
|
],
|
|
863
863
|
64
|
|
864
864
|
/* STABLE_FRAGMENT */
|
|
865
|
-
)) :
|
|
865
|
+
)) : b("v-if", !0);
|
|
866
866
|
};
|
|
867
867
|
}
|
|
868
868
|
});
|
|
@@ -877,7 +877,7 @@ const G6 = N(K6), X6 = {
|
|
|
877
877
|
key: 1,
|
|
878
878
|
class: "h-[1em] w-[1em]",
|
|
879
879
|
"aria-hidden": "true"
|
|
880
|
-
}, oe = ["xlink:href"], ie = ["src"], se = /* @__PURE__ */
|
|
880
|
+
}, oe = ["xlink:href"], ie = ["src"], se = /* @__PURE__ */ C({
|
|
881
881
|
name: "IkSvgIcon",
|
|
882
882
|
__name: "index",
|
|
883
883
|
props: {
|
|
@@ -904,83 +904,86 @@ const G6 = N(K6), X6 = {
|
|
|
904
904
|
tableIconType: { default: "icon" }
|
|
905
905
|
},
|
|
906
906
|
setup(e) {
|
|
907
|
-
const
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
}),
|
|
911
|
-
const
|
|
912
|
-
|
|
913
|
-
|
|
907
|
+
const n = e, o = T("iconConfig"), t = D(() => ({
|
|
908
|
+
...(o == null ? void 0 : o.value) || {},
|
|
909
|
+
...n
|
|
910
|
+
})), a = D(() => {
|
|
911
|
+
const { name: i } = t.value;
|
|
912
|
+
return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
|
|
913
|
+
}), c = D(() => {
|
|
914
|
+
const i = [];
|
|
915
|
+
if (t.value.flip)
|
|
916
|
+
switch (t.value.flip) {
|
|
914
917
|
case "horizontal":
|
|
915
|
-
|
|
918
|
+
i.push("rotateY(180deg)");
|
|
916
919
|
break;
|
|
917
920
|
case "vertical":
|
|
918
|
-
|
|
921
|
+
i.push("rotateX(180deg)");
|
|
919
922
|
break;
|
|
920
923
|
case "both":
|
|
921
|
-
|
|
924
|
+
i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
|
|
922
925
|
break;
|
|
923
926
|
}
|
|
924
|
-
t.rotate &&
|
|
925
|
-
const
|
|
926
|
-
...t.color && { color: t.color },
|
|
927
|
-
...t.size && { fontSize: typeof t.size == "number" ? `${t.size}px` : t.size },
|
|
928
|
-
...
|
|
929
|
-
padding: t.showBg || t.bg ? t.padding : 0,
|
|
930
|
-
...t.color &&
|
|
931
|
-
"--ik-color-icon-dark": t.color,
|
|
932
|
-
"--ik-color-icon-light": t.colorLight || D3.setOpacity(t.color, t.opacity)
|
|
927
|
+
t.value.rotate && i.push(`rotate(${t.value.rotate % 360}deg)`);
|
|
928
|
+
const f = {
|
|
929
|
+
...t.value.color && { color: t.value.color },
|
|
930
|
+
...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
|
|
931
|
+
...i.length && { transform: i.join(" ") },
|
|
932
|
+
padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
|
|
933
|
+
...t.value.color && a.value !== "iksig" ? {
|
|
934
|
+
"--ik-color-icon-dark": t.value.color,
|
|
935
|
+
"--ik-color-icon-light": t.value.colorLight || D3.setOpacity(t.value.color, t.value.opacity)
|
|
933
936
|
} : {}
|
|
934
937
|
};
|
|
935
|
-
return t.width && (
|
|
938
|
+
return t.value.width && (f.width = f.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), f;
|
|
936
939
|
});
|
|
937
|
-
return (
|
|
938
|
-
const
|
|
939
|
-
return
|
|
940
|
-
|
|
940
|
+
return (i, f) => {
|
|
941
|
+
const w = X("el-tooltip"), r = X("el-button");
|
|
942
|
+
return t.value.tableIconType === "icon" ? (s(), p("span", X6, [
|
|
943
|
+
t.value.notip || !t.value.title ? (s(), p(
|
|
941
944
|
"i",
|
|
942
945
|
{
|
|
943
946
|
key: 0,
|
|
944
947
|
class: R(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
945
|
-
[
|
|
946
|
-
"show-bg":
|
|
947
|
-
default:
|
|
948
|
-
small:
|
|
949
|
-
big:
|
|
950
|
-
warning:
|
|
951
|
-
primary:
|
|
952
|
-
success:
|
|
953
|
-
error:
|
|
954
|
-
active:
|
|
955
|
-
disabled:
|
|
948
|
+
[i.name]: a.value === "unocss",
|
|
949
|
+
"show-bg": t.value.showBg || t.value.bg,
|
|
950
|
+
default: t.value.size === "default",
|
|
951
|
+
small: t.value.size === "small",
|
|
952
|
+
big: t.value.size === "big",
|
|
953
|
+
warning: t.value.warning || t.value.type === "warning",
|
|
954
|
+
primary: t.value.primary || t.value.type === "primary",
|
|
955
|
+
success: i.success || t.value.type === "success",
|
|
956
|
+
error: t.value.error || t.value.type === "error",
|
|
957
|
+
active: t.value.active,
|
|
958
|
+
disabled: t.value.disabled
|
|
956
959
|
}]),
|
|
957
960
|
style: O(c.value)
|
|
958
961
|
},
|
|
959
962
|
[
|
|
960
|
-
|
|
961
|
-
|
|
963
|
+
b(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
964
|
+
a.value === "iksig" ? (s(), p(
|
|
962
965
|
"i",
|
|
963
966
|
{
|
|
964
967
|
key: 0,
|
|
965
|
-
class: R(`iksig ${
|
|
968
|
+
class: R(`iksig ${t.value.name}`),
|
|
966
969
|
style: O(c.value)
|
|
967
970
|
},
|
|
968
971
|
null,
|
|
969
972
|
6
|
|
970
973
|
/* CLASS, STYLE */
|
|
971
|
-
)) :
|
|
974
|
+
)) : a.value === "svg" ? (s(), p("svg", Y6, [
|
|
972
975
|
d("use", {
|
|
973
|
-
"xlink:href": `#${
|
|
976
|
+
"xlink:href": `#${t.value.name}`
|
|
974
977
|
}, null, 8, ee)
|
|
975
|
-
])) :
|
|
978
|
+
])) : a.value === "img" ? (s(), p("img", {
|
|
976
979
|
key: 2,
|
|
977
|
-
src:
|
|
980
|
+
src: t.value.name,
|
|
978
981
|
class: "h-[1em] w-[1em]"
|
|
979
|
-
}, null, 8, te)) : (
|
|
982
|
+
}, null, 8, te)) : (s(), p(
|
|
980
983
|
"i",
|
|
981
984
|
{
|
|
982
985
|
key: 3,
|
|
983
|
-
class: R(
|
|
986
|
+
class: R(t.value.name),
|
|
984
987
|
style: O(c.value)
|
|
985
988
|
},
|
|
986
989
|
null,
|
|
@@ -990,53 +993,53 @@ const G6 = N(K6), X6 = {
|
|
|
990
993
|
],
|
|
991
994
|
6
|
|
992
995
|
/* CLASS, STYLE */
|
|
993
|
-
)) : (
|
|
996
|
+
)) : (s(), z(w, {
|
|
994
997
|
key: 1,
|
|
995
|
-
content:
|
|
998
|
+
content: t.value.title,
|
|
996
999
|
placement: "top"
|
|
997
1000
|
}, {
|
|
998
|
-
default:
|
|
1001
|
+
default: _(() => [
|
|
999
1002
|
d(
|
|
1000
1003
|
"i",
|
|
1001
1004
|
{
|
|
1002
1005
|
class: R(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1003
|
-
[
|
|
1004
|
-
"show-bg":
|
|
1005
|
-
default:
|
|
1006
|
-
small:
|
|
1007
|
-
big:
|
|
1008
|
-
warning:
|
|
1009
|
-
primary:
|
|
1010
|
-
success:
|
|
1011
|
-
error:
|
|
1012
|
-
active:
|
|
1006
|
+
[i.name]: a.value === "unocss",
|
|
1007
|
+
"show-bg": t.value.showBg || t.value.bg,
|
|
1008
|
+
default: t.value.size === "default",
|
|
1009
|
+
small: t.value.size === "small",
|
|
1010
|
+
big: t.value.size === "big",
|
|
1011
|
+
warning: t.value.warning || t.value.type === "warning",
|
|
1012
|
+
primary: i.primary || t.value.type === "primary",
|
|
1013
|
+
success: i.success || t.value.type === "success",
|
|
1014
|
+
error: t.value.error || t.value.type === "error",
|
|
1015
|
+
active: t.value.active
|
|
1013
1016
|
}]),
|
|
1014
1017
|
style: O(c.value)
|
|
1015
1018
|
},
|
|
1016
1019
|
[
|
|
1017
|
-
|
|
1020
|
+
a.value === "iksig" ? (s(), p(
|
|
1018
1021
|
"i",
|
|
1019
1022
|
{
|
|
1020
1023
|
key: 0,
|
|
1021
|
-
class: R(`iksig ${
|
|
1024
|
+
class: R(`iksig ${t.value.name}`),
|
|
1022
1025
|
style: O(c.value)
|
|
1023
1026
|
},
|
|
1024
1027
|
null,
|
|
1025
1028
|
6
|
|
1026
1029
|
/* CLASS, STYLE */
|
|
1027
|
-
)) :
|
|
1030
|
+
)) : a.value === "svg" ? (s(), p("svg", ne, [
|
|
1028
1031
|
d("use", {
|
|
1029
|
-
"xlink:href": `#${
|
|
1032
|
+
"xlink:href": `#${t.value.name}`
|
|
1030
1033
|
}, null, 8, oe)
|
|
1031
|
-
])) :
|
|
1034
|
+
])) : a.value === "img" ? (s(), p("img", {
|
|
1032
1035
|
key: 2,
|
|
1033
|
-
src:
|
|
1036
|
+
src: t.value.name,
|
|
1034
1037
|
class: "h-[1em] w-[1em]"
|
|
1035
|
-
}, null, 8, ie)) : (
|
|
1038
|
+
}, null, 8, ie)) : (s(), p(
|
|
1036
1039
|
"i",
|
|
1037
1040
|
{
|
|
1038
1041
|
key: 3,
|
|
1039
|
-
class: R(
|
|
1042
|
+
class: R(t.value.name),
|
|
1040
1043
|
style: O(c.value)
|
|
1041
1044
|
},
|
|
1042
1045
|
null,
|
|
@@ -1051,13 +1054,13 @@ const G6 = N(K6), X6 = {
|
|
|
1051
1054
|
_: 1
|
|
1052
1055
|
/* STABLE */
|
|
1053
1056
|
}, 8, ["content"]))
|
|
1054
|
-
])) : (
|
|
1057
|
+
])) : (s(), z(r, {
|
|
1055
1058
|
key: 1,
|
|
1056
|
-
type: ["warning", "error"].includes(
|
|
1059
|
+
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
1057
1060
|
}, {
|
|
1058
|
-
default:
|
|
1061
|
+
default: _(() => [
|
|
1059
1062
|
q(
|
|
1060
|
-
I(
|
|
1063
|
+
I(t.value.title),
|
|
1061
1064
|
1
|
|
1062
1065
|
/* TEXT */
|
|
1063
1066
|
)
|
|
@@ -1068,10 +1071,10 @@ const G6 = N(K6), X6 = {
|
|
|
1068
1071
|
};
|
|
1069
1072
|
}
|
|
1070
1073
|
});
|
|
1071
|
-
const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-
|
|
1074
|
+
const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-1be337e4"]]), S = N(le), ae = {
|
|
1072
1075
|
key: 0,
|
|
1073
1076
|
class: "exit-main-page-maximize"
|
|
1074
|
-
}, ce = /* @__PURE__ */
|
|
1077
|
+
}, ce = /* @__PURE__ */ C({
|
|
1075
1078
|
__name: "CloseIcon",
|
|
1076
1079
|
props: {
|
|
1077
1080
|
showBg: {
|
|
@@ -1084,15 +1087,15 @@ const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-7d95dbf5"]]), S = N(le),
|
|
|
1084
1087
|
}
|
|
1085
1088
|
},
|
|
1086
1089
|
setup(e) {
|
|
1087
|
-
return (
|
|
1088
|
-
e.showBg && e.fullscreen ? (
|
|
1089
|
-
|
|
1090
|
+
return (n, o) => (s(), p("div", null, [
|
|
1091
|
+
e.showBg && e.fullscreen ? (s(), p("div", ae, [
|
|
1092
|
+
m(u(S), {
|
|
1090
1093
|
name: "iksvg_guanbidanchuang",
|
|
1091
1094
|
title: "关闭",
|
|
1092
1095
|
size: 20,
|
|
1093
1096
|
error: ""
|
|
1094
1097
|
})
|
|
1095
|
-
])) : (
|
|
1098
|
+
])) : (s(), z(u(S), {
|
|
1096
1099
|
key: 1,
|
|
1097
1100
|
error: "",
|
|
1098
1101
|
name: "iksvg_guanbidanchuang",
|
|
@@ -1102,7 +1105,7 @@ const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-7d95dbf5"]]), S = N(le),
|
|
|
1102
1105
|
]));
|
|
1103
1106
|
}
|
|
1104
1107
|
});
|
|
1105
|
-
const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]),
|
|
1108
|
+
const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]), ue = { class: "base-header" }, de = /* @__PURE__ */ C({
|
|
1106
1109
|
__name: "IkBaseDialog",
|
|
1107
1110
|
props: /* @__PURE__ */ G({
|
|
1108
1111
|
title: { default: "" },
|
|
@@ -1123,64 +1126,64 @@ const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]), de = { cla
|
|
|
1123
1126
|
}),
|
|
1124
1127
|
emits: ["update:modelValue"],
|
|
1125
1128
|
setup(e) {
|
|
1126
|
-
const
|
|
1127
|
-
|
|
1128
|
-
},
|
|
1129
|
+
const n = e, o = c3(e, "modelValue"), t = M(n.fullscreen), a = () => {
|
|
1130
|
+
t.value = !t.value;
|
|
1131
|
+
}, c = C({
|
|
1129
1132
|
setup() {
|
|
1130
|
-
return () =>
|
|
1131
|
-
showBg:
|
|
1132
|
-
fullscreen:
|
|
1133
|
+
return () => b3(re, {
|
|
1134
|
+
showBg: n.showCloseBg,
|
|
1135
|
+
fullscreen: n.fullscreen
|
|
1133
1136
|
});
|
|
1134
1137
|
}
|
|
1135
1138
|
});
|
|
1136
|
-
return (
|
|
1137
|
-
const
|
|
1138
|
-
return
|
|
1139
|
+
return (i, f) => {
|
|
1140
|
+
const w = X("el-dialog");
|
|
1141
|
+
return s(), z(w, l3({
|
|
1139
1142
|
modelValue: o.value,
|
|
1140
|
-
"onUpdate:modelValue":
|
|
1141
|
-
},
|
|
1142
|
-
"close-icon":
|
|
1143
|
-
class: `ik-base-dialog ${
|
|
1144
|
-
fullscreen:
|
|
1143
|
+
"onUpdate:modelValue": f[0] || (f[0] = (r) => o.value = r)
|
|
1144
|
+
}, i.$attrs, {
|
|
1145
|
+
"close-icon": u(c),
|
|
1146
|
+
class: `ik-base-dialog ${i.noHeader ? "no-header" : ""} ${i.noFooter ? "no-footer" : ""}`,
|
|
1147
|
+
fullscreen: t.value,
|
|
1145
1148
|
"modal-class": "baseDialog"
|
|
1146
|
-
}),
|
|
1147
|
-
icon:
|
|
1148
|
-
E(
|
|
1149
|
+
}), A3({
|
|
1150
|
+
icon: _(() => [
|
|
1151
|
+
E(i.$slots, "title", {}, () => [
|
|
1149
1152
|
q(
|
|
1150
|
-
I(
|
|
1153
|
+
I(i.title),
|
|
1151
1154
|
1
|
|
1152
1155
|
/* TEXT */
|
|
1153
1156
|
)
|
|
1154
1157
|
])
|
|
1155
1158
|
]),
|
|
1156
|
-
header:
|
|
1157
|
-
d("div",
|
|
1158
|
-
E(
|
|
1159
|
+
header: _(() => [
|
|
1160
|
+
d("div", ue, [
|
|
1161
|
+
E(i.$slots, "header", {}, () => [
|
|
1159
1162
|
q(
|
|
1160
|
-
I(
|
|
1163
|
+
I(i.title),
|
|
1161
1164
|
1
|
|
1162
1165
|
/* TEXT */
|
|
1163
1166
|
)
|
|
1164
1167
|
])
|
|
1165
1168
|
]),
|
|
1166
|
-
|
|
1169
|
+
i.$attrs.showClose ? (s(), z(u(S), {
|
|
1167
1170
|
key: 0,
|
|
1168
|
-
onClick:
|
|
1169
|
-
name:
|
|
1171
|
+
onClick: a,
|
|
1172
|
+
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
1170
1173
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
1171
|
-
title:
|
|
1172
|
-
}, null, 8, ["name", "title"])) :
|
|
1174
|
+
title: t.value ? "退出全屏" : "全屏"
|
|
1175
|
+
}, null, 8, ["name", "title"])) : b("v-if", !0)
|
|
1173
1176
|
]),
|
|
1174
|
-
default:
|
|
1175
|
-
E(
|
|
1177
|
+
default: _(() => [
|
|
1178
|
+
E(i.$slots, "default")
|
|
1176
1179
|
]),
|
|
1177
1180
|
_: 2
|
|
1178
1181
|
/* DYNAMIC */
|
|
1179
1182
|
}, [
|
|
1180
|
-
|
|
1183
|
+
i.$slots.footer ? {
|
|
1181
1184
|
name: "footer",
|
|
1182
|
-
fn:
|
|
1183
|
-
E(
|
|
1185
|
+
fn: _(() => [
|
|
1186
|
+
E(i.$slots, "footer")
|
|
1184
1187
|
]),
|
|
1185
1188
|
key: "0"
|
|
1186
1189
|
} : void 0
|
|
@@ -1188,135 +1191,135 @@ const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]), de = { cla
|
|
|
1188
1191
|
};
|
|
1189
1192
|
}
|
|
1190
1193
|
});
|
|
1191
|
-
const
|
|
1192
|
-
function
|
|
1193
|
-
function
|
|
1194
|
-
return
|
|
1195
|
-
|
|
1194
|
+
const ve = N(de);
|
|
1195
|
+
function pe(e, n, o, t) {
|
|
1196
|
+
function a(c) {
|
|
1197
|
+
return c instanceof o ? c : new o(function(i) {
|
|
1198
|
+
i(c);
|
|
1196
1199
|
});
|
|
1197
1200
|
}
|
|
1198
|
-
return new (o || (o = Promise))(function(
|
|
1199
|
-
function
|
|
1201
|
+
return new (o || (o = Promise))(function(c, i) {
|
|
1202
|
+
function f(A) {
|
|
1200
1203
|
try {
|
|
1201
|
-
|
|
1202
|
-
} catch (
|
|
1203
|
-
|
|
1204
|
+
r(t.next(A));
|
|
1205
|
+
} catch (x) {
|
|
1206
|
+
i(x);
|
|
1204
1207
|
}
|
|
1205
1208
|
}
|
|
1206
|
-
function
|
|
1209
|
+
function w(A) {
|
|
1207
1210
|
try {
|
|
1208
|
-
|
|
1209
|
-
} catch (
|
|
1210
|
-
|
|
1211
|
+
r(t.throw(A));
|
|
1212
|
+
} catch (x) {
|
|
1213
|
+
i(x);
|
|
1211
1214
|
}
|
|
1212
1215
|
}
|
|
1213
|
-
function
|
|
1214
|
-
|
|
1216
|
+
function r(A) {
|
|
1217
|
+
A.done ? c(A.value) : a(A.value).then(f, w);
|
|
1215
1218
|
}
|
|
1216
|
-
|
|
1219
|
+
r((t = t.apply(e, n || [])).next());
|
|
1217
1220
|
});
|
|
1218
1221
|
}
|
|
1219
|
-
function
|
|
1222
|
+
function he(e, n) {
|
|
1220
1223
|
var o = { label: 0, sent: function() {
|
|
1221
|
-
if (
|
|
1222
|
-
throw
|
|
1223
|
-
return
|
|
1224
|
-
}, trys: [], ops: [] },
|
|
1225
|
-
return
|
|
1224
|
+
if (c[0] & 1)
|
|
1225
|
+
throw c[1];
|
|
1226
|
+
return c[1];
|
|
1227
|
+
}, trys: [], ops: [] }, t, a, c, i;
|
|
1228
|
+
return i = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
|
|
1226
1229
|
return this;
|
|
1227
|
-
}),
|
|
1228
|
-
function
|
|
1229
|
-
return function(
|
|
1230
|
-
return
|
|
1230
|
+
}), i;
|
|
1231
|
+
function f(r) {
|
|
1232
|
+
return function(A) {
|
|
1233
|
+
return w([r, A]);
|
|
1231
1234
|
};
|
|
1232
1235
|
}
|
|
1233
|
-
function
|
|
1234
|
-
if (
|
|
1236
|
+
function w(r) {
|
|
1237
|
+
if (t)
|
|
1235
1238
|
throw new TypeError("Generator is already executing.");
|
|
1236
|
-
for (;
|
|
1239
|
+
for (; i && (i = 0, r[0] && (o = 0)), o; )
|
|
1237
1240
|
try {
|
|
1238
|
-
if (
|
|
1239
|
-
return
|
|
1240
|
-
switch (
|
|
1241
|
+
if (t = 1, a && (c = r[0] & 2 ? a.return : r[0] ? a.throw || ((c = a.return) && c.call(a), 0) : a.next) && !(c = c.call(a, r[1])).done)
|
|
1242
|
+
return c;
|
|
1243
|
+
switch (a = 0, c && (r = [r[0] & 2, c.value]), r[0]) {
|
|
1241
1244
|
case 0:
|
|
1242
1245
|
case 1:
|
|
1243
|
-
|
|
1246
|
+
c = r;
|
|
1244
1247
|
break;
|
|
1245
1248
|
case 4:
|
|
1246
|
-
return o.label++, { value:
|
|
1249
|
+
return o.label++, { value: r[1], done: !1 };
|
|
1247
1250
|
case 5:
|
|
1248
|
-
o.label++,
|
|
1251
|
+
o.label++, a = r[1], r = [0];
|
|
1249
1252
|
continue;
|
|
1250
1253
|
case 7:
|
|
1251
|
-
|
|
1254
|
+
r = o.ops.pop(), o.trys.pop();
|
|
1252
1255
|
continue;
|
|
1253
1256
|
default:
|
|
1254
|
-
if (
|
|
1257
|
+
if (c = o.trys, !(c = c.length > 0 && c[c.length - 1]) && (r[0] === 6 || r[0] === 2)) {
|
|
1255
1258
|
o = 0;
|
|
1256
1259
|
continue;
|
|
1257
1260
|
}
|
|
1258
|
-
if (
|
|
1259
|
-
o.label =
|
|
1261
|
+
if (r[0] === 3 && (!c || r[1] > c[0] && r[1] < c[3])) {
|
|
1262
|
+
o.label = r[1];
|
|
1260
1263
|
break;
|
|
1261
1264
|
}
|
|
1262
|
-
if (
|
|
1263
|
-
o.label =
|
|
1265
|
+
if (r[0] === 6 && o.label < c[1]) {
|
|
1266
|
+
o.label = c[1], c = r;
|
|
1264
1267
|
break;
|
|
1265
1268
|
}
|
|
1266
|
-
if (
|
|
1267
|
-
o.label =
|
|
1269
|
+
if (c && o.label < c[2]) {
|
|
1270
|
+
o.label = c[2], o.ops.push(r);
|
|
1268
1271
|
break;
|
|
1269
1272
|
}
|
|
1270
|
-
|
|
1273
|
+
c[2] && o.ops.pop(), o.trys.pop();
|
|
1271
1274
|
continue;
|
|
1272
1275
|
}
|
|
1273
|
-
|
|
1274
|
-
} catch (
|
|
1275
|
-
|
|
1276
|
+
r = n.call(e, o);
|
|
1277
|
+
} catch (A) {
|
|
1278
|
+
r = [6, A], a = 0;
|
|
1276
1279
|
} finally {
|
|
1277
|
-
|
|
1280
|
+
t = c = 0;
|
|
1278
1281
|
}
|
|
1279
|
-
if (
|
|
1280
|
-
throw
|
|
1281
|
-
return { value:
|
|
1282
|
+
if (r[0] & 5)
|
|
1283
|
+
throw r[1];
|
|
1284
|
+
return { value: r[0] ? r[1] : void 0, done: !0 };
|
|
1282
1285
|
}
|
|
1283
1286
|
}
|
|
1284
|
-
var
|
|
1285
|
-
return
|
|
1286
|
-
return
|
|
1287
|
-
return [2, new Promise(function(
|
|
1287
|
+
var fe = function(e, n) {
|
|
1288
|
+
return pe(void 0, void 0, void 0, function() {
|
|
1289
|
+
return he(this, function(o) {
|
|
1290
|
+
return [2, new Promise(function(t, a) {
|
|
1288
1291
|
try {
|
|
1289
1292
|
if (window.DocsAPI)
|
|
1290
|
-
return
|
|
1291
|
-
var
|
|
1292
|
-
if (
|
|
1293
|
-
var
|
|
1294
|
-
var
|
|
1295
|
-
if (!
|
|
1296
|
-
if (clearInterval(
|
|
1297
|
-
return
|
|
1298
|
-
var
|
|
1299
|
-
|
|
1293
|
+
return t(null);
|
|
1294
|
+
var c = document.getElementById(n);
|
|
1295
|
+
if (c)
|
|
1296
|
+
var i = setInterval(function() {
|
|
1297
|
+
var w = c.getAttribute("loading");
|
|
1298
|
+
if (!w) {
|
|
1299
|
+
if (clearInterval(i), window.DocsAPI)
|
|
1300
|
+
return t(null);
|
|
1301
|
+
var r = g3(n, e, t, a);
|
|
1302
|
+
c.remove(), document.body.appendChild(r);
|
|
1300
1303
|
}
|
|
1301
1304
|
}, 500);
|
|
1302
1305
|
else {
|
|
1303
|
-
var
|
|
1304
|
-
document.body.appendChild(
|
|
1306
|
+
var f = g3(n, e, t, a);
|
|
1307
|
+
document.body.appendChild(f);
|
|
1305
1308
|
}
|
|
1306
|
-
} catch (
|
|
1307
|
-
console.error(
|
|
1309
|
+
} catch (w) {
|
|
1310
|
+
console.error(w);
|
|
1308
1311
|
}
|
|
1309
1312
|
})];
|
|
1310
1313
|
});
|
|
1311
1314
|
});
|
|
1312
|
-
},
|
|
1313
|
-
var
|
|
1314
|
-
return
|
|
1315
|
-
|
|
1316
|
-
},
|
|
1317
|
-
|
|
1318
|
-
},
|
|
1319
|
-
}, r3 =
|
|
1315
|
+
}, g3 = function(e, n, o, t) {
|
|
1316
|
+
var a = document.createElement("script");
|
|
1317
|
+
return a.id = e, a.type = "text/javascript", a.src = n, a.async = !0, a.onload = function() {
|
|
1318
|
+
a.removeAttribute("loading"), o(null);
|
|
1319
|
+
}, a.onerror = function(c) {
|
|
1320
|
+
a.removeAttribute("loading"), t(c);
|
|
1321
|
+
}, a.setAttribute("loading", ""), a;
|
|
1322
|
+
}, r3 = C({
|
|
1320
1323
|
name: "DocumentEditor",
|
|
1321
1324
|
props: {
|
|
1322
1325
|
id: {
|
|
@@ -1368,59 +1371,59 @@ var ve = function(e, t) {
|
|
|
1368
1371
|
events_onRequestSelectDocument: Function
|
|
1369
1372
|
},
|
|
1370
1373
|
mounted: function() {
|
|
1371
|
-
var e = this,
|
|
1372
|
-
|
|
1373
|
-
var o = "".concat(
|
|
1374
|
-
|
|
1374
|
+
var e = this, n = this.documentServerUrl;
|
|
1375
|
+
n.endsWith("/") || (n += "/");
|
|
1376
|
+
var o = "".concat(n, "web-apps/apps/api/documents/api.js");
|
|
1377
|
+
fe(o, "onlyoffice-api-script").then(function() {
|
|
1375
1378
|
return e.onLoad();
|
|
1376
1379
|
}).catch(function() {
|
|
1377
1380
|
e.onError(-2);
|
|
1378
1381
|
});
|
|
1379
1382
|
},
|
|
1380
1383
|
unmounted: function() {
|
|
1381
|
-
var e,
|
|
1382
|
-
!((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[
|
|
1384
|
+
var e, n = this.id || "";
|
|
1385
|
+
!((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0);
|
|
1383
1386
|
},
|
|
1384
1387
|
watch: {
|
|
1385
1388
|
config: {
|
|
1386
|
-
handler: function(e,
|
|
1389
|
+
handler: function(e, n) {
|
|
1387
1390
|
this.onChangeProps();
|
|
1388
1391
|
},
|
|
1389
1392
|
deep: !0
|
|
1390
1393
|
},
|
|
1391
|
-
document_fileType: function(e,
|
|
1394
|
+
document_fileType: function(e, n) {
|
|
1392
1395
|
this.onChangeProps();
|
|
1393
1396
|
},
|
|
1394
|
-
document_title: function(e,
|
|
1397
|
+
document_title: function(e, n) {
|
|
1395
1398
|
this.onChangeProps();
|
|
1396
1399
|
},
|
|
1397
|
-
documentType: function(e,
|
|
1400
|
+
documentType: function(e, n) {
|
|
1398
1401
|
this.onChangeProps();
|
|
1399
1402
|
},
|
|
1400
|
-
editorConfig_lang: function(e,
|
|
1403
|
+
editorConfig_lang: function(e, n) {
|
|
1401
1404
|
this.onChangeProps();
|
|
1402
1405
|
},
|
|
1403
|
-
height: function(e,
|
|
1406
|
+
height: function(e, n) {
|
|
1404
1407
|
this.onChangeProps();
|
|
1405
1408
|
},
|
|
1406
|
-
type: function(e,
|
|
1409
|
+
type: function(e, n) {
|
|
1407
1410
|
this.onChangeProps();
|
|
1408
1411
|
},
|
|
1409
|
-
width: function(e,
|
|
1412
|
+
width: function(e, n) {
|
|
1410
1413
|
this.onChangeProps();
|
|
1411
1414
|
}
|
|
1412
1415
|
},
|
|
1413
1416
|
methods: {
|
|
1414
1417
|
onLoad: function() {
|
|
1415
|
-
var e,
|
|
1418
|
+
var e, n;
|
|
1416
1419
|
try {
|
|
1417
1420
|
var o = this.id || "";
|
|
1418
1421
|
if (window.DocsAPI || this.onError(-3), !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[o]) {
|
|
1419
1422
|
console.log("Skip loading. Instance already exists", o);
|
|
1420
1423
|
return;
|
|
1421
1424
|
}
|
|
1422
|
-
!((
|
|
1423
|
-
var
|
|
1425
|
+
!((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances || (window.DocEditor = { instances: {} });
|
|
1426
|
+
var t = Object.assign({
|
|
1424
1427
|
document: {
|
|
1425
1428
|
fileType: this.document_fileType,
|
|
1426
1429
|
title: this.document_title
|
|
@@ -1455,43 +1458,43 @@ var ve = function(e, t) {
|
|
|
1455
1458
|
height: this.height,
|
|
1456
1459
|
type: this.type,
|
|
1457
1460
|
width: this.width
|
|
1458
|
-
}, this.config || {}),
|
|
1459
|
-
window.DocEditor.instances[o] =
|
|
1460
|
-
} catch (
|
|
1461
|
-
console.error(
|
|
1461
|
+
}, this.config || {}), a = window.DocsAPI.DocEditor(o, t);
|
|
1462
|
+
window.DocEditor.instances[o] = a;
|
|
1463
|
+
} catch (c) {
|
|
1464
|
+
console.error(c), this.onError(-1);
|
|
1462
1465
|
}
|
|
1463
1466
|
},
|
|
1464
1467
|
onError: function(e) {
|
|
1465
|
-
var
|
|
1468
|
+
var n;
|
|
1466
1469
|
switch (e) {
|
|
1467
1470
|
case -2:
|
|
1468
|
-
|
|
1471
|
+
n = "Error load DocsAPI from " + this.documentServerUrl;
|
|
1469
1472
|
break;
|
|
1470
1473
|
case -3:
|
|
1471
|
-
|
|
1474
|
+
n = "DocsAPI is not defined";
|
|
1472
1475
|
break;
|
|
1473
1476
|
default:
|
|
1474
|
-
|
|
1477
|
+
n = "Unknown error loading component", e = -1;
|
|
1475
1478
|
}
|
|
1476
|
-
typeof this.onLoadComponentError > "u" ? console.error(
|
|
1479
|
+
typeof this.onLoadComponentError > "u" ? console.error(n) : this.onLoadComponentError(e, n);
|
|
1477
1480
|
},
|
|
1478
1481
|
onAppReady: function() {
|
|
1479
1482
|
var e = this.id || "";
|
|
1480
1483
|
this.events_onAppReady(window.DocEditor.instances[e]);
|
|
1481
1484
|
},
|
|
1482
1485
|
onChangeProps: function() {
|
|
1483
|
-
var e,
|
|
1484
|
-
!((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[
|
|
1486
|
+
var e, n = this.id || "";
|
|
1487
|
+
!((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
|
|
1485
1488
|
}
|
|
1486
1489
|
}
|
|
1487
1490
|
});
|
|
1488
|
-
const
|
|
1489
|
-
function
|
|
1490
|
-
return
|
|
1491
|
+
const ge = ["id"];
|
|
1492
|
+
function Ae(e, n, o, t, a, c) {
|
|
1493
|
+
return s(), p("div", { id: e.id }, null, 8, ge);
|
|
1491
1494
|
}
|
|
1492
|
-
r3.render =
|
|
1495
|
+
r3.render = Ae;
|
|
1493
1496
|
r3.__file = "src/components/DocumentEditor.vue";
|
|
1494
|
-
const
|
|
1497
|
+
const me = /* @__PURE__ */ C({
|
|
1495
1498
|
__name: "IkOnlyOffice",
|
|
1496
1499
|
props: {
|
|
1497
1500
|
// 文件服务器的服务的地址
|
|
@@ -1512,26 +1515,26 @@ const Ae = /* @__PURE__ */ x({
|
|
|
1512
1515
|
}
|
|
1513
1516
|
},
|
|
1514
1517
|
setup(e) {
|
|
1515
|
-
const
|
|
1518
|
+
const n = e, o = M({
|
|
1516
1519
|
width: "100%",
|
|
1517
1520
|
height: "100%",
|
|
1518
|
-
...
|
|
1519
|
-
...
|
|
1520
|
-
}),
|
|
1521
|
-
console.info("文档加载完成",
|
|
1521
|
+
...n.configOptions || {},
|
|
1522
|
+
...n.configOptions
|
|
1523
|
+
}), t = () => {
|
|
1524
|
+
console.info("文档加载完成", n.configOptions);
|
|
1522
1525
|
};
|
|
1523
|
-
return (
|
|
1526
|
+
return (a, c) => (s(), p(
|
|
1524
1527
|
"div",
|
|
1525
1528
|
{
|
|
1526
|
-
style: O({ height:
|
|
1529
|
+
style: O({ height: n.officeHeight })
|
|
1527
1530
|
},
|
|
1528
1531
|
[
|
|
1529
|
-
|
|
1532
|
+
m(u(r3), {
|
|
1530
1533
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1531
1534
|
ref: "editorRef",
|
|
1532
1535
|
"document-server-url": e.documentServerUrl,
|
|
1533
1536
|
config: o.value,
|
|
1534
|
-
events_onDocumentReady:
|
|
1537
|
+
events_onDocumentReady: t
|
|
1535
1538
|
}, null, 8, ["id", "document-server-url", "config"])
|
|
1536
1539
|
],
|
|
1537
1540
|
4
|
|
@@ -1539,10 +1542,10 @@ const Ae = /* @__PURE__ */ x({
|
|
|
1539
1542
|
));
|
|
1540
1543
|
}
|
|
1541
1544
|
});
|
|
1542
|
-
const
|
|
1545
|
+
const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e), we = (e) => (C3("data-v-cbfa5eb9"), e = e(), I3(), e), ke = { class: "ik-flie-list" }, be = { class: "name" }, ze = { key: 1 }, xe = ["src"], Fe = { class: "file-icon" }, Ce = { class: "file-name-loading" }, Ie = { class: "file-name" }, Be = { key: 0 }, Se = {
|
|
1543
1546
|
key: 0,
|
|
1544
1547
|
class: "file-size"
|
|
1545
|
-
}, De = { class: "name" }, Ve = { class: "file-name-loading" }, $e = { class: "file-name" }, Re = { class: "file-size" }, Me = { class: "operate-btn" }, Ee = { class: "card" }, He = { class: "title" }, Ue = /* @__PURE__ */
|
|
1548
|
+
}, De = { class: "name" }, Ve = { class: "file-name-loading" }, $e = { class: "file-name" }, Re = { class: "file-size" }, Me = { class: "operate-btn" }, Ee = { class: "card" }, He = { class: "title" }, Ue = /* @__PURE__ */ we(() => /* @__PURE__ */ d(
|
|
1546
1549
|
"img",
|
|
1547
1550
|
{
|
|
1548
1551
|
src: $3,
|
|
@@ -1554,7 +1557,7 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
1554
1557
|
)), Oe = { class: "ik-flie-list" }, qe = { class: "name" }, Le = { key: 1 }, Te = ["src"], je = { class: "file-icon" }, Pe = { class: "file-name-loading" }, We = { class: "file-name" }, Ne = { key: 0 }, Ze = {
|
|
1555
1558
|
key: 0,
|
|
1556
1559
|
class: "file-size"
|
|
1557
|
-
}, Qe = { key: 0 }, Je = /* @__PURE__ */
|
|
1560
|
+
}, Qe = { key: 0 }, Je = /* @__PURE__ */ C({
|
|
1558
1561
|
__name: "index",
|
|
1559
1562
|
props: /* @__PURE__ */ G({
|
|
1560
1563
|
// 显示图标
|
|
@@ -1697,8 +1700,8 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
1697
1700
|
modelModifiers: {}
|
|
1698
1701
|
}),
|
|
1699
1702
|
emits: /* @__PURE__ */ G(["delete", "exceed", "success", "error", "outSize"], ["update:modelValue"]),
|
|
1700
|
-
setup(e, { emit:
|
|
1701
|
-
const o = e,
|
|
1703
|
+
setup(e, { emit: n }) {
|
|
1704
|
+
const o = e, t = n, a = c3(e, "modelValue"), i = {
|
|
1702
1705
|
...{
|
|
1703
1706
|
name: "name",
|
|
1704
1707
|
url: "url",
|
|
@@ -1706,111 +1709,111 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
1706
1709
|
size: "size"
|
|
1707
1710
|
},
|
|
1708
1711
|
...o.defaultFileds
|
|
1709
|
-
}, { cLoadUrl:
|
|
1710
|
-
const
|
|
1711
|
-
return
|
|
1712
|
-
message: `上传文件大小(${
|
|
1712
|
+
}, { cLoadUrl: f, cUploadUrl: w, cOnlyofficeConfig: r } = J6(o), A = D(() => o.size), x = M(null), V = M([]), $ = M({}), B = M(!1), j = (v) => {
|
|
1713
|
+
const h = v.size / 1024 / 1024;
|
|
1714
|
+
return h < A.value ? !0 : (t("outSize"), o3({
|
|
1715
|
+
message: `上传文件大小(${h.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,
|
|
1713
1716
|
type: "warning",
|
|
1714
1717
|
showClose: !0,
|
|
1715
1718
|
duration: 5e3
|
|
1716
1719
|
}), !1);
|
|
1717
|
-
},
|
|
1718
|
-
var
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
}), o.accept !== "*" && !o.accept.split(",").includes((
|
|
1722
|
-
message: `不允许的上传文件格式(${
|
|
1720
|
+
}, P = (v, h) => {
|
|
1721
|
+
var g;
|
|
1722
|
+
v.size / 1024 / 1024 < A.value || s3(() => {
|
|
1723
|
+
a.value.pop();
|
|
1724
|
+
}), o.accept !== "*" && !o.accept.split(",").includes((g = v == null ? void 0 : v.raw) == null ? void 0 : g.type) && !o.accept.split(",").includes(`.${v.name.split(".").pop()}`) && (o3({
|
|
1725
|
+
message: `不允许的上传文件格式(${v.name}),请重新选择`,
|
|
1723
1726
|
type: "warning",
|
|
1724
1727
|
showClose: !0,
|
|
1725
1728
|
duration: 5e3
|
|
1726
1729
|
}), s3(() => {
|
|
1727
|
-
|
|
1730
|
+
a.value.pop();
|
|
1728
1731
|
}));
|
|
1729
|
-
}, k = () => !1, Z = (
|
|
1730
|
-
var
|
|
1731
|
-
|
|
1732
|
-
}, L = (
|
|
1733
|
-
var
|
|
1734
|
-
const
|
|
1735
|
-
let
|
|
1736
|
-
for (;
|
|
1737
|
-
(
|
|
1732
|
+
}, k = () => !1, Z = (v, h) => {
|
|
1733
|
+
var y, l;
|
|
1734
|
+
v.status = "ready", h !== void 0 && V.value.splice(h, 1), (y = x.value) == null || y.handleStart(v.raw), (l = x.value) == null || l.submit();
|
|
1735
|
+
}, L = (v, h) => {
|
|
1736
|
+
var W, K;
|
|
1737
|
+
const y = a.value.length, l = o.limit - y;
|
|
1738
|
+
let g = 0;
|
|
1739
|
+
for (; g < l && g < v.length; )
|
|
1740
|
+
(W = x.value) == null || W.handleStart(v[g]), (K = x.value) == null || K.submit(), g++;
|
|
1738
1741
|
o3({
|
|
1739
1742
|
message: (o == null ? void 0 : o.limitText) || `最大可上传${o.limit}个文件,已忽略超出文件`,
|
|
1740
1743
|
type: "warning",
|
|
1741
1744
|
showClose: !0,
|
|
1742
1745
|
duration: 5e3
|
|
1743
|
-
}),
|
|
1744
|
-
}, Q = (
|
|
1745
|
-
|
|
1746
|
-
}, e3 = (
|
|
1747
|
-
|
|
1748
|
-
}, t3 = (
|
|
1749
|
-
var
|
|
1746
|
+
}), t("exceed", v);
|
|
1747
|
+
}, Q = (v, h, y) => {
|
|
1748
|
+
t("success", v, h, y);
|
|
1749
|
+
}, e3 = (v, h, y) => {
|
|
1750
|
+
V.value.push(h), t("error", v, h, y);
|
|
1751
|
+
}, t3 = (v) => {
|
|
1752
|
+
var h, y;
|
|
1750
1753
|
$.value = {
|
|
1751
|
-
...
|
|
1752
|
-
name:
|
|
1754
|
+
...v,
|
|
1755
|
+
name: v[i.name],
|
|
1753
1756
|
url: a3(
|
|
1754
|
-
|
|
1755
|
-
|
|
1757
|
+
f.value,
|
|
1758
|
+
v[i.url] || ((y = (h = v == null ? void 0 : v.response) == null ? void 0 : h.data) == null ? void 0 : y.id)
|
|
1756
1759
|
)
|
|
1757
1760
|
}, B.value = !0;
|
|
1758
|
-
},
|
|
1761
|
+
}, m3 = (v) => {
|
|
1759
1762
|
V3.downloadByOnlineUrl(
|
|
1760
|
-
|
|
1761
|
-
|
|
1763
|
+
v[i.url],
|
|
1764
|
+
v[i.name]
|
|
1762
1765
|
);
|
|
1763
|
-
},
|
|
1764
|
-
var
|
|
1765
|
-
(
|
|
1766
|
-
}, J = (
|
|
1767
|
-
var
|
|
1766
|
+
}, _3 = (v, h = !1) => {
|
|
1767
|
+
var y;
|
|
1768
|
+
(y = x.value) == null || y.abort(v);
|
|
1769
|
+
}, J = (v) => {
|
|
1770
|
+
var h, y;
|
|
1768
1771
|
try {
|
|
1769
|
-
|
|
1772
|
+
v.status !== "success" && _3(v), (h = x.value) == null || h.handleRemove(v), a.value = a.value.filter((l) => l.uid !== v.uid), t("delete", v);
|
|
1770
1773
|
} catch (l) {
|
|
1771
|
-
(
|
|
1774
|
+
(y = x.value) == null || y.handleRemove(v), a.value = a.value.filter((g) => g.uid !== v.uid), t("delete", v), console.error(l);
|
|
1772
1775
|
}
|
|
1773
|
-
},
|
|
1774
|
-
|
|
1775
|
-
}, n3 =
|
|
1776
|
-
() =>
|
|
1776
|
+
}, y3 = (v, h) => {
|
|
1777
|
+
V.value.splice(h, 1);
|
|
1778
|
+
}, n3 = D(
|
|
1779
|
+
() => a.value.length >= o.limit || o.disabled
|
|
1777
1780
|
);
|
|
1778
|
-
return (
|
|
1779
|
-
var
|
|
1780
|
-
return
|
|
1781
|
+
return (v, h) => {
|
|
1782
|
+
var y;
|
|
1783
|
+
return s(), p(
|
|
1781
1784
|
U,
|
|
1782
1785
|
null,
|
|
1783
1786
|
[
|
|
1784
|
-
e.preview ?
|
|
1787
|
+
e.preview ? b("v-if", !0) : (s(), p(
|
|
1785
1788
|
U,
|
|
1786
1789
|
{ key: 0 },
|
|
1787
1790
|
[
|
|
1788
|
-
e.type === "button" ? (
|
|
1791
|
+
e.type === "button" ? (s(), z(u(u3), l3({
|
|
1789
1792
|
key: 0,
|
|
1790
1793
|
class: "ik-file-upload"
|
|
1791
|
-
},
|
|
1794
|
+
}, v.$attrs, {
|
|
1792
1795
|
accept: e.accept,
|
|
1793
|
-
action:
|
|
1794
|
-
"file-list":
|
|
1795
|
-
"onUpdate:fileList":
|
|
1796
|
+
action: u(w),
|
|
1797
|
+
"file-list": a.value,
|
|
1798
|
+
"onUpdate:fileList": h[0] || (h[0] = (l) => a.value = l),
|
|
1796
1799
|
ref_key: "refUpload",
|
|
1797
|
-
ref:
|
|
1798
|
-
"before-upload":
|
|
1800
|
+
ref: x,
|
|
1801
|
+
"before-upload": j,
|
|
1799
1802
|
"before-remove": k,
|
|
1800
1803
|
"on-exceed": L,
|
|
1801
|
-
"on-change":
|
|
1804
|
+
"on-change": P,
|
|
1802
1805
|
multiple: e.multiple,
|
|
1803
1806
|
headers: e.headers,
|
|
1804
1807
|
limit: e.limit,
|
|
1805
1808
|
"on-success": Q,
|
|
1806
1809
|
"on-error": e3
|
|
1807
1810
|
}), {
|
|
1808
|
-
trigger:
|
|
1809
|
-
|
|
1811
|
+
trigger: _(() => [
|
|
1812
|
+
v.$slots.trigger ? E(v.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), z(u(B3), {
|
|
1810
1813
|
key: 1,
|
|
1811
1814
|
disabled: n3.value
|
|
1812
|
-
},
|
|
1813
|
-
default:
|
|
1815
|
+
}, A3({
|
|
1816
|
+
default: _(() => [
|
|
1814
1817
|
q(
|
|
1815
1818
|
" " + I(e.title),
|
|
1816
1819
|
1
|
|
@@ -1822,8 +1825,8 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
1822
1825
|
}, [
|
|
1823
1826
|
e.showIcon ? {
|
|
1824
1827
|
name: "icon",
|
|
1825
|
-
fn:
|
|
1826
|
-
|
|
1828
|
+
fn: _(() => [
|
|
1829
|
+
m(u(S), {
|
|
1827
1830
|
name: "iksvg_daoru",
|
|
1828
1831
|
disabled: n3.value
|
|
1829
1832
|
}, null, 8, ["disabled"])
|
|
@@ -1832,24 +1835,24 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
1832
1835
|
} : void 0
|
|
1833
1836
|
]), 1032, ["disabled"]))
|
|
1834
1837
|
]),
|
|
1835
|
-
file:
|
|
1838
|
+
file: _(({ file: l }) => [
|
|
1836
1839
|
d("div", ke, [
|
|
1837
|
-
d("div",
|
|
1838
|
-
!
|
|
1840
|
+
d("div", be, [
|
|
1841
|
+
!v.$slots.fileIcon && (!e.customIconData[u(F)(l, i)] || !e.customIconData[u(F)(l, i)][e.customIconFields.icon]) ? (s(), z(f3, {
|
|
1839
1842
|
key: 0,
|
|
1840
|
-
type:
|
|
1841
|
-
}, null, 8, ["type"])) : !
|
|
1842
|
-
e.customIconData[
|
|
1843
|
+
type: u(F)(l, i)
|
|
1844
|
+
}, null, 8, ["type"])) : !v.$slots.fileIcon && e.customIconData[u(F)(l, i)] && e.customIconData[u(F)(l, i)][e.customIconFields.icon] ? (s(), p("div", ze, [
|
|
1845
|
+
e.customIconData[u(F)(l, i)][e.customIconFields.type] === "img" ? (s(), p("img", {
|
|
1843
1846
|
key: 0,
|
|
1844
|
-
src: e.customIconData[
|
|
1847
|
+
src: e.customIconData[u(F)(l, i)][e.customIconFields.icon],
|
|
1845
1848
|
alt: "",
|
|
1846
1849
|
class: "file-img-icon"
|
|
1847
|
-
}, null, 8,
|
|
1850
|
+
}, null, 8, xe)) : (s(), p(
|
|
1848
1851
|
"span",
|
|
1849
1852
|
{
|
|
1850
1853
|
key: 1,
|
|
1851
1854
|
class: R([
|
|
1852
|
-
e.customIconData[
|
|
1855
|
+
e.customIconData[u(F)(l, i)][e.customIconFields.icon],
|
|
1853
1856
|
"file-icon-size"
|
|
1854
1857
|
])
|
|
1855
1858
|
},
|
|
@@ -1857,55 +1860,55 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
1857
1860
|
2
|
|
1858
1861
|
/* CLASS */
|
|
1859
1862
|
))
|
|
1860
|
-
])) :
|
|
1861
|
-
d("div",
|
|
1862
|
-
E(
|
|
1863
|
+
])) : b("v-if", !0),
|
|
1864
|
+
d("div", Fe, [
|
|
1865
|
+
E(v.$slots, "fileIcon", { file: l }, void 0, !0)
|
|
1863
1866
|
]),
|
|
1864
|
-
d("div",
|
|
1867
|
+
d("div", Ce, [
|
|
1865
1868
|
d("p", Ie, [
|
|
1866
1869
|
q(
|
|
1867
|
-
I(l[
|
|
1870
|
+
I(l[i.name] || l.name) + " ",
|
|
1868
1871
|
1
|
|
1869
1872
|
/* TEXT */
|
|
1870
1873
|
),
|
|
1871
|
-
l.percentage && l.status === "uploading" ? (
|
|
1874
|
+
l.percentage && l.status === "uploading" ? (s(), p(
|
|
1872
1875
|
"span",
|
|
1873
1876
|
Be,
|
|
1874
1877
|
"(" + I(l.percentage) + "%)",
|
|
1875
1878
|
1
|
|
1876
1879
|
/* TEXT */
|
|
1877
|
-
)) :
|
|
1880
|
+
)) : b("v-if", !0)
|
|
1878
1881
|
]),
|
|
1879
|
-
l.status === "success" ? (
|
|
1882
|
+
l.status === "success" ? (s(), p(
|
|
1880
1883
|
"p",
|
|
1881
1884
|
Se,
|
|
1882
|
-
I(
|
|
1885
|
+
I(u(i3)(l.size / 1024 / 1024)) + "MB ",
|
|
1883
1886
|
1
|
|
1884
1887
|
/* TEXT */
|
|
1885
|
-
)) :
|
|
1886
|
-
l.percentage && l.status === "uploading" ? (
|
|
1888
|
+
)) : b("v-if", !0),
|
|
1889
|
+
l.percentage && l.status === "uploading" ? (s(), z(u(d3), {
|
|
1887
1890
|
key: 1,
|
|
1888
1891
|
"text-inside": "",
|
|
1889
1892
|
percentage: l.percentage,
|
|
1890
1893
|
color: "var(--el-color-primary)",
|
|
1891
1894
|
"show-text": !1
|
|
1892
|
-
}, null, 8, ["percentage"])) :
|
|
1895
|
+
}, null, 8, ["percentage"])) : b("v-if", !0)
|
|
1893
1896
|
])
|
|
1894
1897
|
]),
|
|
1895
1898
|
d("div", null, [
|
|
1896
|
-
l.status === "success" ? (
|
|
1899
|
+
l.status === "success" ? (s(), p(
|
|
1897
1900
|
U,
|
|
1898
1901
|
{ key: 0 },
|
|
1899
1902
|
[
|
|
1900
|
-
|
|
1901
|
-
onClick: (
|
|
1903
|
+
m(u(S), {
|
|
1904
|
+
onClick: (g) => t3(l),
|
|
1902
1905
|
name: "iksvg_yulan",
|
|
1903
1906
|
title: "预览",
|
|
1904
1907
|
bg: "",
|
|
1905
1908
|
size: "default"
|
|
1906
1909
|
}, null, 8, ["onClick"]),
|
|
1907
|
-
|
|
1908
|
-
onClick: (
|
|
1910
|
+
m(u(S), {
|
|
1911
|
+
onClick: (g) => J(l),
|
|
1909
1912
|
error: "",
|
|
1910
1913
|
name: "iksvg_shanchu",
|
|
1911
1914
|
title: "删除",
|
|
@@ -1915,9 +1918,9 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
1915
1918
|
],
|
|
1916
1919
|
64
|
|
1917
1920
|
/* STABLE_FRAGMENT */
|
|
1918
|
-
)) : (
|
|
1921
|
+
)) : (s(), z(u(S), {
|
|
1919
1922
|
key: 1,
|
|
1920
|
-
onClick: (
|
|
1923
|
+
onClick: (g) => J(l),
|
|
1921
1924
|
error: "",
|
|
1922
1925
|
name: "iksvg_guanbi",
|
|
1923
1926
|
size: "default",
|
|
@@ -1927,22 +1930,22 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
1927
1930
|
])
|
|
1928
1931
|
])
|
|
1929
1932
|
]),
|
|
1930
|
-
default:
|
|
1933
|
+
default: _(() => {
|
|
1931
1934
|
var l;
|
|
1932
1935
|
return [
|
|
1933
|
-
!e.preview && e.tip ? (
|
|
1936
|
+
!e.preview && e.tip ? (s(), z(u(v3), {
|
|
1934
1937
|
key: 0,
|
|
1935
1938
|
effect: "dark",
|
|
1936
1939
|
content: o.tipText || "",
|
|
1937
1940
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
1938
1941
|
}, {
|
|
1939
|
-
default:
|
|
1940
|
-
|
|
1942
|
+
default: _(() => [
|
|
1943
|
+
m(u(H), {
|
|
1941
1944
|
size: 23,
|
|
1942
1945
|
class: "_ik_web_ui_file_help_icon"
|
|
1943
1946
|
}, {
|
|
1944
|
-
default:
|
|
1945
|
-
|
|
1947
|
+
default: _(() => [
|
|
1948
|
+
m(u(p3))
|
|
1946
1949
|
]),
|
|
1947
1950
|
_: 1
|
|
1948
1951
|
/* STABLE */
|
|
@@ -1950,22 +1953,22 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
1950
1953
|
]),
|
|
1951
1954
|
_: 1
|
|
1952
1955
|
/* STABLE */
|
|
1953
|
-
}, 8, ["content"])) :
|
|
1954
|
-
(l =
|
|
1956
|
+
}, 8, ["content"])) : b("v-if", !0),
|
|
1957
|
+
(l = V.value) != null && l.length ? (s(!0), p(
|
|
1955
1958
|
U,
|
|
1956
1959
|
{ key: 1 },
|
|
1957
|
-
|
|
1960
|
+
z3(V.value, (g, W) => (s(), p("div", {
|
|
1958
1961
|
class: "ik-error-flie-list",
|
|
1959
|
-
key:
|
|
1962
|
+
key: g.uid
|
|
1960
1963
|
}, [
|
|
1961
1964
|
d("div", De, [
|
|
1962
|
-
|
|
1965
|
+
m(u(H), {
|
|
1963
1966
|
size: 32,
|
|
1964
1967
|
class: "info",
|
|
1965
1968
|
style: { "vertical-align": "middle" }
|
|
1966
1969
|
}, {
|
|
1967
|
-
default:
|
|
1968
|
-
|
|
1970
|
+
default: _(() => [
|
|
1971
|
+
m(u(P3))
|
|
1969
1972
|
]),
|
|
1970
1973
|
_: 1
|
|
1971
1974
|
/* STABLE */
|
|
@@ -1974,42 +1977,42 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
1974
1977
|
d(
|
|
1975
1978
|
"p",
|
|
1976
1979
|
$e,
|
|
1977
|
-
I(
|
|
1980
|
+
I(g[i.name] || g.name),
|
|
1978
1981
|
1
|
|
1979
1982
|
/* TEXT */
|
|
1980
1983
|
),
|
|
1981
1984
|
d(
|
|
1982
1985
|
"p",
|
|
1983
1986
|
Re,
|
|
1984
|
-
I(
|
|
1987
|
+
I(u(i3)(g.size / 1024 / 1024)) + "MB ",
|
|
1985
1988
|
1
|
|
1986
1989
|
/* TEXT */
|
|
1987
1990
|
)
|
|
1988
1991
|
])
|
|
1989
1992
|
]),
|
|
1990
|
-
|
|
1993
|
+
x3(d(
|
|
1991
1994
|
"div",
|
|
1992
1995
|
Me,
|
|
1993
1996
|
[
|
|
1994
|
-
|
|
1997
|
+
m(u(H), {
|
|
1995
1998
|
style: { "vertical-align": "middle" },
|
|
1996
|
-
onClick: (K) => Z(
|
|
1999
|
+
onClick: (K) => Z(g, W),
|
|
1997
2000
|
title: "重新上传",
|
|
1998
2001
|
class: "primary"
|
|
1999
2002
|
}, {
|
|
2000
|
-
default:
|
|
2001
|
-
|
|
2003
|
+
default: _(() => [
|
|
2004
|
+
m(u(q3))
|
|
2002
2005
|
]),
|
|
2003
2006
|
_: 2
|
|
2004
2007
|
/* DYNAMIC */
|
|
2005
2008
|
}, 1032, ["onClick"]),
|
|
2006
|
-
|
|
2009
|
+
m(u(H), {
|
|
2007
2010
|
class: "error",
|
|
2008
|
-
onClick: (K) =>
|
|
2011
|
+
onClick: (K) => y3(g, W),
|
|
2009
2012
|
title: "删除"
|
|
2010
2013
|
}, {
|
|
2011
|
-
default:
|
|
2012
|
-
|
|
2014
|
+
default: _(() => [
|
|
2015
|
+
m(u(M3))
|
|
2013
2016
|
]),
|
|
2014
2017
|
_: 2
|
|
2015
2018
|
/* DYNAMIC */
|
|
@@ -2018,28 +2021,28 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
2018
2021
|
512
|
|
2019
2022
|
/* NEED_PATCH */
|
|
2020
2023
|
), [
|
|
2021
|
-
[
|
|
2024
|
+
[F3, (g == null ? void 0 : g.status) === "fail"]
|
|
2022
2025
|
])
|
|
2023
2026
|
]))),
|
|
2024
2027
|
128
|
|
2025
2028
|
/* KEYED_FRAGMENT */
|
|
2026
|
-
)) :
|
|
2029
|
+
)) : b("v-if", !0)
|
|
2027
2030
|
];
|
|
2028
2031
|
}),
|
|
2029
2032
|
_: 3
|
|
2030
2033
|
/* FORWARDED */
|
|
2031
|
-
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (
|
|
2034
|
+
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), z(u(u3), l3({
|
|
2032
2035
|
key: 1,
|
|
2033
|
-
"file-list":
|
|
2034
|
-
"onUpdate:fileList":
|
|
2036
|
+
"file-list": a.value,
|
|
2037
|
+
"onUpdate:fileList": h[1] || (h[1] = (l) => a.value = l),
|
|
2035
2038
|
class: ["ik-file-pload-card", { plain: e.plain }]
|
|
2036
|
-
},
|
|
2039
|
+
}, v.$attrs, {
|
|
2037
2040
|
accept: e.accept,
|
|
2038
|
-
action:
|
|
2041
|
+
action: u(w),
|
|
2039
2042
|
disabled: n3.value,
|
|
2040
2043
|
ref_key: "refUpload",
|
|
2041
|
-
ref:
|
|
2042
|
-
"before-upload":
|
|
2044
|
+
ref: x,
|
|
2045
|
+
"before-upload": j,
|
|
2043
2046
|
"before-remove": k,
|
|
2044
2047
|
"on-exceed": L,
|
|
2045
2048
|
multiple: e.multiple,
|
|
@@ -2047,26 +2050,26 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
2047
2050
|
limit: e.limit,
|
|
2048
2051
|
"on-success": Q,
|
|
2049
2052
|
"on-error": e3,
|
|
2050
|
-
"on-change":
|
|
2053
|
+
"on-change": P
|
|
2051
2054
|
}), {
|
|
2052
|
-
file:
|
|
2055
|
+
file: _(({ file: l }) => [
|
|
2053
2056
|
d("div", Oe, [
|
|
2054
2057
|
d("div", qe, [
|
|
2055
|
-
!
|
|
2058
|
+
!v.$slots.fileIcon && (!e.customIconData[u(F)(l, i)] || !e.customIconData[u(F)(l, i)][e.customIconFields.icon]) ? (s(), z(f3, {
|
|
2056
2059
|
key: 0,
|
|
2057
|
-
type:
|
|
2058
|
-
}, null, 8, ["type"])) : !
|
|
2059
|
-
e.customIconData[
|
|
2060
|
+
type: u(F)(l, i)
|
|
2061
|
+
}, null, 8, ["type"])) : !v.$slots.fileIcon && e.customIconData[u(F)(l, i)] && e.customIconData[u(F)(l, i)][e.customIconFields.icon] ? (s(), p("div", Le, [
|
|
2062
|
+
e.customIconData[u(F)(l, i)][e.customIconFields.type] === "img" ? (s(), p("img", {
|
|
2060
2063
|
key: 0,
|
|
2061
|
-
src: e.customIconData[
|
|
2064
|
+
src: e.customIconData[u(F)(l, i)][e.customIconFields.icon],
|
|
2062
2065
|
alt: "",
|
|
2063
2066
|
class: "file-img-icon"
|
|
2064
|
-
}, null, 8, Te)) : (
|
|
2067
|
+
}, null, 8, Te)) : (s(), p(
|
|
2065
2068
|
"span",
|
|
2066
2069
|
{
|
|
2067
2070
|
key: 1,
|
|
2068
2071
|
class: R([
|
|
2069
|
-
e.customIconData[
|
|
2072
|
+
e.customIconData[u(F)(l, i)][e.customIconFields.icon],
|
|
2070
2073
|
"file-icon-size"
|
|
2071
2074
|
])
|
|
2072
2075
|
},
|
|
@@ -2074,56 +2077,56 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
2074
2077
|
2
|
|
2075
2078
|
/* CLASS */
|
|
2076
2079
|
))
|
|
2077
|
-
])) :
|
|
2080
|
+
])) : b("v-if", !0),
|
|
2078
2081
|
d("div", je, [
|
|
2079
|
-
E(
|
|
2082
|
+
E(v.$slots, "fileIcon", { file: l }, void 0, !0)
|
|
2080
2083
|
]),
|
|
2081
2084
|
d("div", Pe, [
|
|
2082
2085
|
d("p", We, [
|
|
2083
2086
|
q(
|
|
2084
|
-
I(l[
|
|
2087
|
+
I(l[i.name] || l.name) + " ",
|
|
2085
2088
|
1
|
|
2086
2089
|
/* TEXT */
|
|
2087
2090
|
),
|
|
2088
|
-
l.percentage && l.status === "uploading" ? (
|
|
2091
|
+
l.percentage && l.status === "uploading" ? (s(), p(
|
|
2089
2092
|
"span",
|
|
2090
2093
|
Ne,
|
|
2091
2094
|
"(" + I(l.percentage) + "%)",
|
|
2092
2095
|
1
|
|
2093
2096
|
/* TEXT */
|
|
2094
|
-
)) :
|
|
2097
|
+
)) : b("v-if", !0)
|
|
2095
2098
|
]),
|
|
2096
|
-
l.status === "success" ? (
|
|
2099
|
+
l.status === "success" ? (s(), p(
|
|
2097
2100
|
"p",
|
|
2098
2101
|
Ze,
|
|
2099
|
-
I(
|
|
2102
|
+
I(u(i3)(l.size / 1024 / 1024)) + "MB ",
|
|
2100
2103
|
1
|
|
2101
2104
|
/* TEXT */
|
|
2102
|
-
)) :
|
|
2103
|
-
l.percentage && l.status === "uploading" ? (
|
|
2105
|
+
)) : b("v-if", !0),
|
|
2106
|
+
l.percentage && l.status === "uploading" ? (s(), z(u(d3), {
|
|
2104
2107
|
key: 1,
|
|
2105
2108
|
"text-inside": "",
|
|
2106
2109
|
percentage: l.percentage,
|
|
2107
2110
|
color: "var(--el-color-primary)",
|
|
2108
2111
|
"show-text": !1
|
|
2109
|
-
}, null, 8, ["percentage"])) :
|
|
2112
|
+
}, null, 8, ["percentage"])) : b("v-if", !0)
|
|
2110
2113
|
])
|
|
2111
2114
|
]),
|
|
2112
|
-
e.preview ? (
|
|
2115
|
+
e.preview ? (s(), p(
|
|
2113
2116
|
U,
|
|
2114
2117
|
{ key: 1 },
|
|
2115
2118
|
[
|
|
2116
|
-
e.preview || l.percentage === 100 ? (
|
|
2117
|
-
|
|
2119
|
+
e.preview || l.percentage === 100 ? (s(), z(
|
|
2120
|
+
u(H),
|
|
2118
2121
|
{
|
|
2119
2122
|
key: 0,
|
|
2120
2123
|
title: "预览",
|
|
2121
2124
|
class: "primary"
|
|
2122
2125
|
},
|
|
2123
2126
|
{
|
|
2124
|
-
default:
|
|
2125
|
-
|
|
2126
|
-
onClick: (
|
|
2127
|
+
default: _(() => [
|
|
2128
|
+
m(u(T3), {
|
|
2129
|
+
onClick: (g) => t3(l)
|
|
2127
2130
|
}, null, 8, ["onClick"])
|
|
2128
2131
|
]),
|
|
2129
2132
|
_: 2
|
|
@@ -2131,17 +2134,17 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
2131
2134
|
},
|
|
2132
2135
|
1024
|
|
2133
2136
|
/* DYNAMIC_SLOTS */
|
|
2134
|
-
)) :
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
+
)) : b("v-if", !0),
|
|
2138
|
+
m(
|
|
2139
|
+
u(H),
|
|
2137
2140
|
{
|
|
2138
2141
|
title: "下载",
|
|
2139
2142
|
class: "primary"
|
|
2140
2143
|
},
|
|
2141
2144
|
{
|
|
2142
|
-
default:
|
|
2143
|
-
|
|
2144
|
-
onClick: (
|
|
2145
|
+
default: _(() => [
|
|
2146
|
+
m(u(H3), {
|
|
2147
|
+
onClick: (g) => m3(l)
|
|
2145
2148
|
}, null, 8, ["onClick"])
|
|
2146
2149
|
]),
|
|
2147
2150
|
_: 2
|
|
@@ -2153,20 +2156,20 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
2153
2156
|
],
|
|
2154
2157
|
64
|
|
2155
2158
|
/* STABLE_FRAGMENT */
|
|
2156
|
-
)) : (
|
|
2157
|
-
l.status === "success" ? (
|
|
2159
|
+
)) : (s(), p("div", Qe, [
|
|
2160
|
+
l.status === "success" ? (s(), p(
|
|
2158
2161
|
U,
|
|
2159
2162
|
{ key: 0 },
|
|
2160
2163
|
[
|
|
2161
|
-
|
|
2162
|
-
onClick: (
|
|
2164
|
+
m(u(S), {
|
|
2165
|
+
onClick: (g) => t3(l),
|
|
2163
2166
|
name: "iksvg_yulan",
|
|
2164
2167
|
title: "预览",
|
|
2165
2168
|
bg: "",
|
|
2166
2169
|
size: "default"
|
|
2167
2170
|
}, null, 8, ["onClick"]),
|
|
2168
|
-
|
|
2169
|
-
onClick: (
|
|
2171
|
+
m(u(S), {
|
|
2172
|
+
onClick: (g) => J(l),
|
|
2170
2173
|
error: "",
|
|
2171
2174
|
name: "iksvg_shanchu",
|
|
2172
2175
|
title: "删除",
|
|
@@ -2176,9 +2179,9 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
2176
2179
|
],
|
|
2177
2180
|
64
|
|
2178
2181
|
/* STABLE_FRAGMENT */
|
|
2179
|
-
)) : (
|
|
2182
|
+
)) : (s(), z(u(S), {
|
|
2180
2183
|
key: 1,
|
|
2181
|
-
onClick: (
|
|
2184
|
+
onClick: (g) => J(l),
|
|
2182
2185
|
error: "",
|
|
2183
2186
|
name: "iksvg_guanbi",
|
|
2184
2187
|
size: "default",
|
|
@@ -2188,37 +2191,37 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
2188
2191
|
]))
|
|
2189
2192
|
])
|
|
2190
2193
|
]),
|
|
2191
|
-
default:
|
|
2194
|
+
default: _(() => [
|
|
2192
2195
|
d("div", Ee, [
|
|
2193
2196
|
d("div", He, [
|
|
2194
|
-
e.imageMode ? E(
|
|
2197
|
+
e.imageMode ? E(v.$slots, "image", { key: 0 }, () => [
|
|
2195
2198
|
Ue
|
|
2196
|
-
], !0) : e.showIcon ? (
|
|
2199
|
+
], !0) : e.showIcon ? (s(), z(u(S), {
|
|
2197
2200
|
key: 1,
|
|
2198
2201
|
name: "iksvg_img_shangchuanhetongfujianbeifen",
|
|
2199
2202
|
type: "primary",
|
|
2200
2203
|
bg: "",
|
|
2201
2204
|
size: 40
|
|
2202
|
-
})) :
|
|
2205
|
+
})) : b("v-if", !0),
|
|
2203
2206
|
d("span", null, [
|
|
2204
2207
|
q(
|
|
2205
2208
|
I(e.title) + " ",
|
|
2206
2209
|
1
|
|
2207
2210
|
/* TEXT */
|
|
2208
2211
|
),
|
|
2209
|
-
!e.preview && e.tip ? (
|
|
2212
|
+
!e.preview && e.tip ? (s(), z(u(v3), {
|
|
2210
2213
|
key: 0,
|
|
2211
2214
|
effect: "dark",
|
|
2212
2215
|
content: o.tipText || "",
|
|
2213
2216
|
"popper-class": "_ik_web_ui_file-help-tooltip"
|
|
2214
2217
|
}, {
|
|
2215
|
-
default:
|
|
2216
|
-
|
|
2218
|
+
default: _(() => [
|
|
2219
|
+
m(u(H), {
|
|
2217
2220
|
size: 23,
|
|
2218
2221
|
class: "_ik_web_ui_file_help_icon"
|
|
2219
2222
|
}, {
|
|
2220
|
-
default:
|
|
2221
|
-
|
|
2223
|
+
default: _(() => [
|
|
2224
|
+
m(u(p3))
|
|
2222
2225
|
]),
|
|
2223
2226
|
_: 1
|
|
2224
2227
|
/* STABLE */
|
|
@@ -2226,14 +2229,15 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
2226
2229
|
]),
|
|
2227
2230
|
_: 1
|
|
2228
2231
|
/* STABLE */
|
|
2229
|
-
}, 8, ["content"])) :
|
|
2232
|
+
}, 8, ["content"])) : b("v-if", !0)
|
|
2230
2233
|
])
|
|
2231
2234
|
]),
|
|
2232
|
-
|
|
2235
|
+
m(u(S), {
|
|
2233
2236
|
name: "iksvg_daoru",
|
|
2234
2237
|
bg: "",
|
|
2235
|
-
size:
|
|
2236
|
-
|
|
2238
|
+
size: 24,
|
|
2239
|
+
width: 40,
|
|
2240
|
+
padding: "0"
|
|
2237
2241
|
})
|
|
2238
2242
|
])
|
|
2239
2243
|
]),
|
|
@@ -2244,13 +2248,13 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
2244
2248
|
64
|
|
2245
2249
|
/* STABLE_FRAGMENT */
|
|
2246
2250
|
)),
|
|
2247
|
-
|
|
2251
|
+
m(u(G6), {
|
|
2248
2252
|
show: B.value,
|
|
2249
|
-
"onUpdate:show":
|
|
2250
|
-
loadUrl:
|
|
2253
|
+
"onUpdate:show": h[2] || (h[2] = (l) => B.value = l),
|
|
2254
|
+
loadUrl: u(f),
|
|
2251
2255
|
file: $.value,
|
|
2252
|
-
onlyofficeServer: ((
|
|
2253
|
-
onlyOfficeConfig: r
|
|
2256
|
+
onlyofficeServer: ((y = u(r)) == null ? void 0 : y.serverUrl) || e.onlyofficeServer,
|
|
2257
|
+
onlyOfficeConfig: u(r)
|
|
2254
2258
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig"])
|
|
2255
2259
|
],
|
|
2256
2260
|
64
|
|
@@ -2259,7 +2263,7 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
|
|
|
2259
2263
|
};
|
|
2260
2264
|
}
|
|
2261
2265
|
});
|
|
2262
|
-
const Ke = /* @__PURE__ */ Y(Je, [["__scopeId", "data-v-
|
|
2266
|
+
const Ke = /* @__PURE__ */ Y(Je, [["__scopeId", "data-v-cbfa5eb9"]]), et = N(Ke);
|
|
2263
2267
|
export {
|
|
2264
2268
|
et as IkUploadFile,
|
|
2265
2269
|
et as default
|