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,38 +1,38 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { paramType as
|
|
3
|
-
const
|
|
1
|
+
import { inject as I, computed as m, defineComponent as z, openBlock as c, createElementBlock as u, createElementVNode as r, ref as M, Fragment as P, renderList as K, normalizeClass as C, normalizeStyle as b, createVNode as F, toDisplayString as O, unref as g, withModifiers as J, renderSlot as V, createCommentVNode as B, mergeModels as G, useModel as X, reactive as Q, watch as e3, nextTick as t3, resolveComponent as R, createBlock as S, withCtx as y, createTextVNode as D, h as n3, mergeProps as j, createSlots as o3, useCssVars as i3 } from "vue";
|
|
2
|
+
import { paramType as l3, ikFile as s3, buildUUID as a3, ikColor as c3 } from "iking-utils-pro";
|
|
3
|
+
const $ = (t, n) => {
|
|
4
4
|
if (t.install = (o) => {
|
|
5
|
-
for (const
|
|
6
|
-
o.component(
|
|
7
|
-
},
|
|
8
|
-
for (const [o,
|
|
9
|
-
t[o] =
|
|
5
|
+
for (const e of [t, ...Object.values(n ?? {})])
|
|
6
|
+
o.component(e.name, e);
|
|
7
|
+
}, n)
|
|
8
|
+
for (const [o, e] of Object.entries(n))
|
|
9
|
+
t[o] = e;
|
|
10
10
|
return t;
|
|
11
|
-
}, U = (t,
|
|
11
|
+
}, U = (t, n) => {
|
|
12
12
|
const o = t.__vccOpts || t;
|
|
13
|
-
for (const [
|
|
14
|
-
o[
|
|
13
|
+
for (const [e, l] of n)
|
|
14
|
+
o[e] = l;
|
|
15
15
|
return o;
|
|
16
|
-
}, r3 = (t,
|
|
16
|
+
}, r3 = (t, n = 2) => {
|
|
17
17
|
if (t === void 0)
|
|
18
18
|
return "";
|
|
19
19
|
if (t === 0)
|
|
20
20
|
return "0 B";
|
|
21
|
-
const o = ["B", "KB", "MB", "GB", "TB"],
|
|
22
|
-
let
|
|
23
|
-
return (
|
|
24
|
-
}, T = (t,
|
|
25
|
-
const
|
|
21
|
+
const o = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
|
|
22
|
+
let l = t / Math.pow(1024, e);
|
|
23
|
+
return (l % 1 === 0 ? l.toFixed(n || 0) : l.toFixed(n)) + " " + o[e];
|
|
24
|
+
}, T = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", d3 = (t) => {
|
|
25
|
+
const n = I("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = I("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = I("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), f = I("onlyofficeConfig"), v = m(() => t.onlyofficeConfig || (f == null ? void 0 : f.value)), a = I("userInfo"), p = m(() => t.userInfo || (a == null ? void 0 : a.value));
|
|
26
26
|
return {
|
|
27
27
|
cLoadUrl: o,
|
|
28
|
-
cUploadUrl:
|
|
29
|
-
cToken:
|
|
30
|
-
cOnlyofficeConfig:
|
|
28
|
+
cUploadUrl: l,
|
|
29
|
+
cToken: s,
|
|
30
|
+
cOnlyofficeConfig: v,
|
|
31
31
|
cUserInfo: p
|
|
32
32
|
};
|
|
33
|
-
}, u3 = d3, Y = (t,
|
|
34
|
-
var i,
|
|
35
|
-
const o = (i = t == null ? void 0 : t.response) != null && i.data ? W((f = (
|
|
33
|
+
}, u3 = d3, Y = (t, n) => {
|
|
34
|
+
var i, s, f, v;
|
|
35
|
+
const o = (i = t == null ? void 0 : t.response) != null && i.data ? W((f = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : f.suffix) : ((v = t.raw) == null ? void 0 : v.type) || W(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), l = {
|
|
36
36
|
sheet: "excel",
|
|
37
37
|
excel: "excel",
|
|
38
38
|
zip: "zip",
|
|
@@ -48,9 +48,9 @@ const M = (t, e) => {
|
|
|
48
48
|
exe: "exe",
|
|
49
49
|
json: "json"
|
|
50
50
|
};
|
|
51
|
-
for (let
|
|
52
|
-
if (typeof
|
|
53
|
-
return
|
|
51
|
+
for (let a in l)
|
|
52
|
+
if (typeof e == "string" && (e.includes(a) || e === a))
|
|
53
|
+
return l[a];
|
|
54
54
|
return "unknown";
|
|
55
55
|
}, f3 = {
|
|
56
56
|
".doc": "word",
|
|
@@ -138,12 +138,12 @@ const M = (t, e) => {
|
|
|
138
138
|
".txt": "txt",
|
|
139
139
|
".pdf": "pdf"
|
|
140
140
|
}, W = (t) => {
|
|
141
|
-
const
|
|
141
|
+
const n = t == null ? void 0 : t.toLocaleLowerCase(), o = n != null && n.startsWith(".") ? n : `.${n}`;
|
|
142
142
|
return o && f3[o] || "unknow";
|
|
143
143
|
}, p3 = (t) => {
|
|
144
|
-
let
|
|
145
|
-
return o.includes(t) && (
|
|
146
|
-
},
|
|
144
|
+
let n = "", o = ["doc", "docx"], e = ["xls", "xlsx"], l = ["ppt", "pptx"], i = ["pdf"];
|
|
145
|
+
return o.includes(t) && (n = "word"), e.includes(t) && (n = "cell"), l.includes(t) && (n = "slide"), i.includes(t) && (n = "text-pdf"), n;
|
|
146
|
+
}, v3 = {
|
|
147
147
|
key: 0,
|
|
148
148
|
t: "1686300059786",
|
|
149
149
|
class: "icon",
|
|
@@ -153,7 +153,7 @@ const M = (t, e) => {
|
|
|
153
153
|
"p-id": "7671",
|
|
154
154
|
width: "200",
|
|
155
155
|
height: "200"
|
|
156
|
-
},
|
|
156
|
+
}, h3 = /* @__PURE__ */ r(
|
|
157
157
|
"path",
|
|
158
158
|
{
|
|
159
159
|
d: "M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",
|
|
@@ -194,7 +194,7 @@ const M = (t, e) => {
|
|
|
194
194
|
-1
|
|
195
195
|
/* HOISTED */
|
|
196
196
|
), w3 = [
|
|
197
|
-
|
|
197
|
+
h3,
|
|
198
198
|
g3,
|
|
199
199
|
m3,
|
|
200
200
|
y3
|
|
@@ -208,7 +208,7 @@ const M = (t, e) => {
|
|
|
208
208
|
"p-id": "9067",
|
|
209
209
|
width: "200",
|
|
210
210
|
height: "200"
|
|
211
|
-
},
|
|
211
|
+
}, x3 = /* @__PURE__ */ r(
|
|
212
212
|
"path",
|
|
213
213
|
{
|
|
214
214
|
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",
|
|
@@ -218,7 +218,7 @@ const M = (t, e) => {
|
|
|
218
218
|
null,
|
|
219
219
|
-1
|
|
220
220
|
/* HOISTED */
|
|
221
|
-
),
|
|
221
|
+
), k3 = /* @__PURE__ */ r(
|
|
222
222
|
"path",
|
|
223
223
|
{
|
|
224
224
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -228,10 +228,10 @@ const M = (t, e) => {
|
|
|
228
228
|
null,
|
|
229
229
|
-1
|
|
230
230
|
/* HOISTED */
|
|
231
|
-
),
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
],
|
|
231
|
+
), z3 = [
|
|
232
|
+
x3,
|
|
233
|
+
k3
|
|
234
|
+
], b3 = {
|
|
235
235
|
key: 2,
|
|
236
236
|
t: "1686300141125",
|
|
237
237
|
class: "icon",
|
|
@@ -241,7 +241,7 @@ const M = (t, e) => {
|
|
|
241
241
|
"p-id": "8137",
|
|
242
242
|
width: "200",
|
|
243
243
|
height: "200"
|
|
244
|
-
},
|
|
244
|
+
}, F3 = /* @__PURE__ */ r(
|
|
245
245
|
"path",
|
|
246
246
|
{
|
|
247
247
|
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 m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",
|
|
@@ -262,7 +262,7 @@ const M = (t, e) => {
|
|
|
262
262
|
-1
|
|
263
263
|
/* HOISTED */
|
|
264
264
|
), C3 = [
|
|
265
|
-
|
|
265
|
+
F3,
|
|
266
266
|
S3
|
|
267
267
|
], V3 = {
|
|
268
268
|
key: 3,
|
|
@@ -530,7 +530,7 @@ const M = (t, e) => {
|
|
|
530
530
|
t6,
|
|
531
531
|
n6,
|
|
532
532
|
o6
|
|
533
|
-
],
|
|
533
|
+
], l6 = {
|
|
534
534
|
key: 10,
|
|
535
535
|
t: "1714099890925",
|
|
536
536
|
class: "icon",
|
|
@@ -540,7 +540,7 @@ const M = (t, e) => {
|
|
|
540
540
|
"p-id": "2271",
|
|
541
541
|
width: "200",
|
|
542
542
|
height: "200"
|
|
543
|
-
},
|
|
543
|
+
}, s6 = /* @__PURE__ */ r(
|
|
544
544
|
"path",
|
|
545
545
|
{
|
|
546
546
|
d: "M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",
|
|
@@ -572,7 +572,7 @@ const M = (t, e) => {
|
|
|
572
572
|
-1
|
|
573
573
|
/* HOISTED */
|
|
574
574
|
), r6 = [
|
|
575
|
-
|
|
575
|
+
s6,
|
|
576
576
|
a6,
|
|
577
577
|
c6
|
|
578
578
|
], d6 = {
|
|
@@ -615,11 +615,11 @@ const M = (t, e) => {
|
|
|
615
615
|
null,
|
|
616
616
|
-1
|
|
617
617
|
/* HOISTED */
|
|
618
|
-
),
|
|
618
|
+
), v6 = [
|
|
619
619
|
u6,
|
|
620
620
|
f6,
|
|
621
621
|
p6
|
|
622
|
-
],
|
|
622
|
+
], h6 = /* @__PURE__ */ z({
|
|
623
623
|
__name: "FileIcon",
|
|
624
624
|
props: {
|
|
625
625
|
type: {
|
|
@@ -640,10 +640,10 @@ const M = (t, e) => {
|
|
|
640
640
|
}
|
|
641
641
|
},
|
|
642
642
|
setup(t) {
|
|
643
|
-
const
|
|
644
|
-
return (
|
|
643
|
+
const n = t, o = m(() => n.file ? Y(n.file, n.fields) : n.type);
|
|
644
|
+
return (e, l) => o.value === "image" ? (c(), u("svg", v3, w3)) : o.value === "zip" ? (c(), u("svg", _3, z3)) : o.value === "ppt" ? (c(), u("svg", b3, C3)) : o.value === "word" ? (c(), u("svg", V3, R3)) : o.value === "pdf" ? (c(), u("svg", I3, $3)) : o.value === "txt" ? (c(), u("svg", q3, A3)) : o.value === "audio" ? (c(), u("svg", P3, j3)) : o.value === "video" ? (c(), u("svg", L3, K3)) : o.value === "excel" ? (c(), u("svg", G3, J3)) : o.value === "exe" ? (c(), u("svg", Q3, i6)) : o.value === "json" ? (c(), u("svg", l6, r6)) : (c(), u("svg", d6, v6));
|
|
645
645
|
}
|
|
646
|
-
}), g6 = ["onClick"], m6 = { class: "text" }, y6 = { class: "fileName" }, w6 = { class: "size" }, _6 = /* @__PURE__ */
|
|
646
|
+
}), g6 = ["onClick"], m6 = { class: "text" }, y6 = { class: "fileName" }, w6 = { class: "size" }, _6 = /* @__PURE__ */ z({
|
|
647
647
|
__name: "IkPreviewFile",
|
|
648
648
|
props: {
|
|
649
649
|
list: {
|
|
@@ -713,13 +713,13 @@ const M = (t, e) => {
|
|
|
713
713
|
}
|
|
714
714
|
},
|
|
715
715
|
setup(t) {
|
|
716
|
-
const
|
|
716
|
+
const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = u3(n), l = m(() => ({
|
|
717
717
|
name: "name",
|
|
718
718
|
url: "url",
|
|
719
719
|
suffix: "suffix",
|
|
720
720
|
size: "size",
|
|
721
|
-
...
|
|
722
|
-
})), i =
|
|
721
|
+
...n.field
|
|
722
|
+
})), i = M({}), s = M(!1), f = (d) => {
|
|
723
723
|
var w, _;
|
|
724
724
|
i.value = {
|
|
725
725
|
...d,
|
|
@@ -728,23 +728,23 @@ const M = (t, e) => {
|
|
|
728
728
|
o.value,
|
|
729
729
|
d.url || ((_ = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : _.id) || (d == null ? void 0 : d.id)
|
|
730
730
|
)
|
|
731
|
-
},
|
|
732
|
-
},
|
|
733
|
-
|
|
731
|
+
}, s.value = !0;
|
|
732
|
+
}, v = (d) => {
|
|
733
|
+
s3.downloadFile(
|
|
734
734
|
T(
|
|
735
735
|
o.value,
|
|
736
|
-
d[
|
|
736
|
+
d[l.value.url] || d.attachmentId || d.id
|
|
737
737
|
),
|
|
738
|
-
d[
|
|
738
|
+
d[l.value.name] || d.attachmentName
|
|
739
739
|
);
|
|
740
|
-
},
|
|
740
|
+
}, a = m(() => l3.isNumber(n.width) ? `${n.width}px` : n.width), p = m(() => n.list.map((d) => ({
|
|
741
741
|
...d,
|
|
742
|
-
name: d[
|
|
743
|
-
size: d[
|
|
744
|
-
suffix: d[
|
|
742
|
+
name: d[l.value.name] || d.attachmentName,
|
|
743
|
+
size: d[l.value.size] || d.fileSize || d.attachmentSize,
|
|
744
|
+
suffix: d[l.value.suffix] || d.attachmentSuffix
|
|
745
745
|
})));
|
|
746
746
|
return (d, w) => {
|
|
747
|
-
var _,
|
|
747
|
+
var _, x, q;
|
|
748
748
|
return c(), u(
|
|
749
749
|
P,
|
|
750
750
|
null,
|
|
@@ -752,41 +752,41 @@ const M = (t, e) => {
|
|
|
752
752
|
(_ = t.list) != null && _.length ? (c(!0), u(
|
|
753
753
|
P,
|
|
754
754
|
{ key: 0 },
|
|
755
|
-
K(p.value, (
|
|
756
|
-
var
|
|
755
|
+
K(p.value, (k, h) => {
|
|
756
|
+
var H;
|
|
757
757
|
return c(), u(
|
|
758
758
|
"div",
|
|
759
759
|
{
|
|
760
760
|
class: C(["iking-privew-annex", { "is-bg": t.showBg }]),
|
|
761
|
-
key:
|
|
762
|
-
style:
|
|
763
|
-
marginBottom:
|
|
764
|
-
width:
|
|
761
|
+
key: h,
|
|
762
|
+
style: b({
|
|
763
|
+
marginBottom: h == ((H = t.list) == null ? void 0 : H.length) - 1 ? "0" : "10px",
|
|
764
|
+
width: a.value
|
|
765
765
|
})
|
|
766
766
|
},
|
|
767
767
|
[
|
|
768
768
|
r("div", {
|
|
769
769
|
class: "file-card",
|
|
770
|
-
onClick: (
|
|
770
|
+
onClick: (E) => f(k)
|
|
771
771
|
}, [
|
|
772
|
-
|
|
773
|
-
file:
|
|
774
|
-
style:
|
|
772
|
+
F(h6, {
|
|
773
|
+
file: k,
|
|
774
|
+
style: b({ height: `${t.iconSize}px` }),
|
|
775
775
|
class: "ikui-w-auto",
|
|
776
|
-
fields:
|
|
776
|
+
fields: l.value
|
|
777
777
|
}, null, 8, ["file", "style", "fields"]),
|
|
778
778
|
r("div", m6, [
|
|
779
779
|
r(
|
|
780
780
|
"div",
|
|
781
781
|
y6,
|
|
782
|
-
O(
|
|
782
|
+
O(k.name),
|
|
783
783
|
1
|
|
784
784
|
/* TEXT */
|
|
785
785
|
),
|
|
786
786
|
r(
|
|
787
787
|
"div",
|
|
788
788
|
w6,
|
|
789
|
-
O(g(r3)(
|
|
789
|
+
O(g(r3)(k.size)),
|
|
790
790
|
1
|
|
791
791
|
/* TEXT */
|
|
792
792
|
)
|
|
@@ -797,19 +797,19 @@ const M = (t, e) => {
|
|
|
797
797
|
class: C(["flex flex-center", { "hover-show": t.iconHoverShow }])
|
|
798
798
|
},
|
|
799
799
|
[
|
|
800
|
-
|
|
800
|
+
F(g(A), {
|
|
801
801
|
name: "iksvg_daochu",
|
|
802
|
-
onClick: J((
|
|
802
|
+
onClick: J((E) => v(k), ["stop"]),
|
|
803
803
|
bg: t.showBg,
|
|
804
804
|
size: t.showBg ? "default" : 20
|
|
805
805
|
}, null, 8, ["onClick", "bg", "size"]),
|
|
806
|
-
|
|
806
|
+
F(g(A), {
|
|
807
807
|
name: "iksvg_yulan",
|
|
808
808
|
bg: t.showBg,
|
|
809
809
|
size: t.showBg ? "default" : 20
|
|
810
810
|
}, null, 8, ["bg", "size"]),
|
|
811
811
|
V(d.$slots, "operation", {
|
|
812
|
-
data: { ...
|
|
812
|
+
data: { ...k, findex: h }
|
|
813
813
|
})
|
|
814
814
|
],
|
|
815
815
|
2
|
|
@@ -824,14 +824,14 @@ const M = (t, e) => {
|
|
|
824
824
|
128
|
|
825
825
|
/* KEYED_FRAGMENT */
|
|
826
826
|
)) : B("v-if", !0),
|
|
827
|
-
|
|
828
|
-
show:
|
|
829
|
-
"onUpdate:show": w[0] || (w[0] = (
|
|
827
|
+
F(g(z6), {
|
|
828
|
+
show: s.value,
|
|
829
|
+
"onUpdate:show": w[0] || (w[0] = (k) => s.value = k),
|
|
830
830
|
loadUrl: g(o),
|
|
831
831
|
file: i.value,
|
|
832
|
-
onlyofficeServer: ((
|
|
833
|
-
onlyOfficeConfig: g(
|
|
834
|
-
onlyOfficeAccept: ((
|
|
832
|
+
onlyofficeServer: ((x = g(e)) == null ? void 0 : x.serverUrl) || t.onlyofficeServer,
|
|
833
|
+
onlyOfficeConfig: g(e),
|
|
834
|
+
onlyOfficeAccept: ((q = g(e)) == null ? void 0 : q.accept) || t.onlyOfficeAccept
|
|
835
835
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
|
|
836
836
|
],
|
|
837
837
|
64
|
|
@@ -840,7 +840,7 @@ const M = (t, e) => {
|
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
|
-
const
|
|
843
|
+
const x6 = $(_6), k6 = /* @__PURE__ */ z({
|
|
844
844
|
__name: "IkPreviewFileDialog",
|
|
845
845
|
props: /* @__PURE__ */ G({
|
|
846
846
|
file: {
|
|
@@ -877,34 +877,34 @@ const k6 = M(_6), z6 = /* @__PURE__ */ b({
|
|
|
877
877
|
}),
|
|
878
878
|
emits: ["update:show"],
|
|
879
879
|
setup(t) {
|
|
880
|
-
const
|
|
880
|
+
const n = t, o = X(t, "show"), e = m(() => ({
|
|
881
881
|
name: "name",
|
|
882
882
|
url: "url",
|
|
883
883
|
suffix: "suffix",
|
|
884
884
|
size: "fileSize",
|
|
885
|
-
...
|
|
886
|
-
})),
|
|
885
|
+
...n.field
|
|
886
|
+
})), l = M(null), i = M(null), s = Q({
|
|
887
887
|
image: !1,
|
|
888
888
|
office: !1,
|
|
889
889
|
video: !1
|
|
890
|
-
}), f = (
|
|
891
|
-
var p, d, w, _,
|
|
890
|
+
}), f = (a) => {
|
|
891
|
+
var p, d, w, _, x, q, k;
|
|
892
892
|
try {
|
|
893
|
-
const
|
|
893
|
+
const h = ((p = a == null ? void 0 : a.response) == null ? void 0 : p.data) || a, H = h[e.value.url] || (h == null ? void 0 : h.id) || h.attachmentId, E = (d = h[e.value.suffix] || h.attachmentSuffix) == null ? void 0 : d.toLowerCase(), Z = h[e.value.name] || (h == null ? void 0 : h.attachmentName) || (h == null ? void 0 : h.originName);
|
|
894
894
|
if (i.value = {
|
|
895
|
-
...
|
|
896
|
-
name:
|
|
897
|
-
url: T(
|
|
898
|
-
},
|
|
899
|
-
|
|
895
|
+
...a,
|
|
896
|
+
name: a[e.value.name],
|
|
897
|
+
url: T(n.loadUrl, H)
|
|
898
|
+
}, a && Y(a, e.value) === "image") {
|
|
899
|
+
s.image = !0;
|
|
900
900
|
return;
|
|
901
|
-
} else if ((((w =
|
|
902
|
-
|
|
903
|
-
...
|
|
901
|
+
} else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(E)) {
|
|
902
|
+
s.office = !0, l.value = {
|
|
903
|
+
...n.onlyOfficeConfig,
|
|
904
904
|
editorConfig: {
|
|
905
|
-
...((_ =
|
|
905
|
+
...((_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) || {},
|
|
906
906
|
customization: {
|
|
907
|
-
...((
|
|
907
|
+
...((q = (x = n.onlyOfficeConfig) == null ? void 0 : x.editorConfig) == null ? void 0 : q.customization) || {},
|
|
908
908
|
review: {
|
|
909
909
|
reviewDisplay: "final"
|
|
910
910
|
}
|
|
@@ -913,45 +913,45 @@ const k6 = M(_6), z6 = /* @__PURE__ */ b({
|
|
|
913
913
|
document: {
|
|
914
914
|
key: a3(),
|
|
915
915
|
title: Z,
|
|
916
|
-
url: T(
|
|
917
|
-
fileType:
|
|
918
|
-
...((
|
|
916
|
+
url: T(n.loadUrl, H),
|
|
917
|
+
fileType: E,
|
|
918
|
+
...((k = n.onlyOfficeConfig) == null ? void 0 : k.document) || {}
|
|
919
919
|
},
|
|
920
|
-
documentType: p3(
|
|
920
|
+
documentType: p3(E)
|
|
921
921
|
};
|
|
922
922
|
return;
|
|
923
923
|
}
|
|
924
|
-
} catch (
|
|
925
|
-
console.info("预览错误: ",
|
|
924
|
+
} catch (h) {
|
|
925
|
+
console.info("预览错误: ", h);
|
|
926
926
|
}
|
|
927
927
|
};
|
|
928
|
-
e3([o,
|
|
929
|
-
|
|
930
|
-
f(
|
|
928
|
+
e3([o, n.file], ([a, p]) => {
|
|
929
|
+
a && t3(() => {
|
|
930
|
+
f(n.file);
|
|
931
931
|
});
|
|
932
932
|
});
|
|
933
|
-
const
|
|
934
|
-
o.value = !1,
|
|
933
|
+
const v = () => {
|
|
934
|
+
o.value = !1, s.office = !1, s.image = !1, s.video = !1;
|
|
935
935
|
};
|
|
936
|
-
return (
|
|
936
|
+
return (a, p) => {
|
|
937
937
|
var w, _;
|
|
938
938
|
const d = R("el-image-viewer");
|
|
939
939
|
return o.value ? (c(), u(
|
|
940
940
|
P,
|
|
941
941
|
{ key: 0 },
|
|
942
942
|
[
|
|
943
|
-
(w = i.value) != null && w.url &&
|
|
943
|
+
(w = i.value) != null && w.url && s.image ? (c(), S(d, {
|
|
944
944
|
key: 0,
|
|
945
|
-
onClose: p[0] || (p[0] = (
|
|
946
|
-
i.value = null,
|
|
945
|
+
onClose: p[0] || (p[0] = (x) => {
|
|
946
|
+
i.value = null, s.image = !1;
|
|
947
947
|
}),
|
|
948
948
|
ref: "previewImgRef",
|
|
949
949
|
"url-list": [(_ = i.value) == null ? void 0 : _.url]
|
|
950
950
|
}, null, 8, ["url-list"])) : B("v-if", !0),
|
|
951
951
|
B(" 文档类 "),
|
|
952
|
-
|
|
953
|
-
modelValue:
|
|
954
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
952
|
+
F(g(E6), {
|
|
953
|
+
modelValue: s.office,
|
|
954
|
+
"onUpdate:modelValue": p[1] || (p[1] = (x) => s.office = x),
|
|
955
955
|
draggable: "",
|
|
956
956
|
"no-footer": "",
|
|
957
957
|
"no-header": "",
|
|
@@ -961,15 +961,15 @@ const k6 = M(_6), z6 = /* @__PURE__ */ b({
|
|
|
961
961
|
"close-on-click-modal": "",
|
|
962
962
|
"close-on-press-escape": !1,
|
|
963
963
|
"append-to-body": "",
|
|
964
|
-
onClose:
|
|
964
|
+
onClose: v,
|
|
965
965
|
"modal-class": "ik-only-preview-dialog"
|
|
966
966
|
}, {
|
|
967
967
|
default: y(() => {
|
|
968
|
-
var
|
|
968
|
+
var x;
|
|
969
969
|
return [
|
|
970
|
-
|
|
971
|
-
"config-options":
|
|
972
|
-
"document-server-url": ((
|
|
970
|
+
F(g(N6), {
|
|
971
|
+
"config-options": l.value,
|
|
972
|
+
"document-server-url": ((x = t.onlyOfficeConfig) == null ? void 0 : x.serverUrl) || t.onlyofficeServer
|
|
973
973
|
}, null, 8, ["config-options", "document-server-url"])
|
|
974
974
|
];
|
|
975
975
|
}),
|
|
@@ -983,10 +983,10 @@ const k6 = M(_6), z6 = /* @__PURE__ */ b({
|
|
|
983
983
|
};
|
|
984
984
|
}
|
|
985
985
|
});
|
|
986
|
-
const
|
|
986
|
+
const z6 = $(k6), b6 = {
|
|
987
987
|
key: 0,
|
|
988
988
|
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
|
|
989
|
-
},
|
|
989
|
+
}, F6 = {
|
|
990
990
|
key: 1,
|
|
991
991
|
class: "h-[1em] w-[1em]",
|
|
992
992
|
"aria-hidden": "true"
|
|
@@ -994,7 +994,7 @@ const b6 = M(z6), F6 = {
|
|
|
994
994
|
key: 1,
|
|
995
995
|
class: "h-[1em] w-[1em]",
|
|
996
996
|
"aria-hidden": "true"
|
|
997
|
-
}, O6 = ["xlink:href"], B6 = ["src"], R6 = /* @__PURE__ */
|
|
997
|
+
}, O6 = ["xlink:href"], B6 = ["src"], R6 = /* @__PURE__ */ z({
|
|
998
998
|
name: "IkSvgIcon",
|
|
999
999
|
__name: "index",
|
|
1000
1000
|
props: {
|
|
@@ -1021,84 +1021,87 @@ const b6 = M(z6), F6 = {
|
|
|
1021
1021
|
tableIconType: { default: "icon" }
|
|
1022
1022
|
},
|
|
1023
1023
|
setup(t) {
|
|
1024
|
-
const
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}), l = m(() => {
|
|
1028
|
-
const
|
|
1029
|
-
|
|
1030
|
-
|
|
1024
|
+
const n = t, o = I("iconConfig"), e = m(() => ({
|
|
1025
|
+
...(o == null ? void 0 : o.value) || {},
|
|
1026
|
+
...n
|
|
1027
|
+
})), l = m(() => {
|
|
1028
|
+
const { name: s } = e.value;
|
|
1029
|
+
return /^http?:\/\//.test(s) ? "img" : /i-[^:]+:[^:]+/.test(s) ? "unocss" : s != null && s.startsWith("iksig") ? "iksig" : s != null && s.includes(":") ? "iconify" : s != null && s.startsWith("iksvg") ? "svg" : "i";
|
|
1030
|
+
}), i = m(() => {
|
|
1031
|
+
const s = [];
|
|
1032
|
+
if (e.value.flip)
|
|
1033
|
+
switch (e.value.flip) {
|
|
1031
1034
|
case "horizontal":
|
|
1032
|
-
|
|
1035
|
+
s.push("rotateY(180deg)");
|
|
1033
1036
|
break;
|
|
1034
1037
|
case "vertical":
|
|
1035
|
-
|
|
1038
|
+
s.push("rotateX(180deg)");
|
|
1036
1039
|
break;
|
|
1037
1040
|
case "both":
|
|
1038
|
-
|
|
1041
|
+
s.push("rotateX(180deg)"), s.push("rotateY(180deg)");
|
|
1039
1042
|
break;
|
|
1040
1043
|
}
|
|
1041
|
-
e.rotate &&
|
|
1042
|
-
const
|
|
1043
|
-
...e.color && { color: e.color },
|
|
1044
|
-
...e.size && { fontSize: typeof e.size == "number" ? `${e.size}px` : e.size },
|
|
1045
|
-
...
|
|
1046
|
-
padding: e.showBg || e.bg ? e.padding : 0,
|
|
1047
|
-
...e.color &&
|
|
1048
|
-
"--ik-color-icon-dark": e.color,
|
|
1049
|
-
"--ik-color-icon-light": e.colorLight || c3.setOpacity(e.color, e.opacity)
|
|
1044
|
+
e.value.rotate && s.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
1045
|
+
const f = {
|
|
1046
|
+
...e.value.color && { color: e.value.color },
|
|
1047
|
+
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
1048
|
+
...s.length && { transform: s.join(" ") },
|
|
1049
|
+
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
1050
|
+
...e.value.color && l.value !== "iksig" ? {
|
|
1051
|
+
"--ik-color-icon-dark": e.value.color,
|
|
1052
|
+
"--ik-color-icon-light": e.value.colorLight || c3.setOpacity(e.value.color, e.value.opacity)
|
|
1050
1053
|
} : {}
|
|
1051
1054
|
};
|
|
1052
|
-
return e.width && (
|
|
1055
|
+
return e.value.width && (f.width = f.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), f;
|
|
1053
1056
|
});
|
|
1054
|
-
return (
|
|
1055
|
-
const
|
|
1056
|
-
return
|
|
1057
|
-
|
|
1057
|
+
return (s, f) => {
|
|
1058
|
+
const v = R("el-tooltip"), a = R("el-button");
|
|
1059
|
+
return e.value.tableIconType === "icon" ? (c(), u("span", b6, [
|
|
1060
|
+
e.value.notip || !e.value.title ? (c(), u(
|
|
1058
1061
|
"i",
|
|
1059
1062
|
{
|
|
1060
1063
|
key: 0,
|
|
1061
1064
|
class: C(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1062
|
-
[
|
|
1063
|
-
"show-bg":
|
|
1064
|
-
default:
|
|
1065
|
-
small:
|
|
1066
|
-
big:
|
|
1067
|
-
warning:
|
|
1068
|
-
primary:
|
|
1069
|
-
success:
|
|
1070
|
-
error:
|
|
1071
|
-
active:
|
|
1072
|
-
disabled:
|
|
1065
|
+
[s.name]: l.value === "unocss",
|
|
1066
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
1067
|
+
default: e.value.size === "default",
|
|
1068
|
+
small: e.value.size === "small",
|
|
1069
|
+
big: e.value.size === "big",
|
|
1070
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
1071
|
+
primary: e.value.primary || e.value.type === "primary",
|
|
1072
|
+
success: s.success || e.value.type === "success",
|
|
1073
|
+
error: e.value.error || e.value.type === "error",
|
|
1074
|
+
active: e.value.active,
|
|
1075
|
+
disabled: e.value.disabled
|
|
1073
1076
|
}]),
|
|
1074
|
-
style:
|
|
1077
|
+
style: b(i.value)
|
|
1075
1078
|
},
|
|
1076
1079
|
[
|
|
1077
1080
|
B(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
1078
|
-
|
|
1081
|
+
l.value === "iksig" ? (c(), u(
|
|
1079
1082
|
"i",
|
|
1080
1083
|
{
|
|
1081
1084
|
key: 0,
|
|
1082
|
-
class: C(`iksig ${
|
|
1083
|
-
style:
|
|
1085
|
+
class: C(`iksig ${e.value.name}`),
|
|
1086
|
+
style: b(i.value)
|
|
1084
1087
|
},
|
|
1085
1088
|
null,
|
|
1086
1089
|
6
|
|
1087
1090
|
/* CLASS, STYLE */
|
|
1088
|
-
)) :
|
|
1091
|
+
)) : l.value === "svg" ? (c(), u("svg", F6, [
|
|
1089
1092
|
r("use", {
|
|
1090
|
-
"xlink:href": `#${
|
|
1093
|
+
"xlink:href": `#${e.value.name}`
|
|
1091
1094
|
}, null, 8, S6)
|
|
1092
|
-
])) :
|
|
1095
|
+
])) : l.value === "img" ? (c(), u("img", {
|
|
1093
1096
|
key: 2,
|
|
1094
|
-
src:
|
|
1097
|
+
src: e.value.name,
|
|
1095
1098
|
class: "h-[1em] w-[1em]"
|
|
1096
1099
|
}, null, 8, C6)) : (c(), u(
|
|
1097
1100
|
"i",
|
|
1098
1101
|
{
|
|
1099
1102
|
key: 3,
|
|
1100
|
-
class: C(
|
|
1101
|
-
style:
|
|
1103
|
+
class: C(e.value.name),
|
|
1104
|
+
style: b(i.value)
|
|
1102
1105
|
},
|
|
1103
1106
|
null,
|
|
1104
1107
|
6
|
|
@@ -1107,9 +1110,9 @@ const b6 = M(z6), F6 = {
|
|
|
1107
1110
|
],
|
|
1108
1111
|
6
|
|
1109
1112
|
/* CLASS, STYLE */
|
|
1110
|
-
)) : (c(), S(
|
|
1113
|
+
)) : (c(), S(v, {
|
|
1111
1114
|
key: 1,
|
|
1112
|
-
content:
|
|
1115
|
+
content: e.value.title,
|
|
1113
1116
|
placement: "top"
|
|
1114
1117
|
}, {
|
|
1115
1118
|
default: y(() => [
|
|
@@ -1117,44 +1120,44 @@ const b6 = M(z6), F6 = {
|
|
|
1117
1120
|
"i",
|
|
1118
1121
|
{
|
|
1119
1122
|
class: C(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1120
|
-
[
|
|
1121
|
-
"show-bg":
|
|
1122
|
-
default:
|
|
1123
|
-
small:
|
|
1124
|
-
big:
|
|
1125
|
-
warning:
|
|
1126
|
-
primary:
|
|
1127
|
-
success:
|
|
1128
|
-
error:
|
|
1129
|
-
active:
|
|
1123
|
+
[s.name]: l.value === "unocss",
|
|
1124
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
1125
|
+
default: e.value.size === "default",
|
|
1126
|
+
small: e.value.size === "small",
|
|
1127
|
+
big: e.value.size === "big",
|
|
1128
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
1129
|
+
primary: s.primary || e.value.type === "primary",
|
|
1130
|
+
success: s.success || e.value.type === "success",
|
|
1131
|
+
error: e.value.error || e.value.type === "error",
|
|
1132
|
+
active: e.value.active
|
|
1130
1133
|
}]),
|
|
1131
|
-
style:
|
|
1134
|
+
style: b(i.value)
|
|
1132
1135
|
},
|
|
1133
1136
|
[
|
|
1134
|
-
|
|
1137
|
+
l.value === "iksig" ? (c(), u(
|
|
1135
1138
|
"i",
|
|
1136
1139
|
{
|
|
1137
1140
|
key: 0,
|
|
1138
|
-
class: C(`iksig ${
|
|
1139
|
-
style:
|
|
1141
|
+
class: C(`iksig ${e.value.name}`),
|
|
1142
|
+
style: b(i.value)
|
|
1140
1143
|
},
|
|
1141
1144
|
null,
|
|
1142
1145
|
6
|
|
1143
1146
|
/* CLASS, STYLE */
|
|
1144
|
-
)) :
|
|
1147
|
+
)) : l.value === "svg" ? (c(), u("svg", V6, [
|
|
1145
1148
|
r("use", {
|
|
1146
|
-
"xlink:href": `#${
|
|
1149
|
+
"xlink:href": `#${e.value.name}`
|
|
1147
1150
|
}, null, 8, O6)
|
|
1148
|
-
])) :
|
|
1151
|
+
])) : l.value === "img" ? (c(), u("img", {
|
|
1149
1152
|
key: 2,
|
|
1150
|
-
src:
|
|
1153
|
+
src: e.value.name,
|
|
1151
1154
|
class: "h-[1em] w-[1em]"
|
|
1152
1155
|
}, null, 8, B6)) : (c(), u(
|
|
1153
1156
|
"i",
|
|
1154
1157
|
{
|
|
1155
1158
|
key: 3,
|
|
1156
|
-
class: C(
|
|
1157
|
-
style:
|
|
1159
|
+
class: C(e.value.name),
|
|
1160
|
+
style: b(i.value)
|
|
1158
1161
|
},
|
|
1159
1162
|
null,
|
|
1160
1163
|
6
|
|
@@ -1168,13 +1171,13 @@ const b6 = M(z6), F6 = {
|
|
|
1168
1171
|
_: 1
|
|
1169
1172
|
/* STABLE */
|
|
1170
1173
|
}, 8, ["content"]))
|
|
1171
|
-
])) : (c(), S(
|
|
1174
|
+
])) : (c(), S(a, {
|
|
1172
1175
|
key: 1,
|
|
1173
|
-
type: ["warning", "error"].includes(
|
|
1176
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
1174
1177
|
}, {
|
|
1175
1178
|
default: y(() => [
|
|
1176
|
-
|
|
1177
|
-
O(
|
|
1179
|
+
D(
|
|
1180
|
+
O(e.value.title),
|
|
1178
1181
|
1
|
|
1179
1182
|
/* TEXT */
|
|
1180
1183
|
)
|
|
@@ -1185,10 +1188,10 @@ const b6 = M(z6), F6 = {
|
|
|
1185
1188
|
};
|
|
1186
1189
|
}
|
|
1187
1190
|
});
|
|
1188
|
-
const I6 = /* @__PURE__ */ U(R6, [["__scopeId", "data-v-
|
|
1191
|
+
const I6 = /* @__PURE__ */ U(R6, [["__scopeId", "data-v-1be337e4"]]), A = $(I6), D6 = {
|
|
1189
1192
|
key: 0,
|
|
1190
1193
|
class: "exit-main-page-maximize"
|
|
1191
|
-
}, M6 = /* @__PURE__ */
|
|
1194
|
+
}, M6 = /* @__PURE__ */ z({
|
|
1192
1195
|
__name: "CloseIcon",
|
|
1193
1196
|
props: {
|
|
1194
1197
|
showBg: {
|
|
@@ -1201,9 +1204,9 @@ const I6 = /* @__PURE__ */ U(R6, [["__scopeId", "data-v-7d95dbf5"]]), A = M(I6),
|
|
|
1201
1204
|
}
|
|
1202
1205
|
},
|
|
1203
1206
|
setup(t) {
|
|
1204
|
-
return (
|
|
1207
|
+
return (n, o) => (c(), u("div", null, [
|
|
1205
1208
|
t.showBg && t.fullscreen ? (c(), u("div", D6, [
|
|
1206
|
-
|
|
1209
|
+
F(g(A), {
|
|
1207
1210
|
name: "iksvg_guanbidanchuang",
|
|
1208
1211
|
title: "关闭",
|
|
1209
1212
|
size: 20,
|
|
@@ -1219,7 +1222,7 @@ const I6 = /* @__PURE__ */ U(R6, [["__scopeId", "data-v-7d95dbf5"]]), A = M(I6),
|
|
|
1219
1222
|
]));
|
|
1220
1223
|
}
|
|
1221
1224
|
});
|
|
1222
|
-
const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { class: "base-header" }, H6 = /* @__PURE__ */
|
|
1225
|
+
const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { class: "base-header" }, H6 = /* @__PURE__ */ z({
|
|
1223
1226
|
__name: "IkBaseDialog",
|
|
1224
1227
|
props: /* @__PURE__ */ G({
|
|
1225
1228
|
title: { default: "" },
|
|
@@ -1240,31 +1243,31 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
|
|
|
1240
1243
|
}),
|
|
1241
1244
|
emits: ["update:modelValue"],
|
|
1242
1245
|
setup(t) {
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1245
|
-
}, i =
|
|
1246
|
+
const n = t, o = X(t, "modelValue"), e = M(n.fullscreen), l = () => {
|
|
1247
|
+
e.value = !e.value;
|
|
1248
|
+
}, i = z({
|
|
1246
1249
|
setup() {
|
|
1247
1250
|
return () => n3($6, {
|
|
1248
|
-
showBg:
|
|
1249
|
-
fullscreen:
|
|
1251
|
+
showBg: n.showCloseBg,
|
|
1252
|
+
fullscreen: n.fullscreen
|
|
1250
1253
|
});
|
|
1251
1254
|
}
|
|
1252
1255
|
});
|
|
1253
|
-
return (
|
|
1254
|
-
const
|
|
1255
|
-
return c(), S(
|
|
1256
|
+
return (s, f) => {
|
|
1257
|
+
const v = R("el-dialog");
|
|
1258
|
+
return c(), S(v, j({
|
|
1256
1259
|
modelValue: o.value,
|
|
1257
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
1258
|
-
},
|
|
1260
|
+
"onUpdate:modelValue": f[0] || (f[0] = (a) => o.value = a)
|
|
1261
|
+
}, s.$attrs, {
|
|
1259
1262
|
"close-icon": g(i),
|
|
1260
|
-
class: `ik-base-dialog ${
|
|
1261
|
-
fullscreen:
|
|
1263
|
+
class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
|
|
1264
|
+
fullscreen: e.value,
|
|
1262
1265
|
"modal-class": "baseDialog"
|
|
1263
1266
|
}), o3({
|
|
1264
1267
|
icon: y(() => [
|
|
1265
|
-
V(
|
|
1266
|
-
|
|
1267
|
-
O(
|
|
1268
|
+
V(s.$slots, "title", {}, () => [
|
|
1269
|
+
D(
|
|
1270
|
+
O(s.title),
|
|
1268
1271
|
1
|
|
1269
1272
|
/* TEXT */
|
|
1270
1273
|
)
|
|
@@ -1272,32 +1275,32 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
|
|
|
1272
1275
|
]),
|
|
1273
1276
|
header: y(() => [
|
|
1274
1277
|
r("div", q6, [
|
|
1275
|
-
V(
|
|
1276
|
-
|
|
1277
|
-
O(
|
|
1278
|
+
V(s.$slots, "header", {}, () => [
|
|
1279
|
+
D(
|
|
1280
|
+
O(s.title),
|
|
1278
1281
|
1
|
|
1279
1282
|
/* TEXT */
|
|
1280
1283
|
)
|
|
1281
1284
|
])
|
|
1282
1285
|
]),
|
|
1283
|
-
|
|
1286
|
+
s.$attrs.showClose ? (c(), S(g(A), {
|
|
1284
1287
|
key: 0,
|
|
1285
|
-
onClick:
|
|
1286
|
-
name:
|
|
1288
|
+
onClick: l,
|
|
1289
|
+
name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
1287
1290
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
1288
|
-
title:
|
|
1291
|
+
title: e.value ? "退出全屏" : "全屏"
|
|
1289
1292
|
}, null, 8, ["name", "title"])) : B("v-if", !0)
|
|
1290
1293
|
]),
|
|
1291
1294
|
default: y(() => [
|
|
1292
|
-
V(
|
|
1295
|
+
V(s.$slots, "default")
|
|
1293
1296
|
]),
|
|
1294
1297
|
_: 2
|
|
1295
1298
|
/* DYNAMIC */
|
|
1296
1299
|
}, [
|
|
1297
|
-
|
|
1300
|
+
s.$slots.footer ? {
|
|
1298
1301
|
name: "footer",
|
|
1299
1302
|
fn: y(() => [
|
|
1300
|
-
V(
|
|
1303
|
+
V(s.$slots, "footer")
|
|
1301
1304
|
]),
|
|
1302
1305
|
key: "0"
|
|
1303
1306
|
} : void 0
|
|
@@ -1305,135 +1308,135 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
|
|
|
1305
1308
|
};
|
|
1306
1309
|
}
|
|
1307
1310
|
});
|
|
1308
|
-
const E6 =
|
|
1309
|
-
function A6(t,
|
|
1310
|
-
function
|
|
1311
|
-
return i instanceof o ? i : new o(function(
|
|
1312
|
-
|
|
1311
|
+
const E6 = $(H6);
|
|
1312
|
+
function A6(t, n, o, e) {
|
|
1313
|
+
function l(i) {
|
|
1314
|
+
return i instanceof o ? i : new o(function(s) {
|
|
1315
|
+
s(i);
|
|
1313
1316
|
});
|
|
1314
1317
|
}
|
|
1315
|
-
return new (o || (o = Promise))(function(i,
|
|
1318
|
+
return new (o || (o = Promise))(function(i, s) {
|
|
1316
1319
|
function f(p) {
|
|
1317
1320
|
try {
|
|
1318
|
-
|
|
1321
|
+
a(e.next(p));
|
|
1319
1322
|
} catch (d) {
|
|
1320
|
-
|
|
1323
|
+
s(d);
|
|
1321
1324
|
}
|
|
1322
1325
|
}
|
|
1323
|
-
function
|
|
1326
|
+
function v(p) {
|
|
1324
1327
|
try {
|
|
1325
|
-
|
|
1328
|
+
a(e.throw(p));
|
|
1326
1329
|
} catch (d) {
|
|
1327
|
-
|
|
1330
|
+
s(d);
|
|
1328
1331
|
}
|
|
1329
1332
|
}
|
|
1330
|
-
function
|
|
1331
|
-
p.done ? i(p.value) :
|
|
1333
|
+
function a(p) {
|
|
1334
|
+
p.done ? i(p.value) : l(p.value).then(f, v);
|
|
1332
1335
|
}
|
|
1333
|
-
|
|
1336
|
+
a((e = e.apply(t, n || [])).next());
|
|
1334
1337
|
});
|
|
1335
1338
|
}
|
|
1336
|
-
function P6(t,
|
|
1339
|
+
function P6(t, n) {
|
|
1337
1340
|
var o = { label: 0, sent: function() {
|
|
1338
1341
|
if (i[0] & 1)
|
|
1339
1342
|
throw i[1];
|
|
1340
1343
|
return i[1];
|
|
1341
|
-
}, trys: [], ops: [] },
|
|
1342
|
-
return
|
|
1344
|
+
}, trys: [], ops: [] }, e, l, i, s;
|
|
1345
|
+
return s = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
1343
1346
|
return this;
|
|
1344
|
-
}),
|
|
1345
|
-
function f(
|
|
1347
|
+
}), s;
|
|
1348
|
+
function f(a) {
|
|
1346
1349
|
return function(p) {
|
|
1347
|
-
return
|
|
1350
|
+
return v([a, p]);
|
|
1348
1351
|
};
|
|
1349
1352
|
}
|
|
1350
|
-
function
|
|
1351
|
-
if (
|
|
1353
|
+
function v(a) {
|
|
1354
|
+
if (e)
|
|
1352
1355
|
throw new TypeError("Generator is already executing.");
|
|
1353
|
-
for (;
|
|
1356
|
+
for (; s && (s = 0, a[0] && (o = 0)), o; )
|
|
1354
1357
|
try {
|
|
1355
|
-
if (
|
|
1358
|
+
if (e = 1, l && (i = a[0] & 2 ? l.return : a[0] ? l.throw || ((i = l.return) && i.call(l), 0) : l.next) && !(i = i.call(l, a[1])).done)
|
|
1356
1359
|
return i;
|
|
1357
|
-
switch (
|
|
1360
|
+
switch (l = 0, i && (a = [a[0] & 2, i.value]), a[0]) {
|
|
1358
1361
|
case 0:
|
|
1359
1362
|
case 1:
|
|
1360
|
-
i =
|
|
1363
|
+
i = a;
|
|
1361
1364
|
break;
|
|
1362
1365
|
case 4:
|
|
1363
|
-
return o.label++, { value:
|
|
1366
|
+
return o.label++, { value: a[1], done: !1 };
|
|
1364
1367
|
case 5:
|
|
1365
|
-
o.label++,
|
|
1368
|
+
o.label++, l = a[1], a = [0];
|
|
1366
1369
|
continue;
|
|
1367
1370
|
case 7:
|
|
1368
|
-
|
|
1371
|
+
a = o.ops.pop(), o.trys.pop();
|
|
1369
1372
|
continue;
|
|
1370
1373
|
default:
|
|
1371
|
-
if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (
|
|
1374
|
+
if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (a[0] === 6 || a[0] === 2)) {
|
|
1372
1375
|
o = 0;
|
|
1373
1376
|
continue;
|
|
1374
1377
|
}
|
|
1375
|
-
if (
|
|
1376
|
-
o.label =
|
|
1378
|
+
if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
|
|
1379
|
+
o.label = a[1];
|
|
1377
1380
|
break;
|
|
1378
1381
|
}
|
|
1379
|
-
if (
|
|
1380
|
-
o.label = i[1], i =
|
|
1382
|
+
if (a[0] === 6 && o.label < i[1]) {
|
|
1383
|
+
o.label = i[1], i = a;
|
|
1381
1384
|
break;
|
|
1382
1385
|
}
|
|
1383
1386
|
if (i && o.label < i[2]) {
|
|
1384
|
-
o.label = i[2], o.ops.push(
|
|
1387
|
+
o.label = i[2], o.ops.push(a);
|
|
1385
1388
|
break;
|
|
1386
1389
|
}
|
|
1387
1390
|
i[2] && o.ops.pop(), o.trys.pop();
|
|
1388
1391
|
continue;
|
|
1389
1392
|
}
|
|
1390
|
-
|
|
1393
|
+
a = n.call(t, o);
|
|
1391
1394
|
} catch (p) {
|
|
1392
|
-
|
|
1395
|
+
a = [6, p], l = 0;
|
|
1393
1396
|
} finally {
|
|
1394
|
-
|
|
1397
|
+
e = i = 0;
|
|
1395
1398
|
}
|
|
1396
|
-
if (
|
|
1397
|
-
throw
|
|
1398
|
-
return { value:
|
|
1399
|
+
if (a[0] & 5)
|
|
1400
|
+
throw a[1];
|
|
1401
|
+
return { value: a[0] ? a[1] : void 0, done: !0 };
|
|
1399
1402
|
}
|
|
1400
1403
|
}
|
|
1401
|
-
var T6 = function(t,
|
|
1404
|
+
var T6 = function(t, n) {
|
|
1402
1405
|
return A6(void 0, void 0, void 0, function() {
|
|
1403
1406
|
return P6(this, function(o) {
|
|
1404
|
-
return [2, new Promise(function(
|
|
1407
|
+
return [2, new Promise(function(e, l) {
|
|
1405
1408
|
try {
|
|
1406
1409
|
if (window.DocsAPI)
|
|
1407
|
-
return
|
|
1408
|
-
var i = document.getElementById(
|
|
1410
|
+
return e(null);
|
|
1411
|
+
var i = document.getElementById(n);
|
|
1409
1412
|
if (i)
|
|
1410
|
-
var
|
|
1411
|
-
var
|
|
1412
|
-
if (!
|
|
1413
|
-
if (clearInterval(
|
|
1414
|
-
return
|
|
1415
|
-
var
|
|
1416
|
-
i.remove(), document.body.appendChild(
|
|
1413
|
+
var s = setInterval(function() {
|
|
1414
|
+
var v = i.getAttribute("loading");
|
|
1415
|
+
if (!v) {
|
|
1416
|
+
if (clearInterval(s), window.DocsAPI)
|
|
1417
|
+
return e(null);
|
|
1418
|
+
var a = N(n, t, e, l);
|
|
1419
|
+
i.remove(), document.body.appendChild(a);
|
|
1417
1420
|
}
|
|
1418
1421
|
}, 500);
|
|
1419
1422
|
else {
|
|
1420
|
-
var f = N(
|
|
1423
|
+
var f = N(n, t, e, l);
|
|
1421
1424
|
document.body.appendChild(f);
|
|
1422
1425
|
}
|
|
1423
|
-
} catch (
|
|
1424
|
-
console.error(
|
|
1426
|
+
} catch (v) {
|
|
1427
|
+
console.error(v);
|
|
1425
1428
|
}
|
|
1426
1429
|
})];
|
|
1427
1430
|
});
|
|
1428
1431
|
});
|
|
1429
|
-
}, N = function(t,
|
|
1430
|
-
var
|
|
1431
|
-
return
|
|
1432
|
-
|
|
1433
|
-
},
|
|
1434
|
-
|
|
1435
|
-
},
|
|
1436
|
-
}, L =
|
|
1432
|
+
}, N = function(t, n, o, e) {
|
|
1433
|
+
var l = document.createElement("script");
|
|
1434
|
+
return l.id = t, l.type = "text/javascript", l.src = n, l.async = !0, l.onload = function() {
|
|
1435
|
+
l.removeAttribute("loading"), o(null);
|
|
1436
|
+
}, l.onerror = function(i) {
|
|
1437
|
+
l.removeAttribute("loading"), e(i);
|
|
1438
|
+
}, l.setAttribute("loading", ""), l;
|
|
1439
|
+
}, L = z({
|
|
1437
1440
|
name: "DocumentEditor",
|
|
1438
1441
|
props: {
|
|
1439
1442
|
id: {
|
|
@@ -1485,9 +1488,9 @@ var T6 = function(t, e) {
|
|
|
1485
1488
|
events_onRequestSelectDocument: Function
|
|
1486
1489
|
},
|
|
1487
1490
|
mounted: function() {
|
|
1488
|
-
var t = this,
|
|
1489
|
-
|
|
1490
|
-
var o = "".concat(
|
|
1491
|
+
var t = this, n = this.documentServerUrl;
|
|
1492
|
+
n.endsWith("/") || (n += "/");
|
|
1493
|
+
var o = "".concat(n, "web-apps/apps/api/documents/api.js");
|
|
1491
1494
|
T6(o, "onlyoffice-api-script").then(function() {
|
|
1492
1495
|
return t.onLoad();
|
|
1493
1496
|
}).catch(function() {
|
|
@@ -1495,49 +1498,49 @@ var T6 = function(t, e) {
|
|
|
1495
1498
|
});
|
|
1496
1499
|
},
|
|
1497
1500
|
unmounted: function() {
|
|
1498
|
-
var t,
|
|
1499
|
-
!((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[
|
|
1501
|
+
var t, n = this.id || "";
|
|
1502
|
+
!((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0);
|
|
1500
1503
|
},
|
|
1501
1504
|
watch: {
|
|
1502
1505
|
config: {
|
|
1503
|
-
handler: function(t,
|
|
1506
|
+
handler: function(t, n) {
|
|
1504
1507
|
this.onChangeProps();
|
|
1505
1508
|
},
|
|
1506
1509
|
deep: !0
|
|
1507
1510
|
},
|
|
1508
|
-
document_fileType: function(t,
|
|
1511
|
+
document_fileType: function(t, n) {
|
|
1509
1512
|
this.onChangeProps();
|
|
1510
1513
|
},
|
|
1511
|
-
document_title: function(t,
|
|
1514
|
+
document_title: function(t, n) {
|
|
1512
1515
|
this.onChangeProps();
|
|
1513
1516
|
},
|
|
1514
|
-
documentType: function(t,
|
|
1517
|
+
documentType: function(t, n) {
|
|
1515
1518
|
this.onChangeProps();
|
|
1516
1519
|
},
|
|
1517
|
-
editorConfig_lang: function(t,
|
|
1520
|
+
editorConfig_lang: function(t, n) {
|
|
1518
1521
|
this.onChangeProps();
|
|
1519
1522
|
},
|
|
1520
|
-
height: function(t,
|
|
1523
|
+
height: function(t, n) {
|
|
1521
1524
|
this.onChangeProps();
|
|
1522
1525
|
},
|
|
1523
|
-
type: function(t,
|
|
1526
|
+
type: function(t, n) {
|
|
1524
1527
|
this.onChangeProps();
|
|
1525
1528
|
},
|
|
1526
|
-
width: function(t,
|
|
1529
|
+
width: function(t, n) {
|
|
1527
1530
|
this.onChangeProps();
|
|
1528
1531
|
}
|
|
1529
1532
|
},
|
|
1530
1533
|
methods: {
|
|
1531
1534
|
onLoad: function() {
|
|
1532
|
-
var t,
|
|
1535
|
+
var t, n;
|
|
1533
1536
|
try {
|
|
1534
1537
|
var o = this.id || "";
|
|
1535
1538
|
if (window.DocsAPI || this.onError(-3), !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[o]) {
|
|
1536
1539
|
console.log("Skip loading. Instance already exists", o);
|
|
1537
1540
|
return;
|
|
1538
1541
|
}
|
|
1539
|
-
!((
|
|
1540
|
-
var
|
|
1542
|
+
!((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances || (window.DocEditor = { instances: {} });
|
|
1543
|
+
var e = Object.assign({
|
|
1541
1544
|
document: {
|
|
1542
1545
|
fileType: this.document_fileType,
|
|
1543
1546
|
title: this.document_title
|
|
@@ -1572,43 +1575,43 @@ var T6 = function(t, e) {
|
|
|
1572
1575
|
height: this.height,
|
|
1573
1576
|
type: this.type,
|
|
1574
1577
|
width: this.width
|
|
1575
|
-
}, this.config || {}),
|
|
1576
|
-
window.DocEditor.instances[o] =
|
|
1578
|
+
}, this.config || {}), l = window.DocsAPI.DocEditor(o, e);
|
|
1579
|
+
window.DocEditor.instances[o] = l;
|
|
1577
1580
|
} catch (i) {
|
|
1578
1581
|
console.error(i), this.onError(-1);
|
|
1579
1582
|
}
|
|
1580
1583
|
},
|
|
1581
1584
|
onError: function(t) {
|
|
1582
|
-
var
|
|
1585
|
+
var n;
|
|
1583
1586
|
switch (t) {
|
|
1584
1587
|
case -2:
|
|
1585
|
-
|
|
1588
|
+
n = "Error load DocsAPI from " + this.documentServerUrl;
|
|
1586
1589
|
break;
|
|
1587
1590
|
case -3:
|
|
1588
|
-
|
|
1591
|
+
n = "DocsAPI is not defined";
|
|
1589
1592
|
break;
|
|
1590
1593
|
default:
|
|
1591
|
-
|
|
1594
|
+
n = "Unknown error loading component", t = -1;
|
|
1592
1595
|
}
|
|
1593
|
-
typeof this.onLoadComponentError > "u" ? console.error(
|
|
1596
|
+
typeof this.onLoadComponentError > "u" ? console.error(n) : this.onLoadComponentError(t, n);
|
|
1594
1597
|
},
|
|
1595
1598
|
onAppReady: function() {
|
|
1596
1599
|
var t = this.id || "";
|
|
1597
1600
|
this.events_onAppReady(window.DocEditor.instances[t]);
|
|
1598
1601
|
},
|
|
1599
1602
|
onChangeProps: function() {
|
|
1600
|
-
var t,
|
|
1601
|
-
!((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[
|
|
1603
|
+
var t, n = this.id || "";
|
|
1604
|
+
!((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.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());
|
|
1602
1605
|
}
|
|
1603
1606
|
}
|
|
1604
1607
|
});
|
|
1605
1608
|
const U6 = ["id"];
|
|
1606
|
-
function j6(t,
|
|
1609
|
+
function j6(t, n, o, e, l, i) {
|
|
1607
1610
|
return c(), u("div", { id: t.id }, null, 8, U6);
|
|
1608
1611
|
}
|
|
1609
1612
|
L.render = j6;
|
|
1610
1613
|
L.__file = "src/components/DocumentEditor.vue";
|
|
1611
|
-
const L6 = /* @__PURE__ */
|
|
1614
|
+
const L6 = /* @__PURE__ */ z({
|
|
1612
1615
|
__name: "IkOnlyOffice",
|
|
1613
1616
|
props: {
|
|
1614
1617
|
// 文件服务器的服务的地址
|
|
@@ -1629,26 +1632,26 @@ const L6 = /* @__PURE__ */ b({
|
|
|
1629
1632
|
}
|
|
1630
1633
|
},
|
|
1631
1634
|
setup(t) {
|
|
1632
|
-
const
|
|
1635
|
+
const n = t, o = M({
|
|
1633
1636
|
width: "100%",
|
|
1634
1637
|
height: "100%",
|
|
1635
|
-
...
|
|
1636
|
-
...
|
|
1637
|
-
}),
|
|
1638
|
-
console.info("文档加载完成",
|
|
1638
|
+
...n.configOptions || {},
|
|
1639
|
+
...n.configOptions
|
|
1640
|
+
}), e = () => {
|
|
1641
|
+
console.info("文档加载完成", n.configOptions);
|
|
1639
1642
|
};
|
|
1640
|
-
return (
|
|
1643
|
+
return (l, i) => (c(), u(
|
|
1641
1644
|
"div",
|
|
1642
1645
|
{
|
|
1643
|
-
style:
|
|
1646
|
+
style: b({ height: n.officeHeight })
|
|
1644
1647
|
},
|
|
1645
1648
|
[
|
|
1646
|
-
|
|
1649
|
+
F(g(L), {
|
|
1647
1650
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1648
1651
|
ref: "editorRef",
|
|
1649
1652
|
"document-server-url": t.documentServerUrl,
|
|
1650
1653
|
config: o.value,
|
|
1651
|
-
events_onDocumentReady:
|
|
1654
|
+
events_onDocumentReady: e
|
|
1652
1655
|
}, null, 8, ["id", "document-server-url", "config"])
|
|
1653
1656
|
],
|
|
1654
1657
|
4
|
|
@@ -1656,7 +1659,7 @@ const L6 = /* @__PURE__ */ b({
|
|
|
1656
1659
|
));
|
|
1657
1660
|
}
|
|
1658
1661
|
});
|
|
1659
|
-
const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 =
|
|
1662
|
+
const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6), K6 = /* @__PURE__ */ z({
|
|
1660
1663
|
__name: "IKDescription",
|
|
1661
1664
|
props: {
|
|
1662
1665
|
showIcon: {
|
|
@@ -1715,64 +1718,64 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = M(W6)
|
|
|
1715
1718
|
}
|
|
1716
1719
|
},
|
|
1717
1720
|
setup(t) {
|
|
1718
|
-
i3((
|
|
1719
|
-
"645335a7":
|
|
1721
|
+
i3((l) => ({
|
|
1722
|
+
"645335a7": e.value
|
|
1720
1723
|
}));
|
|
1721
|
-
const
|
|
1724
|
+
const n = t, o = {
|
|
1722
1725
|
id: "id",
|
|
1723
1726
|
value: "value",
|
|
1724
1727
|
props: "props",
|
|
1725
1728
|
label: "label",
|
|
1726
1729
|
tag: "tag",
|
|
1727
1730
|
fileList: "fileList",
|
|
1728
|
-
...
|
|
1729
|
-
},
|
|
1730
|
-
return (
|
|
1731
|
-
const
|
|
1731
|
+
...n.fileField
|
|
1732
|
+
}, e = m(() => typeof n.labelWidth == "number" ? `${n.labelWidth}px` : n.labelWidth);
|
|
1733
|
+
return (l, i) => {
|
|
1734
|
+
const s = R("el-tag"), f = R("el-descriptions-item"), v = R("el-descriptions");
|
|
1732
1735
|
return c(), S(
|
|
1733
|
-
|
|
1734
|
-
j({ class: "margin-top" }, { ...t.titleProps, ...
|
|
1736
|
+
v,
|
|
1737
|
+
j({ class: "margin-top" }, { ...t.titleProps, ...n }),
|
|
1735
1738
|
{
|
|
1736
1739
|
extra: y(() => [
|
|
1737
|
-
V(
|
|
1740
|
+
V(l.$slots, "extra", {}, void 0, !0)
|
|
1738
1741
|
]),
|
|
1739
1742
|
default: y(() => [
|
|
1740
1743
|
(c(!0), u(
|
|
1741
1744
|
P,
|
|
1742
1745
|
null,
|
|
1743
|
-
K(t.listData, (
|
|
1746
|
+
K(t.listData, (a) => (c(), S(
|
|
1744
1747
|
f,
|
|
1745
1748
|
j({
|
|
1746
|
-
key:
|
|
1749
|
+
key: a[o.id],
|
|
1747
1750
|
ref_for: !0
|
|
1748
|
-
},
|
|
1751
|
+
}, a[o.props]),
|
|
1749
1752
|
{
|
|
1750
1753
|
label: y(() => [
|
|
1751
|
-
V(
|
|
1752
|
-
|
|
1753
|
-
O(
|
|
1754
|
+
V(l.$slots, a[o.label], {}, () => [
|
|
1755
|
+
D(
|
|
1756
|
+
O(a[o.label]),
|
|
1754
1757
|
1
|
|
1755
1758
|
/* TEXT */
|
|
1756
1759
|
)
|
|
1757
1760
|
], !0)
|
|
1758
1761
|
]),
|
|
1759
1762
|
default: y(() => [
|
|
1760
|
-
V(
|
|
1761
|
-
|
|
1762
|
-
O(
|
|
1763
|
+
V(l.$slots, `${a[o.label]}_value`, {}, () => [
|
|
1764
|
+
D(
|
|
1765
|
+
O(a[o.value]) + " ",
|
|
1763
1766
|
1
|
|
1764
1767
|
/* TEXT */
|
|
1765
1768
|
),
|
|
1766
|
-
|
|
1767
|
-
|
|
1769
|
+
a[o.tag] ? (c(), S(
|
|
1770
|
+
s,
|
|
1768
1771
|
{
|
|
1769
1772
|
key: 0,
|
|
1770
1773
|
size: "small"
|
|
1771
1774
|
},
|
|
1772
1775
|
{
|
|
1773
1776
|
default: y(() => [
|
|
1774
|
-
|
|
1775
|
-
O(
|
|
1777
|
+
D(
|
|
1778
|
+
O(a[o.value].value),
|
|
1776
1779
|
1
|
|
1777
1780
|
/* TEXT */
|
|
1778
1781
|
)
|
|
@@ -1783,8 +1786,8 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = M(W6)
|
|
|
1783
1786
|
1024
|
|
1784
1787
|
/* DYNAMIC_SLOTS */
|
|
1785
1788
|
)) : B("v-if", !0),
|
|
1786
|
-
|
|
1787
|
-
list:
|
|
1789
|
+
F(g(x6), {
|
|
1790
|
+
list: a[o.fileList],
|
|
1788
1791
|
field: t.fileField,
|
|
1789
1792
|
"load-url": t.loadUrl,
|
|
1790
1793
|
"kk-url": t.kkUrl,
|
|
@@ -1815,7 +1818,7 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = M(W6)
|
|
|
1815
1818
|
};
|
|
1816
1819
|
}
|
|
1817
1820
|
});
|
|
1818
|
-
const G6 = /* @__PURE__ */ U(K6, [["__scopeId", "data-v-38defd72"]]), J6 =
|
|
1821
|
+
const G6 = /* @__PURE__ */ U(K6, [["__scopeId", "data-v-38defd72"]]), J6 = $(G6);
|
|
1819
1822
|
export {
|
|
1820
1823
|
J6 as IkDescriptions,
|
|
1821
1824
|
J6 as default
|