iking-web-ui-pro 0.1.93 → 0.1.94
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 +117 -102
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKHorizontalStepBar/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +183 -168
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFileDialog/ik.index.es.js +173 -158
- package/dist/IKPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IKSearch/ik.index.umd.js +1 -1
- package/dist/IKSearchHead/ik.index.umd.js +1 -1
- package/dist/IKVerticalStepBar/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +286 -271
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkAutoCard/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBottomOperate/ik.index.umd.js +1 -1
- package/dist/IkBtnContent/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCurrencyInput/ik.index.umd.js +1 -1
- package/dist/IkDescription/ik.index.es.js +98 -83
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDragList/ik.index.umd.js +1 -1
- package/dist/IkEmpty/ik.index.umd.js +1 -1
- package/dist/IkFullCalendar/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
- package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
- package/dist/IkPageFull/ik.index.umd.js +1 -1
- package/dist/IkPageTabs/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPrintConfig/ik.index.umd.js +1 -1
- package/dist/IkPrintView/ik.index.umd.js +1 -1
- package/dist/IkRadioGroup/ik.index.umd.js +1 -1
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSelectTag/ik.index.umd.js +1 -1
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkStatu/ik.index.umd.js +1 -1
- package/dist/IkStatuOver/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkTinymce/ik.index.umd.js +1 -1
- package/dist/IkTooltip/ik.index.umd.js +1 -1
- package/dist/IkTree/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/ik.index.es.js +228 -213
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/index.es.js +1535 -1520
- package/dist/index.umd.js +10 -10
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as k, computed as C, openBlock as c, createElementBlock as u, createElementVNode as r, ref as z, Fragment 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 R, 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
|
-
const
|
|
3
|
+
const $ = (n, e) => {
|
|
4
4
|
if (n.install = (i) => {
|
|
5
5
|
for (const l of [n, ...Object.values(e ?? {})])
|
|
6
6
|
i.component(l.name, l);
|
|
@@ -322,7 +322,7 @@ const G = (n, e) => {
|
|
|
322
322
|
), I3 = [
|
|
323
323
|
V3,
|
|
324
324
|
B3
|
|
325
|
-
],
|
|
325
|
+
], $3 = {
|
|
326
326
|
key: 5,
|
|
327
327
|
t: "1686300195363",
|
|
328
328
|
class: "icon",
|
|
@@ -332,7 +332,7 @@ const G = (n, e) => {
|
|
|
332
332
|
"p-id": "8602",
|
|
333
333
|
width: "200",
|
|
334
334
|
height: "200"
|
|
335
|
-
},
|
|
335
|
+
}, R3 = /* @__PURE__ */ r(
|
|
336
336
|
"path",
|
|
337
337
|
{
|
|
338
338
|
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",
|
|
@@ -353,7 +353,7 @@ const G = (n, e) => {
|
|
|
353
353
|
-1
|
|
354
354
|
/* HOISTED */
|
|
355
355
|
), M3 = [
|
|
356
|
-
|
|
356
|
+
R3,
|
|
357
357
|
D3
|
|
358
358
|
], q3 = {
|
|
359
359
|
key: 6,
|
|
@@ -633,7 +633,7 @@ const G = (n, e) => {
|
|
|
633
633
|
},
|
|
634
634
|
setup(n) {
|
|
635
635
|
const e = n, i = C(() => e.file ? G(e.file, e.fields) : e.type);
|
|
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",
|
|
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", $3, 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({
|
|
639
639
|
__name: "IkPreviewFile",
|
|
@@ -738,11 +738,11 @@ const G = (n, e) => {
|
|
|
738
738
|
return (t, d) => {
|
|
739
739
|
var v;
|
|
740
740
|
return c(), u(
|
|
741
|
-
|
|
741
|
+
D,
|
|
742
742
|
null,
|
|
743
743
|
[
|
|
744
744
|
(v = n.list) != null && v.length ? (c(!0), u(
|
|
745
|
-
|
|
745
|
+
D,
|
|
746
746
|
{ key: 0 },
|
|
747
747
|
H(g.value, (p, m) => {
|
|
748
748
|
var f;
|
|
@@ -800,7 +800,7 @@ const G = (n, e) => {
|
|
|
800
800
|
bg: n.showBg,
|
|
801
801
|
size: n.showBg ? "default" : 20
|
|
802
802
|
}, null, 8, ["bg", "size"]),
|
|
803
|
-
|
|
803
|
+
R(t.$slots, "operation", {
|
|
804
804
|
data: { ...p, findex: m }
|
|
805
805
|
})
|
|
806
806
|
],
|
|
@@ -816,7 +816,7 @@ const G = (n, e) => {
|
|
|
816
816
|
128
|
|
817
817
|
/* KEYED_FRAGMENT */
|
|
818
818
|
)) : x("v-if", !0),
|
|
819
|
-
y(w(
|
|
819
|
+
y(w(_6), {
|
|
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,13 @@ const G = (n, e) => {
|
|
|
832
832
|
};
|
|
833
833
|
}
|
|
834
834
|
});
|
|
835
|
-
const g6 =
|
|
835
|
+
const g6 = $(v6), m6 = { key: 0 }, w6 = /* @__PURE__ */ r(
|
|
836
|
+
"div",
|
|
837
|
+
null,
|
|
838
|
+
null,
|
|
839
|
+
-1
|
|
840
|
+
/* HOISTED */
|
|
841
|
+
), y6 = /* @__PURE__ */ k({
|
|
836
842
|
__name: "IkPreviewFileDialog",
|
|
837
843
|
props: /* @__PURE__ */ P({
|
|
838
844
|
file: {
|
|
@@ -917,7 +923,7 @@ const g6 = R(v6), m6 = { key: 0 }, w6 = /* @__PURE__ */ k({
|
|
|
917
923
|
}
|
|
918
924
|
};
|
|
919
925
|
j([i, e.file], ([t, d]) => {
|
|
920
|
-
console.log(t,
|
|
926
|
+
console.log(t, e.file), t && X(() => {
|
|
921
927
|
h(e.file);
|
|
922
928
|
});
|
|
923
929
|
});
|
|
@@ -926,58 +932,67 @@ const g6 = R(v6), m6 = { key: 0 }, w6 = /* @__PURE__ */ k({
|
|
|
926
932
|
};
|
|
927
933
|
return (t, d) => {
|
|
928
934
|
var p, m;
|
|
929
|
-
const v =
|
|
930
|
-
return
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
935
|
+
const v = M("el-image-viewer");
|
|
936
|
+
return c(), u(
|
|
937
|
+
D,
|
|
938
|
+
null,
|
|
939
|
+
[
|
|
940
|
+
i.value ? (c(), u("div", m6, [
|
|
941
|
+
(p = s.value) != null && p.url && a.image ? (c(), I(v, {
|
|
942
|
+
key: 0,
|
|
943
|
+
onClose: d[0] || (d[0] = (f) => {
|
|
944
|
+
s.value = null, a.image = !1;
|
|
945
|
+
}),
|
|
946
|
+
ref: "previewImgRef",
|
|
947
|
+
"url-list": [((m = s.value) == null ? void 0 : m.url) || ""]
|
|
948
|
+
}, null, 8, ["url-list"])) : x("v-if", !0),
|
|
949
|
+
x(" 文档类 "),
|
|
950
|
+
y(w(q6), {
|
|
951
|
+
modelValue: a.office,
|
|
952
|
+
"onUpdate:modelValue": d[1] || (d[1] = (f) => a.office = f),
|
|
953
|
+
draggable: "",
|
|
954
|
+
"no-footer": "",
|
|
955
|
+
"no-header": "",
|
|
956
|
+
fullscreen: "",
|
|
957
|
+
"show-close-bg": "",
|
|
958
|
+
"destroy-on-close": "",
|
|
959
|
+
"close-on-click-modal": "",
|
|
960
|
+
"close-on-press-escape": !1,
|
|
961
|
+
"append-to-body": "",
|
|
962
|
+
onClose: g,
|
|
963
|
+
"modal-class": "ik-only-preview-dialog"
|
|
964
|
+
}, {
|
|
965
|
+
default: S(() => [
|
|
966
|
+
y(w(L6), {
|
|
967
|
+
configOptions: o.value,
|
|
968
|
+
documentServerUrl: n.onlyofficeServer,
|
|
969
|
+
mode: "view"
|
|
970
|
+
}, null, 8, ["configOptions", "documentServerUrl"])
|
|
971
|
+
]),
|
|
972
|
+
_: 1
|
|
973
|
+
/* STABLE */
|
|
974
|
+
}, 8, ["modelValue"])
|
|
975
|
+
])) : x("v-if", !0),
|
|
976
|
+
w6
|
|
977
|
+
],
|
|
978
|
+
64
|
|
979
|
+
/* STABLE_FRAGMENT */
|
|
980
|
+
);
|
|
966
981
|
};
|
|
967
982
|
}
|
|
968
983
|
});
|
|
969
|
-
const
|
|
984
|
+
const _6 = $(y6), k6 = {
|
|
970
985
|
key: 0,
|
|
971
986
|
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
|
|
972
|
-
},
|
|
987
|
+
}, z6 = {
|
|
973
988
|
key: 1,
|
|
974
989
|
class: "h-[1em] w-[1em]",
|
|
975
990
|
"aria-hidden": "true"
|
|
976
|
-
},
|
|
991
|
+
}, F6 = ["xlink:href"], x6 = ["src"], b6 = {
|
|
977
992
|
key: 1,
|
|
978
993
|
class: "h-[1em] w-[1em]",
|
|
979
994
|
"aria-hidden": "true"
|
|
980
|
-
},
|
|
995
|
+
}, S6 = ["xlink:href"], C6 = ["src"], V6 = /* @__PURE__ */ k({
|
|
981
996
|
name: "IkSvgIcon",
|
|
982
997
|
__name: "index",
|
|
983
998
|
props: {
|
|
@@ -1035,8 +1050,8 @@ const y6 = R(w6), _6 = {
|
|
|
1035
1050
|
return e.width && (s.width = s.height = typeof e.width == "number" ? `${e.width}px` : e.width), s;
|
|
1036
1051
|
});
|
|
1037
1052
|
return (o, s) => {
|
|
1038
|
-
const a =
|
|
1039
|
-
return o.tableIconType === "icon" ? (c(), u("span",
|
|
1053
|
+
const a = M("el-tooltip"), h = M("el-button");
|
|
1054
|
+
return o.tableIconType === "icon" ? (c(), u("span", k6, [
|
|
1040
1055
|
o.notip || !o.title ? (c(), u(
|
|
1041
1056
|
"i",
|
|
1042
1057
|
{
|
|
@@ -1068,15 +1083,15 @@ const y6 = R(w6), _6 = {
|
|
|
1068
1083
|
null,
|
|
1069
1084
|
6
|
|
1070
1085
|
/* CLASS, STYLE */
|
|
1071
|
-
)) : i.value === "svg" ? (c(), u("svg",
|
|
1086
|
+
)) : i.value === "svg" ? (c(), u("svg", z6, [
|
|
1072
1087
|
r("use", {
|
|
1073
1088
|
"xlink:href": `#${o.name}`
|
|
1074
|
-
}, null, 8,
|
|
1089
|
+
}, null, 8, F6)
|
|
1075
1090
|
])) : i.value === "img" ? (c(), u("img", {
|
|
1076
1091
|
key: 2,
|
|
1077
1092
|
src: o.name,
|
|
1078
1093
|
class: "h-[1em] w-[1em]"
|
|
1079
|
-
}, null, 8,
|
|
1094
|
+
}, null, 8, x6)) : (c(), u(
|
|
1080
1095
|
"i",
|
|
1081
1096
|
{
|
|
1082
1097
|
key: 3,
|
|
@@ -1124,15 +1139,15 @@ const y6 = R(w6), _6 = {
|
|
|
1124
1139
|
null,
|
|
1125
1140
|
6
|
|
1126
1141
|
/* CLASS, STYLE */
|
|
1127
|
-
)) : i.value === "svg" ? (c(), u("svg",
|
|
1142
|
+
)) : i.value === "svg" ? (c(), u("svg", b6, [
|
|
1128
1143
|
r("use", {
|
|
1129
1144
|
"xlink:href": `#${o.name}`
|
|
1130
|
-
}, null, 8,
|
|
1145
|
+
}, null, 8, S6)
|
|
1131
1146
|
])) : i.value === "img" ? (c(), u("img", {
|
|
1132
1147
|
key: 2,
|
|
1133
1148
|
src: o.name,
|
|
1134
1149
|
class: "h-[1em] w-[1em]"
|
|
1135
|
-
}, null, 8,
|
|
1150
|
+
}, null, 8, C6)) : (c(), u(
|
|
1136
1151
|
"i",
|
|
1137
1152
|
{
|
|
1138
1153
|
key: 3,
|
|
@@ -1168,10 +1183,10 @@ const y6 = R(w6), _6 = {
|
|
|
1168
1183
|
};
|
|
1169
1184
|
}
|
|
1170
1185
|
});
|
|
1171
|
-
const
|
|
1186
|
+
const B6 = /* @__PURE__ */ E(V6, [["__scopeId", "data-v-7d95dbf5"]]), B = $(B6), I6 = {
|
|
1172
1187
|
key: 0,
|
|
1173
1188
|
class: "exit-main-page-maximize"
|
|
1174
|
-
},
|
|
1189
|
+
}, $6 = /* @__PURE__ */ k({
|
|
1175
1190
|
__name: "CloseIcon",
|
|
1176
1191
|
props: {
|
|
1177
1192
|
showBg: {
|
|
@@ -1185,7 +1200,7 @@ const V6 = /* @__PURE__ */ E(C6, [["__scopeId", "data-v-7d95dbf5"]]), B = R(V6),
|
|
|
1185
1200
|
},
|
|
1186
1201
|
setup(n) {
|
|
1187
1202
|
return (e, i) => (c(), u("div", null, [
|
|
1188
|
-
n.showBg && n.fullscreen ? (c(), u("div",
|
|
1203
|
+
n.showBg && n.fullscreen ? (c(), u("div", I6, [
|
|
1189
1204
|
y(w(B), {
|
|
1190
1205
|
name: "iksvg_guanbidanchuang",
|
|
1191
1206
|
title: "关闭",
|
|
@@ -1202,7 +1217,7 @@ const V6 = /* @__PURE__ */ E(C6, [["__scopeId", "data-v-7d95dbf5"]]), B = R(V6),
|
|
|
1202
1217
|
]));
|
|
1203
1218
|
}
|
|
1204
1219
|
});
|
|
1205
|
-
const R6 = /* @__PURE__ */ E(
|
|
1220
|
+
const R6 = /* @__PURE__ */ E($6, [["__scopeId", "data-v-79f49df8"]]), D6 = { class: "base-header" }, M6 = /* @__PURE__ */ k({
|
|
1206
1221
|
__name: "IkBaseDialog",
|
|
1207
1222
|
props: /* @__PURE__ */ P({
|
|
1208
1223
|
title: { default: "" },
|
|
@@ -1234,7 +1249,7 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1234
1249
|
}
|
|
1235
1250
|
});
|
|
1236
1251
|
return (a, h) => {
|
|
1237
|
-
const g =
|
|
1252
|
+
const g = M("el-dialog");
|
|
1238
1253
|
return c(), I(g, Z({
|
|
1239
1254
|
modelValue: i.value,
|
|
1240
1255
|
"onUpdate:modelValue": h[0] || (h[0] = (t) => i.value = t)
|
|
@@ -1245,7 +1260,7 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1245
1260
|
"modal-class": "baseDialog"
|
|
1246
1261
|
}), J({
|
|
1247
1262
|
icon: S(() => [
|
|
1248
|
-
|
|
1263
|
+
R(a.$slots, "title", {}, () => [
|
|
1249
1264
|
O(
|
|
1250
1265
|
V(a.title),
|
|
1251
1266
|
1
|
|
@@ -1254,8 +1269,8 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1254
1269
|
])
|
|
1255
1270
|
]),
|
|
1256
1271
|
header: S(() => [
|
|
1257
|
-
r("div",
|
|
1258
|
-
|
|
1272
|
+
r("div", D6, [
|
|
1273
|
+
R(a.$slots, "header", {}, () => [
|
|
1259
1274
|
O(
|
|
1260
1275
|
V(a.title),
|
|
1261
1276
|
1
|
|
@@ -1272,7 +1287,7 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1272
1287
|
}, null, 8, ["name", "title"])) : x("v-if", !0)
|
|
1273
1288
|
]),
|
|
1274
1289
|
default: S(() => [
|
|
1275
|
-
|
|
1290
|
+
R(a.$slots, "default")
|
|
1276
1291
|
]),
|
|
1277
1292
|
_: 2
|
|
1278
1293
|
/* DYNAMIC */
|
|
@@ -1280,7 +1295,7 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1280
1295
|
a.$slots.footer ? {
|
|
1281
1296
|
name: "footer",
|
|
1282
1297
|
fn: S(() => [
|
|
1283
|
-
|
|
1298
|
+
R(a.$slots, "footer")
|
|
1284
1299
|
]),
|
|
1285
1300
|
key: "0"
|
|
1286
1301
|
} : void 0
|
|
@@ -1288,8 +1303,8 @@ const R6 = /* @__PURE__ */ E(I6, [["__scopeId", "data-v-79f49df8"]]), $6 = { cla
|
|
|
1288
1303
|
};
|
|
1289
1304
|
}
|
|
1290
1305
|
});
|
|
1291
|
-
const
|
|
1292
|
-
function
|
|
1306
|
+
const q6 = $(M6);
|
|
1307
|
+
function E6(n, e, i, l) {
|
|
1293
1308
|
function o(s) {
|
|
1294
1309
|
return s instanceof i ? s : new i(function(a) {
|
|
1295
1310
|
a(s);
|
|
@@ -1316,7 +1331,7 @@ function q6(n, e, i, l) {
|
|
|
1316
1331
|
t((l = l.apply(n, e || [])).next());
|
|
1317
1332
|
});
|
|
1318
1333
|
}
|
|
1319
|
-
function
|
|
1334
|
+
function H6(n, e) {
|
|
1320
1335
|
var i = { label: 0, sent: function() {
|
|
1321
1336
|
if (s[0] & 1)
|
|
1322
1337
|
throw s[1];
|
|
@@ -1381,9 +1396,9 @@ function E6(n, e) {
|
|
|
1381
1396
|
return { value: t[0] ? t[1] : void 0, done: !0 };
|
|
1382
1397
|
}
|
|
1383
1398
|
}
|
|
1384
|
-
var
|
|
1385
|
-
return
|
|
1386
|
-
return
|
|
1399
|
+
var O6 = function(n, e) {
|
|
1400
|
+
return E6(void 0, void 0, void 0, function() {
|
|
1401
|
+
return H6(this, function(i) {
|
|
1387
1402
|
return [2, new Promise(function(l, o) {
|
|
1388
1403
|
try {
|
|
1389
1404
|
if (window.DocsAPI)
|
|
@@ -1471,7 +1486,7 @@ var H6 = function(n, e) {
|
|
|
1471
1486
|
var n = this, e = this.documentServerUrl;
|
|
1472
1487
|
e.endsWith("/") || (e += "/");
|
|
1473
1488
|
var i = "".concat(e, "web-apps/apps/api/documents/api.js");
|
|
1474
|
-
|
|
1489
|
+
O6(i, "onlyoffice-api-script").then(function() {
|
|
1475
1490
|
return n.onLoad();
|
|
1476
1491
|
}).catch(function() {
|
|
1477
1492
|
n.onError(-2);
|
|
@@ -1585,13 +1600,13 @@ var H6 = function(n, e) {
|
|
|
1585
1600
|
}
|
|
1586
1601
|
}
|
|
1587
1602
|
});
|
|
1588
|
-
const
|
|
1589
|
-
function
|
|
1590
|
-
return c(), u("div", { id: n.id }, null, 8,
|
|
1603
|
+
const A6 = ["id"];
|
|
1604
|
+
function U6(n, e, i, l, o, s) {
|
|
1605
|
+
return c(), u("div", { id: n.id }, null, 8, A6);
|
|
1591
1606
|
}
|
|
1592
|
-
A.render =
|
|
1607
|
+
A.render = U6;
|
|
1593
1608
|
A.__file = "src/components/DocumentEditor.vue";
|
|
1594
|
-
const
|
|
1609
|
+
const T6 = /* @__PURE__ */ k({
|
|
1595
1610
|
__name: "IkOnlyOffice",
|
|
1596
1611
|
props: {
|
|
1597
1612
|
// 文件服务器的服务的地址
|
|
@@ -1685,22 +1700,22 @@ const U6 = /* @__PURE__ */ k({
|
|
|
1685
1700
|
));
|
|
1686
1701
|
}
|
|
1687
1702
|
});
|
|
1688
|
-
const
|
|
1703
|
+
const P6 = /* @__PURE__ */ E(T6, [["__scopeId", "data-v-ea0a8f6d"]]), L6 = $(P6), j6 = (n) => (Q("data-v-170abcfc"), n = n(), e3(), n), G6 = {
|
|
1689
1704
|
key: 0,
|
|
1690
1705
|
class: "preview-files"
|
|
1691
|
-
},
|
|
1706
|
+
}, N6 = {
|
|
1692
1707
|
class: "flex",
|
|
1693
1708
|
style: { width: "80%", "align-items": "center" }
|
|
1694
|
-
},
|
|
1709
|
+
}, W6 = ["onClick"], K6 = ["title"], X6 = { style: { color: "#b8c6d9" } }, Y6 = ["onClick"], Z6 = /* @__PURE__ */ j6(() => /* @__PURE__ */ r(
|
|
1695
1710
|
"span",
|
|
1696
1711
|
null,
|
|
1697
1712
|
"预览",
|
|
1698
1713
|
-1
|
|
1699
1714
|
/* HOISTED */
|
|
1700
|
-
)),
|
|
1715
|
+
)), J6 = {
|
|
1701
1716
|
key: 1,
|
|
1702
1717
|
class: "flex preview-img"
|
|
1703
|
-
},
|
|
1718
|
+
}, Q6 = /* @__PURE__ */ k({
|
|
1704
1719
|
__name: "IKDetailPreviewFiles",
|
|
1705
1720
|
props: {
|
|
1706
1721
|
// 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
|
|
@@ -1756,11 +1771,11 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1756
1771
|
};
|
|
1757
1772
|
return (t, d) => {
|
|
1758
1773
|
var p, m;
|
|
1759
|
-
const v =
|
|
1774
|
+
const v = M("el-image");
|
|
1760
1775
|
return c(), u("div", null, [
|
|
1761
|
-
e.fileType === "file" ? (c(), u("div",
|
|
1776
|
+
e.fileType === "file" ? (c(), u("div", G6, [
|
|
1762
1777
|
(c(!0), u(
|
|
1763
|
-
|
|
1778
|
+
D,
|
|
1764
1779
|
null,
|
|
1765
1780
|
H(i.value, (f, b) => (c(), u(
|
|
1766
1781
|
"div",
|
|
@@ -1773,7 +1788,7 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1773
1788
|
})
|
|
1774
1789
|
},
|
|
1775
1790
|
[
|
|
1776
|
-
r("div",
|
|
1791
|
+
r("div", N6, [
|
|
1777
1792
|
y(w(B), {
|
|
1778
1793
|
name: a(f),
|
|
1779
1794
|
style: _(`color:${h(f)}`),
|
|
@@ -1785,23 +1800,23 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1785
1800
|
}, [
|
|
1786
1801
|
r("p", {
|
|
1787
1802
|
title: f.name
|
|
1788
|
-
}, V(f.name), 9,
|
|
1803
|
+
}, V(f.name), 9, K6),
|
|
1789
1804
|
r(
|
|
1790
1805
|
"p",
|
|
1791
|
-
|
|
1806
|
+
X6,
|
|
1792
1807
|
V((f.size / 1024).toFixed(2)) + "KB",
|
|
1793
1808
|
1
|
|
1794
1809
|
/* TEXT */
|
|
1795
1810
|
)
|
|
1796
|
-
], 8,
|
|
1811
|
+
], 8, W6)
|
|
1797
1812
|
]),
|
|
1798
1813
|
r("div", {
|
|
1799
1814
|
class: "file-preview",
|
|
1800
1815
|
onClick: (N) => s(f)
|
|
1801
1816
|
}, [
|
|
1802
1817
|
y(w(B), { name: "iksvg_yulan" }),
|
|
1803
|
-
|
|
1804
|
-
], 8,
|
|
1818
|
+
Z6
|
|
1819
|
+
], 8, Y6)
|
|
1805
1820
|
],
|
|
1806
1821
|
4
|
|
1807
1822
|
/* STYLE */
|
|
@@ -1810,9 +1825,9 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1810
1825
|
/* KEYED_FRAGMENT */
|
|
1811
1826
|
))
|
|
1812
1827
|
])) : x("v-if", !0),
|
|
1813
|
-
e.fileType === "img" ? (c(), u("div",
|
|
1828
|
+
e.fileType === "img" ? (c(), u("div", J6, [
|
|
1814
1829
|
(c(!0), u(
|
|
1815
|
-
|
|
1830
|
+
D,
|
|
1816
1831
|
null,
|
|
1817
1832
|
H(i.value, (f, b) => (c(), u("div", {
|
|
1818
1833
|
key: b,
|
|
@@ -1841,8 +1856,8 @@ const T6 = /* @__PURE__ */ E(U6, [["__scopeId", "data-v-ea0a8f6d"]]), P6 = R(T6)
|
|
|
1841
1856
|
};
|
|
1842
1857
|
}
|
|
1843
1858
|
});
|
|
1844
|
-
const
|
|
1859
|
+
const ee = /* @__PURE__ */ E(Q6, [["__scopeId", "data-v-170abcfc"]]), oe = $(ee);
|
|
1845
1860
|
export {
|
|
1846
|
-
|
|
1847
|
-
|
|
1861
|
+
oe as IKDetailPreviewFiles,
|
|
1862
|
+
oe as default
|
|
1848
1863
|
};
|