iking-web-ui-pro 0.1.98 → 0.2.0
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 +86 -86
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +162 -162
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +197 -197
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkDescription/ik.index.es.js +67 -61
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +55 -55
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/ik.index.es.js +173 -173
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/index.es.js +968 -962
- package/dist/index.umd.js +10 -10
- package/dist/src/components/IkDescription/index.d.ts +19 -0
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +9 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, computed as
|
|
1
|
+
import { defineComponent as k, computed as C, openBlock as c, createElementBlock as u, createElementVNode as r, ref as z, Fragment as D, renderList as H, normalizeClass as F, normalizeStyle as _, createVNode as y, toDisplayString as V, unref as w, withModifiers as W, renderSlot as $, createCommentVNode as x, mergeModels as P, useModel as L, reactive as K, watch as j, nextTick as X, resolveComponent as M, createBlock as I, withCtx as S, createTextVNode as O, h as Y, mergeProps as Z, createSlots as J, pushScopeId as Q, popScopeId as e3 } from "vue";
|
|
2
2
|
import { paramType as t3, ikFile as n3, buildUUID as o3, ikColor as i3, ikUrl as s3 } from "iking-utils-pro";
|
|
3
3
|
const R = (n, e) => {
|
|
4
4
|
if (n.install = (i) => {
|
|
@@ -632,7 +632,7 @@ const G = (n, e) => {
|
|
|
632
632
|
}
|
|
633
633
|
},
|
|
634
634
|
setup(n) {
|
|
635
|
-
const e = n, i =
|
|
635
|
+
const e = n, i = C(() => e.file ? G(e.file, e.fields) : e.type);
|
|
636
636
|
return (l, o) => i.value === "image" ? (c(), u("svg", c3, h3)) : i.value === "zip" ? (c(), u("svg", v3, w3)) : i.value === "ppt" ? (c(), u("svg", y3, z3)) : i.value === "word" ? (c(), u("svg", F3, S3)) : i.value === "pdf" ? (c(), u("svg", C3, I3)) : i.value === "txt" ? (c(), u("svg", R3, M3)) : i.value === "audio" ? (c(), u("svg", q3, O3)) : i.value === "video" ? (c(), u("svg", A3, P3)) : i.value === "excel" ? (c(), u("svg", L3, W3)) : i.value === "exe" ? (c(), u("svg", K3, Q3)) : i.value === "json" ? (c(), u("svg", e6, i6)) : (c(), u("svg", s6, c6));
|
|
637
637
|
}
|
|
638
638
|
}), u6 = ["onClick"], p6 = { class: "text" }, f6 = { class: "fileName" }, h6 = { class: "size" }, v6 = /* @__PURE__ */ k({
|
|
@@ -705,7 +705,7 @@ const G = (n, e) => {
|
|
|
705
705
|
}
|
|
706
706
|
},
|
|
707
707
|
setup(n) {
|
|
708
|
-
const e = n, i =
|
|
708
|
+
const e = n, i = C(() => ({
|
|
709
709
|
name: "name",
|
|
710
710
|
url: "url",
|
|
711
711
|
suffix: "suffix",
|
|
@@ -720,7 +720,7 @@ const G = (n, e) => {
|
|
|
720
720
|
e.loadUrl,
|
|
721
721
|
t.url || ((v = (d = t == null ? void 0 : t.response) == null ? void 0 : d.data) == null ? void 0 : v.id) || (t == null ? void 0 : t.id)
|
|
722
722
|
)
|
|
723
|
-
},
|
|
723
|
+
}, o.value = !0;
|
|
724
724
|
}, a = (t) => {
|
|
725
725
|
n3.downloadFile(
|
|
726
726
|
q(
|
|
@@ -729,7 +729,7 @@ const G = (n, e) => {
|
|
|
729
729
|
),
|
|
730
730
|
t[i.value.name] || t.attachmentName
|
|
731
731
|
);
|
|
732
|
-
}, h =
|
|
732
|
+
}, h = C(() => t3.isNumber(e.width) ? `${e.width}px` : e.width), g = C(() => e.list.map((t) => ({
|
|
733
733
|
...t,
|
|
734
734
|
name: t[i.value.name] || t.attachmentName,
|
|
735
735
|
size: t[i.value.size] || t.fileSize || t.attachmentSize,
|
|
@@ -759,7 +759,7 @@ const G = (n, e) => {
|
|
|
759
759
|
[
|
|
760
760
|
r("div", {
|
|
761
761
|
class: "file-card",
|
|
762
|
-
onClick: (
|
|
762
|
+
onClick: (b) => s(p)
|
|
763
763
|
}, [
|
|
764
764
|
y(d6, {
|
|
765
765
|
file: p,
|
|
@@ -771,14 +771,14 @@ const G = (n, e) => {
|
|
|
771
771
|
r(
|
|
772
772
|
"div",
|
|
773
773
|
f6,
|
|
774
|
-
|
|
774
|
+
V(p.name),
|
|
775
775
|
1
|
|
776
776
|
/* TEXT */
|
|
777
777
|
),
|
|
778
778
|
r(
|
|
779
779
|
"div",
|
|
780
780
|
h6,
|
|
781
|
-
|
|
781
|
+
V(w(l3)(p.size)),
|
|
782
782
|
1
|
|
783
783
|
/* TEXT */
|
|
784
784
|
)
|
|
@@ -791,7 +791,7 @@ const G = (n, e) => {
|
|
|
791
791
|
[
|
|
792
792
|
y(w(B), {
|
|
793
793
|
name: "iksvg_daochu",
|
|
794
|
-
onClick: W((
|
|
794
|
+
onClick: W((b) => a(p), ["stop"]),
|
|
795
795
|
bg: n.showBg,
|
|
796
796
|
size: n.showBg ? "default" : 20
|
|
797
797
|
}, null, 8, ["onClick", "bg", "size"]),
|
|
@@ -815,8 +815,8 @@ const G = (n, e) => {
|
|
|
815
815
|
}),
|
|
816
816
|
128
|
|
817
817
|
/* KEYED_FRAGMENT */
|
|
818
|
-
)) :
|
|
819
|
-
y(w(
|
|
818
|
+
)) : x("v-if", !0),
|
|
819
|
+
y(w(w6), {
|
|
820
820
|
show: o.value,
|
|
821
821
|
"onUpdate:show": d[0] || (d[0] = (p) => o.value = p),
|
|
822
822
|
loadUrl: n.loadUrl,
|
|
@@ -832,7 +832,7 @@ const G = (n, e) => {
|
|
|
832
832
|
};
|
|
833
833
|
}
|
|
834
834
|
});
|
|
835
|
-
const g6 = R(v6), m6 =
|
|
835
|
+
const g6 = R(v6), m6 = /* @__PURE__ */ k({
|
|
836
836
|
__name: "IkPreviewFileDialog",
|
|
837
837
|
props: /* @__PURE__ */ P({
|
|
838
838
|
file: {
|
|
@@ -869,7 +869,7 @@ const g6 = R(v6), m6 = { key: 1 }, w6 = /* @__PURE__ */ k({
|
|
|
869
869
|
}),
|
|
870
870
|
emits: ["update:show"],
|
|
871
871
|
setup(n) {
|
|
872
|
-
const e = n, i = L(n, "show"), l =
|
|
872
|
+
const e = n, i = L(n, "show"), l = C(() => ({
|
|
873
873
|
name: "name",
|
|
874
874
|
url: "url",
|
|
875
875
|
suffix: "suffix",
|
|
@@ -882,7 +882,7 @@ const g6 = R(v6), m6 = { key: 1 }, w6 = /* @__PURE__ */ k({
|
|
|
882
882
|
}), h = (t) => {
|
|
883
883
|
var d, v;
|
|
884
884
|
try {
|
|
885
|
-
const p = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || t, m = p[l.value.url] || (p == null ? void 0 : p.id) || p.attachmentId, f = (v = p[l.value.suffix] || p.attachmentSuffix) == null ? void 0 : v.toLowerCase(),
|
|
885
|
+
const p = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || t, m = p[l.value.url] || (p == null ? void 0 : p.id) || p.attachmentId, f = (v = p[l.value.suffix] || p.attachmentSuffix) == null ? void 0 : v.toLowerCase(), b = p[l.value.name] || (p == null ? void 0 : p.attachmentName);
|
|
886
886
|
if (s.value = {
|
|
887
887
|
...t,
|
|
888
888
|
name: t[l.value.name],
|
|
@@ -895,7 +895,7 @@ const g6 = R(v6), m6 = { key: 1 }, w6 = /* @__PURE__ */ k({
|
|
|
895
895
|
documentType: r3(f),
|
|
896
896
|
document: {
|
|
897
897
|
key: o3(),
|
|
898
|
-
title:
|
|
898
|
+
title: b,
|
|
899
899
|
url: q(e.loadUrl, m),
|
|
900
900
|
fileType: f
|
|
901
901
|
},
|
|
@@ -936,9 +936,9 @@ const g6 = R(v6), m6 = { key: 1 }, w6 = /* @__PURE__ */ k({
|
|
|
936
936
|
}),
|
|
937
937
|
ref: "previewImgRef",
|
|
938
938
|
"url-list": [(m = s.value) == null ? void 0 : m.url]
|
|
939
|
-
}, null, 8, ["url-list"])) :
|
|
940
|
-
|
|
941
|
-
y(w(
|
|
939
|
+
}, null, 8, ["url-list"])) : x("v-if", !0),
|
|
940
|
+
x(" 文档类 "),
|
|
941
|
+
y(w(D6), {
|
|
942
942
|
modelValue: a.office,
|
|
943
943
|
"onUpdate:modelValue": d[1] || (d[1] = (f) => a.office = f),
|
|
944
944
|
draggable: "",
|
|
@@ -953,8 +953,8 @@ const g6 = R(v6), m6 = { key: 1 }, w6 = /* @__PURE__ */ k({
|
|
|
953
953
|
onClose: g,
|
|
954
954
|
"modal-class": "ik-only-preview-dialog"
|
|
955
955
|
}, {
|
|
956
|
-
default:
|
|
957
|
-
y(w(
|
|
956
|
+
default: S(() => [
|
|
957
|
+
y(w(T6), {
|
|
958
958
|
configOptions: o.value,
|
|
959
959
|
documentServerUrl: n.onlyofficeServer,
|
|
960
960
|
mode: "view"
|
|
@@ -966,22 +966,22 @@ const g6 = R(v6), m6 = { key: 1 }, w6 = /* @__PURE__ */ k({
|
|
|
966
966
|
],
|
|
967
967
|
64
|
|
968
968
|
/* STABLE_FRAGMENT */
|
|
969
|
-
)) : (
|
|
969
|
+
)) : x("v-if", !0);
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
972
|
});
|
|
973
|
-
const
|
|
973
|
+
const w6 = R(m6), y6 = {
|
|
974
974
|
key: 0,
|
|
975
975
|
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
|
|
976
|
-
},
|
|
976
|
+
}, _6 = {
|
|
977
977
|
key: 1,
|
|
978
978
|
class: "h-[1em] w-[1em]",
|
|
979
979
|
"aria-hidden": "true"
|
|
980
|
-
},
|
|
980
|
+
}, k6 = ["xlink:href"], z6 = ["src"], F6 = {
|
|
981
981
|
key: 1,
|
|
982
982
|
class: "h-[1em] w-[1em]",
|
|
983
983
|
"aria-hidden": "true"
|
|
984
|
-
},
|
|
984
|
+
}, x6 = ["xlink:href"], b6 = ["src"], S6 = /* @__PURE__ */ k({
|
|
985
985
|
name: "IkSvgIcon",
|
|
986
986
|
__name: "index",
|
|
987
987
|
props: {
|
|
@@ -1008,10 +1008,10 @@ const y6 = R(w6), _6 = {
|
|
|
1008
1008
|
tableIconType: { default: "icon" }
|
|
1009
1009
|
},
|
|
1010
1010
|
setup(n) {
|
|
1011
|
-
const e = n, i =
|
|
1011
|
+
const e = n, i = C(() => {
|
|
1012
1012
|
var o, s, a;
|
|
1013
1013
|
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";
|
|
1014
|
-
}), l =
|
|
1014
|
+
}), l = C(() => {
|
|
1015
1015
|
const o = [];
|
|
1016
1016
|
if (e.flip)
|
|
1017
1017
|
switch (e.flip) {
|
|
@@ -1040,7 +1040,7 @@ const y6 = R(w6), _6 = {
|
|
|
1040
1040
|
});
|
|
1041
1041
|
return (o, s) => {
|
|
1042
1042
|
const a = M("el-tooltip"), h = M("el-button");
|
|
1043
|
-
return o.tableIconType === "icon" ? (c(), u("span",
|
|
1043
|
+
return o.tableIconType === "icon" ? (c(), u("span", y6, [
|
|
1044
1044
|
o.notip || !o.title ? (c(), u(
|
|
1045
1045
|
"i",
|
|
1046
1046
|
{
|
|
@@ -1061,7 +1061,7 @@ const y6 = R(w6), _6 = {
|
|
|
1061
1061
|
style: _(l.value)
|
|
1062
1062
|
},
|
|
1063
1063
|
[
|
|
1064
|
-
|
|
1064
|
+
x(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
1065
1065
|
i.value === "iksig" ? (c(), u(
|
|
1066
1066
|
"i",
|
|
1067
1067
|
{
|
|
@@ -1072,15 +1072,15 @@ const y6 = R(w6), _6 = {
|
|
|
1072
1072
|
null,
|
|
1073
1073
|
6
|
|
1074
1074
|
/* CLASS, STYLE */
|
|
1075
|
-
)) : i.value === "svg" ? (c(), u("svg",
|
|
1075
|
+
)) : i.value === "svg" ? (c(), u("svg", _6, [
|
|
1076
1076
|
r("use", {
|
|
1077
1077
|
"xlink:href": `#${o.name}`
|
|
1078
|
-
}, null, 8,
|
|
1078
|
+
}, null, 8, k6)
|
|
1079
1079
|
])) : i.value === "img" ? (c(), u("img", {
|
|
1080
1080
|
key: 2,
|
|
1081
1081
|
src: o.name,
|
|
1082
1082
|
class: "h-[1em] w-[1em]"
|
|
1083
|
-
}, null, 8,
|
|
1083
|
+
}, null, 8, z6)) : (c(), u(
|
|
1084
1084
|
"i",
|
|
1085
1085
|
{
|
|
1086
1086
|
key: 3,
|
|
@@ -1099,7 +1099,7 @@ const y6 = R(w6), _6 = {
|
|
|
1099
1099
|
content: o.title,
|
|
1100
1100
|
placement: "top"
|
|
1101
1101
|
}, {
|
|
1102
|
-
default:
|
|
1102
|
+
default: S(() => [
|
|
1103
1103
|
r(
|
|
1104
1104
|
"i",
|
|
1105
1105
|
{
|
|
@@ -1128,15 +1128,15 @@ const y6 = R(w6), _6 = {
|
|
|
1128
1128
|
null,
|
|
1129
1129
|
6
|
|
1130
1130
|
/* CLASS, STYLE */
|
|
1131
|
-
)) : i.value === "svg" ? (c(), u("svg",
|
|
1131
|
+
)) : i.value === "svg" ? (c(), u("svg", F6, [
|
|
1132
1132
|
r("use", {
|
|
1133
1133
|
"xlink:href": `#${o.name}`
|
|
1134
|
-
}, null, 8,
|
|
1134
|
+
}, null, 8, x6)
|
|
1135
1135
|
])) : i.value === "img" ? (c(), u("img", {
|
|
1136
1136
|
key: 2,
|
|
1137
1137
|
src: o.name,
|
|
1138
1138
|
class: "h-[1em] w-[1em]"
|
|
1139
|
-
}, null, 8,
|
|
1139
|
+
}, null, 8, b6)) : (c(), u(
|
|
1140
1140
|
"i",
|
|
1141
1141
|
{
|
|
1142
1142
|
key: 3,
|
|
@@ -1159,9 +1159,9 @@ const y6 = R(w6), _6 = {
|
|
|
1159
1159
|
key: 1,
|
|
1160
1160
|
type: ["warning", "error"].includes(o.type) ? "danger" : ""
|
|
1161
1161
|
}, {
|
|
1162
|
-
default:
|
|
1162
|
+
default: S(() => [
|
|
1163
1163
|
O(
|
|
1164
|
-
|
|
1164
|
+
V(o.title),
|
|
1165
1165
|
1
|
|
1166
1166
|
/* TEXT */
|
|
1167
1167
|
)
|
|
@@ -1172,10 +1172,10 @@ const y6 = R(w6), _6 = {
|
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
1174
|
});
|
|
1175
|
-
const
|
|
1175
|
+
const C6 = /* @__PURE__ */ E(S6, [["__scopeId", "data-v-7d95dbf5"]]), B = R(C6), V6 = {
|
|
1176
1176
|
key: 0,
|
|
1177
1177
|
class: "exit-main-page-maximize"
|
|
1178
|
-
},
|
|
1178
|
+
}, B6 = /* @__PURE__ */ k({
|
|
1179
1179
|
__name: "CloseIcon",
|
|
1180
1180
|
props: {
|
|
1181
1181
|
showBg: {
|
|
@@ -1189,7 +1189,7 @@ const V6 = /* @__PURE__ */ E(C6, [["__scopeId", "data-v-7d95dbf5"]]), B = R(V6),
|
|
|
1189
1189
|
},
|
|
1190
1190
|
setup(n) {
|
|
1191
1191
|
return (e, i) => (c(), u("div", null, [
|
|
1192
|
-
n.showBg && n.fullscreen ? (c(), u("div",
|
|
1192
|
+
n.showBg && n.fullscreen ? (c(), u("div", V6, [
|
|
1193
1193
|
y(w(B), {
|
|
1194
1194
|
name: "iksvg_guanbidanchuang",
|
|
1195
1195
|
title: "关闭",
|
|
@@ -1206,7 +1206,7 @@ const V6 = /* @__PURE__ */ E(C6, [["__scopeId", "data-v-7d95dbf5"]]), B = R(V6),
|
|
|
1206
1206
|
]));
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
|
-
const
|
|
1209
|
+
const I6 = /* @__PURE__ */ E(B6, [["__scopeId", "data-v-79f49df8"]]), R6 = { class: "base-header" }, $6 = /* @__PURE__ */ k({
|
|
1210
1210
|
__name: "IkBaseDialog",
|
|
1211
1211
|
props: /* @__PURE__ */ P({
|
|
1212
1212
|
title: { default: "" },
|
|
@@ -1231,7 +1231,7 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1231
1231
|
l.value = !l.value;
|
|
1232
1232
|
}, s = k({
|
|
1233
1233
|
setup() {
|
|
1234
|
-
return () => Y(
|
|
1234
|
+
return () => Y(I6, {
|
|
1235
1235
|
showBg: e.showCloseBg,
|
|
1236
1236
|
fullscreen: e.fullscreen
|
|
1237
1237
|
});
|
|
@@ -1248,20 +1248,20 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1248
1248
|
fullscreen: l.value,
|
|
1249
1249
|
"modal-class": "baseDialog"
|
|
1250
1250
|
}), J({
|
|
1251
|
-
icon:
|
|
1251
|
+
icon: S(() => [
|
|
1252
1252
|
$(a.$slots, "title", {}, () => [
|
|
1253
1253
|
O(
|
|
1254
|
-
|
|
1254
|
+
V(a.title),
|
|
1255
1255
|
1
|
|
1256
1256
|
/* TEXT */
|
|
1257
1257
|
)
|
|
1258
1258
|
])
|
|
1259
1259
|
]),
|
|
1260
|
-
header:
|
|
1261
|
-
r("div",
|
|
1260
|
+
header: S(() => [
|
|
1261
|
+
r("div", R6, [
|
|
1262
1262
|
$(a.$slots, "header", {}, () => [
|
|
1263
1263
|
O(
|
|
1264
|
-
|
|
1264
|
+
V(a.title),
|
|
1265
1265
|
1
|
|
1266
1266
|
/* TEXT */
|
|
1267
1267
|
)
|
|
@@ -1273,9 +1273,9 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1273
1273
|
name: l.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
1274
1274
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
1275
1275
|
title: l.value ? "退出全屏" : "全屏"
|
|
1276
|
-
}, null, 8, ["name", "title"])) :
|
|
1276
|
+
}, null, 8, ["name", "title"])) : x("v-if", !0)
|
|
1277
1277
|
]),
|
|
1278
|
-
default:
|
|
1278
|
+
default: S(() => [
|
|
1279
1279
|
$(a.$slots, "default")
|
|
1280
1280
|
]),
|
|
1281
1281
|
_: 2
|
|
@@ -1283,7 +1283,7 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1283
1283
|
}, [
|
|
1284
1284
|
a.$slots.footer ? {
|
|
1285
1285
|
name: "footer",
|
|
1286
|
-
fn:
|
|
1286
|
+
fn: S(() => [
|
|
1287
1287
|
$(a.$slots, "footer")
|
|
1288
1288
|
]),
|
|
1289
1289
|
key: "0"
|
|
@@ -1292,8 +1292,8 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1292
1292
|
};
|
|
1293
1293
|
}
|
|
1294
1294
|
});
|
|
1295
|
-
const
|
|
1296
|
-
function
|
|
1295
|
+
const D6 = R($6);
|
|
1296
|
+
function M6(n, e, i, l) {
|
|
1297
1297
|
function o(s) {
|
|
1298
1298
|
return s instanceof i ? s : new i(function(a) {
|
|
1299
1299
|
a(s);
|
|
@@ -1320,7 +1320,7 @@ function q6(n, e, i, l) {
|
|
|
1320
1320
|
t((l = l.apply(n, e || [])).next());
|
|
1321
1321
|
});
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function q6(n, e) {
|
|
1324
1324
|
var i = { label: 0, sent: function() {
|
|
1325
1325
|
if (s[0] & 1)
|
|
1326
1326
|
throw s[1];
|
|
@@ -1385,9 +1385,9 @@ function E6(n, e) {
|
|
|
1385
1385
|
return { value: t[0] ? t[1] : void 0, done: !0 };
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
var
|
|
1389
|
-
return
|
|
1390
|
-
return
|
|
1388
|
+
var E6 = function(n, e) {
|
|
1389
|
+
return M6(void 0, void 0, void 0, function() {
|
|
1390
|
+
return q6(this, function(i) {
|
|
1391
1391
|
return [2, new Promise(function(l, o) {
|
|
1392
1392
|
try {
|
|
1393
1393
|
if (window.DocsAPI)
|
|
@@ -1475,7 +1475,7 @@ var H6 = function(n, e) {
|
|
|
1475
1475
|
var n = this, e = this.documentServerUrl;
|
|
1476
1476
|
e.endsWith("/") || (e += "/");
|
|
1477
1477
|
var i = "".concat(e, "web-apps/apps/api/documents/api.js");
|
|
1478
|
-
|
|
1478
|
+
E6(i, "onlyoffice-api-script").then(function() {
|
|
1479
1479
|
return n.onLoad();
|
|
1480
1480
|
}).catch(function() {
|
|
1481
1481
|
n.onError(-2);
|
|
@@ -1589,13 +1589,13 @@ var H6 = function(n, e) {
|
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
1591
|
});
|
|
1592
|
-
const
|
|
1593
|
-
function
|
|
1594
|
-
return c(), u("div", { id: n.id }, null, 8,
|
|
1592
|
+
const H6 = ["id"];
|
|
1593
|
+
function O6(n, e, i, l, o, s) {
|
|
1594
|
+
return c(), u("div", { id: n.id }, null, 8, H6);
|
|
1595
1595
|
}
|
|
1596
|
-
A.render =
|
|
1596
|
+
A.render = O6;
|
|
1597
1597
|
A.__file = "src/components/DocumentEditor.vue";
|
|
1598
|
-
const
|
|
1598
|
+
const A6 = /* @__PURE__ */ k({
|
|
1599
1599
|
__name: "IkOnlyOffice",
|
|
1600
1600
|
props: {
|
|
1601
1601
|
// 文件服务器的服务的地址
|
|
@@ -1689,22 +1689,22 @@ const U6 = /* @__PURE__ */ k({
|
|
|
1689
1689
|
));
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
|
-
const
|
|
1692
|
+
const U6 = /* @__PURE__ */ E(A6, [["__scopeId", "data-v-ea0a8f6d"]]), T6 = R(U6), P6 = (n) => (Q("data-v-170abcfc"), n = n(), e3(), n), L6 = {
|
|
1693
1693
|
key: 0,
|
|
1694
1694
|
class: "preview-files"
|
|
1695
|
-
},
|
|
1695
|
+
}, j6 = {
|
|
1696
1696
|
class: "flex",
|
|
1697
1697
|
style: { width: "80%", "align-items": "center" }
|
|
1698
|
-
},
|
|
1698
|
+
}, G6 = ["onClick"], N6 = ["title"], W6 = { style: { color: "#b8c6d9" } }, K6 = ["onClick"], X6 = /* @__PURE__ */ P6(() => /* @__PURE__ */ r(
|
|
1699
1699
|
"span",
|
|
1700
1700
|
null,
|
|
1701
1701
|
"预览",
|
|
1702
1702
|
-1
|
|
1703
1703
|
/* HOISTED */
|
|
1704
|
-
)),
|
|
1704
|
+
)), Y6 = {
|
|
1705
1705
|
key: 1,
|
|
1706
1706
|
class: "flex preview-img"
|
|
1707
|
-
},
|
|
1707
|
+
}, Z6 = /* @__PURE__ */ k({
|
|
1708
1708
|
__name: "IKDetailPreviewFiles",
|
|
1709
1709
|
props: {
|
|
1710
1710
|
// 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
|
|
@@ -1762,14 +1762,14 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1762
1762
|
var p, m;
|
|
1763
1763
|
const v = M("el-image");
|
|
1764
1764
|
return c(), u("div", null, [
|
|
1765
|
-
e.fileType === "file" ? (c(), u("div",
|
|
1765
|
+
e.fileType === "file" ? (c(), u("div", L6, [
|
|
1766
1766
|
(c(!0), u(
|
|
1767
1767
|
D,
|
|
1768
1768
|
null,
|
|
1769
|
-
H(i.value, (f,
|
|
1769
|
+
H(i.value, (f, b) => (c(), u(
|
|
1770
1770
|
"div",
|
|
1771
1771
|
{
|
|
1772
|
-
key:
|
|
1772
|
+
key: b,
|
|
1773
1773
|
class: "files-item",
|
|
1774
1774
|
style: _({
|
|
1775
1775
|
width: e.fileWidth,
|
|
@@ -1777,7 +1777,7 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1777
1777
|
})
|
|
1778
1778
|
},
|
|
1779
1779
|
[
|
|
1780
|
-
r("div",
|
|
1780
|
+
r("div", j6, [
|
|
1781
1781
|
y(w(B), {
|
|
1782
1782
|
name: a(f),
|
|
1783
1783
|
style: _(`color:${h(f)}`),
|
|
@@ -1789,23 +1789,23 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1789
1789
|
}, [
|
|
1790
1790
|
r("p", {
|
|
1791
1791
|
title: f.name
|
|
1792
|
-
},
|
|
1792
|
+
}, V(f.name), 9, N6),
|
|
1793
1793
|
r(
|
|
1794
1794
|
"p",
|
|
1795
|
-
|
|
1796
|
-
|
|
1795
|
+
W6,
|
|
1796
|
+
V((f.size / 1024).toFixed(2)) + "KB",
|
|
1797
1797
|
1
|
|
1798
1798
|
/* TEXT */
|
|
1799
1799
|
)
|
|
1800
|
-
], 8,
|
|
1800
|
+
], 8, G6)
|
|
1801
1801
|
]),
|
|
1802
1802
|
r("div", {
|
|
1803
1803
|
class: "file-preview",
|
|
1804
1804
|
onClick: (N) => s(f)
|
|
1805
1805
|
}, [
|
|
1806
1806
|
y(w(B), { name: "iksvg_yulan" }),
|
|
1807
|
-
|
|
1808
|
-
], 8,
|
|
1807
|
+
X6
|
|
1808
|
+
], 8, K6)
|
|
1809
1809
|
],
|
|
1810
1810
|
4
|
|
1811
1811
|
/* STYLE */
|
|
@@ -1813,13 +1813,13 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1813
1813
|
128
|
|
1814
1814
|
/* KEYED_FRAGMENT */
|
|
1815
1815
|
))
|
|
1816
|
-
])) :
|
|
1817
|
-
e.fileType === "img" ? (c(), u("div",
|
|
1816
|
+
])) : x("v-if", !0),
|
|
1817
|
+
e.fileType === "img" ? (c(), u("div", Y6, [
|
|
1818
1818
|
(c(!0), u(
|
|
1819
1819
|
D,
|
|
1820
1820
|
null,
|
|
1821
|
-
H(i.value, (f,
|
|
1822
|
-
key:
|
|
1821
|
+
H(i.value, (f, b) => (c(), u("div", {
|
|
1822
|
+
key: b,
|
|
1823
1823
|
class: "preview-img"
|
|
1824
1824
|
}, [
|
|
1825
1825
|
y(v, {
|
|
@@ -1832,7 +1832,7 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1832
1832
|
128
|
|
1833
1833
|
/* KEYED_FRAGMENT */
|
|
1834
1834
|
))
|
|
1835
|
-
])) :
|
|
1835
|
+
])) : x("v-if", !0),
|
|
1836
1836
|
y(w(g6), {
|
|
1837
1837
|
modelValue: l.value,
|
|
1838
1838
|
"onUpdate:modelValue": d[0] || (d[0] = (f) => l.value = f),
|
|
@@ -1845,8 +1845,8 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1845
1845
|
};
|
|
1846
1846
|
}
|
|
1847
1847
|
});
|
|
1848
|
-
const
|
|
1848
|
+
const J6 = /* @__PURE__ */ E(Z6, [["__scopeId", "data-v-170abcfc"]]), te = R(J6);
|
|
1849
1849
|
export {
|
|
1850
|
-
|
|
1851
|
-
|
|
1850
|
+
te as IKDetailPreviewFiles,
|
|
1851
|
+
te as default
|
|
1852
1852
|
};
|