iking-web-ui-pro 0.2.8 → 0.2.10

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.
@@ -1,6 +1,6 @@
1
- import { inject as $, computed as x, defineComponent as F, openBlock as u, createElementBlock as f, createElementVNode as c, ref as S, Fragment as O, renderList as P, normalizeClass as C, normalizeStyle as z, createVNode as k, toDisplayString as B, unref as w, withModifiers as J, renderSlot as H, createCommentVNode as V, mergeModels as K, useModel as G, reactive as Q, watch as X, nextTick as e3, resolveComponent as A, createBlock as D, withCtx as I, createTextVNode as L, h as t3, mergeProps as n3, createSlots as o3, pushScopeId as i3, popScopeId as l3 } from "vue";
1
+ import { inject as E, computed as k, defineComponent as z, openBlock as r, createElementBlock as d, createElementVNode as c, ref as S, resolveComponent as O, Fragment as M, renderList as U, normalizeStyle as x, toDisplayString as I, normalizeClass as b, createVNode as y, unref as m, withModifiers as W, renderSlot as H, createBlock as q, withCtx as B, createCommentVNode as R, mergeModels as X, useModel as Y, reactive as Q, watch as Z, nextTick as e3, createTextVNode as j, h as t3, mergeProps as n3, createSlots as o3, pushScopeId as i3, popScopeId as l3 } from "vue";
2
2
  import { paramType as s3, ikFile as a3, buildUUID as c3, ikColor as r3, ikUrl as u3 } from "iking-utils-pro";
