iking-web-ui-pro 0.2.7 → 0.2.9
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 +394 -332
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +303 -241
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +838 -779
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +428 -366
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/index.es.js +15657 -15598
- package/dist/index.umd.js +65 -65
- package/dist/src/components/IKPreviewFile/index.d.ts +19 -0
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +9 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as D, computed as m, defineComponent as F, openBlock as c, createElementBlock as u, createElementVNode as r, ref as q, resolveComponent as I, Fragment as M, renderList as L, normalizeStyle as z, toDisplayString as V, normalizeClass as S, createVNode as k, unref as g, withModifiers as K, renderSlot as C, createBlock as b, withCtx as y, createCommentVNode as $, mergeModels as Y, useModel as Z, reactive as Q, watch as e3, nextTick as t3, createTextVNode as H, h as n3, mergeProps as N, createSlots as o3, useCssVars as i3 } from "vue";
|
|
2
2
|
import { paramType as l3, ikFile as s3, buildUUID as a3, ikColor as c3 } from "iking-utils-pro";
|
|
3
|
-
const
|
|
3
|
+
const E = (t, n) => {
|
|
4
4
|
if (t.install = (o) => {
|
|
5
5
|
for (const e of [t, ...Object.values(n ?? {})])
|
|
6
6
|
o.component(e.name, e);
|
|
@@ -10,8 +10,8 @@ const $ = (t, n) => {
|
|
|
10
10
|
return t;
|
|
11
11
|
}, U = (t, n) => {
|
|
12
12
|
const o = t.__vccOpts || t;
|
|
13
|
-
for (const [e,
|
|
14
|
-
o[e] =
|
|
13
|
+
for (const [e, s] of n)
|
|
14
|
+
o[e] = s;
|
|
15
15
|
return o;
|
|
16
16
|
}, r3 = (t, n = 2) => {
|
|
17
17
|
if (t === void 0)
|
|
@@ -19,20 +19,20 @@ const $ = (t, n) => {
|
|
|
19
19
|
if (t === 0)
|
|
20
20
|
return "0 B";
|
|
21
21
|
const o = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
|
|
22
|
-
let
|
|
23
|
-
return (
|
|
22
|
+
let s = t / Math.pow(1024, e);
|
|
23
|
+
return (s % 1 === 0 ? s.toFixed(n || 0) : s.toFixed(n)) + " " + o[e];
|
|
24
24
|
}, T = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", d3 = (t) => {
|
|
25
|
-
const n =
|
|
25
|
+
const n = D("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = D("uploadUrl"), s = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = D("token"), a = m(() => t.token || (i == null ? void 0 : i.value)), p = D("onlyofficeConfig"), h = m(() => t.onlyofficeConfig || (p == null ? void 0 : p.value)), l = D("userInfo"), v = m(() => t.userInfo || (l == null ? void 0 : l.value));
|
|
26
26
|
return {
|
|
27
27
|
cLoadUrl: o,
|
|
28
|
-
cUploadUrl:
|
|
29
|
-
cToken:
|
|
30
|
-
cOnlyofficeConfig:
|
|
31
|
-
cUserInfo:
|
|
28
|
+
cUploadUrl: s,
|
|
29
|
+
cToken: a,
|
|
30
|
+
cOnlyofficeConfig: h,
|
|
31
|
+
cUserInfo: v
|
|
32
32
|
};
|
|
33
|
-
}, u3 = d3,
|
|
34
|
-
var i,
|
|
35
|
-
const o = (i = t == null ? void 0 : t.response) != null && i.data ?
|
|
33
|
+
}, u3 = d3, J = (t, n) => {
|
|
34
|
+
var i, a, p, h;
|
|
35
|
+
const o = (i = t == null ? void 0 : t.response) != null && i.data ? G((p = (a = t == null ? void 0 : t.response) == null ? void 0 : a.data) == null ? void 0 : p.suffix) : ((h = t.raw) == null ? void 0 : h.type) || G(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), s = {
|
|
36
36
|
sheet: "excel",
|
|
37
37
|
excel: "excel",
|
|
38
38
|
zip: "zip",
|
|
@@ -48,9 +48,9 @@ const $ = (t, n) => {
|
|
|
48
48
|
exe: "exe",
|
|
49
49
|
json: "json"
|
|
50
50
|
};
|
|
51
|
-
for (let
|
|
52
|
-
if (typeof e == "string" && (e.includes(
|
|
53
|
-
return l
|
|
51
|
+
for (let l in s)
|
|
52
|
+
if (typeof e == "string" && (e.includes(l) || e === l))
|
|
53
|
+
return s[l];
|
|
54
54
|
return "unknown";
|
|
55
55
|
}, f3 = {
|
|
56
56
|
".doc": "word",
|
|
@@ -137,12 +137,12 @@ const $ = (t, n) => {
|
|
|
137
137
|
".vob": "video",
|
|
138
138
|
".txt": "txt",
|
|
139
139
|
".pdf": "pdf"
|
|
140
|
-
},
|
|
140
|
+
}, G = (t) => {
|
|
141
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 n = "", o = ["doc", "docx"], e = ["xls", "xlsx"],
|
|
145
|
-
return o.includes(t) && (n = "word"), e.includes(t) && (n = "cell"),
|
|
144
|
+
let n = "", o = ["doc", "docx"], e = ["xls", "xlsx"], s = ["ppt", "pptx"], i = ["pdf"];
|
|
145
|
+
return o.includes(t) && (n = "word"), e.includes(t) && (n = "cell"), s.includes(t) && (n = "slide"), i.includes(t) && (n = "text-pdf"), n;
|
|
146
146
|
}, v3 = {
|
|
147
147
|
key: 0,
|
|
148
148
|
t: "1686300059786",
|
|
@@ -208,7 +208,7 @@ const $ = (t, n) => {
|
|
|
208
208
|
"p-id": "9067",
|
|
209
209
|
width: "200",
|
|
210
210
|
height: "200"
|
|
211
|
-
},
|
|
211
|
+
}, k3 = /* @__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 $ = (t, n) => {
|
|
|
218
218
|
null,
|
|
219
219
|
-1
|
|
220
220
|
/* HOISTED */
|
|
221
|
-
),
|
|
221
|
+
), x3 = /* @__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",
|
|
@@ -229,8 +229,8 @@ const $ = (t, n) => {
|
|
|
229
229
|
-1
|
|
230
230
|
/* HOISTED */
|
|
231
231
|
), z3 = [
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
k3,
|
|
233
|
+
x3
|
|
234
234
|
], b3 = {
|
|
235
235
|
key: 2,
|
|
236
236
|
t: "1686300141125",
|
|
@@ -307,7 +307,7 @@ const $ = (t, n) => {
|
|
|
307
307
|
"p-id": "8447",
|
|
308
308
|
width: "200",
|
|
309
309
|
height: "200"
|
|
310
|
-
},
|
|
310
|
+
}, $3 = /* @__PURE__ */ r(
|
|
311
311
|
"path",
|
|
312
312
|
{
|
|
313
313
|
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",
|
|
@@ -317,7 +317,7 @@ const $ = (t, n) => {
|
|
|
317
317
|
null,
|
|
318
318
|
-1
|
|
319
319
|
/* HOISTED */
|
|
320
|
-
),
|
|
320
|
+
), D3 = /* @__PURE__ */ r(
|
|
321
321
|
"path",
|
|
322
322
|
{
|
|
323
323
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -327,10 +327,10 @@ const $ = (t, n) => {
|
|
|
327
327
|
null,
|
|
328
328
|
-1
|
|
329
329
|
/* HOISTED */
|
|
330
|
-
),
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
],
|
|
330
|
+
), M3 = [
|
|
331
|
+
$3,
|
|
332
|
+
D3
|
|
333
|
+
], H3 = {
|
|
334
334
|
key: 5,
|
|
335
335
|
t: "1686300195363",
|
|
336
336
|
class: "icon",
|
|
@@ -340,7 +340,7 @@ const $ = (t, n) => {
|
|
|
340
340
|
"p-id": "8602",
|
|
341
341
|
width: "200",
|
|
342
342
|
height: "200"
|
|
343
|
-
},
|
|
343
|
+
}, q3 = /* @__PURE__ */ r(
|
|
344
344
|
"path",
|
|
345
345
|
{
|
|
346
346
|
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",
|
|
@@ -361,7 +361,7 @@ const $ = (t, n) => {
|
|
|
361
361
|
-1
|
|
362
362
|
/* HOISTED */
|
|
363
363
|
), A3 = [
|
|
364
|
-
|
|
364
|
+
q3,
|
|
365
365
|
E3
|
|
366
366
|
], P3 = {
|
|
367
367
|
key: 6,
|
|
@@ -406,7 +406,7 @@ const $ = (t, n) => {
|
|
|
406
406
|
"p-id": "8912",
|
|
407
407
|
width: "200",
|
|
408
408
|
height: "200"
|
|
409
|
-
},
|
|
409
|
+
}, N3 = /* @__PURE__ */ r(
|
|
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 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",
|
|
@@ -416,7 +416,7 @@ const $ = (t, n) => {
|
|
|
416
416
|
null,
|
|
417
417
|
-1
|
|
418
418
|
/* HOISTED */
|
|
419
|
-
),
|
|
419
|
+
), W3 = /* @__PURE__ */ r(
|
|
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",
|
|
@@ -427,8 +427,8 @@ const $ = (t, n) => {
|
|
|
427
427
|
-1
|
|
428
428
|
/* HOISTED */
|
|
429
429
|
), K3 = [
|
|
430
|
-
|
|
431
|
-
|
|
430
|
+
N3,
|
|
431
|
+
W3
|
|
432
432
|
], G3 = {
|
|
433
433
|
key: 8,
|
|
434
434
|
t: "1692251753690",
|
|
@@ -619,7 +619,7 @@ const $ = (t, n) => {
|
|
|
619
619
|
u6,
|
|
620
620
|
f6,
|
|
621
621
|
p6
|
|
622
|
-
], h6 = /* @__PURE__ */
|
|
622
|
+
], h6 = /* @__PURE__ */ F({
|
|
623
623
|
__name: "FileIcon",
|
|
624
624
|
props: {
|
|
625
625
|
type: {
|
|
@@ -640,10 +640,10 @@ const $ = (t, n) => {
|
|
|
640
640
|
}
|
|
641
641
|
},
|
|
642
642
|
setup(t) {
|
|
643
|
-
const n = t, o = m(() => n.file ?
|
|
644
|
-
return (e,
|
|
643
|
+
const n = t, o = m(() => n.file ? J(n.file, n.fields) : n.type);
|
|
644
|
+
return (e, s) => 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, I3)) : o.value === "pdf" ? (c(), u("svg", R3, M3)) : o.value === "txt" ? (c(), u("svg", H3, 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: "
|
|
646
|
+
}), g6 = ["onClick"], m6 = { class: "fileName simple" }, y6 = ["onClick"], w6 = { class: "text" }, _6 = { class: "fileName" }, k6 = { class: "size" }, x6 = /* @__PURE__ */ F({
|
|
647
647
|
__name: "IkPreviewFile",
|
|
648
648
|
props: {
|
|
649
649
|
list: {
|
|
@@ -710,128 +710,190 @@ const $ = (t, n) => {
|
|
|
710
710
|
jwtToken: {
|
|
711
711
|
type: String,
|
|
712
712
|
default: ""
|
|
713
|
+
},
|
|
714
|
+
// 简单模式
|
|
715
|
+
simple: {
|
|
716
|
+
type: Boolean,
|
|
717
|
+
default: !1
|
|
713
718
|
}
|
|
714
719
|
},
|
|
715
720
|
setup(t) {
|
|
716
|
-
const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = u3(n),
|
|
721
|
+
const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = u3(n), s = m(() => ({
|
|
717
722
|
name: "name",
|
|
718
723
|
url: "url",
|
|
719
724
|
suffix: "suffix",
|
|
720
725
|
size: "size",
|
|
721
726
|
...n.field
|
|
722
|
-
})), i =
|
|
723
|
-
var w,
|
|
727
|
+
})), i = q({}), a = q(!1), p = (d) => {
|
|
728
|
+
var w, x;
|
|
724
729
|
i.value = {
|
|
725
730
|
...d,
|
|
726
731
|
name: d.name,
|
|
727
732
|
url: T(
|
|
728
733
|
o.value,
|
|
729
|
-
d.url || ((
|
|
734
|
+
d.url || ((x = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : x.id) || (d == null ? void 0 : d.id)
|
|
730
735
|
)
|
|
731
|
-
},
|
|
732
|
-
},
|
|
736
|
+
}, a.value = !0;
|
|
737
|
+
}, h = (d) => {
|
|
733
738
|
s3.downloadFile(
|
|
734
739
|
T(
|
|
735
740
|
o.value,
|
|
736
|
-
d[
|
|
741
|
+
d[s.value.url] || d.attachmentId || d.id
|
|
737
742
|
),
|
|
738
|
-
d[
|
|
743
|
+
d[s.value.name] || d.attachmentName
|
|
739
744
|
);
|
|
740
|
-
},
|
|
745
|
+
}, l = m(() => l3.isNumber(n.width) ? `${n.width}px` : n.width), v = m(() => n.list.map((d) => ({
|
|
741
746
|
...d,
|
|
742
|
-
name: d[
|
|
743
|
-
size: d[
|
|
744
|
-
suffix: d[
|
|
747
|
+
name: d[s.value.name] || d.attachmentName,
|
|
748
|
+
size: d[s.value.size] || d.fileSize || d.attachmentSize,
|
|
749
|
+
suffix: d[s.value.suffix] || d.attachmentSuffix
|
|
745
750
|
})));
|
|
746
751
|
return (d, w) => {
|
|
747
|
-
var _,
|
|
752
|
+
var _, A, P;
|
|
753
|
+
const x = I("tmplate");
|
|
748
754
|
return c(), u(
|
|
749
|
-
|
|
755
|
+
M,
|
|
750
756
|
null,
|
|
751
757
|
[
|
|
752
|
-
(_ = t.list) != null && _.length ? (c(
|
|
753
|
-
|
|
758
|
+
(_ = t.list) != null && _.length ? (c(), u(
|
|
759
|
+
M,
|
|
754
760
|
{ key: 0 },
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
{
|
|
760
|
-
class:
|
|
761
|
-
|
|
762
|
-
style:
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
761
|
+
[
|
|
762
|
+
t.simple ? (c(!0), u(
|
|
763
|
+
M,
|
|
764
|
+
{ key: 0 },
|
|
765
|
+
L(v.value, (f, O) => (c(), u("div", {
|
|
766
|
+
class: "iking-privew-annex simple",
|
|
767
|
+
onClick: (B) => p(f),
|
|
768
|
+
style: z({ width: l.value })
|
|
769
|
+
}, [
|
|
770
|
+
r(
|
|
771
|
+
"div",
|
|
772
|
+
m6,
|
|
773
|
+
V(f.name),
|
|
774
|
+
1
|
|
775
|
+
/* TEXT */
|
|
776
|
+
),
|
|
777
|
+
r(
|
|
778
|
+
"div",
|
|
779
|
+
{
|
|
780
|
+
class: S(["flex flex-center", { "hover-show": t.iconHoverShow }])
|
|
781
|
+
},
|
|
782
|
+
[
|
|
783
|
+
k(g(R), {
|
|
784
|
+
name: "iksvg_daochu",
|
|
785
|
+
onClick: K((B) => h(f), ["stop"]),
|
|
786
|
+
size: 20,
|
|
787
|
+
active: ""
|
|
788
|
+
}, null, 8, ["onClick"]),
|
|
789
|
+
k(g(R), {
|
|
790
|
+
name: "iksvg_yulan",
|
|
791
|
+
size: 20,
|
|
792
|
+
active: ""
|
|
793
|
+
}),
|
|
794
|
+
C(d.$slots, "operation", {
|
|
795
|
+
data: { ...f, findex: O }
|
|
796
|
+
})
|
|
797
|
+
],
|
|
798
|
+
2
|
|
799
|
+
/* CLASS */
|
|
800
|
+
)
|
|
801
|
+
], 12, g6))),
|
|
802
|
+
256
|
|
803
|
+
/* UNKEYED_FRAGMENT */
|
|
804
|
+
)) : (c(), b(x, { key: 1 }, {
|
|
805
|
+
default: y(() => [
|
|
806
|
+
(c(!0), u(
|
|
807
|
+
M,
|
|
808
|
+
null,
|
|
809
|
+
L(v.value, (f, O) => {
|
|
810
|
+
var B;
|
|
811
|
+
return c(), u(
|
|
780
812
|
"div",
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
813
|
+
{
|
|
814
|
+
class: S(["iking-privew-annex", { "is-bg": t.showBg }]),
|
|
815
|
+
key: O,
|
|
816
|
+
style: z({
|
|
817
|
+
marginBottom: O == ((B = t.list) == null ? void 0 : B.length) - 1 ? "0" : "10px",
|
|
818
|
+
width: l.value
|
|
819
|
+
})
|
|
820
|
+
},
|
|
821
|
+
[
|
|
822
|
+
r("div", {
|
|
823
|
+
class: "file-card",
|
|
824
|
+
onClick: (j) => p(f)
|
|
825
|
+
}, [
|
|
826
|
+
k(h6, {
|
|
827
|
+
file: f,
|
|
828
|
+
style: z({ height: `${t.iconSize}px` }),
|
|
829
|
+
class: "ikui-w-auto",
|
|
830
|
+
fields: s.value
|
|
831
|
+
}, null, 8, ["file", "style", "fields"]),
|
|
832
|
+
r("div", w6, [
|
|
833
|
+
r(
|
|
834
|
+
"div",
|
|
835
|
+
_6,
|
|
836
|
+
V(f.name),
|
|
837
|
+
1
|
|
838
|
+
/* TEXT */
|
|
839
|
+
),
|
|
840
|
+
r(
|
|
841
|
+
"div",
|
|
842
|
+
k6,
|
|
843
|
+
V(g(r3)(f.size)),
|
|
844
|
+
1
|
|
845
|
+
/* TEXT */
|
|
846
|
+
)
|
|
847
|
+
]),
|
|
848
|
+
r(
|
|
849
|
+
"div",
|
|
850
|
+
{
|
|
851
|
+
class: S(["flex flex-center", { "hover-show": t.iconHoverShow }])
|
|
852
|
+
},
|
|
853
|
+
[
|
|
854
|
+
k(g(R), {
|
|
855
|
+
name: "iksvg_daochu",
|
|
856
|
+
onClick: K((j) => h(f), ["stop"]),
|
|
857
|
+
bg: t.showBg,
|
|
858
|
+
size: t.showBg ? "default" : 20
|
|
859
|
+
}, null, 8, ["onClick", "bg", "size"]),
|
|
860
|
+
k(g(R), {
|
|
861
|
+
name: "iksvg_yulan",
|
|
862
|
+
bg: t.showBg,
|
|
863
|
+
size: t.showBg ? "default" : 20
|
|
864
|
+
}, null, 8, ["bg", "size"]),
|
|
865
|
+
C(d.$slots, "operation", {
|
|
866
|
+
data: { ...f, findex: O }
|
|
867
|
+
})
|
|
868
|
+
],
|
|
869
|
+
2
|
|
870
|
+
/* CLASS */
|
|
871
|
+
)
|
|
872
|
+
], 8, y6)
|
|
873
|
+
],
|
|
874
|
+
6
|
|
875
|
+
/* CLASS, STYLE */
|
|
876
|
+
);
|
|
877
|
+
}),
|
|
878
|
+
128
|
|
879
|
+
/* KEYED_FRAGMENT */
|
|
880
|
+
))
|
|
881
|
+
]),
|
|
882
|
+
_: 3
|
|
883
|
+
/* FORWARDED */
|
|
884
|
+
}))
|
|
885
|
+
],
|
|
886
|
+
64
|
|
887
|
+
/* STABLE_FRAGMENT */
|
|
888
|
+
)) : $("v-if", !0),
|
|
889
|
+
k(g(F6), {
|
|
890
|
+
show: a.value,
|
|
891
|
+
"onUpdate:show": w[0] || (w[0] = (f) => a.value = f),
|
|
830
892
|
loadUrl: g(o),
|
|
831
893
|
file: i.value,
|
|
832
|
-
onlyofficeServer: ((
|
|
894
|
+
onlyofficeServer: ((A = g(e)) == null ? void 0 : A.serverUrl) || t.onlyofficeServer,
|
|
833
895
|
onlyOfficeConfig: g(e),
|
|
834
|
-
onlyOfficeAccept: ((
|
|
896
|
+
onlyOfficeAccept: ((P = g(e)) == null ? void 0 : P.accept) || t.onlyOfficeAccept
|
|
835
897
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
|
|
836
898
|
],
|
|
837
899
|
64
|
|
@@ -840,9 +902,9 @@ const $ = (t, n) => {
|
|
|
840
902
|
};
|
|
841
903
|
}
|
|
842
904
|
});
|
|
843
|
-
const
|
|
905
|
+
const z6 = E(x6), b6 = /* @__PURE__ */ F({
|
|
844
906
|
__name: "IkPreviewFileDialog",
|
|
845
|
-
props: /* @__PURE__ */
|
|
907
|
+
props: /* @__PURE__ */ Y({
|
|
846
908
|
file: {
|
|
847
909
|
type: Object,
|
|
848
910
|
default: () => []
|
|
@@ -877,34 +939,34 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
|
|
|
877
939
|
}),
|
|
878
940
|
emits: ["update:show"],
|
|
879
941
|
setup(t) {
|
|
880
|
-
const n = t, o =
|
|
942
|
+
const n = t, o = Z(t, "show"), e = m(() => ({
|
|
881
943
|
name: "name",
|
|
882
944
|
url: "url",
|
|
883
945
|
suffix: "suffix",
|
|
884
946
|
size: "fileSize",
|
|
885
947
|
...n.field
|
|
886
|
-
})),
|
|
948
|
+
})), s = q(null), i = q(null), a = Q({
|
|
887
949
|
image: !1,
|
|
888
950
|
office: !1,
|
|
889
951
|
video: !1
|
|
890
|
-
}),
|
|
891
|
-
var
|
|
952
|
+
}), p = (l) => {
|
|
953
|
+
var v, d, w, x, _, A, P;
|
|
892
954
|
try {
|
|
893
|
-
const
|
|
955
|
+
const f = ((v = l == null ? void 0 : l.response) == null ? void 0 : v.data) || l, O = f[e.value.url] || (f == null ? void 0 : f.id) || f.attachmentId, B = (d = f[e.value.suffix] || f.attachmentSuffix) == null ? void 0 : d.toLowerCase(), j = f[e.value.name] || (f == null ? void 0 : f.attachmentName) || (f == null ? void 0 : f.originName);
|
|
894
956
|
if (i.value = {
|
|
895
|
-
...
|
|
896
|
-
name:
|
|
897
|
-
url: T(n.loadUrl,
|
|
898
|
-
},
|
|
899
|
-
|
|
957
|
+
...l,
|
|
958
|
+
name: l[e.value.name],
|
|
959
|
+
url: T(n.loadUrl, O)
|
|
960
|
+
}, l && J(l, e.value) === "image") {
|
|
961
|
+
a.image = !0;
|
|
900
962
|
return;
|
|
901
|
-
} else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(
|
|
902
|
-
|
|
963
|
+
} else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(B)) {
|
|
964
|
+
a.office = !0, s.value = {
|
|
903
965
|
...n.onlyOfficeConfig,
|
|
904
966
|
editorConfig: {
|
|
905
|
-
...((
|
|
967
|
+
...((x = n.onlyOfficeConfig) == null ? void 0 : x.editorConfig) || {},
|
|
906
968
|
customization: {
|
|
907
|
-
...((
|
|
969
|
+
...((A = (_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) == null ? void 0 : A.customization) || {},
|
|
908
970
|
review: {
|
|
909
971
|
reviewDisplay: "final"
|
|
910
972
|
}
|
|
@@ -912,46 +974,46 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
|
|
|
912
974
|
},
|
|
913
975
|
document: {
|
|
914
976
|
key: a3(),
|
|
915
|
-
title:
|
|
916
|
-
url: T(n.loadUrl,
|
|
917
|
-
fileType:
|
|
918
|
-
...((
|
|
977
|
+
title: j,
|
|
978
|
+
url: T(n.loadUrl, O),
|
|
979
|
+
fileType: B,
|
|
980
|
+
...((P = n.onlyOfficeConfig) == null ? void 0 : P.document) || {}
|
|
919
981
|
},
|
|
920
|
-
documentType: p3(
|
|
982
|
+
documentType: p3(B)
|
|
921
983
|
};
|
|
922
984
|
return;
|
|
923
985
|
}
|
|
924
|
-
} catch (
|
|
925
|
-
console.info("预览错误: ",
|
|
986
|
+
} catch (f) {
|
|
987
|
+
console.info("预览错误: ", f);
|
|
926
988
|
}
|
|
927
989
|
};
|
|
928
|
-
e3([o, n.file], ([
|
|
929
|
-
|
|
930
|
-
|
|
990
|
+
e3([o, n.file], ([l, v]) => {
|
|
991
|
+
l && t3(() => {
|
|
992
|
+
p(n.file);
|
|
931
993
|
});
|
|
932
994
|
});
|
|
933
|
-
const
|
|
934
|
-
o.value = !1,
|
|
995
|
+
const h = () => {
|
|
996
|
+
o.value = !1, a.office = !1, a.image = !1, a.video = !1;
|
|
935
997
|
};
|
|
936
|
-
return (
|
|
937
|
-
var w,
|
|
998
|
+
return (l, v) => {
|
|
999
|
+
var w, x;
|
|
938
1000
|
const d = I("el-image-viewer");
|
|
939
1001
|
return o.value ? (c(), u(
|
|
940
|
-
|
|
1002
|
+
M,
|
|
941
1003
|
{ key: 0 },
|
|
942
1004
|
[
|
|
943
|
-
(w = i.value) != null && w.url &&
|
|
1005
|
+
(w = i.value) != null && w.url && a.image ? (c(), b(d, {
|
|
944
1006
|
key: 0,
|
|
945
|
-
onClose:
|
|
946
|
-
i.value = null,
|
|
1007
|
+
onClose: v[0] || (v[0] = (_) => {
|
|
1008
|
+
i.value = null, a.image = !1;
|
|
947
1009
|
}),
|
|
948
1010
|
ref: "previewImgRef",
|
|
949
|
-
"url-list": [(
|
|
950
|
-
}, null, 8, ["url-list"])) :
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
modelValue:
|
|
954
|
-
"onUpdate:modelValue":
|
|
1011
|
+
"url-list": [(x = i.value) == null ? void 0 : x.url]
|
|
1012
|
+
}, null, 8, ["url-list"])) : $("v-if", !0),
|
|
1013
|
+
$(" 文档类 "),
|
|
1014
|
+
k(g(P6), {
|
|
1015
|
+
modelValue: a.office,
|
|
1016
|
+
"onUpdate:modelValue": v[1] || (v[1] = (_) => a.office = _),
|
|
955
1017
|
draggable: "",
|
|
956
1018
|
"no-footer": "",
|
|
957
1019
|
"no-header": "",
|
|
@@ -961,15 +1023,15 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
|
|
|
961
1023
|
"close-on-click-modal": "",
|
|
962
1024
|
"close-on-press-escape": !1,
|
|
963
1025
|
"append-to-body": "",
|
|
964
|
-
onClose:
|
|
1026
|
+
onClose: h,
|
|
965
1027
|
"modal-class": "ik-only-preview-dialog"
|
|
966
1028
|
}, {
|
|
967
1029
|
default: y(() => {
|
|
968
|
-
var
|
|
1030
|
+
var _;
|
|
969
1031
|
return [
|
|
970
|
-
|
|
971
|
-
"config-options":
|
|
972
|
-
"document-server-url": ((
|
|
1032
|
+
k(g(G6), {
|
|
1033
|
+
"config-options": s.value,
|
|
1034
|
+
"document-server-url": ((_ = t.onlyOfficeConfig) == null ? void 0 : _.serverUrl) || t.onlyofficeServer
|
|
973
1035
|
}, null, 8, ["config-options", "document-server-url"])
|
|
974
1036
|
];
|
|
975
1037
|
}),
|
|
@@ -979,22 +1041,22 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
|
|
|
979
1041
|
],
|
|
980
1042
|
64
|
|
981
1043
|
/* STABLE_FRAGMENT */
|
|
982
|
-
)) :
|
|
1044
|
+
)) : $("v-if", !0);
|
|
983
1045
|
};
|
|
984
1046
|
}
|
|
985
1047
|
});
|
|
986
|
-
const
|
|
1048
|
+
const F6 = E(b6), S6 = {
|
|
987
1049
|
key: 0,
|
|
988
1050
|
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
|
|
989
|
-
},
|
|
1051
|
+
}, C6 = {
|
|
990
1052
|
key: 1,
|
|
991
1053
|
class: "h-[1em] w-[1em]",
|
|
992
1054
|
"aria-hidden": "true"
|
|
993
|
-
},
|
|
1055
|
+
}, V6 = ["xlink:href"], O6 = ["src"], B6 = {
|
|
994
1056
|
key: 1,
|
|
995
1057
|
class: "h-[1em] w-[1em]",
|
|
996
1058
|
"aria-hidden": "true"
|
|
997
|
-
},
|
|
1059
|
+
}, I6 = ["xlink:href"], R6 = ["src"], $6 = /* @__PURE__ */ F({
|
|
998
1060
|
name: "IkSvgIcon",
|
|
999
1061
|
__name: "index",
|
|
1000
1062
|
props: {
|
|
@@ -1021,87 +1083,87 @@ const z6 = $(k6), b6 = {
|
|
|
1021
1083
|
tableIconType: {}
|
|
1022
1084
|
},
|
|
1023
1085
|
setup(t) {
|
|
1024
|
-
const n = t, o =
|
|
1086
|
+
const n = t, o = D("iconConfig"), e = m(() => ({
|
|
1025
1087
|
...(o == null ? void 0 : o.value) || {},
|
|
1026
1088
|
...n
|
|
1027
|
-
})),
|
|
1028
|
-
const { name:
|
|
1029
|
-
return /^http?:\/\//.test(
|
|
1089
|
+
})), s = m(() => {
|
|
1090
|
+
const { name: a } = e.value;
|
|
1091
|
+
return /^http?:\/\//.test(a) ? "img" : /i-[^:]+:[^:]+/.test(a) ? "unocss" : a != null && a.startsWith("iksig") ? "iksig" : a != null && a.includes(":") ? "iconify" : a != null && a.startsWith("iksvg") ? "svg" : "i";
|
|
1030
1092
|
}), i = m(() => {
|
|
1031
|
-
const
|
|
1093
|
+
const a = [];
|
|
1032
1094
|
if (e.value.flip)
|
|
1033
1095
|
switch (e.value.flip) {
|
|
1034
1096
|
case "horizontal":
|
|
1035
|
-
|
|
1097
|
+
a.push("rotateY(180deg)");
|
|
1036
1098
|
break;
|
|
1037
1099
|
case "vertical":
|
|
1038
|
-
|
|
1100
|
+
a.push("rotateX(180deg)");
|
|
1039
1101
|
break;
|
|
1040
1102
|
case "both":
|
|
1041
|
-
|
|
1103
|
+
a.push("rotateX(180deg)"), a.push("rotateY(180deg)");
|
|
1042
1104
|
break;
|
|
1043
1105
|
}
|
|
1044
|
-
e.value.rotate &&
|
|
1045
|
-
const
|
|
1106
|
+
e.value.rotate && a.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
1107
|
+
const p = {
|
|
1046
1108
|
...e.value.color && { color: e.value.color },
|
|
1047
1109
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
1048
|
-
...
|
|
1110
|
+
...a.length && { transform: a.join(" ") },
|
|
1049
1111
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
1050
|
-
...e.value.color &&
|
|
1112
|
+
...e.value.color && s.value !== "iksig" ? {
|
|
1051
1113
|
"--ik-color-icon-dark": e.value.color,
|
|
1052
1114
|
"--ik-color-icon-light": e.value.colorLight || c3.setOpacity(e.value.color, e.value.opacity)
|
|
1053
1115
|
} : {}
|
|
1054
1116
|
};
|
|
1055
|
-
return e.value.width && (
|
|
1117
|
+
return e.value.width && (p.width = p.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), p;
|
|
1056
1118
|
});
|
|
1057
|
-
return (
|
|
1058
|
-
const
|
|
1059
|
-
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), u("span",
|
|
1119
|
+
return (a, p) => {
|
|
1120
|
+
const h = I("el-tooltip"), l = I("el-button");
|
|
1121
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), u("span", S6, [
|
|
1060
1122
|
e.value.notip || !e.value.title ? (c(), u(
|
|
1061
1123
|
"i",
|
|
1062
1124
|
{
|
|
1063
1125
|
key: 0,
|
|
1064
|
-
class:
|
|
1065
|
-
[
|
|
1126
|
+
class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1127
|
+
[a.name]: s.value === "unocss",
|
|
1066
1128
|
"show-bg": e.value.showBg || e.value.bg,
|
|
1067
1129
|
default: e.value.size === "default",
|
|
1068
1130
|
small: e.value.size === "small",
|
|
1069
1131
|
big: e.value.size === "big",
|
|
1070
1132
|
warning: e.value.warning || e.value.type === "warning",
|
|
1071
1133
|
primary: e.value.primary || e.value.type === "primary",
|
|
1072
|
-
success:
|
|
1134
|
+
success: a.success || e.value.type === "success",
|
|
1073
1135
|
error: e.value.error || e.value.type === "error",
|
|
1074
1136
|
active: e.value.active,
|
|
1075
1137
|
disabled: e.value.disabled
|
|
1076
1138
|
}]),
|
|
1077
|
-
style:
|
|
1139
|
+
style: z(i.value)
|
|
1078
1140
|
},
|
|
1079
1141
|
[
|
|
1080
|
-
|
|
1081
|
-
|
|
1142
|
+
$(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
1143
|
+
s.value === "iksig" ? (c(), u(
|
|
1082
1144
|
"i",
|
|
1083
1145
|
{
|
|
1084
1146
|
key: 0,
|
|
1085
|
-
class:
|
|
1086
|
-
style:
|
|
1147
|
+
class: S(`iksig ${e.value.name}`),
|
|
1148
|
+
style: z(i.value)
|
|
1087
1149
|
},
|
|
1088
1150
|
null,
|
|
1089
1151
|
6
|
|
1090
1152
|
/* CLASS, STYLE */
|
|
1091
|
-
)) :
|
|
1153
|
+
)) : s.value === "svg" ? (c(), u("svg", C6, [
|
|
1092
1154
|
r("use", {
|
|
1093
1155
|
"xlink:href": `#${e.value.name}`
|
|
1094
|
-
}, null, 8,
|
|
1095
|
-
])) :
|
|
1156
|
+
}, null, 8, V6)
|
|
1157
|
+
])) : s.value === "img" ? (c(), u("img", {
|
|
1096
1158
|
key: 2,
|
|
1097
1159
|
src: e.value.name,
|
|
1098
1160
|
class: "h-[1em] w-[1em]"
|
|
1099
|
-
}, null, 8,
|
|
1161
|
+
}, null, 8, O6)) : (c(), u(
|
|
1100
1162
|
"i",
|
|
1101
1163
|
{
|
|
1102
1164
|
key: 3,
|
|
1103
|
-
class:
|
|
1104
|
-
style:
|
|
1165
|
+
class: S(e.value.name),
|
|
1166
|
+
style: z(i.value)
|
|
1105
1167
|
},
|
|
1106
1168
|
null,
|
|
1107
1169
|
6
|
|
@@ -1110,7 +1172,7 @@ const z6 = $(k6), b6 = {
|
|
|
1110
1172
|
],
|
|
1111
1173
|
6
|
|
1112
1174
|
/* CLASS, STYLE */
|
|
1113
|
-
)) : (c(),
|
|
1175
|
+
)) : (c(), b(h, {
|
|
1114
1176
|
key: 1,
|
|
1115
1177
|
content: e.value.title,
|
|
1116
1178
|
placement: "top"
|
|
@@ -1119,45 +1181,45 @@ const z6 = $(k6), b6 = {
|
|
|
1119
1181
|
r(
|
|
1120
1182
|
"i",
|
|
1121
1183
|
{
|
|
1122
|
-
class:
|
|
1123
|
-
[
|
|
1184
|
+
class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1185
|
+
[a.name]: s.value === "unocss",
|
|
1124
1186
|
"show-bg": e.value.showBg || e.value.bg,
|
|
1125
1187
|
default: e.value.size === "default",
|
|
1126
1188
|
small: e.value.size === "small",
|
|
1127
1189
|
big: e.value.size === "big",
|
|
1128
1190
|
warning: e.value.warning || e.value.type === "warning",
|
|
1129
|
-
primary:
|
|
1130
|
-
success:
|
|
1191
|
+
primary: a.primary || e.value.type === "primary",
|
|
1192
|
+
success: a.success || e.value.type === "success",
|
|
1131
1193
|
error: e.value.error || e.value.type === "error",
|
|
1132
1194
|
active: e.value.active
|
|
1133
1195
|
}]),
|
|
1134
|
-
style:
|
|
1196
|
+
style: z(i.value)
|
|
1135
1197
|
},
|
|
1136
1198
|
[
|
|
1137
|
-
|
|
1199
|
+
s.value === "iksig" ? (c(), u(
|
|
1138
1200
|
"i",
|
|
1139
1201
|
{
|
|
1140
1202
|
key: 0,
|
|
1141
|
-
class:
|
|
1142
|
-
style:
|
|
1203
|
+
class: S(`iksig ${e.value.name}`),
|
|
1204
|
+
style: z(i.value)
|
|
1143
1205
|
},
|
|
1144
1206
|
null,
|
|
1145
1207
|
6
|
|
1146
1208
|
/* CLASS, STYLE */
|
|
1147
|
-
)) :
|
|
1209
|
+
)) : s.value === "svg" ? (c(), u("svg", B6, [
|
|
1148
1210
|
r("use", {
|
|
1149
1211
|
"xlink:href": `#${e.value.name}`
|
|
1150
|
-
}, null, 8,
|
|
1151
|
-
])) :
|
|
1212
|
+
}, null, 8, I6)
|
|
1213
|
+
])) : s.value === "img" ? (c(), u("img", {
|
|
1152
1214
|
key: 2,
|
|
1153
1215
|
src: e.value.name,
|
|
1154
1216
|
class: "h-[1em] w-[1em]"
|
|
1155
|
-
}, null, 8,
|
|
1217
|
+
}, null, 8, R6)) : (c(), u(
|
|
1156
1218
|
"i",
|
|
1157
1219
|
{
|
|
1158
1220
|
key: 3,
|
|
1159
|
-
class:
|
|
1160
|
-
style:
|
|
1221
|
+
class: S(e.value.name),
|
|
1222
|
+
style: z(i.value)
|
|
1161
1223
|
},
|
|
1162
1224
|
null,
|
|
1163
1225
|
6
|
|
@@ -1171,13 +1233,13 @@ const z6 = $(k6), b6 = {
|
|
|
1171
1233
|
_: 1
|
|
1172
1234
|
/* STABLE */
|
|
1173
1235
|
}, 8, ["content"]))
|
|
1174
|
-
])) : (c(),
|
|
1236
|
+
])) : (c(), b(l, {
|
|
1175
1237
|
key: 1,
|
|
1176
1238
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
1177
1239
|
}, {
|
|
1178
1240
|
default: y(() => [
|
|
1179
|
-
|
|
1180
|
-
|
|
1241
|
+
H(
|
|
1242
|
+
V(e.value.title),
|
|
1181
1243
|
1
|
|
1182
1244
|
/* TEXT */
|
|
1183
1245
|
)
|
|
@@ -1188,10 +1250,10 @@ const z6 = $(k6), b6 = {
|
|
|
1188
1250
|
};
|
|
1189
1251
|
}
|
|
1190
1252
|
});
|
|
1191
|
-
const
|
|
1253
|
+
const D6 = /* @__PURE__ */ U($6, [["__scopeId", "data-v-7729b79a"]]), R = E(D6), M6 = {
|
|
1192
1254
|
key: 0,
|
|
1193
1255
|
class: "exit-main-page-maximize"
|
|
1194
|
-
},
|
|
1256
|
+
}, H6 = /* @__PURE__ */ F({
|
|
1195
1257
|
__name: "CloseIcon",
|
|
1196
1258
|
props: {
|
|
1197
1259
|
showBg: {
|
|
@@ -1205,14 +1267,14 @@ const R6 = /* @__PURE__ */ U(I6, [["__scopeId", "data-v-7729b79a"]]), A = $(R6),
|
|
|
1205
1267
|
},
|
|
1206
1268
|
setup(t) {
|
|
1207
1269
|
return (n, o) => (c(), u("div", null, [
|
|
1208
|
-
t.showBg && t.fullscreen ? (c(), u("div",
|
|
1209
|
-
|
|
1270
|
+
t.showBg && t.fullscreen ? (c(), u("div", M6, [
|
|
1271
|
+
k(g(R), {
|
|
1210
1272
|
name: "iksvg_guanbidanchuang",
|
|
1211
1273
|
title: "关闭",
|
|
1212
1274
|
size: 20,
|
|
1213
1275
|
error: ""
|
|
1214
1276
|
})
|
|
1215
|
-
])) : (c(),
|
|
1277
|
+
])) : (c(), b(g(R), {
|
|
1216
1278
|
key: 1,
|
|
1217
1279
|
error: "",
|
|
1218
1280
|
name: "iksvg_guanbidanchuang",
|
|
@@ -1222,9 +1284,9 @@ const R6 = /* @__PURE__ */ U(I6, [["__scopeId", "data-v-7729b79a"]]), A = $(R6),
|
|
|
1222
1284
|
]));
|
|
1223
1285
|
}
|
|
1224
1286
|
});
|
|
1225
|
-
const
|
|
1287
|
+
const q6 = /* @__PURE__ */ U(H6, [["__scopeId", "data-v-79f49df8"]]), E6 = { class: "base-header" }, A6 = /* @__PURE__ */ F({
|
|
1226
1288
|
__name: "IkBaseDialog",
|
|
1227
|
-
props: /* @__PURE__ */
|
|
1289
|
+
props: /* @__PURE__ */ Y({
|
|
1228
1290
|
title: { default: "" },
|
|
1229
1291
|
cancelText: { default: "取消" },
|
|
1230
1292
|
confirmText: { default: "确认" },
|
|
@@ -1243,64 +1305,64 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
|
|
|
1243
1305
|
}),
|
|
1244
1306
|
emits: ["update:modelValue"],
|
|
1245
1307
|
setup(t) {
|
|
1246
|
-
const n = t, o =
|
|
1308
|
+
const n = t, o = Z(t, "modelValue"), e = q(n.fullscreen), s = () => {
|
|
1247
1309
|
e.value = !e.value;
|
|
1248
|
-
}, i =
|
|
1310
|
+
}, i = F({
|
|
1249
1311
|
setup() {
|
|
1250
|
-
return () => n3(
|
|
1312
|
+
return () => n3(q6, {
|
|
1251
1313
|
showBg: n.showCloseBg,
|
|
1252
1314
|
fullscreen: n.fullscreen
|
|
1253
1315
|
});
|
|
1254
1316
|
}
|
|
1255
1317
|
});
|
|
1256
|
-
return (
|
|
1257
|
-
const
|
|
1258
|
-
return c(),
|
|
1318
|
+
return (a, p) => {
|
|
1319
|
+
const h = I("el-dialog");
|
|
1320
|
+
return c(), b(h, N({
|
|
1259
1321
|
modelValue: o.value,
|
|
1260
|
-
"onUpdate:modelValue":
|
|
1261
|
-
},
|
|
1322
|
+
"onUpdate:modelValue": p[0] || (p[0] = (l) => o.value = l)
|
|
1323
|
+
}, a.$attrs, {
|
|
1262
1324
|
"close-icon": g(i),
|
|
1263
|
-
class: `ik-base-dialog ${
|
|
1325
|
+
class: `ik-base-dialog ${a.noHeader ? "no-header" : ""} ${a.noFooter ? "no-footer" : ""}`,
|
|
1264
1326
|
fullscreen: e.value,
|
|
1265
1327
|
"modal-class": "baseDialog"
|
|
1266
1328
|
}), o3({
|
|
1267
1329
|
icon: y(() => [
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1330
|
+
C(a.$slots, "title", {}, () => [
|
|
1331
|
+
H(
|
|
1332
|
+
V(a.title),
|
|
1271
1333
|
1
|
|
1272
1334
|
/* TEXT */
|
|
1273
1335
|
)
|
|
1274
1336
|
])
|
|
1275
1337
|
]),
|
|
1276
1338
|
header: y(() => [
|
|
1277
|
-
r("div",
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1339
|
+
r("div", E6, [
|
|
1340
|
+
C(a.$slots, "header", {}, () => [
|
|
1341
|
+
H(
|
|
1342
|
+
V(a.title),
|
|
1281
1343
|
1
|
|
1282
1344
|
/* TEXT */
|
|
1283
1345
|
)
|
|
1284
1346
|
])
|
|
1285
1347
|
]),
|
|
1286
|
-
|
|
1348
|
+
a.$attrs.showClose ? (c(), b(g(R), {
|
|
1287
1349
|
key: 0,
|
|
1288
|
-
onClick:
|
|
1350
|
+
onClick: s,
|
|
1289
1351
|
name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
1290
1352
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
1291
1353
|
title: e.value ? "退出全屏" : "全屏"
|
|
1292
|
-
}, null, 8, ["name", "title"])) :
|
|
1354
|
+
}, null, 8, ["name", "title"])) : $("v-if", !0)
|
|
1293
1355
|
]),
|
|
1294
1356
|
default: y(() => [
|
|
1295
|
-
|
|
1357
|
+
C(a.$slots, "default")
|
|
1296
1358
|
]),
|
|
1297
1359
|
_: 2
|
|
1298
1360
|
/* DYNAMIC */
|
|
1299
1361
|
}, [
|
|
1300
|
-
|
|
1362
|
+
a.$slots.footer ? {
|
|
1301
1363
|
name: "footer",
|
|
1302
1364
|
fn: y(() => [
|
|
1303
|
-
|
|
1365
|
+
C(a.$slots, "footer")
|
|
1304
1366
|
]),
|
|
1305
1367
|
key: "0"
|
|
1306
1368
|
} : void 0
|
|
@@ -1308,135 +1370,135 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
|
|
|
1308
1370
|
};
|
|
1309
1371
|
}
|
|
1310
1372
|
});
|
|
1311
|
-
const
|
|
1312
|
-
function
|
|
1313
|
-
function
|
|
1314
|
-
return i instanceof o ? i : new o(function(
|
|
1315
|
-
|
|
1373
|
+
const P6 = E(A6);
|
|
1374
|
+
function T6(t, n, o, e) {
|
|
1375
|
+
function s(i) {
|
|
1376
|
+
return i instanceof o ? i : new o(function(a) {
|
|
1377
|
+
a(i);
|
|
1316
1378
|
});
|
|
1317
1379
|
}
|
|
1318
|
-
return new (o || (o = Promise))(function(i,
|
|
1319
|
-
function
|
|
1380
|
+
return new (o || (o = Promise))(function(i, a) {
|
|
1381
|
+
function p(v) {
|
|
1320
1382
|
try {
|
|
1321
|
-
|
|
1383
|
+
l(e.next(v));
|
|
1322
1384
|
} catch (d) {
|
|
1323
|
-
|
|
1385
|
+
a(d);
|
|
1324
1386
|
}
|
|
1325
1387
|
}
|
|
1326
|
-
function v
|
|
1388
|
+
function h(v) {
|
|
1327
1389
|
try {
|
|
1328
|
-
|
|
1390
|
+
l(e.throw(v));
|
|
1329
1391
|
} catch (d) {
|
|
1330
|
-
|
|
1392
|
+
a(d);
|
|
1331
1393
|
}
|
|
1332
1394
|
}
|
|
1333
|
-
function
|
|
1334
|
-
|
|
1395
|
+
function l(v) {
|
|
1396
|
+
v.done ? i(v.value) : s(v.value).then(p, h);
|
|
1335
1397
|
}
|
|
1336
|
-
|
|
1398
|
+
l((e = e.apply(t, n || [])).next());
|
|
1337
1399
|
});
|
|
1338
1400
|
}
|
|
1339
|
-
function
|
|
1401
|
+
function U6(t, n) {
|
|
1340
1402
|
var o = { label: 0, sent: function() {
|
|
1341
1403
|
if (i[0] & 1)
|
|
1342
1404
|
throw i[1];
|
|
1343
1405
|
return i[1];
|
|
1344
|
-
}, trys: [], ops: [] }, e,
|
|
1345
|
-
return
|
|
1406
|
+
}, trys: [], ops: [] }, e, s, i, a;
|
|
1407
|
+
return a = { next: p(0), throw: p(1), return: p(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
|
|
1346
1408
|
return this;
|
|
1347
|
-
}),
|
|
1348
|
-
function
|
|
1349
|
-
return function(
|
|
1350
|
-
return
|
|
1409
|
+
}), a;
|
|
1410
|
+
function p(l) {
|
|
1411
|
+
return function(v) {
|
|
1412
|
+
return h([l, v]);
|
|
1351
1413
|
};
|
|
1352
1414
|
}
|
|
1353
|
-
function
|
|
1415
|
+
function h(l) {
|
|
1354
1416
|
if (e)
|
|
1355
1417
|
throw new TypeError("Generator is already executing.");
|
|
1356
|
-
for (;
|
|
1418
|
+
for (; a && (a = 0, l[0] && (o = 0)), o; )
|
|
1357
1419
|
try {
|
|
1358
|
-
if (e = 1,
|
|
1420
|
+
if (e = 1, s && (i = l[0] & 2 ? s.return : l[0] ? s.throw || ((i = s.return) && i.call(s), 0) : s.next) && !(i = i.call(s, l[1])).done)
|
|
1359
1421
|
return i;
|
|
1360
|
-
switch (
|
|
1422
|
+
switch (s = 0, i && (l = [l[0] & 2, i.value]), l[0]) {
|
|
1361
1423
|
case 0:
|
|
1362
1424
|
case 1:
|
|
1363
|
-
i =
|
|
1425
|
+
i = l;
|
|
1364
1426
|
break;
|
|
1365
1427
|
case 4:
|
|
1366
|
-
return o.label++, { value:
|
|
1428
|
+
return o.label++, { value: l[1], done: !1 };
|
|
1367
1429
|
case 5:
|
|
1368
|
-
o.label++,
|
|
1430
|
+
o.label++, s = l[1], l = [0];
|
|
1369
1431
|
continue;
|
|
1370
1432
|
case 7:
|
|
1371
|
-
|
|
1433
|
+
l = o.ops.pop(), o.trys.pop();
|
|
1372
1434
|
continue;
|
|
1373
1435
|
default:
|
|
1374
|
-
if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (
|
|
1436
|
+
if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (l[0] === 6 || l[0] === 2)) {
|
|
1375
1437
|
o = 0;
|
|
1376
1438
|
continue;
|
|
1377
1439
|
}
|
|
1378
|
-
if (
|
|
1379
|
-
o.label =
|
|
1440
|
+
if (l[0] === 3 && (!i || l[1] > i[0] && l[1] < i[3])) {
|
|
1441
|
+
o.label = l[1];
|
|
1380
1442
|
break;
|
|
1381
1443
|
}
|
|
1382
|
-
if (
|
|
1383
|
-
o.label = i[1], i =
|
|
1444
|
+
if (l[0] === 6 && o.label < i[1]) {
|
|
1445
|
+
o.label = i[1], i = l;
|
|
1384
1446
|
break;
|
|
1385
1447
|
}
|
|
1386
1448
|
if (i && o.label < i[2]) {
|
|
1387
|
-
o.label = i[2], o.ops.push(
|
|
1449
|
+
o.label = i[2], o.ops.push(l);
|
|
1388
1450
|
break;
|
|
1389
1451
|
}
|
|
1390
1452
|
i[2] && o.ops.pop(), o.trys.pop();
|
|
1391
1453
|
continue;
|
|
1392
1454
|
}
|
|
1393
|
-
|
|
1394
|
-
} catch (
|
|
1395
|
-
|
|
1455
|
+
l = n.call(t, o);
|
|
1456
|
+
} catch (v) {
|
|
1457
|
+
l = [6, v], s = 0;
|
|
1396
1458
|
} finally {
|
|
1397
1459
|
e = i = 0;
|
|
1398
1460
|
}
|
|
1399
|
-
if (
|
|
1400
|
-
throw
|
|
1401
|
-
return { value:
|
|
1461
|
+
if (l[0] & 5)
|
|
1462
|
+
throw l[1];
|
|
1463
|
+
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
1402
1464
|
}
|
|
1403
1465
|
}
|
|
1404
|
-
var
|
|
1405
|
-
return
|
|
1406
|
-
return
|
|
1407
|
-
return [2, new Promise(function(e,
|
|
1466
|
+
var j6 = function(t, n) {
|
|
1467
|
+
return T6(void 0, void 0, void 0, function() {
|
|
1468
|
+
return U6(this, function(o) {
|
|
1469
|
+
return [2, new Promise(function(e, s) {
|
|
1408
1470
|
try {
|
|
1409
1471
|
if (window.DocsAPI)
|
|
1410
1472
|
return e(null);
|
|
1411
1473
|
var i = document.getElementById(n);
|
|
1412
1474
|
if (i)
|
|
1413
|
-
var
|
|
1414
|
-
var
|
|
1415
|
-
if (!
|
|
1416
|
-
if (clearInterval(
|
|
1475
|
+
var a = setInterval(function() {
|
|
1476
|
+
var h = i.getAttribute("loading");
|
|
1477
|
+
if (!h) {
|
|
1478
|
+
if (clearInterval(a), window.DocsAPI)
|
|
1417
1479
|
return e(null);
|
|
1418
|
-
var
|
|
1419
|
-
i.remove(), document.body.appendChild(
|
|
1480
|
+
var l = X(n, t, e, s);
|
|
1481
|
+
i.remove(), document.body.appendChild(l);
|
|
1420
1482
|
}
|
|
1421
1483
|
}, 500);
|
|
1422
1484
|
else {
|
|
1423
|
-
var
|
|
1424
|
-
document.body.appendChild(
|
|
1485
|
+
var p = X(n, t, e, s);
|
|
1486
|
+
document.body.appendChild(p);
|
|
1425
1487
|
}
|
|
1426
|
-
} catch (
|
|
1427
|
-
console.error(
|
|
1488
|
+
} catch (h) {
|
|
1489
|
+
console.error(h);
|
|
1428
1490
|
}
|
|
1429
1491
|
})];
|
|
1430
1492
|
});
|
|
1431
1493
|
});
|
|
1432
|
-
},
|
|
1433
|
-
var
|
|
1434
|
-
return
|
|
1435
|
-
|
|
1436
|
-
},
|
|
1437
|
-
|
|
1438
|
-
},
|
|
1439
|
-
},
|
|
1494
|
+
}, X = function(t, n, o, e) {
|
|
1495
|
+
var s = document.createElement("script");
|
|
1496
|
+
return s.id = t, s.type = "text/javascript", s.src = n, s.async = !0, s.onload = function() {
|
|
1497
|
+
s.removeAttribute("loading"), o(null);
|
|
1498
|
+
}, s.onerror = function(i) {
|
|
1499
|
+
s.removeAttribute("loading"), e(i);
|
|
1500
|
+
}, s.setAttribute("loading", ""), s;
|
|
1501
|
+
}, W = F({
|
|
1440
1502
|
name: "DocumentEditor",
|
|
1441
1503
|
props: {
|
|
1442
1504
|
id: {
|
|
@@ -1491,7 +1553,7 @@ var T6 = function(t, n) {
|
|
|
1491
1553
|
var t = this, n = this.documentServerUrl;
|
|
1492
1554
|
n.endsWith("/") || (n += "/");
|
|
1493
1555
|
var o = "".concat(n, "web-apps/apps/api/documents/api.js");
|
|
1494
|
-
|
|
1556
|
+
j6(o, "onlyoffice-api-script").then(function() {
|
|
1495
1557
|
return t.onLoad();
|
|
1496
1558
|
}).catch(function() {
|
|
1497
1559
|
t.onError(-2);
|
|
@@ -1575,8 +1637,8 @@ var T6 = function(t, n) {
|
|
|
1575
1637
|
height: this.height,
|
|
1576
1638
|
type: this.type,
|
|
1577
1639
|
width: this.width
|
|
1578
|
-
}, this.config || {}),
|
|
1579
|
-
window.DocEditor.instances[o] =
|
|
1640
|
+
}, this.config || {}), s = window.DocsAPI.DocEditor(o, e);
|
|
1641
|
+
window.DocEditor.instances[o] = s;
|
|
1580
1642
|
} catch (i) {
|
|
1581
1643
|
console.error(i), this.onError(-1);
|
|
1582
1644
|
}
|
|
@@ -1605,13 +1667,13 @@ var T6 = function(t, n) {
|
|
|
1605
1667
|
}
|
|
1606
1668
|
}
|
|
1607
1669
|
});
|
|
1608
|
-
const
|
|
1609
|
-
function
|
|
1610
|
-
return c(), u("div", { id: t.id }, null, 8,
|
|
1670
|
+
const L6 = ["id"];
|
|
1671
|
+
function N6(t, n, o, e, s, i) {
|
|
1672
|
+
return c(), u("div", { id: t.id }, null, 8, L6);
|
|
1611
1673
|
}
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
const
|
|
1674
|
+
W.render = N6;
|
|
1675
|
+
W.__file = "src/components/DocumentEditor.vue";
|
|
1676
|
+
const W6 = /* @__PURE__ */ F({
|
|
1615
1677
|
__name: "IkOnlyOffice",
|
|
1616
1678
|
props: {
|
|
1617
1679
|
// 文件服务器的服务的地址
|
|
@@ -1632,7 +1694,7 @@ const L6 = /* @__PURE__ */ z({
|
|
|
1632
1694
|
}
|
|
1633
1695
|
},
|
|
1634
1696
|
setup(t) {
|
|
1635
|
-
const n = t, o =
|
|
1697
|
+
const n = t, o = q({
|
|
1636
1698
|
width: "100%",
|
|
1637
1699
|
height: "100%",
|
|
1638
1700
|
...n.configOptions || {},
|
|
@@ -1640,13 +1702,13 @@ const L6 = /* @__PURE__ */ z({
|
|
|
1640
1702
|
}), e = () => {
|
|
1641
1703
|
console.info("文档加载完成", n.configOptions);
|
|
1642
1704
|
};
|
|
1643
|
-
return (
|
|
1705
|
+
return (s, i) => (c(), u(
|
|
1644
1706
|
"div",
|
|
1645
1707
|
{
|
|
1646
|
-
style:
|
|
1708
|
+
style: z({ height: n.officeHeight })
|
|
1647
1709
|
},
|
|
1648
1710
|
[
|
|
1649
|
-
|
|
1711
|
+
k(g(W), {
|
|
1650
1712
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1651
1713
|
ref: "editorRef",
|
|
1652
1714
|
"document-server-url": t.documentServerUrl,
|
|
@@ -1659,7 +1721,7 @@ const L6 = /* @__PURE__ */ z({
|
|
|
1659
1721
|
));
|
|
1660
1722
|
}
|
|
1661
1723
|
});
|
|
1662
|
-
const
|
|
1724
|
+
const K6 = /* @__PURE__ */ U(W6, [["__scopeId", "data-v-98d51ef9"]]), G6 = E(K6), X6 = /* @__PURE__ */ F({
|
|
1663
1725
|
__name: "IKDescription",
|
|
1664
1726
|
props: {
|
|
1665
1727
|
showIcon: {
|
|
@@ -1718,7 +1780,7 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
|
|
|
1718
1780
|
}
|
|
1719
1781
|
},
|
|
1720
1782
|
setup(t) {
|
|
1721
|
-
i3((
|
|
1783
|
+
i3((s) => ({
|
|
1722
1784
|
"645335a7": e.value
|
|
1723
1785
|
}));
|
|
1724
1786
|
const n = t, o = {
|
|
@@ -1730,52 +1792,52 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
|
|
|
1730
1792
|
fileList: "fileList",
|
|
1731
1793
|
...n.fileField
|
|
1732
1794
|
}, e = m(() => typeof n.labelWidth == "number" ? `${n.labelWidth}px` : n.labelWidth);
|
|
1733
|
-
return (
|
|
1734
|
-
const
|
|
1735
|
-
return c(),
|
|
1736
|
-
|
|
1737
|
-
|
|
1795
|
+
return (s, i) => {
|
|
1796
|
+
const a = I("el-tag"), p = I("el-descriptions-item"), h = I("el-descriptions");
|
|
1797
|
+
return c(), b(
|
|
1798
|
+
h,
|
|
1799
|
+
N({ class: "margin-top" }, { ...t.titleProps, ...n }),
|
|
1738
1800
|
{
|
|
1739
1801
|
extra: y(() => [
|
|
1740
|
-
|
|
1802
|
+
C(s.$slots, "extra", {}, void 0, !0)
|
|
1741
1803
|
]),
|
|
1742
1804
|
default: y(() => [
|
|
1743
1805
|
(c(!0), u(
|
|
1744
|
-
|
|
1806
|
+
M,
|
|
1745
1807
|
null,
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
key:
|
|
1808
|
+
L(t.listData, (l) => (c(), b(
|
|
1809
|
+
p,
|
|
1810
|
+
N({
|
|
1811
|
+
key: l[o.id],
|
|
1750
1812
|
ref_for: !0
|
|
1751
|
-
},
|
|
1813
|
+
}, l[o.props]),
|
|
1752
1814
|
{
|
|
1753
1815
|
label: y(() => [
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1816
|
+
C(s.$slots, l[o.label], {}, () => [
|
|
1817
|
+
H(
|
|
1818
|
+
V(l[o.label]),
|
|
1757
1819
|
1
|
|
1758
1820
|
/* TEXT */
|
|
1759
1821
|
)
|
|
1760
1822
|
], !0)
|
|
1761
1823
|
]),
|
|
1762
1824
|
default: y(() => [
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1825
|
+
C(s.$slots, `${l[o.label]}_value`, {}, () => [
|
|
1826
|
+
H(
|
|
1827
|
+
V(l[o.value]) + " ",
|
|
1766
1828
|
1
|
|
1767
1829
|
/* TEXT */
|
|
1768
1830
|
),
|
|
1769
|
-
|
|
1770
|
-
|
|
1831
|
+
l[o.tag] ? (c(), b(
|
|
1832
|
+
a,
|
|
1771
1833
|
{
|
|
1772
1834
|
key: 0,
|
|
1773
1835
|
size: "small"
|
|
1774
1836
|
},
|
|
1775
1837
|
{
|
|
1776
1838
|
default: y(() => [
|
|
1777
|
-
|
|
1778
|
-
|
|
1839
|
+
H(
|
|
1840
|
+
V(l[o.value].value),
|
|
1779
1841
|
1
|
|
1780
1842
|
/* TEXT */
|
|
1781
1843
|
)
|
|
@@ -1785,9 +1847,9 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
|
|
|
1785
1847
|
},
|
|
1786
1848
|
1024
|
|
1787
1849
|
/* DYNAMIC_SLOTS */
|
|
1788
|
-
)) :
|
|
1789
|
-
|
|
1790
|
-
list:
|
|
1850
|
+
)) : $("v-if", !0),
|
|
1851
|
+
k(g(z6), {
|
|
1852
|
+
list: l[o.fileList],
|
|
1791
1853
|
field: t.fileField,
|
|
1792
1854
|
"load-url": t.loadUrl,
|
|
1793
1855
|
"kk-url": t.kkUrl,
|
|
@@ -1818,8 +1880,8 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
|
|
|
1818
1880
|
};
|
|
1819
1881
|
}
|
|
1820
1882
|
});
|
|
1821
|
-
const
|
|
1883
|
+
const Y6 = /* @__PURE__ */ U(X6, [["__scopeId", "data-v-38defd72"]]), ee = E(Y6);
|
|
1822
1884
|
export {
|
|
1823
|
-
|
|
1824
|
-
|
|
1885
|
+
ee as IkDescriptions,
|
|
1886
|
+
ee as default
|
|
1825
1887
|
};
|