iking-web-ui-pro 0.1.75 → 0.1.76
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 +229 -234
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +75 -82
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +71 -76
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKPreviewFileDialog/ik.index.es.js +152 -157
- package/dist/IKPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IKPreviewFileDialog/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +111 -118
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +390 -395
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +95 -100
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +162 -169
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +172 -165
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +89 -96
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +86 -91
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkFullCalendar/ik.index.es.js +153 -146
- package/dist/IkFullCalendar/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/ik.index.es.js +293 -139
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +169 -176
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +235 -242
- package/dist/IkPageFull/ik.index.umd.js +3 -3
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +664 -664
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +100 -107
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +69 -71
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -0
- package/dist/IkTinymce/ik.index.es.js +18635 -18638
- package/dist/IkTinymce/ik.index.umd.js +51 -51
- package/dist/IkUploadFile/ik.index.es.js +278 -283
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +186 -193
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +22719 -22559
- package/dist/index.umd.js +64 -64
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as k, computed as S, openBlock as d, createElementBlock as u, createElementVNode as c, mergeModels as P, useModel as L, ref as z, reactive as W, watch as j, nextTick as K, resolveComponent as $, createBlock as
|
|
2
|
-
import { buildUUID as t3, paramType as
|
|
3
|
-
const D = (
|
|
4
|
-
if (
|
|
5
|
-
for (const l of [
|
|
1
|
+
import { defineComponent as k, computed as S, openBlock as d, createElementBlock as u, createElementVNode as c, mergeModels as P, useModel as L, ref as z, reactive as W, watch as j, nextTick as K, resolveComponent as $, createBlock as I, createCommentVNode as C, createVNode as _, unref as w, withCtx as b, Fragment as M, renderList as H, normalizeClass as x, normalizeStyle as y, toDisplayString as V, withModifiers as X, renderSlot as R, createTextVNode as A, h as Y, mergeProps as Z, createSlots as J, pushScopeId as Q, popScopeId as e3 } from "vue";
|
|
2
|
+
import { buildUUID as t3, paramType as n3, ikFile as o3, ikColor as i3, ikUrl as s3 } from "iking-utils-pro";
|
|
3
|
+
const D = (n, e) => {
|
|
4
|
+
if (n.install = (i) => {
|
|
5
|
+
for (const l of [n, ...Object.values(e ?? {})])
|
|
6
6
|
i.component(l.name, l);
|
|
7
7
|
}, e)
|
|
8
8
|
for (const [i, l] of Object.entries(e))
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
},
|
|
12
|
-
const i =
|
|
13
|
-
for (const [l,
|
|
14
|
-
i[l] =
|
|
9
|
+
n[i] = l;
|
|
10
|
+
return n;
|
|
11
|
+
}, E = (n, e) => {
|
|
12
|
+
const i = n.__vccOpts || n;
|
|
13
|
+
for (const [l, o] of e)
|
|
14
|
+
i[l] = o;
|
|
15
15
|
return i;
|
|
16
|
-
}, l3 = (
|
|
17
|
-
if (
|
|
16
|
+
}, l3 = (n, e = 2) => {
|
|
17
|
+
if (n === void 0)
|
|
18
18
|
return "";
|
|
19
|
-
if (
|
|
19
|
+
if (n === 0)
|
|
20
20
|
return "0 B";
|
|
21
|
-
const i = ["B", "KB", "MB", "GB", "TB"], l = Math.floor(Math.log(
|
|
22
|
-
let
|
|
23
|
-
return (
|
|
24
|
-
}, q = (
|
|
25
|
-
const G = (
|
|
21
|
+
const i = ["B", "KB", "MB", "GB", "TB"], l = Math.floor(Math.log(n) / Math.log(1024));
|
|
22
|
+
let o = n / Math.pow(1024, l);
|
|
23
|
+
return (o % 1 === 0 ? o.toFixed(e || 0) : o.toFixed(e)) + " " + i[l];
|
|
24
|
+
}, q = (n, e) => e ? e.startsWith("http") ? e : `${n || location.origin}${e}` : "";
|
|
25
|
+
const G = (n, e) => {
|
|
26
26
|
var s, a, h, g;
|
|
27
|
-
const i = (s =
|
|
27
|
+
const i = (s = n == null ? void 0 : n.response) != null && s.data ? O((h = (a = n == null ? void 0 : n.response) == null ? void 0 : a.data) == null ? void 0 : h.suffix) : ((g = n.raw) == null ? void 0 : g.type) || O(n[e.suffix]), l = i == null ? void 0 : i.toLowerCase(), o = {
|
|
28
28
|
sheet: "excel",
|
|
29
29
|
excel: "excel",
|
|
30
30
|
zip: "zip",
|
|
@@ -40,9 +40,9 @@ const G = (o, e) => {
|
|
|
40
40
|
exe: "exe",
|
|
41
41
|
json: "json"
|
|
42
42
|
};
|
|
43
|
-
for (let t in
|
|
43
|
+
for (let t in o)
|
|
44
44
|
if (typeof l == "string" && (l.includes(t) || l === t))
|
|
45
|
-
return
|
|
45
|
+
return o[t];
|
|
46
46
|
return "unknown";
|
|
47
47
|
}, a3 = {
|
|
48
48
|
".doc": "word",
|
|
@@ -129,12 +129,12 @@ const G = (o, e) => {
|
|
|
129
129
|
".vob": "video",
|
|
130
130
|
".txt": "txt",
|
|
131
131
|
".pdf": "pdf"
|
|
132
|
-
}, O = (
|
|
133
|
-
const e =
|
|
132
|
+
}, O = (n) => {
|
|
133
|
+
const e = n == null ? void 0 : n.toLocaleLowerCase(), i = e != null && e.startsWith(".") ? e : `.${e}`;
|
|
134
134
|
return i && a3[i] || "unknow";
|
|
135
|
-
}, r3 = (
|
|
136
|
-
let e = "", i = ["doc", "docx"], l = ["xls", "xlsx"],
|
|
137
|
-
return i.includes(
|
|
135
|
+
}, r3 = (n) => {
|
|
136
|
+
let e = "", i = ["doc", "docx"], l = ["xls", "xlsx"], o = ["ppt", "pptx"], s = ["pdf"];
|
|
137
|
+
return i.includes(n) && (e = "word"), l.includes(n) && (e = "cell"), o.includes(n) && (e = "slide"), s.includes(n) && (e = "text-pdf"), e;
|
|
138
138
|
}, c3 = {
|
|
139
139
|
key: 0,
|
|
140
140
|
t: "1686300059786",
|
|
@@ -319,10 +319,10 @@ const G = (o, e) => {
|
|
|
319
319
|
null,
|
|
320
320
|
-1
|
|
321
321
|
/* HOISTED */
|
|
322
|
-
),
|
|
322
|
+
), I3 = [
|
|
323
323
|
V3,
|
|
324
324
|
B3
|
|
325
|
-
],
|
|
325
|
+
], R3 = {
|
|
326
326
|
key: 5,
|
|
327
327
|
t: "1686300195363",
|
|
328
328
|
class: "icon",
|
|
@@ -542,7 +542,7 @@ const G = (o, e) => {
|
|
|
542
542
|
null,
|
|
543
543
|
-1
|
|
544
544
|
/* HOISTED */
|
|
545
|
-
),
|
|
545
|
+
), n6 = /* @__PURE__ */ c(
|
|
546
546
|
"path",
|
|
547
547
|
{
|
|
548
548
|
d: "M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",
|
|
@@ -553,7 +553,7 @@ const G = (o, e) => {
|
|
|
553
553
|
null,
|
|
554
554
|
-1
|
|
555
555
|
/* HOISTED */
|
|
556
|
-
),
|
|
556
|
+
), o6 = /* @__PURE__ */ c(
|
|
557
557
|
"path",
|
|
558
558
|
{
|
|
559
559
|
d: "M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",
|
|
@@ -565,8 +565,8 @@ const G = (o, e) => {
|
|
|
565
565
|
/* HOISTED */
|
|
566
566
|
), i6 = [
|
|
567
567
|
t6,
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
n6,
|
|
569
|
+
o6
|
|
570
570
|
], s6 = {
|
|
571
571
|
key: 11,
|
|
572
572
|
t: "1686300037564",
|
|
@@ -631,9 +631,9 @@ const G = (o, e) => {
|
|
|
631
631
|
})
|
|
632
632
|
}
|
|
633
633
|
},
|
|
634
|
-
setup(
|
|
635
|
-
const e =
|
|
636
|
-
return (l,
|
|
634
|
+
setup(n) {
|
|
635
|
+
const e = n, i = S(() => e.file ? G(e.file, e.fields) : e.type);
|
|
636
|
+
return (l, o) => i.value === "image" ? (d(), u("svg", c3, f3)) : i.value === "zip" ? (d(), u("svg", v3, w3)) : i.value === "ppt" ? (d(), u("svg", _3, z3)) : i.value === "word" ? (d(), u("svg", F3, S3)) : i.value === "pdf" ? (d(), u("svg", C3, I3)) : i.value === "txt" ? (d(), u("svg", R3, M3)) : i.value === "audio" ? (d(), u("svg", q3, A3)) : i.value === "video" ? (d(), u("svg", U3, P3)) : i.value === "excel" ? (d(), u("svg", L3, W3)) : i.value === "exe" ? (d(), u("svg", K3, Q3)) : i.value === "json" ? (d(), u("svg", e6, i6)) : (d(), u("svg", s6, c6));
|
|
637
637
|
}
|
|
638
638
|
}), u6 = /* @__PURE__ */ k({
|
|
639
639
|
__name: "IkPreviewFileDialog",
|
|
@@ -666,14 +666,14 @@ const G = (o, e) => {
|
|
|
666
666
|
showModifiers: {}
|
|
667
667
|
}),
|
|
668
668
|
emits: ["update:show"],
|
|
669
|
-
setup(
|
|
670
|
-
const e =
|
|
669
|
+
setup(n) {
|
|
670
|
+
const e = n, i = L(n, "show"), l = S(() => ({
|
|
671
671
|
name: "name",
|
|
672
672
|
url: "url",
|
|
673
673
|
suffix: "suffix",
|
|
674
674
|
size: "fileSize",
|
|
675
675
|
...e.field
|
|
676
|
-
})),
|
|
676
|
+
})), o = z(null), s = z(null), a = W({
|
|
677
677
|
image: !1,
|
|
678
678
|
office: !1,
|
|
679
679
|
video: !1
|
|
@@ -691,7 +691,7 @@ const G = (o, e) => {
|
|
|
691
691
|
a.image = !0;
|
|
692
692
|
return;
|
|
693
693
|
} else if (e.onlyOfficeAccept.includes(f)) {
|
|
694
|
-
a.office = !0,
|
|
694
|
+
a.office = !0, o.value = {
|
|
695
695
|
documentType: r3(f),
|
|
696
696
|
document: {
|
|
697
697
|
key: t3(),
|
|
@@ -722,7 +722,7 @@ const G = (o, e) => {
|
|
|
722
722
|
var f, m;
|
|
723
723
|
const v = $("el-image-viewer");
|
|
724
724
|
return d(), u("template", null, [
|
|
725
|
-
(f = s.value) != null && f.url && a.image ? (d(),
|
|
725
|
+
(f = s.value) != null && f.url && a.image ? (d(), I(v, {
|
|
726
726
|
key: 0,
|
|
727
727
|
onClose: r[0] || (r[0] = (p) => {
|
|
728
728
|
s.value = null, a.image = !1;
|
|
@@ -731,7 +731,7 @@ const G = (o, e) => {
|
|
|
731
731
|
"url-list": [(m = s.value) == null ? void 0 : m.url]
|
|
732
732
|
}, null, 8, ["url-list"])) : C("v-if", !0),
|
|
733
733
|
C(" 文档类 "),
|
|
734
|
-
_(w(
|
|
734
|
+
_(w($6), {
|
|
735
735
|
modelValue: a.office,
|
|
736
736
|
"onUpdate:modelValue": r[1] || (r[1] = (p) => a.office = p),
|
|
737
737
|
draggable: "",
|
|
@@ -747,9 +747,9 @@ const G = (o, e) => {
|
|
|
747
747
|
"modal-class": "ik-only-preview-dialog"
|
|
748
748
|
}, {
|
|
749
749
|
default: b(() => [
|
|
750
|
-
_(w(
|
|
751
|
-
configOptions:
|
|
752
|
-
documentServerUrl:
|
|
750
|
+
_(w(O6), {
|
|
751
|
+
configOptions: o.value,
|
|
752
|
+
documentServerUrl: n.onlyofficeServer,
|
|
753
753
|
mode: "view"
|
|
754
754
|
}, null, 8, ["configOptions", "documentServerUrl"])
|
|
755
755
|
]),
|
|
@@ -824,14 +824,14 @@ const p6 = ["onClick"], h6 = { class: "text" }, f6 = { class: "fileName" }, v6 =
|
|
|
824
824
|
default: ""
|
|
825
825
|
}
|
|
826
826
|
},
|
|
827
|
-
setup(
|
|
828
|
-
const e =
|
|
827
|
+
setup(n) {
|
|
828
|
+
const e = n, i = S(() => ({
|
|
829
829
|
name: "name",
|
|
830
830
|
url: "url",
|
|
831
831
|
suffix: "suffix",
|
|
832
832
|
size: "size",
|
|
833
833
|
...e.field
|
|
834
|
-
})), l = z(null),
|
|
834
|
+
})), l = z(null), o = z(!1), s = (t) => {
|
|
835
835
|
var r, v;
|
|
836
836
|
l.value = {
|
|
837
837
|
...t,
|
|
@@ -840,13 +840,13 @@ const p6 = ["onClick"], h6 = { class: "text" }, f6 = { class: "fileName" }, v6 =
|
|
|
840
840
|
e.loadUrl,
|
|
841
841
|
t.url || ((v = (r = t == null ? void 0 : t.response) == null ? void 0 : r.data) == null ? void 0 : v.id) || (t == null ? void 0 : t.id)
|
|
842
842
|
)
|
|
843
|
-
},
|
|
843
|
+
}, o.value = !0;
|
|
844
844
|
}, a = (t) => {
|
|
845
|
-
|
|
845
|
+
o3.downloadFile(
|
|
846
846
|
q(e.loadUrl, t[i.value.url] || t.attachmentId || t.id),
|
|
847
847
|
t[i.value.name] || t.attachmentName
|
|
848
848
|
);
|
|
849
|
-
}, h = S(() =>
|
|
849
|
+
}, h = S(() => n3.isNumber(e.width) ? `${e.width}px` : e.width), g = S(() => e.list.map((t) => ({
|
|
850
850
|
...t,
|
|
851
851
|
name: t[i.value.name] || t.attachmentName,
|
|
852
852
|
size: t[i.value.size] || t.fileSize || t.attachmentSize,
|
|
@@ -858,18 +858,18 @@ const p6 = ["onClick"], h6 = { class: "text" }, f6 = { class: "fileName" }, v6 =
|
|
|
858
858
|
M,
|
|
859
859
|
null,
|
|
860
860
|
[
|
|
861
|
-
(v =
|
|
861
|
+
(v = n.list) != null && v.length ? (d(!0), u(
|
|
862
862
|
M,
|
|
863
863
|
{ key: 0 },
|
|
864
|
-
|
|
864
|
+
H(g.value, (f, m) => {
|
|
865
865
|
var p;
|
|
866
866
|
return d(), u(
|
|
867
867
|
"div",
|
|
868
868
|
{
|
|
869
|
-
class: x(["iking-privew-annex", { "is-bg":
|
|
869
|
+
class: x(["iking-privew-annex", { "is-bg": n.showBg }]),
|
|
870
870
|
key: m,
|
|
871
871
|
style: y({
|
|
872
|
-
marginBottom: m == ((p =
|
|
872
|
+
marginBottom: m == ((p = n.list) == null ? void 0 : p.length) - 1 ? "0" : "10px",
|
|
873
873
|
width: h.value
|
|
874
874
|
})
|
|
875
875
|
},
|
|
@@ -880,7 +880,7 @@ const p6 = ["onClick"], h6 = { class: "text" }, f6 = { class: "fileName" }, v6 =
|
|
|
880
880
|
}, [
|
|
881
881
|
_(d6, {
|
|
882
882
|
file: f,
|
|
883
|
-
style: y({ height: `${
|
|
883
|
+
style: y({ height: `${n.iconSize}px` }),
|
|
884
884
|
class: "ikui-w-auto",
|
|
885
885
|
fields: i.value
|
|
886
886
|
}, null, 8, ["file", "style", "fields"]),
|
|
@@ -903,21 +903,21 @@ const p6 = ["onClick"], h6 = { class: "text" }, f6 = { class: "fileName" }, v6 =
|
|
|
903
903
|
c(
|
|
904
904
|
"div",
|
|
905
905
|
{
|
|
906
|
-
class: x(["flex flex-center", { "hover-show":
|
|
906
|
+
class: x(["flex flex-center", { "hover-show": n.iconHoverShow }])
|
|
907
907
|
},
|
|
908
908
|
[
|
|
909
909
|
_(w(B), {
|
|
910
910
|
name: "iksvg_daochu",
|
|
911
911
|
onClick: X((F) => a(f), ["stop"]),
|
|
912
|
-
bg:
|
|
913
|
-
size:
|
|
912
|
+
bg: n.showBg,
|
|
913
|
+
size: n.showBg ? "default" : 20
|
|
914
914
|
}, null, 8, ["onClick", "bg", "size"]),
|
|
915
915
|
_(w(B), {
|
|
916
916
|
name: "iksvg_yulan",
|
|
917
|
-
bg:
|
|
918
|
-
size:
|
|
917
|
+
bg: n.showBg,
|
|
918
|
+
size: n.showBg ? "default" : 20
|
|
919
919
|
}, null, 8, ["bg", "size"]),
|
|
920
|
-
|
|
920
|
+
R(t.$slots, "operation", {
|
|
921
921
|
data: { ...f, findex: m }
|
|
922
922
|
})
|
|
923
923
|
],
|
|
@@ -934,11 +934,11 @@ const p6 = ["onClick"], h6 = { class: "text" }, f6 = { class: "fileName" }, v6 =
|
|
|
934
934
|
/* KEYED_FRAGMENT */
|
|
935
935
|
)) : C("v-if", !0),
|
|
936
936
|
_(u6, {
|
|
937
|
-
show:
|
|
938
|
-
"onUpdate:show": r[0] || (r[0] = (f) =>
|
|
939
|
-
loadUrl:
|
|
937
|
+
show: o.value,
|
|
938
|
+
"onUpdate:show": r[0] || (r[0] = (f) => o.value = f),
|
|
939
|
+
loadUrl: n.loadUrl,
|
|
940
940
|
file: l.value,
|
|
941
|
-
onlyofficeServer:
|
|
941
|
+
onlyofficeServer: n.onlyofficeServer
|
|
942
942
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer"])
|
|
943
943
|
],
|
|
944
944
|
64
|
|
@@ -949,7 +949,7 @@ const p6 = ["onClick"], h6 = { class: "text" }, f6 = { class: "fileName" }, v6 =
|
|
|
949
949
|
});
|
|
950
950
|
const m6 = D(g6), w6 = {
|
|
951
951
|
key: 0,
|
|
952
|
-
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center line-height-[0]"
|
|
952
|
+
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
|
|
953
953
|
}, _6 = {
|
|
954
954
|
key: 1,
|
|
955
955
|
class: "h-[1em] w-[1em]",
|
|
@@ -970,10 +970,11 @@ const m6 = D(g6), w6 = {
|
|
|
970
970
|
size: { default: "" },
|
|
971
971
|
bg: { type: Boolean, default: !1 },
|
|
972
972
|
showBg: { type: Boolean, default: !1 },
|
|
973
|
-
padding: { default: "
|
|
973
|
+
padding: { default: "6px" },
|
|
974
974
|
primary: { type: Boolean },
|
|
975
975
|
warning: { type: Boolean },
|
|
976
976
|
success: { type: Boolean },
|
|
977
|
+
error: { type: Boolean },
|
|
977
978
|
notip: { type: Boolean, default: !1 },
|
|
978
979
|
title: {},
|
|
979
980
|
type: {},
|
|
@@ -981,65 +982,54 @@ const m6 = D(g6), w6 = {
|
|
|
981
982
|
disabled: { type: Boolean, default: !1 },
|
|
982
983
|
tableIconType: { default: "icon" }
|
|
983
984
|
},
|
|
984
|
-
setup(
|
|
985
|
-
const e =
|
|
986
|
-
var
|
|
987
|
-
return /^http?:\/\//.test(e.name) ? "img" : /i-[^:]+:[^:]+/.test(e.name) ? "unocss" : (
|
|
985
|
+
setup(n) {
|
|
986
|
+
const e = n, i = S(() => {
|
|
987
|
+
var o, s, a;
|
|
988
|
+
return /^http?:\/\//.test(e.name) ? "img" : /i-[^:]+:[^:]+/.test(e.name) ? "unocss" : (o = e.name) != null && o.startsWith("iksig") ? "iksig" : (s = e.name) != null && s.includes(":") ? "iconify" : (a = e.name) != null && a.startsWith("iksvg") ? "svg" : "i";
|
|
988
989
|
}), l = S(() => {
|
|
989
|
-
const
|
|
990
|
+
const o = [];
|
|
990
991
|
if (e.flip)
|
|
991
992
|
switch (e.flip) {
|
|
992
993
|
case "horizontal":
|
|
993
|
-
|
|
994
|
+
o.push("rotateY(180deg)");
|
|
994
995
|
break;
|
|
995
996
|
case "vertical":
|
|
996
|
-
|
|
997
|
+
o.push("rotateX(180deg)");
|
|
997
998
|
break;
|
|
998
999
|
case "both":
|
|
999
|
-
|
|
1000
|
+
o.push("rotateX(180deg)"), o.push("rotateY(180deg)");
|
|
1000
1001
|
break;
|
|
1001
1002
|
}
|
|
1002
|
-
return e.rotate &&
|
|
1003
|
+
return e.rotate && o.push(`rotate(${e.rotate % 360}deg)`), {
|
|
1003
1004
|
...e.color && { color: e.color },
|
|
1004
1005
|
...e.size && { fontSize: typeof e.size == "number" ? `${e.size}px` : e.size },
|
|
1005
|
-
...
|
|
1006
|
-
padding: e.padding,
|
|
1006
|
+
...o.length && { transform: o.join(" ") },
|
|
1007
|
+
padding: e.showBg || e.bg ? e.padding : 0,
|
|
1007
1008
|
...e.color && i.value !== "iksig" ? {
|
|
1008
1009
|
"--ik-color-icon-dark": e.color,
|
|
1009
1010
|
"--ik-color-icon-light": i3.setOpacity(e.color, e.opacity || 0.4)
|
|
1010
|
-
} : {},
|
|
1011
|
-
...e.type === "primary" || e.primary ? {
|
|
1012
|
-
"--ik-color-icon-dark": "var(--ik-theme-color)",
|
|
1013
|
-
"--ik-color-icon-light": "var(--ik-color-icon-light-hover)",
|
|
1014
|
-
"--ik-color-bg-icon": "var(--ik-color-bg-button-secondary)"
|
|
1015
|
-
} : e.type === "warning" || e.warning ? {
|
|
1016
|
-
"--ik-color-icon-dark": "var(--ik-color-error)",
|
|
1017
|
-
"--ik-color-icon-light": "var(--ik-color-icon-error-light)",
|
|
1018
|
-
"--ik-color-bg-icon": "var(--ik-color-icon-error-bg)"
|
|
1019
|
-
} : e.type === "success" || e.success ? {
|
|
1020
|
-
"--ik-color-icon-dark": "var(--ik-color-success)",
|
|
1021
|
-
"--ik-color-icon-light": "var(--ik-color-tag-success-light)",
|
|
1022
|
-
"--ik-color-bg-icon": "var(--ik-color-icon-success-bg)"
|
|
1023
1011
|
} : {}
|
|
1024
1012
|
};
|
|
1025
1013
|
});
|
|
1026
|
-
return (
|
|
1014
|
+
return (o, s) => {
|
|
1027
1015
|
const a = $("el-tooltip"), h = $("el-button");
|
|
1028
|
-
return
|
|
1029
|
-
|
|
1016
|
+
return o.tableIconType === "icon" ? (d(), u("span", w6, [
|
|
1017
|
+
o.notip || !o.title ? (d(), u(
|
|
1030
1018
|
"i",
|
|
1031
1019
|
{
|
|
1032
1020
|
key: 0,
|
|
1033
1021
|
class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1034
|
-
[
|
|
1035
|
-
"show-bg":
|
|
1036
|
-
default:
|
|
1037
|
-
small:
|
|
1038
|
-
big:
|
|
1039
|
-
warning:
|
|
1040
|
-
primary:
|
|
1041
|
-
|
|
1042
|
-
|
|
1022
|
+
[o.name]: i.value === "unocss",
|
|
1023
|
+
"show-bg": o.showBg || o.bg,
|
|
1024
|
+
default: o.size === "default",
|
|
1025
|
+
small: o.size === "small",
|
|
1026
|
+
big: o.size === "big",
|
|
1027
|
+
warning: o.warning,
|
|
1028
|
+
primary: o.primary,
|
|
1029
|
+
success: o.success,
|
|
1030
|
+
error: o.error,
|
|
1031
|
+
active: o.active,
|
|
1032
|
+
disabled: o.disabled
|
|
1043
1033
|
}]),
|
|
1044
1034
|
style: y(l.value)
|
|
1045
1035
|
},
|
|
@@ -1049,7 +1039,7 @@ const m6 = D(g6), w6 = {
|
|
|
1049
1039
|
"i",
|
|
1050
1040
|
{
|
|
1051
1041
|
key: 0,
|
|
1052
|
-
class: x(`iksig ${
|
|
1042
|
+
class: x(`iksig ${o.name}`),
|
|
1053
1043
|
style: y(l.value)
|
|
1054
1044
|
},
|
|
1055
1045
|
null,
|
|
@@ -1057,17 +1047,17 @@ const m6 = D(g6), w6 = {
|
|
|
1057
1047
|
/* CLASS, STYLE */
|
|
1058
1048
|
)) : i.value === "svg" ? (d(), u("svg", _6, [
|
|
1059
1049
|
c("use", {
|
|
1060
|
-
"xlink:href": `#${
|
|
1050
|
+
"xlink:href": `#${o.name}`
|
|
1061
1051
|
}, null, 8, y6)
|
|
1062
1052
|
])) : i.value === "img" ? (d(), u("img", {
|
|
1063
1053
|
key: 2,
|
|
1064
|
-
src:
|
|
1054
|
+
src: o.name,
|
|
1065
1055
|
class: "h-[1em] w-[1em]"
|
|
1066
1056
|
}, null, 8, k6)) : (d(), u(
|
|
1067
1057
|
"i",
|
|
1068
1058
|
{
|
|
1069
1059
|
key: 3,
|
|
1070
|
-
class: x(
|
|
1060
|
+
class: x(o.name),
|
|
1071
1061
|
style: y(l.value)
|
|
1072
1062
|
},
|
|
1073
1063
|
null,
|
|
@@ -1077,9 +1067,9 @@ const m6 = D(g6), w6 = {
|
|
|
1077
1067
|
],
|
|
1078
1068
|
6
|
|
1079
1069
|
/* CLASS, STYLE */
|
|
1080
|
-
)) : (d(),
|
|
1070
|
+
)) : (d(), I(a, {
|
|
1081
1071
|
key: 1,
|
|
1082
|
-
content:
|
|
1072
|
+
content: o.title,
|
|
1083
1073
|
placement: "top"
|
|
1084
1074
|
}, {
|
|
1085
1075
|
default: b(() => [
|
|
@@ -1087,14 +1077,16 @@ const m6 = D(g6), w6 = {
|
|
|
1087
1077
|
"i",
|
|
1088
1078
|
{
|
|
1089
1079
|
class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1090
|
-
[
|
|
1091
|
-
"show-bg":
|
|
1092
|
-
default:
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1080
|
+
[o.name]: i.value === "unocss",
|
|
1081
|
+
"show-bg": o.showBg || o.bg,
|
|
1082
|
+
default: o.size === "default",
|
|
1083
|
+
small: o.size === "small",
|
|
1084
|
+
big: o.size === "big",
|
|
1085
|
+
warning: o.warning,
|
|
1086
|
+
primary: o.primary,
|
|
1087
|
+
success: o.success,
|
|
1088
|
+
error: o.error,
|
|
1089
|
+
active: o.active
|
|
1098
1090
|
}]),
|
|
1099
1091
|
style: y(l.value)
|
|
1100
1092
|
},
|
|
@@ -1103,7 +1095,7 @@ const m6 = D(g6), w6 = {
|
|
|
1103
1095
|
"i",
|
|
1104
1096
|
{
|
|
1105
1097
|
key: 0,
|
|
1106
|
-
class: x(`iksig ${
|
|
1098
|
+
class: x(`iksig ${o.name}`),
|
|
1107
1099
|
style: y(l.value)
|
|
1108
1100
|
},
|
|
1109
1101
|
null,
|
|
@@ -1111,17 +1103,17 @@ const m6 = D(g6), w6 = {
|
|
|
1111
1103
|
/* CLASS, STYLE */
|
|
1112
1104
|
)) : i.value === "svg" ? (d(), u("svg", z6, [
|
|
1113
1105
|
c("use", {
|
|
1114
|
-
"xlink:href": `#${
|
|
1106
|
+
"xlink:href": `#${o.name}`
|
|
1115
1107
|
}, null, 8, F6)
|
|
1116
1108
|
])) : i.value === "img" ? (d(), u("img", {
|
|
1117
1109
|
key: 2,
|
|
1118
|
-
src:
|
|
1110
|
+
src: o.name,
|
|
1119
1111
|
class: "h-[1em] w-[1em]"
|
|
1120
1112
|
}, null, 8, x6)) : (d(), u(
|
|
1121
1113
|
"i",
|
|
1122
1114
|
{
|
|
1123
1115
|
key: 3,
|
|
1124
|
-
class: x(
|
|
1116
|
+
class: x(o.name),
|
|
1125
1117
|
style: y(l.value)
|
|
1126
1118
|
},
|
|
1127
1119
|
null,
|
|
@@ -1136,13 +1128,13 @@ const m6 = D(g6), w6 = {
|
|
|
1136
1128
|
_: 1
|
|
1137
1129
|
/* STABLE */
|
|
1138
1130
|
}, 8, ["content"]))
|
|
1139
|
-
])) : (d(),
|
|
1131
|
+
])) : (d(), I(h, {
|
|
1140
1132
|
key: 1,
|
|
1141
|
-
type: ["warning", "error"].includes(
|
|
1133
|
+
type: ["warning", "error"].includes(o.type) ? "danger" : ""
|
|
1142
1134
|
}, {
|
|
1143
1135
|
default: b(() => [
|
|
1144
|
-
|
|
1145
|
-
V(
|
|
1136
|
+
A(
|
|
1137
|
+
V(o.title),
|
|
1146
1138
|
1
|
|
1147
1139
|
/* TEXT */
|
|
1148
1140
|
)
|
|
@@ -1152,10 +1144,11 @@ const m6 = D(g6), w6 = {
|
|
|
1152
1144
|
}, 8, ["type"]));
|
|
1153
1145
|
};
|
|
1154
1146
|
}
|
|
1155
|
-
})
|
|
1147
|
+
});
|
|
1148
|
+
const S6 = /* @__PURE__ */ E(b6, [["__scopeId", "data-v-16fdb257"]]), B = D(S6), C6 = {
|
|
1156
1149
|
key: 0,
|
|
1157
1150
|
class: "exit-main-page-maximize"
|
|
1158
|
-
},
|
|
1151
|
+
}, V6 = /* @__PURE__ */ k({
|
|
1159
1152
|
__name: "CloseIcon",
|
|
1160
1153
|
props: {
|
|
1161
1154
|
showBg: {
|
|
@@ -1167,16 +1160,18 @@ const m6 = D(g6), w6 = {
|
|
|
1167
1160
|
default: !1
|
|
1168
1161
|
}
|
|
1169
1162
|
},
|
|
1170
|
-
setup(
|
|
1163
|
+
setup(n) {
|
|
1171
1164
|
return (e, i) => (d(), u("div", null, [
|
|
1172
|
-
|
|
1165
|
+
n.showBg && n.fullscreen ? (d(), u("div", C6, [
|
|
1173
1166
|
_(w(B), {
|
|
1174
1167
|
name: "iksvg_guanbidanchuang",
|
|
1175
1168
|
title: "关闭",
|
|
1176
|
-
size: 20
|
|
1169
|
+
size: 20,
|
|
1170
|
+
error: ""
|
|
1177
1171
|
})
|
|
1178
|
-
])) : (d(),
|
|
1172
|
+
])) : (d(), I(w(B), {
|
|
1179
1173
|
key: 1,
|
|
1174
|
+
error: "",
|
|
1180
1175
|
name: "iksvg_guanbidanchuang",
|
|
1181
1176
|
title: "关闭",
|
|
1182
1177
|
size: 20
|
|
@@ -1184,7 +1179,7 @@ const m6 = D(g6), w6 = {
|
|
|
1184
1179
|
]));
|
|
1185
1180
|
}
|
|
1186
1181
|
});
|
|
1187
|
-
const
|
|
1182
|
+
const B6 = /* @__PURE__ */ E(V6, [["__scopeId", "data-v-79f49df8"]]), I6 = { class: "base-header" }, R6 = /* @__PURE__ */ k({
|
|
1188
1183
|
__name: "IkBaseDialog",
|
|
1189
1184
|
props: /* @__PURE__ */ P({
|
|
1190
1185
|
title: { default: "" },
|
|
@@ -1204,12 +1199,12 @@ const V6 = /* @__PURE__ */ A(C6, [["__scopeId", "data-v-737a8336"]]), B6 = { cla
|
|
|
1204
1199
|
modelModifiers: {}
|
|
1205
1200
|
}),
|
|
1206
1201
|
emits: ["update:modelValue"],
|
|
1207
|
-
setup(
|
|
1208
|
-
const e =
|
|
1202
|
+
setup(n) {
|
|
1203
|
+
const e = n, i = L(n, "modelValue"), l = z(e.fullscreen), o = () => {
|
|
1209
1204
|
l.value = !l.value;
|
|
1210
1205
|
}, s = k({
|
|
1211
1206
|
setup() {
|
|
1212
|
-
return () => Y(
|
|
1207
|
+
return () => Y(B6, {
|
|
1213
1208
|
showBg: e.showCloseBg,
|
|
1214
1209
|
fullscreen: e.fullscreen
|
|
1215
1210
|
});
|
|
@@ -1217,7 +1212,7 @@ const V6 = /* @__PURE__ */ A(C6, [["__scopeId", "data-v-737a8336"]]), B6 = { cla
|
|
|
1217
1212
|
});
|
|
1218
1213
|
return (a, h) => {
|
|
1219
1214
|
const g = $("el-dialog");
|
|
1220
|
-
return d(),
|
|
1215
|
+
return d(), I(g, Z({
|
|
1221
1216
|
modelValue: i.value,
|
|
1222
1217
|
"onUpdate:modelValue": h[0] || (h[0] = (t) => i.value = t)
|
|
1223
1218
|
}, a.$attrs, {
|
|
@@ -1227,8 +1222,8 @@ const V6 = /* @__PURE__ */ A(C6, [["__scopeId", "data-v-737a8336"]]), B6 = { cla
|
|
|
1227
1222
|
"modal-class": "baseDialog"
|
|
1228
1223
|
}), J({
|
|
1229
1224
|
icon: b(() => [
|
|
1230
|
-
|
|
1231
|
-
|
|
1225
|
+
R(a.$slots, "title", {}, () => [
|
|
1226
|
+
A(
|
|
1232
1227
|
V(a.title),
|
|
1233
1228
|
1
|
|
1234
1229
|
/* TEXT */
|
|
@@ -1236,25 +1231,25 @@ const V6 = /* @__PURE__ */ A(C6, [["__scopeId", "data-v-737a8336"]]), B6 = { cla
|
|
|
1236
1231
|
])
|
|
1237
1232
|
]),
|
|
1238
1233
|
header: b(() => [
|
|
1239
|
-
c("div",
|
|
1240
|
-
|
|
1241
|
-
|
|
1234
|
+
c("div", I6, [
|
|
1235
|
+
R(a.$slots, "header", {}, () => [
|
|
1236
|
+
A(
|
|
1242
1237
|
V(a.title),
|
|
1243
1238
|
1
|
|
1244
1239
|
/* TEXT */
|
|
1245
1240
|
)
|
|
1246
1241
|
])
|
|
1247
1242
|
]),
|
|
1248
|
-
a.$attrs.showClose ? (d(),
|
|
1243
|
+
a.$attrs.showClose ? (d(), I(w(B), {
|
|
1249
1244
|
key: 0,
|
|
1250
|
-
onClick:
|
|
1245
|
+
onClick: o,
|
|
1251
1246
|
name: l.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
1252
1247
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
1253
1248
|
title: l.value ? "退出全屏" : "全屏"
|
|
1254
1249
|
}, null, 8, ["name", "title"])) : C("v-if", !0)
|
|
1255
1250
|
]),
|
|
1256
1251
|
default: b(() => [
|
|
1257
|
-
|
|
1252
|
+
R(a.$slots, "default")
|
|
1258
1253
|
]),
|
|
1259
1254
|
_: 2
|
|
1260
1255
|
/* DYNAMIC */
|
|
@@ -1262,7 +1257,7 @@ const V6 = /* @__PURE__ */ A(C6, [["__scopeId", "data-v-737a8336"]]), B6 = { cla
|
|
|
1262
1257
|
a.$slots.footer ? {
|
|
1263
1258
|
name: "footer",
|
|
1264
1259
|
fn: b(() => [
|
|
1265
|
-
|
|
1260
|
+
R(a.$slots, "footer")
|
|
1266
1261
|
]),
|
|
1267
1262
|
key: "0"
|
|
1268
1263
|
} : void 0
|
|
@@ -1270,9 +1265,9 @@ const V6 = /* @__PURE__ */ A(C6, [["__scopeId", "data-v-737a8336"]]), B6 = { cla
|
|
|
1270
1265
|
};
|
|
1271
1266
|
}
|
|
1272
1267
|
});
|
|
1273
|
-
const
|
|
1274
|
-
function
|
|
1275
|
-
function
|
|
1268
|
+
const $6 = D(R6);
|
|
1269
|
+
function D6(n, e, i, l) {
|
|
1270
|
+
function o(s) {
|
|
1276
1271
|
return s instanceof i ? s : new i(function(a) {
|
|
1277
1272
|
a(s);
|
|
1278
1273
|
});
|
|
@@ -1293,17 +1288,17 @@ function $6(o, e, i, l) {
|
|
|
1293
1288
|
}
|
|
1294
1289
|
}
|
|
1295
1290
|
function t(r) {
|
|
1296
|
-
r.done ? s(r.value) :
|
|
1291
|
+
r.done ? s(r.value) : o(r.value).then(h, g);
|
|
1297
1292
|
}
|
|
1298
|
-
t((l = l.apply(
|
|
1293
|
+
t((l = l.apply(n, e || [])).next());
|
|
1299
1294
|
});
|
|
1300
1295
|
}
|
|
1301
|
-
function
|
|
1296
|
+
function M6(n, e) {
|
|
1302
1297
|
var i = { label: 0, sent: function() {
|
|
1303
1298
|
if (s[0] & 1)
|
|
1304
1299
|
throw s[1];
|
|
1305
1300
|
return s[1];
|
|
1306
|
-
}, trys: [], ops: [] }, l,
|
|
1301
|
+
}, trys: [], ops: [] }, l, o, s, a;
|
|
1307
1302
|
return a = { next: h(0), throw: h(1), return: h(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
|
|
1308
1303
|
return this;
|
|
1309
1304
|
}), a;
|
|
@@ -1317,9 +1312,9 @@ function D6(o, e) {
|
|
|
1317
1312
|
throw new TypeError("Generator is already executing.");
|
|
1318
1313
|
for (; a && (a = 0, t[0] && (i = 0)), i; )
|
|
1319
1314
|
try {
|
|
1320
|
-
if (l = 1,
|
|
1315
|
+
if (l = 1, o && (s = t[0] & 2 ? o.return : t[0] ? o.throw || ((s = o.return) && s.call(o), 0) : o.next) && !(s = s.call(o, t[1])).done)
|
|
1321
1316
|
return s;
|
|
1322
|
-
switch (
|
|
1317
|
+
switch (o = 0, s && (t = [t[0] & 2, s.value]), t[0]) {
|
|
1323
1318
|
case 0:
|
|
1324
1319
|
case 1:
|
|
1325
1320
|
s = t;
|
|
@@ -1327,7 +1322,7 @@ function D6(o, e) {
|
|
|
1327
1322
|
case 4:
|
|
1328
1323
|
return i.label++, { value: t[1], done: !1 };
|
|
1329
1324
|
case 5:
|
|
1330
|
-
i.label++,
|
|
1325
|
+
i.label++, o = t[1], t = [0];
|
|
1331
1326
|
continue;
|
|
1332
1327
|
case 7:
|
|
1333
1328
|
t = i.ops.pop(), i.trys.pop();
|
|
@@ -1352,9 +1347,9 @@ function D6(o, e) {
|
|
|
1352
1347
|
s[2] && i.ops.pop(), i.trys.pop();
|
|
1353
1348
|
continue;
|
|
1354
1349
|
}
|
|
1355
|
-
t = e.call(
|
|
1350
|
+
t = e.call(n, i);
|
|
1356
1351
|
} catch (r) {
|
|
1357
|
-
t = [6, r],
|
|
1352
|
+
t = [6, r], o = 0;
|
|
1358
1353
|
} finally {
|
|
1359
1354
|
l = s = 0;
|
|
1360
1355
|
}
|
|
@@ -1363,10 +1358,10 @@ function D6(o, e) {
|
|
|
1363
1358
|
return { value: t[0] ? t[1] : void 0, done: !0 };
|
|
1364
1359
|
}
|
|
1365
1360
|
}
|
|
1366
|
-
var
|
|
1367
|
-
return
|
|
1368
|
-
return
|
|
1369
|
-
return [2, new Promise(function(l,
|
|
1361
|
+
var q6 = function(n, e) {
|
|
1362
|
+
return D6(void 0, void 0, void 0, function() {
|
|
1363
|
+
return M6(this, function(i) {
|
|
1364
|
+
return [2, new Promise(function(l, o) {
|
|
1370
1365
|
try {
|
|
1371
1366
|
if (window.DocsAPI)
|
|
1372
1367
|
return l(null);
|
|
@@ -1377,12 +1372,12 @@ var M6 = function(o, e) {
|
|
|
1377
1372
|
if (!g) {
|
|
1378
1373
|
if (clearInterval(a), window.DocsAPI)
|
|
1379
1374
|
return l(null);
|
|
1380
|
-
var t = T(e,
|
|
1375
|
+
var t = T(e, n, l, o);
|
|
1381
1376
|
s.remove(), document.body.appendChild(t);
|
|
1382
1377
|
}
|
|
1383
1378
|
}, 500);
|
|
1384
1379
|
else {
|
|
1385
|
-
var h = T(e,
|
|
1380
|
+
var h = T(e, n, l, o);
|
|
1386
1381
|
document.body.appendChild(h);
|
|
1387
1382
|
}
|
|
1388
1383
|
} catch (g) {
|
|
@@ -1391,13 +1386,13 @@ var M6 = function(o, e) {
|
|
|
1391
1386
|
})];
|
|
1392
1387
|
});
|
|
1393
1388
|
});
|
|
1394
|
-
}, T = function(
|
|
1395
|
-
var
|
|
1396
|
-
return
|
|
1397
|
-
|
|
1398
|
-
},
|
|
1399
|
-
|
|
1400
|
-
},
|
|
1389
|
+
}, T = function(n, e, i, l) {
|
|
1390
|
+
var o = document.createElement("script");
|
|
1391
|
+
return o.id = n, o.type = "text/javascript", o.src = e, o.async = !0, o.onload = function() {
|
|
1392
|
+
o.removeAttribute("loading"), i(null);
|
|
1393
|
+
}, o.onerror = function(s) {
|
|
1394
|
+
o.removeAttribute("loading"), l(s);
|
|
1395
|
+
}, o.setAttribute("loading", ""), o;
|
|
1401
1396
|
}, U = k({
|
|
1402
1397
|
name: "DocumentEditor",
|
|
1403
1398
|
props: {
|
|
@@ -1450,54 +1445,54 @@ var M6 = function(o, e) {
|
|
|
1450
1445
|
events_onRequestSelectDocument: Function
|
|
1451
1446
|
},
|
|
1452
1447
|
mounted: function() {
|
|
1453
|
-
var
|
|
1448
|
+
var n = this, e = this.documentServerUrl;
|
|
1454
1449
|
e.endsWith("/") || (e += "/");
|
|
1455
1450
|
var i = "".concat(e, "web-apps/apps/api/documents/api.js");
|
|
1456
|
-
|
|
1457
|
-
return
|
|
1451
|
+
q6(i, "onlyoffice-api-script").then(function() {
|
|
1452
|
+
return n.onLoad();
|
|
1458
1453
|
}).catch(function() {
|
|
1459
|
-
|
|
1454
|
+
n.onError(-2);
|
|
1460
1455
|
});
|
|
1461
1456
|
},
|
|
1462
1457
|
unmounted: function() {
|
|
1463
|
-
var
|
|
1464
|
-
!((
|
|
1458
|
+
var n, e = this.id || "";
|
|
1459
|
+
!((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances[e] && (window.DocEditor.instances[e].destroyEditor(), window.DocEditor.instances[e] = void 0);
|
|
1465
1460
|
},
|
|
1466
1461
|
watch: {
|
|
1467
1462
|
config: {
|
|
1468
|
-
handler: function(
|
|
1463
|
+
handler: function(n, e) {
|
|
1469
1464
|
this.onChangeProps();
|
|
1470
1465
|
},
|
|
1471
1466
|
deep: !0
|
|
1472
1467
|
},
|
|
1473
|
-
document_fileType: function(
|
|
1468
|
+
document_fileType: function(n, e) {
|
|
1474
1469
|
this.onChangeProps();
|
|
1475
1470
|
},
|
|
1476
|
-
document_title: function(
|
|
1471
|
+
document_title: function(n, e) {
|
|
1477
1472
|
this.onChangeProps();
|
|
1478
1473
|
},
|
|
1479
|
-
documentType: function(
|
|
1474
|
+
documentType: function(n, e) {
|
|
1480
1475
|
this.onChangeProps();
|
|
1481
1476
|
},
|
|
1482
|
-
editorConfig_lang: function(
|
|
1477
|
+
editorConfig_lang: function(n, e) {
|
|
1483
1478
|
this.onChangeProps();
|
|
1484
1479
|
},
|
|
1485
|
-
height: function(
|
|
1480
|
+
height: function(n, e) {
|
|
1486
1481
|
this.onChangeProps();
|
|
1487
1482
|
},
|
|
1488
|
-
type: function(
|
|
1483
|
+
type: function(n, e) {
|
|
1489
1484
|
this.onChangeProps();
|
|
1490
1485
|
},
|
|
1491
|
-
width: function(
|
|
1486
|
+
width: function(n, e) {
|
|
1492
1487
|
this.onChangeProps();
|
|
1493
1488
|
}
|
|
1494
1489
|
},
|
|
1495
1490
|
methods: {
|
|
1496
1491
|
onLoad: function() {
|
|
1497
|
-
var
|
|
1492
|
+
var n, e;
|
|
1498
1493
|
try {
|
|
1499
1494
|
var i = this.id || "";
|
|
1500
|
-
if (window.DocsAPI || this.onError(-3), !((
|
|
1495
|
+
if (window.DocsAPI || this.onError(-3), !((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances[i]) {
|
|
1501
1496
|
console.log("Skip loading. Instance already exists", i);
|
|
1502
1497
|
return;
|
|
1503
1498
|
}
|
|
@@ -1537,15 +1532,15 @@ var M6 = function(o, e) {
|
|
|
1537
1532
|
height: this.height,
|
|
1538
1533
|
type: this.type,
|
|
1539
1534
|
width: this.width
|
|
1540
|
-
}, this.config || {}),
|
|
1541
|
-
window.DocEditor.instances[i] =
|
|
1535
|
+
}, this.config || {}), o = window.DocsAPI.DocEditor(i, l);
|
|
1536
|
+
window.DocEditor.instances[i] = o;
|
|
1542
1537
|
} catch (s) {
|
|
1543
1538
|
console.error(s), this.onError(-1);
|
|
1544
1539
|
}
|
|
1545
1540
|
},
|
|
1546
|
-
onError: function(
|
|
1541
|
+
onError: function(n) {
|
|
1547
1542
|
var e;
|
|
1548
|
-
switch (
|
|
1543
|
+
switch (n) {
|
|
1549
1544
|
case -2:
|
|
1550
1545
|
e = "Error load DocsAPI from " + this.documentServerUrl;
|
|
1551
1546
|
break;
|
|
@@ -1553,27 +1548,27 @@ var M6 = function(o, e) {
|
|
|
1553
1548
|
e = "DocsAPI is not defined";
|
|
1554
1549
|
break;
|
|
1555
1550
|
default:
|
|
1556
|
-
e = "Unknown error loading component",
|
|
1551
|
+
e = "Unknown error loading component", n = -1;
|
|
1557
1552
|
}
|
|
1558
|
-
typeof this.onLoadComponentError > "u" ? console.error(e) : this.onLoadComponentError(
|
|
1553
|
+
typeof this.onLoadComponentError > "u" ? console.error(e) : this.onLoadComponentError(n, e);
|
|
1559
1554
|
},
|
|
1560
1555
|
onAppReady: function() {
|
|
1561
|
-
var
|
|
1562
|
-
this.events_onAppReady(window.DocEditor.instances[
|
|
1556
|
+
var n = this.id || "";
|
|
1557
|
+
this.events_onAppReady(window.DocEditor.instances[n]);
|
|
1563
1558
|
},
|
|
1564
1559
|
onChangeProps: function() {
|
|
1565
|
-
var
|
|
1566
|
-
!((
|
|
1560
|
+
var n, e = this.id || "";
|
|
1561
|
+
!((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances[e] && (window.DocEditor.instances[e].destroyEditor(), window.DocEditor.instances[e] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
|
|
1567
1562
|
}
|
|
1568
1563
|
}
|
|
1569
1564
|
});
|
|
1570
|
-
const
|
|
1571
|
-
function
|
|
1572
|
-
return d(), u("div", { id:
|
|
1565
|
+
const E6 = ["id"];
|
|
1566
|
+
function H6(n, e, i, l, o, s) {
|
|
1567
|
+
return d(), u("div", { id: n.id }, null, 8, E6);
|
|
1573
1568
|
}
|
|
1574
|
-
U.render =
|
|
1569
|
+
U.render = H6;
|
|
1575
1570
|
U.__file = "src/components/DocumentEditor.vue";
|
|
1576
|
-
const
|
|
1571
|
+
const A6 = /* @__PURE__ */ k({
|
|
1577
1572
|
__name: "IkOnlyOffice",
|
|
1578
1573
|
props: {
|
|
1579
1574
|
// 文件服务器的服务的地址
|
|
@@ -1603,12 +1598,12 @@ const H6 = /* @__PURE__ */ k({
|
|
|
1603
1598
|
default: ""
|
|
1604
1599
|
}
|
|
1605
1600
|
},
|
|
1606
|
-
setup(
|
|
1607
|
-
var
|
|
1608
|
-
const e =
|
|
1601
|
+
setup(n) {
|
|
1602
|
+
var o, s, a, h;
|
|
1603
|
+
const e = n, i = z({
|
|
1609
1604
|
width: "100%",
|
|
1610
1605
|
height: "100%",
|
|
1611
|
-
document: (
|
|
1606
|
+
document: (o = e.configOptions) == null ? void 0 : o.document,
|
|
1612
1607
|
// word cell(表格) slide(PPT)
|
|
1613
1608
|
documentType: (s = e.configOptions) == null ? void 0 : s.documentType,
|
|
1614
1609
|
editorConfig: {
|
|
@@ -1657,7 +1652,7 @@ const H6 = /* @__PURE__ */ k({
|
|
|
1657
1652
|
_(w(U), {
|
|
1658
1653
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1659
1654
|
ref: "editorRef",
|
|
1660
|
-
"document-server-url":
|
|
1655
|
+
"document-server-url": n.documentServerUrl,
|
|
1661
1656
|
config: i.value,
|
|
1662
1657
|
events_onDocumentReady: l
|
|
1663
1658
|
}, null, 8, ["id", "document-server-url", "config"])
|
|
@@ -1667,22 +1662,22 @@ const H6 = /* @__PURE__ */ k({
|
|
|
1667
1662
|
));
|
|
1668
1663
|
}
|
|
1669
1664
|
});
|
|
1670
|
-
const
|
|
1665
|
+
const U6 = /* @__PURE__ */ E(A6, [["__scopeId", "data-v-ea0a8f6d"]]), O6 = D(U6), T6 = (n) => (Q("data-v-170abcfc"), n = n(), e3(), n), P6 = {
|
|
1671
1666
|
key: 0,
|
|
1672
1667
|
class: "preview-files"
|
|
1673
|
-
},
|
|
1668
|
+
}, L6 = {
|
|
1674
1669
|
class: "flex",
|
|
1675
1670
|
style: { width: "80%", "align-items": "center" }
|
|
1676
|
-
},
|
|
1671
|
+
}, j6 = ["onClick"], G6 = ["title"], N6 = { style: { color: "#b8c6d9" } }, W6 = ["onClick"], K6 = /* @__PURE__ */ T6(() => /* @__PURE__ */ c(
|
|
1677
1672
|
"span",
|
|
1678
1673
|
null,
|
|
1679
1674
|
"预览",
|
|
1680
1675
|
-1
|
|
1681
1676
|
/* HOISTED */
|
|
1682
|
-
)),
|
|
1677
|
+
)), X6 = {
|
|
1683
1678
|
key: 1,
|
|
1684
1679
|
class: "flex preview-img"
|
|
1685
|
-
},
|
|
1680
|
+
}, Y6 = /* @__PURE__ */ k({
|
|
1686
1681
|
__name: "IKDetailPreviewFiles",
|
|
1687
1682
|
props: {
|
|
1688
1683
|
// 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
|
|
@@ -1711,8 +1706,8 @@ const A6 = /* @__PURE__ */ A(H6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
|
|
|
1711
1706
|
default: ""
|
|
1712
1707
|
}
|
|
1713
1708
|
},
|
|
1714
|
-
setup(
|
|
1715
|
-
const e =
|
|
1709
|
+
setup(n) {
|
|
1710
|
+
const e = n, i = z(e.fileList);
|
|
1716
1711
|
j(
|
|
1717
1712
|
() => e.fileList,
|
|
1718
1713
|
(t) => {
|
|
@@ -1720,8 +1715,8 @@ const A6 = /* @__PURE__ */ A(H6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
|
|
|
1720
1715
|
},
|
|
1721
1716
|
{ immediate: !0 }
|
|
1722
1717
|
);
|
|
1723
|
-
const l = z(!1),
|
|
1724
|
-
|
|
1718
|
+
const l = z(!1), o = z({}), s = (t) => {
|
|
1719
|
+
o.value = {
|
|
1725
1720
|
url: t.url,
|
|
1726
1721
|
name: t.name
|
|
1727
1722
|
// row.originName
|
|
@@ -1740,11 +1735,11 @@ const A6 = /* @__PURE__ */ A(H6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
|
|
|
1740
1735
|
var f, m;
|
|
1741
1736
|
const v = $("el-image");
|
|
1742
1737
|
return d(), u("div", null, [
|
|
1743
|
-
e.fileType === "file" ? (d(), u("div",
|
|
1738
|
+
e.fileType === "file" ? (d(), u("div", P6, [
|
|
1744
1739
|
(d(!0), u(
|
|
1745
1740
|
M,
|
|
1746
1741
|
null,
|
|
1747
|
-
|
|
1742
|
+
H(i.value, (p, F) => (d(), u(
|
|
1748
1743
|
"div",
|
|
1749
1744
|
{
|
|
1750
1745
|
key: F,
|
|
@@ -1755,7 +1750,7 @@ const A6 = /* @__PURE__ */ A(H6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
|
|
|
1755
1750
|
})
|
|
1756
1751
|
},
|
|
1757
1752
|
[
|
|
1758
|
-
c("div",
|
|
1753
|
+
c("div", L6, [
|
|
1759
1754
|
_(w(B), {
|
|
1760
1755
|
name: a(p),
|
|
1761
1756
|
style: y(`color:${h(p)}`),
|
|
@@ -1767,23 +1762,23 @@ const A6 = /* @__PURE__ */ A(H6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
|
|
|
1767
1762
|
}, [
|
|
1768
1763
|
c("p", {
|
|
1769
1764
|
title: p.name
|
|
1770
|
-
}, V(p.name), 9,
|
|
1765
|
+
}, V(p.name), 9, G6),
|
|
1771
1766
|
c(
|
|
1772
1767
|
"p",
|
|
1773
|
-
|
|
1768
|
+
N6,
|
|
1774
1769
|
V((p.size / 1024).toFixed(2)) + "KB",
|
|
1775
1770
|
1
|
|
1776
1771
|
/* TEXT */
|
|
1777
1772
|
)
|
|
1778
|
-
], 8,
|
|
1773
|
+
], 8, j6)
|
|
1779
1774
|
]),
|
|
1780
1775
|
c("div", {
|
|
1781
1776
|
class: "file-preview",
|
|
1782
1777
|
onClick: (N) => s(p)
|
|
1783
1778
|
}, [
|
|
1784
1779
|
_(w(B), { name: "iksvg_yulan" }),
|
|
1785
|
-
|
|
1786
|
-
], 8,
|
|
1780
|
+
K6
|
|
1781
|
+
], 8, W6)
|
|
1787
1782
|
],
|
|
1788
1783
|
4
|
|
1789
1784
|
/* STYLE */
|
|
@@ -1792,18 +1787,18 @@ const A6 = /* @__PURE__ */ A(H6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
|
|
|
1792
1787
|
/* KEYED_FRAGMENT */
|
|
1793
1788
|
))
|
|
1794
1789
|
])) : C("v-if", !0),
|
|
1795
|
-
e.fileType === "img" ? (d(), u("div",
|
|
1790
|
+
e.fileType === "img" ? (d(), u("div", X6, [
|
|
1796
1791
|
(d(!0), u(
|
|
1797
1792
|
M,
|
|
1798
1793
|
null,
|
|
1799
|
-
|
|
1794
|
+
H(i.value, (p, F) => (d(), u("div", {
|
|
1800
1795
|
key: F,
|
|
1801
1796
|
class: "preview-img"
|
|
1802
1797
|
}, [
|
|
1803
1798
|
_(v, {
|
|
1804
1799
|
class: "show-img",
|
|
1805
|
-
src:
|
|
1806
|
-
"preview-src-list": [
|
|
1800
|
+
src: n.loadUrl + p.url,
|
|
1801
|
+
"preview-src-list": [n.loadUrl + p.url],
|
|
1807
1802
|
fit: "cover"
|
|
1808
1803
|
}, null, 8, ["src", "preview-src-list"])
|
|
1809
1804
|
]))),
|
|
@@ -1815,16 +1810,16 @@ const A6 = /* @__PURE__ */ A(H6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
|
|
|
1815
1810
|
modelValue: l.value,
|
|
1816
1811
|
"onUpdate:modelValue": r[0] || (r[0] = (p) => l.value = p),
|
|
1817
1812
|
"load-url": e.loadUrl,
|
|
1818
|
-
url: (f =
|
|
1819
|
-
"kk-url":
|
|
1820
|
-
"file-name": (m =
|
|
1813
|
+
url: (f = o.value) == null ? void 0 : f.url,
|
|
1814
|
+
"kk-url": n.kkUrl,
|
|
1815
|
+
"file-name": (m = o.value) == null ? void 0 : m.name
|
|
1821
1816
|
}, null, 8, ["modelValue", "load-url", "url", "kk-url", "file-name"])
|
|
1822
1817
|
]);
|
|
1823
1818
|
};
|
|
1824
1819
|
}
|
|
1825
1820
|
});
|
|
1826
|
-
const
|
|
1821
|
+
const Z6 = /* @__PURE__ */ E(Y6, [["__scopeId", "data-v-170abcfc"]]), ee = D(Z6);
|
|
1827
1822
|
export {
|
|
1828
|
-
|
|
1829
|
-
|
|
1823
|
+
ee as IKDetailPreviewFiles,
|
|
1824
|
+
ee as default
|
|
1830
1825
|
};
|