3
- const M = (t, n) => {
3
+ const A = (t, n) => {
4
4
  if (t.install = (i) => {
5
5
  for (const e of [t, ...Object.values(n ?? {})])
6
6
  i.component(e.name, e);
@@ -8,7 +8,7 @@ const M = (t, n) => {
8
8
  for (const [i, e] of Object.entries(n))
9
9
  t[i] = e;
10
10
  return t;
11
- }, T = (t, n) => {
11
+ }, P = (t, n) => {
12
12
  const i = t.__vccOpts || t;
13
13
  for (const [e, a] of n)
14
14
  i[e] = a;
@@ -21,19 +21,19 @@ const M = (t, n) => {
21
21
  const i = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
22
22
  let a = t / Math.pow(1024, e);
23
23
  return (a % 1 === 0 ? a.toFixed(n || 0) : a.toFixed(n)) + " " + i[e];
24
- }, U = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "";
25
- const f3 = (t) => {
26
- const n = $("loadUrl"), i = x(() => t.loadUrl || (n == null ? void 0 : n.value)), e = $("uploadUrl"), a = x(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), l = $("token"), s = x(() => t.token || (l == null ? void 0 : l.value)), p = $("onlyofficeConfig"), h = x(() => t.onlyofficeConfig || (p == null ? void 0 : p.value)), o = $("userInfo"), d = x(() => t.userInfo || (o == null ? void 0 : o.value));
24
+ }, T = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "";
25
+ const v3 = (t) => {
26
+ const n = E("loadUrl"), i = k(() => t.loadUrl || (n == null ? void 0 : n.value)), e = E("uploadUrl"), a = k(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), l = E("token"), s = k(() => t.token || (l == null ? void 0 : l.value)), h = E("onlyofficeConfig"), g = k(() => t.onlyofficeConfig || (h == null ? void 0 : h.value)), o = E("userInfo"), v = k(() => t.userInfo || (o == null ? void 0 : o.value));
27
27
  return {
28
28
  cLoadUrl: i,
29
29
  cUploadUrl: a,
30
30
  cToken: s,
31
- cOnlyofficeConfig: h,
32
- cUserInfo: d
31
+ cOnlyofficeConfig: g,
32
+ cUserInfo: v
33
33
  };
34
- }, v3 = f3, Y = (t, n) => {
35
- var l, s, p, h;
36
- const i = (l = t == null ? void 0 : t.response) != null && l.data ? N((p = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : p.suffix) : ((h = t.raw) == null ? void 0 : h.type) || N(t[n.suffix]), e = i == null ? void 0 : i.toLowerCase(), a = {
34
+ }, f3 = v3, J = (t, n) => {
35
+ var l, s, h, g;
36
+ const i = (l = t == null ? void 0 : t.response) != null && l.data ? K((h = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : h.suffix) : ((g = t.raw) == null ? void 0 : g.type) || K(t[n.suffix]), e = i == null ? void 0 : i.toLowerCase(), a = {
37
37
  sheet: "excel",
38
38
  excel: "excel",
39
39
  zip: "zip",
@@ -138,7 +138,7 @@ const f3 = (t) => {
138
138
  ".vob": "video",
139
139
  ".txt": "txt",
140
140
  ".pdf": "pdf"
141
- }, N = (t) => {
141
+ }, K = (t) => {
142
142
  const n = t == null ? void 0 : t.toLocaleLowerCase(), i = n != null && n.startsWith(".") ? n : `.${n}`;
143
143
  return i && p3[i] || "unknow";
144
144
  }, h3 = (t) => {
@@ -194,12 +194,12 @@ const f3 = (t) => {
194
194
  null,
195
195
  -1
196
196
  /* HOISTED */
197
- ), x3 = [
197
+ ), k3 = [
198
198
  _3,
199
199
  m3,
200
200
  w3,
201
201
  y3
202
- ], k3 = {
202
+ ], x3 = {
203
203
  key: 1,
204
204
  t: "1686301531714",
205
205
  class: "icon",
@@ -232,7 +232,7 @@ const f3 = (t) => {
232
232
  ), b3 = [
233
233
  z3,
234
234
  F3
235
- ], S3 = {
235
+ ], C3 = {
236
236
  key: 2,
237
237
  t: "1686300141125",
238
238
  class: "icon",
@@ -242,7 +242,7 @@ const f3 = (t) => {
242
242
  "p-id": "8137",
243
243
  width: "200",
244
244
  height: "200"
245
- }, C3 = /* @__PURE__ */ c(
245
+ }, S3 = /* @__PURE__ */ c(
246
246
  "path",
247
247
  {
248
248
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",
@@ -262,8 +262,8 @@ const f3 = (t) => {
262
262
  null,
263
263
  -1
264
264
  /* HOISTED */
265
- ), I3 = [
266
- C3,
265
+ ), $3 = [
266
+ S3,
267
267
  V3
268
268
  ], B3 = {
269
269
  key: 3,
@@ -275,7 +275,7 @@ const f3 = (t) => {
275
275
  "p-id": "8292",
276
276
  width: "200",
277
277
  height: "200"
278
- }, R3 = /* @__PURE__ */ c(
278
+ }, I3 = /* @__PURE__ */ c(
279
279
  "path",
280
280
  {
281
281
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",
@@ -285,7 +285,7 @@ const f3 = (t) => {
285
285
  null,
286
286
  -1
287
287
  /* HOISTED */
288
- ), $3 = /* @__PURE__ */ c(
288
+ ), R3 = /* @__PURE__ */ c(
289
289
  "path",
290
290
  {
291
291
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -296,8 +296,8 @@ const f3 = (t) => {
296
296
  -1
297
297
  /* HOISTED */
298
298
  ), D3 = [
299
- R3,
300
- $3
299
+ I3,
300
+ R3
301
301
  ], M3 = {
302
302
  key: 4,
303
303
  t: "1686300180947",
@@ -576,7 +576,7 @@ const f3 = (t) => {
576
576
  c6,
577
577
  r6,
578
578
  u6
579
- ], f6 = {
579
+ ], v6 = {
580
580
  key: 11,
581
581
  t: "1686300037564",
582
582
  class: "icon",
@@ -586,7 +586,7 @@ const f3 = (t) => {
586
586
  "p-id": "7515",
587
587
  width: "200",
588
588
  height: "200"
589
- }, v6 = /* @__PURE__ */ c(
589
+ }, f6 = /* @__PURE__ */ c(
590
590
  "path",
591
591
  {
592
592
  d: "M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",
@@ -617,10 +617,10 @@ const f3 = (t) => {
617
617
  -1
618
618
  /* HOISTED */
619
619
  ), g6 = [
620
- v6,
620
+ f6,
621
621
  p6,
622
622
  h6
623
- ], _6 = /* @__PURE__ */ F({
623
+ ], _6 = /* @__PURE__ */ z({
624
624
  __name: "FileIcon",
625
625
  props: {
626
626
  type: {
@@ -641,10 +641,10 @@ const f3 = (t) => {
641
641
  }
642
642
  },
643
643
  setup(t) {
644
- const n = t, i = x(() => n.file ? Y(n.file, n.fields) : n.type);
645
- return (e, a) => i.value === "image" ? (u(), f("svg", g3, x3)) : i.value === "zip" ? (u(), f("svg", k3, b3)) : i.value === "ppt" ? (u(), f("svg", S3, I3)) : i.value === "word" ? (u(), f("svg", B3, D3)) : i.value === "pdf" ? (u(), f("svg", M3, H3)) : i.value === "txt" ? (u(), f("svg", O3, T3)) : i.value === "audio" ? (u(), f("svg", P3, N3)) : i.value === "video" ? (u(), f("svg", W3, X3)) : i.value === "excel" ? (u(), f("svg", Y3, e6)) : i.value === "exe" ? (u(), f("svg", t6, s6)) : i.value === "json" ? (u(), f("svg", a6, d6)) : (u(), f("svg", f6, g6));
644
+ const n = t, i = k(() => n.file ? J(n.file, n.fields) : n.type);
645
+ return (e, a) => i.value === "image" ? (r(), d("svg", g3, k3)) : i.value === "zip" ? (r(), d("svg", x3, b3)) : i.value === "ppt" ? (r(), d("svg", C3, $3)) : i.value === "word" ? (r(), d("svg", B3, D3)) : i.value === "pdf" ? (r(), d("svg", M3, H3)) : i.value === "txt" ? (r(), d("svg", O3, T3)) : i.value === "audio" ? (r(), d("svg", P3, N3)) : i.value === "video" ? (r(), d("svg", W3, X3)) : i.value === "excel" ? (r(), d("svg", Y3, e6)) : i.value === "exe" ? (r(), d("svg", t6, s6)) : i.value === "json" ? (r(), d("svg", a6, d6)) : (r(), d("svg", v6, g6));
646
646
  }
647
- }), m6 = ["onClick"], w6 = { class: "text" }, y6 = { class: "fileName" }, x6 = { class: "size" }, k6 = /* @__PURE__ */ F({
647
+ }), m6 = ["onClick"], w6 = { class: "fileName simple" }, y6 = ["onClick"], k6 = { class: "text" }, x6 = { class: "fileName" }, z6 = { class: "size" }, F6 = /* @__PURE__ */ z({
648
648
  __name: "IkPreviewFile",
649
649
  props: {
650
650
  list: {
@@ -711,128 +711,190 @@ const f3 = (t) => {
711
711
  jwtToken: {
712
712
  type: String,
713
713
  default: ""
714
+ },
715
+ // 简单模式
716
+ simple: {
717
+ type: Boolean,
718
+ default: !1
714
719
  }
715
720
  },
716
721
  setup(t) {
717
- const n = t, { cLoadUrl: i, cOnlyofficeConfig: e } = v3(n), a = x(() => ({
722
+ const n = t, { cLoadUrl: i, cOnlyofficeConfig: e } = f3(n), a = k(() => ({
718
723
  name: "name",
719
724
  url: "url",
720
725
  suffix: "suffix",
721
726
  size: "size",
722
727
  ...n.field
723
- })), l = S({}), s = S(!1), p = (r) => {
724
- var g, _;
728
+ })), l = S({}), s = S(!1), h = (u) => {
729
+ var _, w;
725
730
  l.value = {
726
- ...r,
727
- name: r.name,
728
- url: U(
731
+ ...u,
732
+ name: u.name,
733
+ url: T(
729
734
  i.value,
730
- r.url || ((_ = (g = r == null ? void 0 : r.response) == null ? void 0 : g.data) == null ? void 0 : _.id) || (r == null ? void 0 : r.id)
735
+ u.url || ((w = (_ = u == null ? void 0 : u.response) == null ? void 0 : _.data) == null ? void 0 : w.id) || (u == null ? void 0 : u.id)
731
736
  )
732
737
  }, s.value = !0;
733
- }, h = (r) => {
738
+ }, g = (u) => {
734
739
  a3.downloadFile(
735
- U(
740
+ T(
736
741
  i.value,
737
- r[a.value.url] || r.attachmentId || r.id
742
+ u[a.value.url] || u.attachmentId || u.id
738
743
  ),
739
- r[a.value.name] || r.attachmentName
744
+ u[a.value.name] || u.attachmentName
740
745
  );
741
- }, o = x(() => s3.isNumber(n.width) ? `${n.width}px` : n.width), d = x(() => n.list.map((r) => ({
742
- ...r,
743
- name: r[a.value.name] || r.attachmentName,
744
- size: r[a.value.size] || r.fileSize || r.attachmentSize,
745
- suffix: r[a.value.suffix] || r.attachmentSuffix
746
+ }, o = k(() => s3.isNumber(n.width) ? `${n.width}px` : n.width), v = k(() => n.list.map((u) => ({
747
+ ...u,
748
+ name: u[a.value.name] || u.attachmentName,
749
+ size: u[a.value.size] || u.fileSize || u.attachmentSize,
750
+ suffix: u[a.value.suffix] || u.attachmentSuffix
746
751
  })));
747
- return (r, g) => {
748
- var _, v, b;
749
- return u(), f(
750
- O,
752
+ return (u, _) => {
753
+ var f, F, D;
754
+ const w = O("tmplate");
755
+ return r(), d(
756
+ M,
751
757
  null,
752
758
  [
753
- (_ = t.list) != null && _.length ? (u(!0), f(
754
- O,
759
+ (f = t.list) != null && f.length ? (r(), d(
760
+ M,
755
761
  { key: 0 },
756
- P(d.value, (y, m) => {
757
- var q;
758
- return u(), f(
759
- "div",
760
- {
761
- class: C(["iking-privew-annex", { "is-bg": t.showBg }]),
762
- key: m,
763
- style: z({
764
- marginBottom: m == ((q = t.list) == null ? void 0 : q.length) - 1 ? "0" : "10px",
765
- width: o.value
766
- })
767
- },
768
- [
769
- c("div", {
770
- class: "file-card",
771
- onClick: (E) => p(y)
772
- }, [
773
- k(_6, {
774
- file: y,
775
- style: z({ height: `${t.iconSize}px` }),
776
- class: "ikui-w-auto",
777
- fields: a.value
778
- }, null, 8, ["file", "style", "fields"]),
779
- c("div", w6, [
780
- c(
781
- "div",
782
- y6,
783
- B(y.name),
784
- 1
785
- /* TEXT */
786
- ),
787
- c(
762
+ [
763
+ t.simple ? (r(!0), d(
764
+ M,
765
+ { key: 0 },
766
+ U(v.value, (p, V) => (r(), d("div", {
767
+ class: "iking-privew-annex simple",
768
+ onClick: ($) => h(p),
769
+ style: x({ width: o.value })
770
+ }, [
771
+ c(
772
+ "div",
773
+ w6,
774
+ I(p.name),
775
+ 1
776
+ /* TEXT */
777
+ ),
778
+ c(
779
+ "div",
780
+ {
781
+ class: b(["flex flex-center", { "hover-show": t.iconHoverShow }])
782
+ },
783
+ [
784
+ y(m(C), {
785
+ name: "iksvg_daochu",
786
+ onClick: W(($) => g(p), ["stop"]),
787
+ size: 20,
788
+ active: ""
789
+ }, null, 8, ["onClick"]),
790
+ y(m(C), {
791
+ name: "iksvg_yulan",
792
+ size: 20,
793
+ active: ""
794
+ }),
795
+ H(u.$slots, "operation", {
796
+ data: { ...p, findex: V }
797
+ })
798
+ ],
799
+ 2
800
+ /* CLASS */
801
+ )
802
+ ], 12, m6))),
803
+ 256
804
+ /* UNKEYED_FRAGMENT */
805
+ )) : (r(), q(w, { key: 1 }, {
806
+ default: B(() => [
807
+ (r(!0), d(
808
+ M,
809
+ null,
810
+ U(v.value, (p, V) => {
811
+ var $;
812
+ return r(), d(
788
813
  "div",
789
- x6,
790
- B(w(d3)(y.size)),
791
- 1
792
- /* TEXT */
793
- )
794
- ]),
795
- c(
796
- "div",
797
- {
798
- class: C(["flex flex-center", { "hover-show": t.iconHoverShow }])
799
- },
800
- [
801
- k(w(R), {
802
- name: "iksvg_daochu",
803
- onClick: J((E) => h(y), ["stop"]),
804
- bg: t.showBg,
805
- size: t.showBg ? "default" : 20
806
- }, null, 8, ["onClick", "bg", "size"]),
807
- k(w(R), {
808
- name: "iksvg_yulan",
809
- bg: t.showBg,
810
- size: t.showBg ? "default" : 20
811
- }, null, 8, ["bg", "size"]),
812
- H(r.$slots, "operation", {
813
- data: { ...y, findex: m }
814
- })
815
- ],
816
- 2
817
- /* CLASS */
818
- )
819
- ], 8, m6)
820
- ],
821
- 6
822
- /* CLASS, STYLE */
823
- );
824
- }),
825
- 128
826
- /* KEYED_FRAGMENT */
827
- )) : V("v-if", !0),
828
- k(w(b6), {
814
+ {
815
+ class: b(["iking-privew-annex", { "is-bg": t.showBg }]),
816
+ key: V,
817
+ style: x({
818
+ marginBottom: V == (($ = t.list) == null ? void 0 : $.length) - 1 ? "0" : "10px",
819
+ width: o.value
820
+ })
821
+ },
822
+ [
823
+ c("div", {
824
+ class: "file-card",
825
+ onClick: (L) => h(p)
826
+ }, [
827
+ y(_6, {
828
+ file: p,
829
+ style: x({ height: `${t.iconSize}px` }),
830
+ class: "ikui-w-auto",
831
+ fields: a.value
832
+ }, null, 8, ["file", "style", "fields"]),
833
+ c("div", k6, [
834
+ c(
835
+ "div",
836
+ x6,
837
+ I(p.name),
838
+ 1
839
+ /* TEXT */
840
+ ),
841
+ c(
842
+ "div",
843
+ z6,
844
+ I(m(d3)(p.size)),
845
+ 1
846
+ /* TEXT */
847
+ )
848
+ ]),
849
+ c(
850
+ "div",
851
+ {
852
+ class: b(["flex flex-center", { "hover-show": t.iconHoverShow }])
853
+ },
854
+ [
855
+ y(m(C), {
856
+ name: "iksvg_daochu",
857
+ onClick: W((L) => g(p), ["stop"]),
858
+ bg: t.showBg,
859
+ size: t.showBg ? "default" : 20
860
+ }, null, 8, ["onClick", "bg", "size"]),
861
+ y(m(C), {
862
+ name: "iksvg_yulan",
863
+ bg: t.showBg,
864
+ size: t.showBg ? "default" : 20
865
+ }, null, 8, ["bg", "size"]),
866
+ H(u.$slots, "operation", {
867
+ data: { ...p, findex: V }
868
+ })
869
+ ],
870
+ 2
871
+ /* CLASS */
872
+ )
873
+ ], 8, y6)
874
+ ],
875
+ 6
876
+ /* CLASS, STYLE */
877
+ );
878
+ }),
879
+ 128
880
+ /* KEYED_FRAGMENT */
881
+ ))
882
+ ]),
883
+ _: 3
884
+ /* FORWARDED */
885
+ }))
886
+ ],
887
+ 64
888
+ /* STABLE_FRAGMENT */
889
+ )) : R("v-if", !0),
890
+ y(m(S6), {
829
891
  show: s.value,
830
- "onUpdate:show": g[0] || (g[0] = (y) => s.value = y),
831
- loadUrl: w(i),
892
+ "onUpdate:show": _[0] || (_[0] = (p) => s.value = p),
893
+ loadUrl: m(i),
832
894
  file: l.value,
833
- onlyofficeServer: ((v = w(e)) == null ? void 0 : v.serverUrl) || t.onlyofficeServer,
834
- onlyOfficeConfig: w(e),
835
- onlyOfficeAccept: ((b = w(e)) == null ? void 0 : b.accept) || t.onlyOfficeAccept
895
+ onlyofficeServer: ((F = m(e)) == null ? void 0 : F.serverUrl) || t.onlyofficeServer,
896
+ onlyOfficeConfig: m(e),
897
+ onlyOfficeAccept: ((D = m(e)) == null ? void 0 : D.accept) || t.onlyOfficeAccept
836
898
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
837
899
  ],
838
900
  64
@@ -841,9 +903,9 @@ const f3 = (t) => {
841
903
  };
842
904
  }
843
905
  });
844
- const z6 = M(k6), F6 = /* @__PURE__ */ F({
906
+ const b6 = A(F6), C6 = /* @__PURE__ */ z({
845
907
  __name: "IkPreviewFileDialog",
846
- props: /* @__PURE__ */ K({
908
+ props: /* @__PURE__ */ X({
847
909
  file: {
848
910
  type: Object,
849
911
  default: () => []
@@ -878,7 +940,7 @@ const z6 = M(k6), F6 = /* @__PURE__ */ F({
878
940
  }),
879
941
  emits: ["update:show"],
880
942
  setup(t) {
881
- const n = t, i = G(t, "show"), e = x(() => ({
943
+ const n = t, i = Y(t, "show"), e = k(() => ({
882
944
  name: "name",
883
945
  url: "url",
884
946
  suffix: "suffix",
@@ -888,24 +950,24 @@ const z6 = M(k6), F6 = /* @__PURE__ */ F({
888
950
  image: !1,
889
951
  office: !1,
890
952
  video: !1
891
- }), p = (o) => {
892
- var d, r, g, _, v, b, y;
953
+ }), h = (o) => {
954
+ var v, u, _, w, f, F, D;
893
955
  try {
894
- const m = ((d = o == null ? void 0 : o.response) == null ? void 0 : d.data) || o, q = m[e.value.url] || (m == null ? void 0 : m.id) || m.attachmentId, E = (r = m[e.value.suffix] || m.attachmentSuffix) == null ? void 0 : r.toLowerCase(), Z = m[e.value.name] || (m == null ? void 0 : m.attachmentName) || (m == null ? void 0 : m.originName);
956
+ const p = ((v = o == null ? void 0 : o.response) == null ? void 0 : v.data) || o, V = p[e.value.url] || (p == null ? void 0 : p.id) || p.attachmentId, $ = (u = p[e.value.suffix] || p.attachmentSuffix) == null ? void 0 : u.toLowerCase(), L = p[e.value.name] || (p == null ? void 0 : p.attachmentName) || (p == null ? void 0 : p.originName);
895
957
  if (l.value = {
896
958
  ...o,
897
959
  name: o[e.value.name],
898
- url: U(n.loadUrl, q)
899
- }, o && Y(o, e.value) === "image") {
960
+ url: T(n.loadUrl, V)
961
+ }, o && J(o, e.value) === "image") {
900
962
  s.image = !0;
901
963
  return;
902
- } else if ((((g = n.onlyOfficeConfig) == null ? void 0 : g.accept) || n.onlyOfficeAccept).includes(E)) {
964
+ } else if ((((_ = n.onlyOfficeConfig) == null ? void 0 : _.accept) || n.onlyOfficeAccept).includes($)) {
903
965
  s.office = !0, a.value = {
904
966
  ...n.onlyOfficeConfig,
905
967
  editorConfig: {
906
- ...((_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) || {},
968
+ ...((w = n.onlyOfficeConfig) == null ? void 0 : w.editorConfig) || {},
907
969
  customization: {
908
- ...((b = (v = n.onlyOfficeConfig) == null ? void 0 : v.editorConfig) == null ? void 0 : b.customization) || {},
970
+ ...((F = (f = n.onlyOfficeConfig) == null ? void 0 : f.editorConfig) == null ? void 0 : F.customization) || {},
909
971
  review: {
910
972
  reviewDisplay: "final"
911
973
  }
@@ -913,46 +975,46 @@ const z6 = M(k6), F6 = /* @__PURE__ */ F({
913
975
  },
914
976
  document: {
915
977
  key: c3(),
916
- title: Z,
917
- url: U(n.loadUrl, q),
918
- fileType: E,
919
- ...((y = n.onlyOfficeConfig) == null ? void 0 : y.document) || {}
978
+ title: L,
979
+ url: T(n.loadUrl, V),
980
+ fileType: $,
981
+ ...((D = n.onlyOfficeConfig) == null ? void 0 : D.document) || {}
920
982
  },
921
- documentType: h3(E)
983
+ documentType: h3($)
922
984
  };
923
985
  return;
924
986
  }
925
- } catch (m) {
926
- console.info("预览错误: ", m);
987
+ } catch (p) {
988
+ console.info("预览错误: ", p);
927
989
  }
928
990
  };
929
- X([i, n.file], ([o, d]) => {
991
+ Z([i, n.file], ([o, v]) => {
930
992
  o && e3(() => {
931
- p(n.file);
993
+ h(n.file);
932
994
  });
933
995
  });
934
- const h = () => {
996
+ const g = () => {
935
997
  i.value = !1, s.office = !1, s.image = !1, s.video = !1;
936
998
  };
937
- return (o, d) => {
938
- var g, _;
939
- const r = A("el-image-viewer");
940
- return i.value ? (u(), f(
941
- O,
999
+ return (o, v) => {
1000
+ var _, w;
1001
+ const u = O("el-image-viewer");
1002
+ return i.value ? (r(), d(
1003
+ M,
942
1004
  { key: 0 },
943
1005
  [
944
- (g = l.value) != null && g.url && s.image ? (u(), D(r, {
1006
+ (_ = l.value) != null && _.url && s.image ? (r(), q(u, {
945
1007
  key: 0,
946
- onClose: d[0] || (d[0] = (v) => {
1008
+ onClose: v[0] || (v[0] = (f) => {
947
1009
  l.value = null, s.image = !1;
948
1010
  }),
949
1011
  ref: "previewImgRef",
950
- "url-list": [(_ = l.value) == null ? void 0 : _.url]
951
- }, null, 8, ["url-list"])) : V("v-if", !0),
952
- V(" 文档类 "),
953
- k(w(U6), {
1012
+ "url-list": [(w = l.value) == null ? void 0 : w.url]
1013
+ }, null, 8, ["url-list"])) : R("v-if", !0),
1014
+ R(" 文档类 "),
1015
+ y(m(P6), {
954
1016
  modelValue: s.office,
955
- "onUpdate:modelValue": d[1] || (d[1] = (v) => s.office = v),
1017
+ "onUpdate:modelValue": v[1] || (v[1] = (f) => s.office = f),
956
1018
  draggable: "",
957
1019
  "no-footer": "",
958
1020
  "no-header": "",
@@ -962,15 +1024,15 @@ const z6 = M(k6), F6 = /* @__PURE__ */ F({
962
1024
  "close-on-click-modal": "",
963
1025
  "close-on-press-escape": !1,
964
1026
  "append-to-body": "",
965
- onClose: h,
1027
+ onClose: g,
966
1028
  "modal-class": "ik-only-preview-dialog"
967
1029
  }, {
968
- default: I(() => {
969
- var v;
1030
+ default: B(() => {
1031
+ var f;
970
1032
  return [
971
- k(w(G6), {
1033
+ y(m(Y6), {
972
1034
  "config-options": a.value,
973
- "document-server-url": ((v = t.onlyOfficeConfig) == null ? void 0 : v.serverUrl) || t.onlyofficeServer
1035
+ "document-server-url": ((f = t.onlyOfficeConfig) == null ? void 0 : f.serverUrl) || t.onlyofficeServer
974
1036
  }, null, 8, ["config-options", "document-server-url"])
975
1037
  ];
976
1038
  }),
@@ -980,22 +1042,22 @@ const z6 = M(k6), F6 = /* @__PURE__ */ F({
980
1042
  ],
981
1043
  64
982
1044
  /* STABLE_FRAGMENT */
983
- )) : V("v-if", !0);
1045
+ )) : R("v-if", !0);
984
1046
  };
985
1047
  }
986
1048
  });
987
- const b6 = M(F6), S6 = {
1049
+ const S6 = A(C6), V6 = {
988
1050
  key: 0,
989
1051
  class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
990
- }, C6 = {
1052
+ }, $6 = {
991
1053
  key: 1,
992
1054
  class: "h-[1em] w-[1em]",
993
1055
  "aria-hidden": "true"
994
- }, V6 = ["xlink:href"], I6 = ["src"], B6 = {
1056
+ }, B6 = ["xlink:href"], I6 = ["src"], R6 = {
995
1057
  key: 1,
996
1058
  class: "h-[1em] w-[1em]",
997
1059
  "aria-hidden": "true"
998
- }, R6 = ["xlink:href"], $6 = ["src"], D6 = /* @__PURE__ */ F({
1060
+ }, D6 = ["xlink:href"], M6 = ["src"], q6 = /* @__PURE__ */ z({
999
1061
  name: "IkSvgIcon",
1000
1062
  __name: "index",
1001
1063
  props: {
@@ -1022,13 +1084,13 @@ const b6 = M(F6), S6 = {
1022
1084
  tableIconType: {}
1023
1085
  },
1024
1086
  setup(t) {
1025
- const n = t, i = $("iconConfig"), e = x(() => ({
1087
+ const n = t, i = E("iconConfig"), e = k(() => ({
1026
1088
  ...(i == null ? void 0 : i.value) || {},
1027
1089
  ...n
1028
- })), a = x(() => {
1090
+ })), a = k(() => {
1029
1091
  const { name: s } = e.value;
1030
1092
  return /^http?:\/\//.test(s) ? "img" : /i-[^:]+:[^:]+/.test(s) ? "unocss" : s != null && s.startsWith("iksig") ? "iksig" : s != null && s.includes(":") ? "iconify" : s != null && s.startsWith("iksvg") ? "svg" : "i";
1031
- }), l = x(() => {
1093
+ }), l = k(() => {
1032
1094
  const s = [];
1033
1095
  if (e.value.flip)
1034
1096
  switch (e.value.flip) {
@@ -1043,7 +1105,7 @@ const b6 = M(F6), S6 = {
1043
1105
  break;
1044
1106
  }
1045
1107
  e.value.rotate && s.push(`rotate(${e.value.rotate % 360}deg)`);
1046
- const p = {
1108
+ const h = {
1047
1109
  ...e.value.color && { color: e.value.color },
1048
1110
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
1049
1111
  ...s.length && { transform: s.join(" ") },
@@ -1053,16 +1115,16 @@ const b6 = M(F6), S6 = {
1053
1115
  "--ik-color-icon-light": e.value.colorLight || r3.setOpacity(e.value.color, e.value.opacity)
1054
1116
  } : {}
1055
1117
  };
1056
- return e.value.width && (p.width = p.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), p;
1118
+ return e.value.width && (h.width = h.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), h;
1057
1119
  });
1058
- return (s, p) => {
1059
- const h = A("el-tooltip"), o = A("el-button");
1060
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (u(), f("span", S6, [
1061
- e.value.notip || !e.value.title ? (u(), f(
1120
+ return (s, h) => {
1121
+ const g = O("el-tooltip"), o = O("el-button");
1122
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (r(), d("span", V6, [
1123
+ e.value.notip || !e.value.title ? (r(), d(
1062
1124
  "i",
1063
1125
  {
1064
1126
  key: 0,
1065
- class: C(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1127
+ class: b(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1066
1128
  [s.name]: a.value === "unocss",
1067
1129
  "show-bg": e.value.showBg || e.value.bg,
1068
1130
  default: e.value.size === "default",
@@ -1075,34 +1137,34 @@ const b6 = M(F6), S6 = {
1075
1137
  active: e.value.active,
1076
1138
  disabled: e.value.disabled
1077
1139
  }]),
1078
- style: z(l.value)
1140
+ style: x(l.value)
1079
1141
  },
1080
1142
  [
1081
- V(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1082
- a.value === "iksig" ? (u(), f(
1143
+ R(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1144
+ a.value === "iksig" ? (r(), d(
1083
1145
  "i",
1084
1146
  {
1085
1147
  key: 0,
1086
- class: C(`iksig ${e.value.name}`),
1087
- style: z(l.value)
1148
+ class: b(`iksig ${e.value.name}`),
1149
+ style: x(l.value)
1088
1150
  },
1089
1151
  null,
1090
1152
  6
1091
1153
  /* CLASS, STYLE */
1092
- )) : a.value === "svg" ? (u(), f("svg", C6, [
1154
+ )) : a.value === "svg" ? (r(), d("svg", $6, [
1093
1155
  c("use", {
1094
1156
  "xlink:href": `#${e.value.name}`
1095
- }, null, 8, V6)
1096
- ])) : a.value === "img" ? (u(), f("img", {
1157
+ }, null, 8, B6)
1158
+ ])) : a.value === "img" ? (r(), d("img", {
1097
1159
  key: 2,
1098
1160
  src: e.value.name,
1099
1161
  class: "h-[1em] w-[1em]"
1100
- }, null, 8, I6)) : (u(), f(
1162
+ }, null, 8, I6)) : (r(), d(
1101
1163
  "i",
1102
1164
  {
1103
1165
  key: 3,
1104
- class: C(e.value.name),
1105
- style: z(l.value)
1166
+ class: b(e.value.name),
1167
+ style: x(l.value)
1106
1168
  },
1107
1169
  null,
1108
1170
  6
@@ -1111,16 +1173,16 @@ const b6 = M(F6), S6 = {
1111
1173
  ],
1112
1174
  6
1113
1175
  /* CLASS, STYLE */
1114
- )) : (u(), D(h, {
1176
+ )) : (r(), q(g, {
1115
1177
  key: 1,
1116
1178
  content: e.value.title,
1117
1179
  placement: "top"
1118
1180
  }, {
1119
- default: I(() => [
1181
+ default: B(() => [
1120
1182
  c(
1121
1183
  "i",
1122
1184
  {
1123
- class: C(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1185
+ class: b(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1124
1186
  [s.name]: a.value === "unocss",
1125
1187
  "show-bg": e.value.showBg || e.value.bg,
1126
1188
  default: e.value.size === "default",
@@ -1132,33 +1194,33 @@ const b6 = M(F6), S6 = {
1132
1194
  error: e.value.error || e.value.type === "error",
1133
1195
  active: e.value.active
1134
1196
  }]),
1135
- style: z(l.value)
1197
+ style: x(l.value)
1136
1198
  },
1137
1199
  [
1138
- a.value === "iksig" ? (u(), f(
1200
+ a.value === "iksig" ? (r(), d(
1139
1201
  "i",
1140
1202
  {
1141
1203
  key: 0,
1142
- class: C(`iksig ${e.value.name}`),
1143
- style: z(l.value)
1204
+ class: b(`iksig ${e.value.name}`),
1205
+ style: x(l.value)
1144
1206
  },
1145
1207
  null,
1146
1208
  6
1147
1209
  /* CLASS, STYLE */
1148
- )) : a.value === "svg" ? (u(), f("svg", B6, [
1210
+ )) : a.value === "svg" ? (r(), d("svg", R6, [
1149
1211
  c("use", {
1150
1212
  "xlink:href": `#${e.value.name}`
1151
- }, null, 8, R6)
1152
- ])) : a.value === "img" ? (u(), f("img", {
1213
+ }, null, 8, D6)
1214
+ ])) : a.value === "img" ? (r(), d("img", {
1153
1215
  key: 2,
1154
1216
  src: e.value.name,
1155
1217
  class: "h-[1em] w-[1em]"
1156
- }, null, 8, $6)) : (u(), f(
1218
+ }, null, 8, M6)) : (r(), d(
1157
1219
  "i",
1158
1220
  {
1159
1221
  key: 3,
1160
- class: C(e.value.name),
1161
- style: z(l.value)
1222
+ class: b(e.value.name),
1223
+ style: x(l.value)
1162
1224
  },
1163
1225
  null,
1164
1226
  6
@@ -1172,13 +1234,13 @@ const b6 = M(F6), S6 = {
1172
1234
  _: 1
1173
1235
  /* STABLE */
1174
1236
  }, 8, ["content"]))
1175
- ])) : (u(), D(o, {
1237
+ ])) : (r(), q(o, {
1176
1238
  key: 1,
1177
1239
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
1178
1240
  }, {
1179
- default: I(() => [
1180
- L(
1181
- B(e.value.title),
1241
+ default: B(() => [
1242
+ j(
1243
+ I(e.value.title),
1182
1244
  1
1183
1245
  /* TEXT */
1184
1246
  )
@@ -1189,10 +1251,10 @@ const b6 = M(F6), S6 = {
1189
1251
  };
1190
1252
  }
1191
1253
  });
1192
- const M6 = /* @__PURE__ */ T(D6, [["__scopeId", "data-v-7729b79a"]]), R = M(M6), q6 = {
1254
+ const E6 = /* @__PURE__ */ P(q6, [["__scopeId", "data-v-7729b79a"]]), C = A(E6), H6 = {
1193
1255
  key: 0,
1194
1256
  class: "exit-main-page-maximize"
1195
- }, E6 = /* @__PURE__ */ F({
1257
+ }, O6 = /* @__PURE__ */ z({
1196
1258
  __name: "CloseIcon",
1197
1259
  props: {
1198
1260
  showBg: {
@@ -1205,15 +1267,15 @@ const M6 = /* @__PURE__ */ T(D6, [["__scopeId", "data-v-7729b79a"]]), R = M(M6),
1205
1267
  }
1206
1268
  },
1207
1269
  setup(t) {
1208
- return (n, i) => (u(), f("div", null, [
1209
- t.showBg && t.fullscreen ? (u(), f("div", q6, [
1210
- k(w(R), {
1270
+ return (n, i) => (r(), d("div", null, [
1271
+ t.showBg && t.fullscreen ? (r(), d("div", H6, [
1272
+ y(m(C), {
1211
1273
  name: "iksvg_guanbidanchuang",
1212
1274
  title: "关闭",
1213
1275
  size: 20,
1214
1276
  error: ""
1215
1277
  })
1216
- ])) : (u(), D(w(R), {
1278
+ ])) : (r(), q(m(C), {
1217
1279
  key: 1,
1218
1280
  error: "",
1219
1281
  name: "iksvg_guanbidanchuang",
@@ -1223,9 +1285,9 @@ const M6 = /* @__PURE__ */ T(D6, [["__scopeId", "data-v-7729b79a"]]), R = M(M6),
1223
1285
  ]));
1224
1286
  }
1225
1287
  });
1226
- const H6 = /* @__PURE__ */ T(E6, [["__scopeId", "data-v-79f49df8"]]), O6 = { class: "base-header" }, A6 = /* @__PURE__ */ F({
1288
+ const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { class: "base-header" }, T6 = /* @__PURE__ */ z({
1227
1289
  __name: "IkBaseDialog",
1228
- props: /* @__PURE__ */ K({
1290
+ props: /* @__PURE__ */ X({
1229
1291
  title: { default: "" },
1230
1292
  cancelText: { default: "取消" },
1231
1293
  confirmText: { default: "确认" },
@@ -1244,55 +1306,55 @@ const H6 = /* @__PURE__ */ T(E6, [["__scopeId", "data-v-79f49df8"]]), O6 = { cla
1244
1306
  }),
1245
1307
  emits: ["update:modelValue"],
1246
1308
  setup(t) {
1247
- const n = t, i = G(t, "modelValue"), e = S(n.fullscreen), a = () => {
1309
+ const n = t, i = Y(t, "modelValue"), e = S(n.fullscreen), a = () => {
1248
1310
  e.value = !e.value;
1249
- }, l = F({
1311
+ }, l = z({
1250
1312
  setup() {
1251
- return () => t3(H6, {
1313
+ return () => t3(A6, {
1252
1314
  showBg: n.showCloseBg,
1253
1315
  fullscreen: n.fullscreen
1254
1316
  });
1255
1317
  }
1256
1318
  });
1257
- return (s, p) => {
1258
- const h = A("el-dialog");
1259
- return u(), D(h, n3({
1319
+ return (s, h) => {
1320
+ const g = O("el-dialog");
1321
+ return r(), q(g, n3({
1260
1322
  modelValue: i.value,
1261
- "onUpdate:modelValue": p[0] || (p[0] = (o) => i.value = o)
1323
+ "onUpdate:modelValue": h[0] || (h[0] = (o) => i.value = o)
1262
1324
  }, s.$attrs, {
1263
- "close-icon": w(l),
1325
+ "close-icon": m(l),
1264
1326
  class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
1265
1327
  fullscreen: e.value,
1266
1328
  "modal-class": "baseDialog"
1267
1329
  }), o3({
1268
- icon: I(() => [
1330
+ icon: B(() => [
1269
1331
  H(s.$slots, "title", {}, () => [
1270
- L(
1271
- B(s.title),
1332
+ j(
1333
+ I(s.title),
1272
1334
  1
1273
1335
  /* TEXT */
1274
1336
  )
1275
1337
  ])
1276
1338
  ]),
1277
- header: I(() => [
1278
- c("div", O6, [
1339
+ header: B(() => [
1340
+ c("div", U6, [
1279
1341
  H(s.$slots, "header", {}, () => [
1280
- L(
1281
- B(s.title),
1342
+ j(
1343
+ I(s.title),
1282
1344
  1
1283
1345
  /* TEXT */
1284
1346
  )
1285
1347
  ])
1286
1348
  ]),
1287
- s.$attrs.showClose ? (u(), D(w(R), {
1349
+ s.$attrs.showClose ? (r(), q(m(C), {
1288
1350
  key: 0,
1289
1351
  onClick: a,
1290
1352
  name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1291
1353
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1292
1354
  title: e.value ? "退出全屏" : "全屏"
1293
- }, null, 8, ["name", "title"])) : V("v-if", !0)
1355
+ }, null, 8, ["name", "title"])) : R("v-if", !0)
1294
1356
  ]),
1295
- default: I(() => [
1357
+ default: B(() => [
1296
1358
  H(s.$slots, "default")
1297
1359
  ]),
1298
1360
  _: 2
@@ -1300,7 +1362,7 @@ const H6 = /* @__PURE__ */ T(E6, [["__scopeId", "data-v-79f49df8"]]), O6 = { cla
1300
1362
  }, [
1301
1363
  s.$slots.footer ? {
1302
1364
  name: "footer",
1303
- fn: I(() => [
1365
+ fn: B(() => [
1304
1366
  H(s.$slots, "footer")
1305
1367
  ]),
1306
1368
  key: "0"
@@ -1309,49 +1371,49 @@ const H6 = /* @__PURE__ */ T(E6, [["__scopeId", "data-v-79f49df8"]]), O6 = { cla
1309
1371
  };
1310
1372
  }
1311
1373
  });
1312
- const U6 = M(A6);
1313
- function T6(t, n, i, e) {
1374
+ const P6 = A(T6);
1375
+ function L6(t, n, i, e) {
1314
1376
  function a(l) {
1315
1377
  return l instanceof i ? l : new i(function(s) {
1316
1378
  s(l);
1317
1379
  });
1318
1380
  }
1319
1381
  return new (i || (i = Promise))(function(l, s) {
1320
- function p(d) {
1382
+ function h(v) {
1321
1383
  try {
1322
- o(e.next(d));
1323
- } catch (r) {
1324
- s(r);
1384
+ o(e.next(v));
1385
+ } catch (u) {
1386
+ s(u);
1325
1387
  }
1326
1388
  }
1327
- function h(d) {
1389
+ function g(v) {
1328
1390
  try {
1329
- o(e.throw(d));
1330
- } catch (r) {
1331
- s(r);
1391
+ o(e.throw(v));
1392
+ } catch (u) {
1393
+ s(u);
1332
1394
  }
1333
1395
  }
1334
- function o(d) {
1335
- d.done ? l(d.value) : a(d.value).then(p, h);
1396
+ function o(v) {
1397
+ v.done ? l(v.value) : a(v.value).then(h, g);
1336
1398
  }
1337
1399
  o((e = e.apply(t, n || [])).next());
1338
1400
  });
1339
1401
  }
1340
- function P6(t, n) {
1402
+ function j6(t, n) {
1341
1403
  var i = { label: 0, sent: function() {
1342
1404
  if (l[0] & 1)
1343
1405
  throw l[1];
1344
1406
  return l[1];
1345
1407
  }, trys: [], ops: [] }, e, a, l, s;
1346
- return s = { next: p(0), throw: p(1), return: p(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
1408
+ return s = { next: h(0), throw: h(1), return: h(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
1347
1409
  return this;
1348
1410
  }), s;
1349
- function p(o) {
1350
- return function(d) {
1351
- return h([o, d]);
1411
+ function h(o) {
1412
+ return function(v) {
1413
+ return g([o, v]);
1352
1414
  };
1353
1415
  }
1354
- function h(o) {
1416
+ function g(o) {
1355
1417
  if (e)
1356
1418
  throw new TypeError("Generator is already executing.");
1357
1419
  for (; s && (s = 0, o[0] && (i = 0)), i; )
@@ -1392,8 +1454,8 @@ function P6(t, n) {
1392
1454
  continue;
1393
1455
  }
1394
1456
  o = n.call(t, i);
1395
- } catch (d) {
1396
- o = [6, d], a = 0;
1457
+ } catch (v) {
1458
+ o = [6, v], a = 0;
1397
1459
  } finally {
1398
1460
  e = l = 0;
1399
1461
  }
@@ -1402,9 +1464,9 @@ function P6(t, n) {
1402
1464
  return { value: o[0] ? o[1] : void 0, done: !0 };
1403
1465
  }
1404
1466
  }
1405
- var L6 = function(t, n) {
1406
- return T6(void 0, void 0, void 0, function() {
1407
- return P6(this, function(i) {
1467
+ var N6 = function(t, n) {
1468
+ return L6(void 0, void 0, void 0, function() {
1469
+ return j6(this, function(i) {
1408
1470
  return [2, new Promise(function(e, a) {
1409
1471
  try {
1410
1472
  if (window.DocsAPI)
@@ -1412,32 +1474,32 @@ var L6 = function(t, n) {
1412
1474
  var l = document.getElementById(n);
1413
1475
  if (l)
1414
1476
  var s = setInterval(function() {
1415
- var h = l.getAttribute("loading");
1416
- if (!h) {
1477
+ var g = l.getAttribute("loading");
1478
+ if (!g) {
1417
1479
  if (clearInterval(s), window.DocsAPI)
1418
1480
  return e(null);
1419
- var o = W(n, t, e, a);
1481
+ var o = G(n, t, e, a);
1420
1482
  l.remove(), document.body.appendChild(o);
1421
1483
  }
1422
1484
  }, 500);
1423
1485
  else {
1424
- var p = W(n, t, e, a);
1425
- document.body.appendChild(p);
1486
+ var h = G(n, t, e, a);
1487
+ document.body.appendChild(h);
1426
1488
  }
1427
- } catch (h) {
1428
- console.error(h);
1489
+ } catch (g) {
1490
+ console.error(g);
1429
1491
  }
1430
1492
  })];
1431
1493
  });
1432
1494
  });
1433
- }, W = function(t, n, i, e) {
1495
+ }, G = function(t, n, i, e) {
1434
1496
  var a = document.createElement("script");
1435
1497
  return a.id = t, a.type = "text/javascript", a.src = n, a.async = !0, a.onload = function() {
1436
1498
  a.removeAttribute("loading"), i(null);
1437
1499
  }, a.onerror = function(l) {
1438
1500
  a.removeAttribute("loading"), e(l);
1439
1501
  }, a.setAttribute("loading", ""), a;
1440
- }, j = F({
1502
+ }, N = z({
1441
1503
  name: "DocumentEditor",
1442
1504
  props: {
1443
1505
  id: {
@@ -1492,7 +1554,7 @@ var L6 = function(t, n) {
1492
1554
  var t = this, n = this.documentServerUrl;
1493
1555
  n.endsWith("/") || (n += "/");
1494
1556
  var i = "".concat(n, "web-apps/apps/api/documents/api.js");
1495
- L6(i, "onlyoffice-api-script").then(function() {
1557
+ N6(i, "onlyoffice-api-script").then(function() {
1496
1558
  return t.onLoad();
1497
1559
  }).catch(function() {
1498
1560
  t.onError(-2);
@@ -1606,13 +1668,13 @@ var L6 = function(t, n) {
1606
1668
  }
1607
1669
  }
1608
1670
  });
1609
- const j6 = ["id"];
1610
- function N6(t, n, i, e, a, l) {
1611
- return u(), f("div", { id: t.id }, null, 8, j6);
1671
+ const W6 = ["id"];
1672
+ function K6(t, n, i, e, a, l) {
1673
+ return r(), d("div", { id: t.id }, null, 8, W6);
1612
1674
  }
1613
- j.render = N6;
1614
- j.__file = "src/components/DocumentEditor.vue";
1615
- const W6 = /* @__PURE__ */ F({
1675
+ N.render = K6;
1676
+ N.__file = "src/components/DocumentEditor.vue";
1677
+ const G6 = /* @__PURE__ */ z({
1616
1678
  __name: "IkOnlyOffice",
1617
1679
  props: {
1618
1680
  // 文件服务器的服务的地址
@@ -1641,13 +1703,13 @@ const W6 = /* @__PURE__ */ F({
1641
1703
  }), e = () => {
1642
1704
  console.info("文档加载完成", n.configOptions);
1643
1705
  };
1644
- return (a, l) => (u(), f(
1706
+ return (a, l) => (r(), d(
1645
1707
  "div",
1646
1708
  {
1647
- style: z({ height: n.officeHeight })
1709
+ style: x({ height: n.officeHeight })
1648
1710
  },
1649
1711
  [
1650
- k(w(j), {
1712
+ y(m(N), {
1651
1713
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1652
1714
  ref: "editorRef",
1653
1715
  "document-server-url": t.documentServerUrl,
@@ -1660,22 +1722,22 @@ const W6 = /* @__PURE__ */ F({
1660
1722
  ));
1661
1723
  }
1662
1724
  });
1663
- const K6 = /* @__PURE__ */ T(W6, [["__scopeId", "data-v-98d51ef9"]]), G6 = M(K6), X6 = (t) => (i3("data-v-170abcfc"), t = t(), l3(), t), Y6 = {
1725
+ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6), Z6 = (t) => (i3("data-v-170abcfc"), t = t(), l3(), t), J6 = {
1664
1726
  key: 0,
1665
1727
  class: "preview-files"
1666
- }, Z6 = {
1728
+ }, Q6 = {
1667
1729
  class: "flex",
1668
1730
  style: { width: "80%", "align-items": "center" }
1669
- }, J6 = ["onClick"], Q6 = ["title"], ee = { style: { color: "#b8c6d9" } }, te = ["onClick"], ne = /* @__PURE__ */ X6(() => /* @__PURE__ */ c(
1731
+ }, ee = ["onClick"], te = ["title"], ne = { style: { color: "#b8c6d9" } }, oe = ["onClick"], ie = /* @__PURE__ */ Z6(() => /* @__PURE__ */ c(
1670
1732
  "span",
1671
1733
  null,
1672
1734
  "预览",
1673
1735
  -1
1674
1736
  /* HOISTED */
1675
- )), oe = {
1737
+ )), le = {
1676
1738
  key: 1,
1677
1739
  class: "flex preview-img"
1678
- }, ie = /* @__PURE__ */ F({
1740
+ }, se = /* @__PURE__ */ z({
1679
1741
  __name: "IKDetailPreviewFiles",
1680
1742
  props: {
1681
1743
  // 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
@@ -1706,7 +1768,7 @@ const K6 = /* @__PURE__ */ T(W6, [["__scopeId", "data-v-98d51ef9"]]), G6 = M(K6)
1706
1768
  },
1707
1769
  setup(t) {
1708
1770
  const n = t, i = S(n.fileList);
1709
- X(
1771
+ Z(
1710
1772
  () => n.fileList,
1711
1773
  (o) => {
1712
1774
  o && (i.value = o);
@@ -1720,63 +1782,63 @@ const K6 = /* @__PURE__ */ T(W6, [["__scopeId", "data-v-98d51ef9"]]), G6 = M(K6)
1720
1782
  // row.originName
1721
1783
  }, e.value = !0;
1722
1784
  }, s = (o) => {
1723
- var d, r, g, _, v;
1724
- return (d = o == null ? void 0 : o.suffix) != null && d.includes("pdf") ? "iksvg_pdf" : (r = o == null ? void 0 : o.suffix) != null && r.includes("doc") ? "iksvg_word" : (g = o == null ? void 0 : o.suffix) != null && g.includes("xls") ? "iksvg_excel" : (_ = o == null ? void 0 : o.suffix) != null && _.includes("mov") ? "iksvg_mov" : (v = o == null ? void 0 : o.suffix) != null && v.includes("zip") ? "iksvg_zip" : "icon-jpg";
1725
- }, p = (o) => {
1726
- var d, r, g, _, v;
1727
- return (d = o == null ? void 0 : o.suffix) != null && d.includes("pdf") ? "#FA4E4E" : (r = o == null ? void 0 : o.suffix) != null && r.includes("doc") ? "#2c69e0" : (g = o.suffix) != null && g.includes("xls") ? "#39BFBF" : (_ = o.suffix) != null && _.includes("txt") ? "#2c69e0" : (v = o.suffix) != null && v.includes("zip") ? "#FF9000" : "#32CD79";
1785
+ var v, u, _, w, f;
1786
+ return (v = o == null ? void 0 : o.suffix) != null && v.includes("pdf") ? "iksvg_pdf" : (u = o == null ? void 0 : o.suffix) != null && u.includes("doc") ? "iksvg_word" : (_ = o == null ? void 0 : o.suffix) != null && _.includes("xls") ? "iksvg_excel" : (w = o == null ? void 0 : o.suffix) != null && w.includes("mov") ? "iksvg_mov" : (f = o == null ? void 0 : o.suffix) != null && f.includes("zip") ? "iksvg_zip" : "icon-jpg";
1728
1787
  }, h = (o) => {
1729
- const d = document.createElement("a");
1730
- d.href = u3.assembleUrl(n.loadUrl, o.url), d.download = o.name, d.click();
1788
+ var v, u, _, w, f;
1789
+ return (v = o == null ? void 0 : o.suffix) != null && v.includes("pdf") ? "#FA4E4E" : (u = o == null ? void 0 : o.suffix) != null && u.includes("doc") ? "#2c69e0" : (_ = o.suffix) != null && _.includes("xls") ? "#39BFBF" : (w = o.suffix) != null && w.includes("txt") ? "#2c69e0" : (f = o.suffix) != null && f.includes("zip") ? "#FF9000" : "#32CD79";
1790
+ }, g = (o) => {
1791
+ const v = document.createElement("a");
1792
+ v.href = u3.assembleUrl(n.loadUrl, o.url), v.download = o.name, v.click();
1731
1793
  };
1732
- return (o, d) => {
1733
- var g, _;
1734
- const r = A("el-image");
1735
- return u(), f("div", null, [
1736
- n.fileType === "file" ? (u(), f("div", Y6, [
1737
- (u(!0), f(
1738
- O,
1794
+ return (o, v) => {
1795
+ var _, w;
1796
+ const u = O("el-image");
1797
+ return r(), d("div", null, [
1798
+ n.fileType === "file" ? (r(), d("div", J6, [
1799
+ (r(!0), d(
1800
+ M,
1739
1801
  null,
1740
- P(i.value, (v, b) => (u(), f(
1802
+ U(i.value, (f, F) => (r(), d(
1741
1803
  "div",
1742
1804
  {
1743
- key: b,
1805
+ key: F,
1744
1806
  class: "files-item",
1745
- style: z({
1807
+ style: x({
1746
1808
  width: n.fileWidth,
1747
1809
  "margin-right": n.fileWidth === "100%" ? "0px" : ""
1748
1810
  })
1749
1811
  },
1750
1812
  [
1751
- c("div", Z6, [
1752
- k(w(R), {
1753
- name: s(v),
1754
- style: z(`color:${p(v)}`),
1813
+ c("div", Q6, [
1814
+ y(m(C), {
1815
+ name: s(f),
1816
+ style: x(`color:${h(f)}`),
1755
1817
  size: 36
1756
1818
  }, null, 8, ["name", "style"]),
1757
1819
  c("div", {
1758
1820
  class: "file-name",
1759
- onClick: (y) => h(v)
1821
+ onClick: (D) => g(f)
1760
1822
  }, [
1761
1823
  c("p", {
1762
- title: v.name
1763
- }, B(v.name), 9, Q6),
1824
+ title: f.name
1825
+ }, I(f.name), 9, te),
1764
1826
  c(
1765
1827
  "p",
1766
- ee,
1767
- B((v.size / 1024).toFixed(2)) + "KB",
1828
+ ne,
1829
+ I((f.size / 1024).toFixed(2)) + "KB",
1768
1830
  1
1769
1831
  /* TEXT */
1770
1832
  )
1771
- ], 8, J6)
1833
+ ], 8, ee)
1772
1834
  ]),
1773
1835
  c("div", {
1774
1836
  class: "file-preview",
1775
- onClick: (y) => l(v)
1837
+ onClick: (D) => l(f)
1776
1838
  }, [
1777
- k(w(R), { name: "iksvg_yulan" }),
1778
- ne
1779
- ], 8, te)
1839
+ y(m(C), { name: "iksvg_yulan" }),
1840
+ ie
1841
+ ], 8, oe)
1780
1842
  ],
1781
1843
  4
1782
1844
  /* STYLE */
@@ -1784,40 +1846,40 @@ const K6 = /* @__PURE__ */ T(W6, [["__scopeId", "data-v-98d51ef9"]]), G6 = M(K6)
1784
1846
  128
1785
1847
  /* KEYED_FRAGMENT */
1786
1848
  ))
1787
- ])) : V("v-if", !0),
1788
- n.fileType === "img" ? (u(), f("div", oe, [
1789
- (u(!0), f(
1790
- O,
1849
+ ])) : R("v-if", !0),
1850
+ n.fileType === "img" ? (r(), d("div", le, [
1851
+ (r(!0), d(
1852
+ M,
1791
1853
  null,
1792
- P(i.value, (v, b) => (u(), f("div", {
1793
- key: b,
1854
+ U(i.value, (f, F) => (r(), d("div", {
1855
+ key: F,
1794
1856
  class: "preview-img"
1795
1857
  }, [
1796
- k(r, {
1858
+ y(u, {
1797
1859
  class: "show-img",
1798
- src: t.loadUrl + v.url,
1799
- "preview-src-list": [t.loadUrl + v.url],
1860
+ src: t.loadUrl + f.url,
1861
+ "preview-src-list": [t.loadUrl + f.url],
1800
1862
  fit: "cover"
1801
1863
  }, null, 8, ["src", "preview-src-list"])
1802
1864
  ]))),
1803
1865
  128
1804
1866
  /* KEYED_FRAGMENT */
1805
1867
  ))
1806
- ])) : V("v-if", !0),
1807
- k(w(z6), {
1868
+ ])) : R("v-if", !0),
1869
+ y(m(b6), {
1808
1870
  modelValue: e.value,
1809
- "onUpdate:modelValue": d[0] || (d[0] = (v) => e.value = v),
1871
+ "onUpdate:modelValue": v[0] || (v[0] = (f) => e.value = f),
1810
1872
  "load-url": n.loadUrl,
1811
- url: (g = a.value) == null ? void 0 : g.url,
1873
+ url: (_ = a.value) == null ? void 0 : _.url,
1812
1874
  "kk-url": t.kkUrl,
1813
- "file-name": (_ = a.value) == null ? void 0 : _.name
1875
+ "file-name": (w = a.value) == null ? void 0 : w.name
1814
1876
  }, null, 8, ["modelValue", "load-url", "url", "kk-url", "file-name"])
1815
1877
  ]);
1816
1878
  };
1817
1879
  }
1818
1880
  });
1819
- const le = /* @__PURE__ */ T(ie, [["__scopeId", "data-v-170abcfc"]]), re = M(le);
1881
+ const ae = /* @__PURE__ */ P(se, [["__scopeId", "data-v-170abcfc"]]), de = A(ae);
1820
1882
  export {
1821
- re as IKDetailPreviewFiles,
1822
- re as default
1883
+ de as IKDetailPreviewFiles,
1884
+ de as default
1823
1885
  };