iking-web-ui-pro 0.2.11 → 0.2.13

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.
Files changed (64) hide show
  1. package/dist/IKDetailPreviewFiles/ik.index.es.js +116 -111
  2. package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
  3. package/dist/IKDetailPreviewFiles/style.css +1 -1
  4. package/dist/IKExpandCollapse/ik.index.es.js +2 -2
  5. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  6. package/dist/IKExpandCollapse/style.css +1 -1
  7. package/dist/IKPreviewFile/ik.index.es.js +172 -167
  8. package/dist/IKPreviewFile/ik.index.umd.js +1 -1
  9. package/dist/IKPreviewFile/style.css +1 -1
  10. package/dist/IKVerticalStepBar/ik.index.es.js +2 -2
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +1 -1
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcess/ik.index.es.js +194 -190
  14. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcessDetail/ik.index.es.js +645 -636
  16. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  17. package/dist/IkApprovalProcessDetail/style.css +1 -1
  18. package/dist/IkBaseDialog/ik.index.es.js +2 -2
  19. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  20. package/dist/IkBaseDialog/style.css +1 -1
  21. package/dist/IkBtnSetting/ik.index.es.js +2 -2
  22. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  23. package/dist/IkBtnSetting/style.css +1 -1
  24. package/dist/IkCollapseCard/ik.index.es.js +2 -2
  25. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  26. package/dist/IkCollapseCard/style.css +1 -1
  27. package/dist/IkDescription/ik.index.es.js +329 -324
  28. package/dist/IkDescription/ik.index.umd.js +1 -1
  29. package/dist/IkDescription/style.css +1 -1
  30. package/dist/IkIconPicker/ik.index.es.js +2 -2
  31. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  32. package/dist/IkIconPicker/style.css +1 -1
  33. package/dist/IkMonacoEditor/ik.index.es.js +2 -2
  34. package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
  35. package/dist/IkMonacoEditor/style.css +1 -1
  36. package/dist/IkPageFull/ik.index.es.js +2 -2
  37. package/dist/IkPageFull/ik.index.umd.js +1 -1
  38. package/dist/IkPageFull/style.css +1 -1
  39. package/dist/IkPreviewFileDialog/ik.index.es.js +206 -203
  40. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  41. package/dist/IkPreviewFileDialog/style.css +1 -1
  42. package/dist/IkSchedule/ik.index.es.js +2 -2
  43. package/dist/IkSchedule/ik.index.umd.js +1 -1
  44. package/dist/IkSchedule/style.css +1 -1
  45. package/dist/IkSideText/ik.index.es.js +2 -2
  46. package/dist/IkSideText/ik.index.umd.js +1 -1
  47. package/dist/IkSideText/style.css +1 -1
  48. package/dist/IkSvgIcon/ik.index.es.js +8 -8
  49. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  50. package/dist/IkSvgIcon/style.css +1 -1
  51. package/dist/IkUploadFile/ik.index.es.js +112 -109
  52. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  53. package/dist/IkUploadFile/style.css +1 -1
  54. package/dist/IkUploadImage/ik.index.es.js +84 -84
  55. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  56. package/dist/IkUploadImage/style.css +1 -1
  57. package/dist/index.es.js +12672 -12663
  58. package/dist/index.umd.js +60 -60
  59. package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +1 -1
  60. package/dist/src/components/IkPlayer-beta/index.d.ts +76 -0
  61. package/dist/src/components/IkPlayer-beta/src/player.d.ts +19 -0
  62. package/dist/style.css +1 -1
  63. package/package.json +1 -1
  64. package/dist/src/components/IkPickerUser/src/list/utils.d.ts +0 -3
@@ -1,39 +1,39 @@
1
- import { inject as D, computed as m, defineComponent as F, openBlock as c, createElementBlock as d, createElementVNode as r, ref as q, resolveComponent as $, Fragment as M, renderList as L, normalizeStyle as b, toDisplayString as V, normalizeClass as S, createVNode as k, unref as g, withModifiers as K, renderSlot as C, createBlock as z, withCtx as y, createCommentVNode as R, mergeModels as Y, useModel as Z, reactive as Q, watch as e3, nextTick as t3, createTextVNode as H, h as n3, mergeProps as N, createSlots as o3, useCssVars as i3 } from "vue";
1
+ import { inject as D, computed as m, defineComponent as F, openBlock as c, createElementBlock as u, createElementVNode as r, ref as q, resolveComponent as $, Fragment as M, renderList as L, normalizeStyle as z, toDisplayString as V, normalizeClass as S, createVNode as k, unref as g, withModifiers as G, renderSlot as C, createBlock as b, withCtx as y, createCommentVNode as I, mergeModels as Z, useModel as J, reactive as Q, watch as e3, nextTick as t3, createTextVNode as H, h as o3, mergeProps as N, createSlots as n3, useCssVars as i3 } from "vue";
2
2
  import { ElTag as l3 } from "element-plus";
3
3
  import { paramType as s3, ikFile as a3, buildUUID as c3, ikColor as r3 } from "iking-utils-pro";
4
- const E = (t, n) => {
5
- if (t.install = (o) => {
6
- for (const e of [t, ...Object.values(n ?? {})])
7
- o.component(e.name, e);
8
- }, n)
9
- for (const [o, e] of Object.entries(n))
10
- t[o] = e;
4
+ const E = (t, o) => {
5
+ if (t.install = (n) => {
6
+ for (const e of [t, ...Object.values(o ?? {})])
7
+ n.component(e.name, e);
8
+ }, o)
9
+ for (const [n, e] of Object.entries(o))
10
+ t[n] = e;
11
11
  return t;
12
- }, U = (t, n) => {
13
- const o = t.__vccOpts || t;
14
- for (const [e, l] of n)
15
- o[e] = l;
16
- return o;
17
- }, u3 = (t, n = 2) => {
12
+ }, U = (t, o) => {
13
+ const n = t.__vccOpts || t;
14
+ for (const [e, s] of o)
15
+ n[e] = s;
16
+ return n;
17
+ }, d3 = (t, o = 2) => {
18
18
  if (t === void 0)
19
19
  return "";
20
20
  if (t === 0)
21
21
  return "0 B";
22
- const o = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
23
- let l = t / Math.pow(1024, e);
24
- return (l % 1 === 0 ? l.toFixed(n || 0) : l.toFixed(n)) + " " + o[e];
25
- }, T = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", d3 = (t) => {
26
- const n = D("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = D("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = D("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), v = D("onlyofficeConfig"), f = m(() => t.onlyofficeConfig || (v == null ? void 0 : v.value)), a = D("userInfo"), h = m(() => t.userInfo || (a == null ? void 0 : a.value));
22
+ const n = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
23
+ let s = t / Math.pow(1024, e);
24
+ return (s % 1 === 0 ? s.toFixed(o || 0) : s.toFixed(o)) + " " + n[e];
25
+ }, T = (t, o) => o ? o.startsWith("http") ? o : `${t || location.origin}${o}` : "", u3 = (t) => {
26
+ const o = D("loadUrl"), n = m(() => t.loadUrl || t.fileUrl || (o == null ? void 0 : o.value)), e = D("uploadUrl"), s = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = D("token"), l = m(() => t.token || (i == null ? void 0 : i.value)), p = D("onlyofficeConfig"), f = m(() => t.onlyofficeConfig || (p == null ? void 0 : p.value)), a = D("userInfo"), h = m(() => t.userInfo || (a == null ? void 0 : a.value));
27
27
  return {
28
- cLoadUrl: o,
29
- cUploadUrl: l,
30
- cToken: s,
28
+ cLoadUrl: n,
29
+ cUploadUrl: s,
30
+ cToken: l,
31
31
  cOnlyofficeConfig: f,
32
32
  cUserInfo: h
33
33
  };
34
- }, f3 = d3, J = (t, n) => {
35
- var i, s, v, f;
36
- const o = (i = t == null ? void 0 : t.response) != null && i.data ? G((v = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : v.suffix) : ((f = t.raw) == null ? void 0 : f.type) || G(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), l = {
34
+ }, f3 = u3, W = (t, o) => {
35
+ var i, l, p, f;
36
+ const n = (i = t == null ? void 0 : t.response) != null && i.data ? X((p = (l = t == null ? void 0 : t.response) == null ? void 0 : l.data) == null ? void 0 : p.suffix) : ((f = t.raw) == null ? void 0 : f.type) || X(t[o.suffix]), e = n == null ? void 0 : n.toLowerCase(), s = {
37
37
  sheet: "excel",
38
38
  excel: "excel",
39
39
  zip: "zip",
@@ -49,11 +49,11 @@ const E = (t, n) => {
49
49
  exe: "exe",
50
50
  json: "json"
51
51
  };
52
- for (let a in l)
52
+ for (let a in s)
53
53
  if (typeof e == "string" && (e.includes(a) || e === a))
54
- return l[a];
54
+ return s[a];
55
55
  return "unknown";
56
- }, p3 = {
56
+ }, v3 = {
57
57
  ".doc": "word",
58
58
  ".docx": "word",
59
59
  ".docxf": "word",
@@ -138,12 +138,12 @@ const E = (t, n) => {
138
138
  ".vob": "video",
139
139
  ".txt": "txt",
140
140
  ".pdf": "pdf"
141
- }, G = (t) => {
142
- const n = t == null ? void 0 : t.toLocaleLowerCase(), o = n != null && n.startsWith(".") ? n : `.${n}`;
143
- return o && p3[o] || "unknow";
144
- }, v3 = (t) => {
145
- let n = "", o = ["doc", "docx"], e = ["xls", "xlsx"], l = ["ppt", "pptx"], i = ["pdf"];
146
- return o.includes(t) && (n = "word"), e.includes(t) && (n = "cell"), l.includes(t) && (n = "slide"), i.includes(t) && (n = "text-pdf"), n;
141
+ }, X = (t) => {
142
+ const o = t == null ? void 0 : t.toLocaleLowerCase(), n = o != null && o.startsWith(".") ? o : `.${o}`;
143
+ return n && v3[n] || "unknow";
144
+ }, p3 = (t) => {
145
+ let o = "", n = ["doc", "docx"], e = ["xls", "xlsx"], s = ["ppt", "pptx"], i = ["pdf"];
146
+ return n.includes(t) && (o = "word"), e.includes(t) && (o = "cell"), s.includes(t) && (o = "slide"), i.includes(t) && (o = "text-pdf"), o;
147
147
  }, h3 = {
148
148
  key: 0,
149
149
  t: "1686300059786",
@@ -219,7 +219,7 @@ const E = (t, n) => {
219
219
  null,
220
220
  -1
221
221
  /* HOISTED */
222
- ), b3 = /* @__PURE__ */ r(
222
+ ), z3 = /* @__PURE__ */ r(
223
223
  "path",
224
224
  {
225
225
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -229,9 +229,9 @@ const E = (t, n) => {
229
229
  null,
230
230
  -1
231
231
  /* HOISTED */
232
- ), z3 = [
232
+ ), b3 = [
233
233
  x3,
234
- b3
234
+ z3
235
235
  ], F3 = {
236
236
  key: 2,
237
237
  t: "1686300141125",
@@ -495,7 +495,7 @@ const E = (t, n) => {
495
495
  null,
496
496
  -1
497
497
  /* HOISTED */
498
- ), n6 = /* @__PURE__ */ r(
498
+ ), o6 = /* @__PURE__ */ r(
499
499
  "path",
500
500
  {
501
501
  d: "M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",
@@ -505,7 +505,7 @@ const E = (t, n) => {
505
505
  null,
506
506
  -1
507
507
  /* HOISTED */
508
- ), o6 = /* @__PURE__ */ r(
508
+ ), n6 = /* @__PURE__ */ r(
509
509
  "path",
510
510
  {
511
511
  d: "M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",
@@ -528,8 +528,8 @@ const E = (t, n) => {
528
528
  /* HOISTED */
529
529
  ), l6 = [
530
530
  t6,
531
- n6,
532
531
  o6,
532
+ n6,
533
533
  i6
534
534
  ], s6 = {
535
535
  key: 10,
@@ -572,11 +572,11 @@ const E = (t, n) => {
572
572
  null,
573
573
  -1
574
574
  /* HOISTED */
575
- ), u6 = [
575
+ ), d6 = [
576
576
  a6,
577
577
  c6,
578
578
  r6
579
- ], d6 = {
579
+ ], u6 = {
580
580
  key: 11,
581
581
  t: "1686300037564",
582
582
  class: "icon",
@@ -596,7 +596,7 @@ const E = (t, n) => {
596
596
  null,
597
597
  -1
598
598
  /* HOISTED */
599
- ), p6 = /* @__PURE__ */ r(
599
+ ), v6 = /* @__PURE__ */ r(
600
600
  "path",
601
601
  {
602
602
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -606,7 +606,7 @@ const E = (t, n) => {
606
606
  null,
607
607
  -1
608
608
  /* HOISTED */
609
- ), v6 = /* @__PURE__ */ r(
609
+ ), p6 = /* @__PURE__ */ r(
610
610
  "path",
611
611
  {
612
612
  d: "M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",
@@ -618,8 +618,8 @@ const E = (t, n) => {
618
618
  /* HOISTED */
619
619
  ), h6 = [
620
620
  f6,
621
- p6,
622
- v6
621
+ v6,
622
+ p6
623
623
  ], g6 = /* @__PURE__ */ F({
624
624
  __name: "FileIcon",
625
625
  props: {
@@ -641,10 +641,10 @@ const E = (t, n) => {
641
641
  }
642
642
  },
643
643
  setup(t) {
644
- const n = t, o = m(() => n.file ? J(n.file, n.fields) : n.type);
645
- return (e, l) => o.value === "image" ? (c(), d("svg", h3, _3)) : o.value === "zip" ? (c(), d("svg", k3, z3)) : o.value === "ppt" ? (c(), d("svg", F3, V3)) : o.value === "word" ? (c(), d("svg", O3, R3)) : o.value === "pdf" ? (c(), d("svg", $3, H3)) : o.value === "txt" ? (c(), d("svg", q3, P3)) : o.value === "audio" ? (c(), d("svg", T3, L3)) : o.value === "video" ? (c(), d("svg", N3, G3)) : o.value === "excel" ? (c(), d("svg", X3, Q3)) : o.value === "exe" ? (c(), d("svg", e6, l6)) : o.value === "json" ? (c(), d("svg", s6, u6)) : (c(), d("svg", d6, h6));
644
+ const o = t, n = m(() => o.file ? W(o.file, o.fields) : o.type);
645
+ return (e, s) => n.value === "image" ? (c(), u("svg", h3, _3)) : n.value === "zip" ? (c(), u("svg", k3, b3)) : n.value === "ppt" ? (c(), u("svg", F3, V3)) : n.value === "word" ? (c(), u("svg", O3, R3)) : n.value === "pdf" ? (c(), u("svg", $3, H3)) : n.value === "txt" ? (c(), u("svg", q3, P3)) : n.value === "audio" ? (c(), u("svg", T3, L3)) : n.value === "video" ? (c(), u("svg", N3, G3)) : n.value === "excel" ? (c(), u("svg", X3, Q3)) : n.value === "exe" ? (c(), u("svg", e6, l6)) : n.value === "json" ? (c(), u("svg", s6, d6)) : (c(), u("svg", u6, h6));
646
646
  }
647
- }), m6 = ["onClick"], y6 = { class: "fileName simple" }, w6 = ["onClick"], _6 = { class: "text" }, k6 = { class: "fileName" }, x6 = { class: "size" }, b6 = /* @__PURE__ */ F({
647
+ }), m6 = ["onClick"], y6 = { class: "fileName simple" }, w6 = ["onClick"], _6 = { class: "text" }, k6 = { class: "fileName" }, x6 = { class: "size" }, z6 = /* @__PURE__ */ F({
648
648
  __name: "IkPreviewFile",
649
649
  props: {
650
650
  list: {
@@ -719,59 +719,59 @@ const E = (t, n) => {
719
719
  }
720
720
  },
721
721
  setup(t) {
722
- const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = f3(n), l = m(() => ({
722
+ const o = t, { cLoadUrl: n, cOnlyofficeConfig: e } = f3(o), s = m(() => ({
723
723
  name: "name",
724
724
  url: "url",
725
725
  suffix: "suffix",
726
726
  size: "size",
727
- ...n.field
728
- })), i = q({}), s = q(!1), v = (u) => {
727
+ ...o.field
728
+ })), i = q({}), l = q(!1), p = (d) => {
729
729
  var w, x;
730
730
  i.value = {
731
- ...u,
732
- name: u.name,
731
+ ...d,
732
+ name: d.name,
733
733
  url: T(
734
- o.value,
735
- u.url || ((x = (w = u == null ? void 0 : u.response) == null ? void 0 : w.data) == null ? void 0 : x.id) || (u == null ? void 0 : u.id)
734
+ n.value,
735
+ d.url || ((x = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : x.id) || (d == null ? void 0 : d.id)
736
736
  )
737
- }, s.value = !0;
738
- }, f = (u) => {
737
+ }, l.value = !0;
738
+ }, f = (d) => {
739
739
  a3.downloadFile(
740
740
  T(
741
- o.value,
742
- u[l.value.url] || u.attachmentId || u.id
741
+ n.value,
742
+ d[s.value.url] || d.attachmentId || d.id
743
743
  ),
744
- u[l.value.name] || u.attachmentName
744
+ d[s.value.name] || d.attachmentName
745
745
  );
746
- }, a = m(() => s3.isNumber(n.width) ? `${n.width}px` : n.width), h = m(() => n.list.map((u) => ({
747
- ...u,
748
- name: u[l.value.name] || u.attachmentName,
749
- size: u[l.value.size] || u.fileSize || u.attachmentSize,
750
- suffix: u[l.value.suffix] || u.attachmentSuffix
746
+ }, a = m(() => s3.isNumber(o.width) ? `${o.width}px` : o.width), h = m(() => o.list.map((d) => ({
747
+ ...d,
748
+ name: d[s.value.name] || d.attachmentName,
749
+ size: d[s.value.size] || d.fileSize || d.attachmentSize,
750
+ suffix: d[s.value.suffix] || d.attachmentSuffix
751
751
  })));
752
- return (u, w) => {
752
+ return (d, w) => {
753
753
  var _, A, P;
754
754
  const x = $("tmplate");
755
- return c(), d(
755
+ return c(), u(
756
756
  M,
757
757
  null,
758
758
  [
759
- (_ = t.list) != null && _.length ? (c(), d(
759
+ (_ = t.list) != null && _.length ? (c(), u(
760
760
  M,
761
761
  { key: 0 },
762
762
  [
763
- t.simple ? (c(!0), d(
763
+ t.simple ? (c(!0), u(
764
764
  M,
765
765
  { key: 0 },
766
- L(h.value, (p, O) => (c(), d("div", {
766
+ L(h.value, (v, O) => (c(), u("div", {
767
767
  class: "iking-privew-annex simple",
768
- onClick: (B) => v(p),
769
- style: b({ width: a.value })
768
+ onClick: (B) => p(v),
769
+ style: z({ width: a.value })
770
770
  }, [
771
771
  r(
772
772
  "div",
773
773
  y6,
774
- V(p.name),
774
+ V(v.name),
775
775
  1
776
776
  /* TEXT */
777
777
  ),
@@ -781,19 +781,19 @@ const E = (t, n) => {
781
781
  class: S(["flex flex-center", { "hover-show": t.iconHoverShow }])
782
782
  },
783
783
  [
784
- k(g(I), {
784
+ k(g(R), {
785
785
  name: "iksvg_daochu",
786
- onClick: K((B) => f(p), ["stop"]),
786
+ onClick: G((B) => f(v), ["stop"]),
787
787
  size: 20,
788
788
  active: ""
789
789
  }, null, 8, ["onClick"]),
790
- k(g(I), {
790
+ k(g(R), {
791
791
  name: "iksvg_yulan",
792
792
  size: 20,
793
793
  active: ""
794
794
  }),
795
- C(u.$slots, "operation", {
796
- data: { ...p, findex: O }
795
+ C(d.$slots, "operation", {
796
+ data: { ...v, findex: O }
797
797
  })
798
798
  ],
799
799
  2
@@ -802,19 +802,19 @@ const E = (t, n) => {
802
802
  ], 12, m6))),
803
803
  256
804
804
  /* UNKEYED_FRAGMENT */
805
- )) : (c(), z(x, { key: 1 }, {
805
+ )) : (c(), b(x, { key: 1 }, {
806
806
  default: y(() => [
807
- (c(!0), d(
807
+ (c(!0), u(
808
808
  M,
809
809
  null,
810
- L(h.value, (p, O) => {
810
+ L(h.value, (v, O) => {
811
811
  var B;
812
- return c(), d(
812
+ return c(), u(
813
813
  "div",
814
814
  {
815
815
  class: S(["iking-privew-annex", { "is-bg": t.showBg }]),
816
816
  key: O,
817
- style: b({
817
+ style: z({
818
818
  marginBottom: O == ((B = t.list) == null ? void 0 : B.length) - 1 ? "0" : "10px",
819
819
  width: a.value
820
820
  })
@@ -822,26 +822,26 @@ const E = (t, n) => {
822
822
  [
823
823
  r("div", {
824
824
  class: "file-card",
825
- onClick: (j) => v(p)
825
+ onClick: (j) => p(v)
826
826
  }, [
827
827
  k(g6, {
828
- file: p,
829
- style: b({ height: `${t.iconSize}px` }),
828
+ file: v,
829
+ style: z({ height: `${t.iconSize}px` }),
830
830
  class: "ikui-w-auto",
831
- fields: l.value
831
+ fields: s.value
832
832
  }, null, 8, ["file", "style", "fields"]),
833
833
  r("div", _6, [
834
834
  r(
835
835
  "div",
836
836
  k6,
837
- V(p.name),
837
+ V(v.name),
838
838
  1
839
839
  /* TEXT */
840
840
  ),
841
841
  r(
842
842
  "div",
843
843
  x6,
844
- V(g(u3)(p.size)),
844
+ V(g(d3)(v.size)),
845
845
  1
846
846
  /* TEXT */
847
847
  )
@@ -852,19 +852,21 @@ const E = (t, n) => {
852
852
  class: S(["flex flex-center", { "hover-show": t.iconHoverShow }])
853
853
  },
854
854
  [
855
- k(g(I), {
855
+ k(g(R), {
856
856
  name: "iksvg_daochu",
857
- onClick: K((j) => f(p), ["stop"]),
857
+ onClick: G((j) => f(v), ["stop"]),
858
858
  bg: t.showBg,
859
- size: t.showBg ? "default" : 20
859
+ size: t.showBg ? "default" : 20,
860
+ title: "下载"
860
861
  }, null, 8, ["onClick", "bg", "size"]),
861
- k(g(I), {
862
+ k(g(R), {
862
863
  name: "iksvg_yulan",
863
864
  bg: t.showBg,
864
- size: t.showBg ? "default" : 20
865
+ size: t.showBg ? "default" : 20,
866
+ title: "预览"
865
867
  }, null, 8, ["bg", "size"]),
866
- C(u.$slots, "operation", {
867
- data: { ...p, findex: O }
868
+ C(d.$slots, "operation", {
869
+ data: { ...v, findex: O }
868
870
  })
869
871
  ],
870
872
  2
@@ -886,11 +888,11 @@ const E = (t, n) => {
886
888
  ],
887
889
  64
888
890
  /* STABLE_FRAGMENT */
889
- )) : R("v-if", !0),
891
+ )) : I("v-if", !0),
890
892
  k(g(S6), {
891
- show: s.value,
892
- "onUpdate:show": w[0] || (w[0] = (p) => s.value = p),
893
- loadUrl: g(o),
893
+ show: l.value,
894
+ "onUpdate:show": w[0] || (w[0] = (v) => l.value = v),
895
+ loadUrl: g(n),
894
896
  file: i.value,
895
897
  onlyofficeServer: ((A = g(e)) == null ? void 0 : A.serverUrl) || t.onlyofficeServer,
896
898
  onlyOfficeConfig: g(e),
@@ -903,9 +905,9 @@ const E = (t, n) => {
903
905
  };
904
906
  }
905
907
  });
906
- const z6 = E(b6), F6 = /* @__PURE__ */ F({
908
+ const b6 = E(z6), F6 = /* @__PURE__ */ F({
907
909
  __name: "IkPreviewFileDialog",
908
- props: /* @__PURE__ */ Y({
910
+ props: /* @__PURE__ */ Z({
909
911
  file: {
910
912
  type: Object,
911
913
  default: () => []
@@ -940,34 +942,37 @@ const z6 = E(b6), F6 = /* @__PURE__ */ F({
940
942
  }),
941
943
  emits: ["update:show"],
942
944
  setup(t) {
943
- const n = t, o = Z(t, "show"), e = m(() => ({
945
+ const o = t, n = J(t, "show"), e = m(() => ({
944
946
  name: "name",
945
947
  url: "url",
946
948
  suffix: "suffix",
947
949
  size: "fileSize",
948
- ...n.field
949
- })), l = q(null), i = q(null), s = Q({
950
+ ...o.field
951
+ })), s = q(null), i = q(null), l = Q({
950
952
  image: !1,
951
953
  office: !1,
952
954
  video: !1
953
- }), v = (a) => {
954
- var h, u, w, x, _, A, P;
955
+ }), p = (a) => {
956
+ var h, d, w, x, _, A, P;
955
957
  try {
956
- const p = ((h = a == null ? void 0 : a.response) == null ? void 0 : h.data) || a, O = p[e.value.url] || (p == null ? void 0 : p.id) || p.attachmentId, B = (u = p[e.value.suffix] || p.attachmentSuffix) == null ? void 0 : u.toLowerCase(), j = p[e.value.name] || (p == null ? void 0 : p.attachmentName) || (p == null ? void 0 : p.originName);
958
+ const v = ((h = a == null ? void 0 : a.response) == null ? void 0 : h.data) || a, O = v[e.value.url] || (v == null ? void 0 : v.id) || v.attachmentId, B = (d = v[e.value.suffix] || v.attachmentSuffix) == null ? void 0 : d.toLowerCase(), j = v[e.value.name] || (v == null ? void 0 : v.attachmentName) || (v == null ? void 0 : v.originName);
957
959
  if (i.value = {
958
960
  ...a,
959
961
  name: a[e.value.name],
960
- url: T(n.loadUrl, O)
961
- }, a && J(a, e.value) === "image") {
962
- s.image = !0;
962
+ url: T(o.loadUrl, O)
963
+ }, a && W(a, e.value) === "image") {
964
+ l.image = !0;
965
+ return;
966
+ } else if (a && W(a, e.value) === "video") {
967
+ l.video = !0, console.log("modal.video = true;", l.video);
963
968
  return;
964
- } else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(B)) {
965
- s.office = !0, l.value = {
966
- ...n.onlyOfficeConfig,
969
+ } else if ((((w = o.onlyOfficeConfig) == null ? void 0 : w.accept) || o.onlyOfficeAccept).includes(B)) {
970
+ l.office = !0, s.value = {
971
+ ...o.onlyOfficeConfig,
967
972
  editorConfig: {
968
- ...((x = n.onlyOfficeConfig) == null ? void 0 : x.editorConfig) || {},
973
+ ...((x = o.onlyOfficeConfig) == null ? void 0 : x.editorConfig) || {},
969
974
  customization: {
970
- ...((A = (_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) == null ? void 0 : A.customization) || {},
975
+ ...((A = (_ = o.onlyOfficeConfig) == null ? void 0 : _.editorConfig) == null ? void 0 : A.customization) || {},
971
976
  review: {
972
977
  reviewDisplay: "final"
973
978
  }
@@ -976,45 +981,45 @@ const z6 = E(b6), F6 = /* @__PURE__ */ F({
976
981
  document: {
977
982
  key: c3(),
978
983
  title: j,
979
- url: T(n.loadUrl, O),
984
+ url: T(o.loadUrl, O),
980
985
  fileType: B,
981
- ...((P = n.onlyOfficeConfig) == null ? void 0 : P.document) || {}
986
+ ...((P = o.onlyOfficeConfig) == null ? void 0 : P.document) || {}
982
987
  },
983
- documentType: v3(B)
988
+ documentType: p3(B)
984
989
  };
985
990
  return;
986
991
  }
987
- } catch (p) {
988
- console.info("预览错误: ", p);
992
+ } catch (v) {
993
+ console.info("预览错误: ", v);
989
994
  }
990
995
  };
991
- e3([o, n.file], ([a, h]) => {
996
+ e3([n, o.file], ([a, h]) => {
992
997
  a && t3(() => {
993
- v(n.file);
998
+ p(o.file);
994
999
  });
995
1000
  });
996
1001
  const f = () => {
997
- o.value = !1, s.office = !1, s.image = !1, s.video = !1;
1002
+ n.value = !1, l.office = !1, l.image = !1, l.video = !1, i.value = null;
998
1003
  };
999
1004
  return (a, h) => {
1000
1005
  var w, x;
1001
- const u = $("el-image-viewer");
1002
- return o.value ? (c(), d(
1006
+ const d = $("el-image-viewer");
1007
+ return n.value ? (c(), u(
1003
1008
  M,
1004
1009
  { key: 0 },
1005
1010
  [
1006
- (w = i.value) != null && w.url && s.image ? (c(), z(u, {
1011
+ (w = i.value) != null && w.url && l.image ? (c(), b(d, {
1007
1012
  key: 0,
1008
- onClose: h[0] || (h[0] = (_) => {
1009
- i.value = null, s.image = !1;
1010
- }),
1013
+ onClose: h[0] || (h[0] = (_) => f()),
1011
1014
  ref: "previewImgRef",
1012
- "url-list": [(x = i.value) == null ? void 0 : x.url]
1013
- }, null, 8, ["url-list"])) : R("v-if", !0),
1014
- R(" 文档类 "),
1015
+ "url-list": [(x = i.value) == null ? void 0 : x.url],
1016
+ teleported: ""
1017
+ }, null, 8, ["url-list"])) : I("v-if", !0),
1018
+ I(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
1019
+ I(" 文档类 "),
1015
1020
  k(g(T6), {
1016
- modelValue: s.office,
1017
- "onUpdate:modelValue": h[1] || (h[1] = (_) => s.office = _),
1021
+ modelValue: l.office,
1022
+ "onUpdate:modelValue": h[1] || (h[1] = (_) => l.office = _),
1018
1023
  draggable: "",
1019
1024
  "no-footer": "",
1020
1025
  "no-header": "",
@@ -1031,7 +1036,7 @@ const z6 = E(b6), F6 = /* @__PURE__ */ F({
1031
1036
  var _;
1032
1037
  return [
1033
1038
  k(g(X6), {
1034
- "config-options": l.value,
1039
+ "config-options": s.value,
1035
1040
  "document-server-url": ((_ = t.onlyOfficeConfig) == null ? void 0 : _.serverUrl) || t.onlyofficeServer
1036
1041
  }, null, 8, ["config-options", "document-server-url"])
1037
1042
  ];
@@ -1042,13 +1047,13 @@ const z6 = E(b6), F6 = /* @__PURE__ */ F({
1042
1047
  ],
1043
1048
  64
1044
1049
  /* STABLE_FRAGMENT */
1045
- )) : R("v-if", !0);
1050
+ )) : I("v-if", !0);
1046
1051
  };
1047
1052
  }
1048
1053
  });
1049
1054
  const S6 = E(F6), C6 = {
1050
1055
  key: 0,
1051
- class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
1056
+ class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
1052
1057
  }, V6 = {
1053
1058
  key: 1,
1054
1059
  class: "h-[1em] w-[1em]",
@@ -1084,87 +1089,87 @@ const S6 = E(F6), C6 = {
1084
1089
  tableIconType: {}
1085
1090
  },
1086
1091
  setup(t) {
1087
- const n = t, o = D("iconConfig"), e = m(() => ({
1088
- ...(o == null ? void 0 : o.value) || {},
1089
- ...n
1090
- })), l = m(() => {
1091
- const { name: s } = e.value;
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";
1092
+ const o = t, n = D("iconConfig"), e = m(() => ({
1093
+ ...(n == null ? void 0 : n.value) || {},
1094
+ ...o
1095
+ })), s = m(() => {
1096
+ const { name: l } = e.value;
1097
+ return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
1093
1098
  }), i = m(() => {
1094
- const s = [];
1099
+ const l = [];
1095
1100
  if (e.value.flip)
1096
1101
  switch (e.value.flip) {
1097
1102
  case "horizontal":
1098
- s.push("rotateY(180deg)");
1103
+ l.push("rotateY(180deg)");
1099
1104
  break;
1100
1105
  case "vertical":
1101
- s.push("rotateX(180deg)");
1106
+ l.push("rotateX(180deg)");
1102
1107
  break;
1103
1108
  case "both":
1104
- s.push("rotateX(180deg)"), s.push("rotateY(180deg)");
1109
+ l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
1105
1110
  break;
1106
1111
  }
1107
- e.value.rotate && s.push(`rotate(${e.value.rotate % 360}deg)`);
1108
- const v = {
1112
+ e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
1113
+ const p = {
1109
1114
  ...e.value.color && { color: e.value.color },
1110
1115
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
1111
- ...s.length && { transform: s.join(" ") },
1116
+ ...l.length && { transform: l.join(" ") },
1112
1117
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
1113
- ...e.value.color && l.value !== "iksig" ? {
1118
+ ...e.value.color && s.value !== "iksig" ? {
1114
1119
  "--ik-color-icon-dark": e.value.color,
1115
1120
  "--ik-color-icon-light": e.value.colorLight || r3.setOpacity(e.value.color, e.value.opacity)
1116
1121
  } : {}
1117
1122
  };
1118
- return e.value.width && (v.width = v.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), v;
1123
+ return e.value.width && (p.width = p.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), p;
1119
1124
  });
1120
- return (s, v) => {
1125
+ return (l, p) => {
1121
1126
  const f = $("el-tooltip"), a = $("el-button");
1122
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), d("span", C6, [
1123
- e.value.notip || !e.value.title ? (c(), d(
1127
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), u("span", C6, [
1128
+ e.value.notip || !e.value.title ? (c(), u(
1124
1129
  "i",
1125
1130
  {
1126
1131
  key: 0,
1127
1132
  class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1128
- [s.name]: l.value === "unocss",
1133
+ [l.name]: s.value === "unocss",
1129
1134
  "show-bg": e.value.showBg || e.value.bg,
1130
1135
  default: e.value.size === "default",
1131
1136
  small: e.value.size === "small",
1132
1137
  big: e.value.size === "big",
1133
1138
  warning: e.value.warning || e.value.type === "warning",
1134
1139
  primary: e.value.primary || e.value.type === "primary",
1135
- success: s.success || e.value.type === "success",
1140
+ success: l.success || e.value.type === "success",
1136
1141
  error: e.value.error || e.value.type === "error",
1137
1142
  active: e.value.active,
1138
1143
  disabled: e.value.disabled
1139
1144
  }]),
1140
- style: b(i.value)
1145
+ style: z(i.value)
1141
1146
  },
1142
1147
  [
1143
- R(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1144
- l.value === "iksig" ? (c(), d(
1148
+ I(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1149
+ s.value === "iksig" ? (c(), u(
1145
1150
  "i",
1146
1151
  {
1147
1152
  key: 0,
1148
1153
  class: S(`iksig ${e.value.name}`),
1149
- style: b(i.value)
1154
+ style: z(i.value)
1150
1155
  },
1151
1156
  null,
1152
1157
  6
1153
1158
  /* CLASS, STYLE */
1154
- )) : l.value === "svg" ? (c(), d("svg", V6, [
1159
+ )) : s.value === "svg" ? (c(), u("svg", V6, [
1155
1160
  r("use", {
1156
1161
  "xlink:href": `#${e.value.name}`
1157
1162
  }, null, 8, O6)
1158
- ])) : l.value === "img" ? (c(), d("img", {
1163
+ ])) : s.value === "img" ? (c(), u("img", {
1159
1164
  key: 2,
1160
1165
  src: e.value.name,
1161
1166
  class: "h-[1em] w-[1em]"
1162
- }, null, 8, B6)) : (c(), d(
1167
+ }, null, 8, B6)) : (c(), u(
1163
1168
  "i",
1164
1169
  {
1165
1170
  key: 3,
1166
1171
  class: S(e.value.name),
1167
- style: b(i.value)
1172
+ style: z(i.value)
1168
1173
  },
1169
1174
  null,
1170
1175
  6
@@ -1173,7 +1178,7 @@ const S6 = E(F6), C6 = {
1173
1178
  ],
1174
1179
  6
1175
1180
  /* CLASS, STYLE */
1176
- )) : (c(), z(f, {
1181
+ )) : (c(), b(f, {
1177
1182
  key: 1,
1178
1183
  content: e.value.title,
1179
1184
  placement: "top"
@@ -1183,44 +1188,44 @@ const S6 = E(F6), C6 = {
1183
1188
  "i",
1184
1189
  {
1185
1190
  class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1186
- [s.name]: l.value === "unocss",
1191
+ [l.name]: s.value === "unocss",
1187
1192
  "show-bg": e.value.showBg || e.value.bg,
1188
1193
  default: e.value.size === "default",
1189
1194
  small: e.value.size === "small",
1190
1195
  big: e.value.size === "big",
1191
1196
  warning: e.value.warning || e.value.type === "warning",
1192
- primary: s.primary || e.value.type === "primary",
1193
- success: s.success || e.value.type === "success",
1197
+ primary: l.primary || e.value.type === "primary",
1198
+ success: l.success || e.value.type === "success",
1194
1199
  error: e.value.error || e.value.type === "error",
1195
1200
  active: e.value.active
1196
1201
  }]),
1197
- style: b(i.value)
1202
+ style: z(i.value)
1198
1203
  },
1199
1204
  [
1200
- l.value === "iksig" ? (c(), d(
1205
+ s.value === "iksig" ? (c(), u(
1201
1206
  "i",
1202
1207
  {
1203
1208
  key: 0,
1204
1209
  class: S(`iksig ${e.value.name}`),
1205
- style: b(i.value)
1210
+ style: z(i.value)
1206
1211
  },
1207
1212
  null,
1208
1213
  6
1209
1214
  /* CLASS, STYLE */
1210
- )) : l.value === "svg" ? (c(), d("svg", I6, [
1215
+ )) : s.value === "svg" ? (c(), u("svg", I6, [
1211
1216
  r("use", {
1212
1217
  "xlink:href": `#${e.value.name}`
1213
1218
  }, null, 8, R6)
1214
- ])) : l.value === "img" ? (c(), d("img", {
1219
+ ])) : s.value === "img" ? (c(), u("img", {
1215
1220
  key: 2,
1216
1221
  src: e.value.name,
1217
1222
  class: "h-[1em] w-[1em]"
1218
- }, null, 8, $6)) : (c(), d(
1223
+ }, null, 8, $6)) : (c(), u(
1219
1224
  "i",
1220
1225
  {
1221
1226
  key: 3,
1222
1227
  class: S(e.value.name),
1223
- style: b(i.value)
1228
+ style: z(i.value)
1224
1229
  },
1225
1230
  null,
1226
1231
  6
@@ -1234,7 +1239,7 @@ const S6 = E(F6), C6 = {
1234
1239
  _: 1
1235
1240
  /* STABLE */
1236
1241
  }, 8, ["content"]))
1237
- ])) : (c(), z(a, {
1242
+ ])) : (c(), b(a, {
1238
1243
  key: 1,
1239
1244
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
1240
1245
  }, {
@@ -1251,7 +1256,7 @@ const S6 = E(F6), C6 = {
1251
1256
  };
1252
1257
  }
1253
1258
  });
1254
- const M6 = /* @__PURE__ */ U(D6, [["__scopeId", "data-v-7729b79a"]]), I = E(M6), H6 = {
1259
+ const M6 = /* @__PURE__ */ U(D6, [["__scopeId", "data-v-76d7e119"]]), R = E(M6), H6 = {
1255
1260
  key: 0,
1256
1261
  class: "exit-main-page-maximize"
1257
1262
  }, q6 = /* @__PURE__ */ F({
@@ -1267,15 +1272,15 @@ const M6 = /* @__PURE__ */ U(D6, [["__scopeId", "data-v-7729b79a"]]), I = E(M6),
1267
1272
  }
1268
1273
  },
1269
1274
  setup(t) {
1270
- return (n, o) => (c(), d("div", null, [
1271
- t.showBg && t.fullscreen ? (c(), d("div", H6, [
1272
- k(g(I), {
1275
+ return (o, n) => (c(), u("div", null, [
1276
+ t.showBg && t.fullscreen ? (c(), u("div", H6, [
1277
+ k(g(R), {
1273
1278
  name: "iksvg_guanbidanchuang",
1274
1279
  title: "关闭",
1275
1280
  size: 20,
1276
1281
  error: ""
1277
1282
  })
1278
- ])) : (c(), z(g(I), {
1283
+ ])) : (c(), b(g(R), {
1279
1284
  key: 1,
1280
1285
  error: "",
1281
1286
  name: "iksvg_guanbidanchuang",
@@ -1287,7 +1292,7 @@ const M6 = /* @__PURE__ */ U(D6, [["__scopeId", "data-v-7729b79a"]]), I = E(M6),
1287
1292
  });
1288
1293
  const E6 = /* @__PURE__ */ U(q6, [["__scopeId", "data-v-79f49df8"]]), A6 = { class: "base-header" }, P6 = /* @__PURE__ */ F({
1289
1294
  __name: "IkBaseDialog",
1290
- props: /* @__PURE__ */ Y({
1295
+ props: /* @__PURE__ */ Z({
1291
1296
  title: { default: "" },
1292
1297
  cancelText: { default: "取消" },
1293
1298
  confirmText: { default: "确认" },
@@ -1306,31 +1311,31 @@ const E6 = /* @__PURE__ */ U(q6, [["__scopeId", "data-v-79f49df8"]]), A6 = { cla
1306
1311
  }),
1307
1312
  emits: ["update:modelValue"],
1308
1313
  setup(t) {
1309
- const n = t, o = Z(t, "modelValue"), e = q(n.fullscreen), l = () => {
1314
+ const o = t, n = J(t, "modelValue"), e = q(o.fullscreen), s = () => {
1310
1315
  e.value = !e.value;
1311
1316
  }, i = F({
1312
1317
  setup() {
1313
- return () => n3(E6, {
1314
- showBg: n.showCloseBg,
1315
- fullscreen: n.fullscreen
1318
+ return () => o3(E6, {
1319
+ showBg: o.showCloseBg,
1320
+ fullscreen: o.fullscreen
1316
1321
  });
1317
1322
  }
1318
1323
  });
1319
- return (s, v) => {
1324
+ return (l, p) => {
1320
1325
  const f = $("el-dialog");
1321
- return c(), z(f, N({
1322
- modelValue: o.value,
1323
- "onUpdate:modelValue": v[0] || (v[0] = (a) => o.value = a)
1324
- }, s.$attrs, {
1326
+ return c(), b(f, N({
1327
+ modelValue: n.value,
1328
+ "onUpdate:modelValue": p[0] || (p[0] = (a) => n.value = a)
1329
+ }, l.$attrs, {
1325
1330
  "close-icon": g(i),
1326
- class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
1331
+ class: `ik-base-dialog ${l.noHeader ? "no-header" : ""} ${l.noFooter ? "no-footer" : ""}`,
1327
1332
  fullscreen: e.value,
1328
1333
  "modal-class": "baseDialog"
1329
- }), o3({
1334
+ }), n3({
1330
1335
  icon: y(() => [
1331
- C(s.$slots, "title", {}, () => [
1336
+ C(l.$slots, "title", {}, () => [
1332
1337
  H(
1333
- V(s.title),
1338
+ V(l.title),
1334
1339
  1
1335
1340
  /* TEXT */
1336
1341
  )
@@ -1338,32 +1343,32 @@ const E6 = /* @__PURE__ */ U(q6, [["__scopeId", "data-v-79f49df8"]]), A6 = { cla
1338
1343
  ]),
1339
1344
  header: y(() => [
1340
1345
  r("div", A6, [
1341
- C(s.$slots, "header", {}, () => [
1346
+ C(l.$slots, "header", {}, () => [
1342
1347
  H(
1343
- V(s.title),
1348
+ V(l.title),
1344
1349
  1
1345
1350
  /* TEXT */
1346
1351
  )
1347
1352
  ])
1348
1353
  ]),
1349
- s.$attrs.showClose ? (c(), z(g(I), {
1354
+ l.$attrs.showClose ? (c(), b(g(R), {
1350
1355
  key: 0,
1351
- onClick: l,
1356
+ onClick: s,
1352
1357
  name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1353
1358
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1354
1359
  title: e.value ? "退出全屏" : "全屏"
1355
- }, null, 8, ["name", "title"])) : R("v-if", !0)
1360
+ }, null, 8, ["name", "title"])) : I("v-if", !0)
1356
1361
  ]),
1357
1362
  default: y(() => [
1358
- C(s.$slots, "default")
1363
+ C(l.$slots, "default")
1359
1364
  ]),
1360
1365
  _: 2
1361
1366
  /* DYNAMIC */
1362
1367
  }, [
1363
- s.$slots.footer ? {
1368
+ l.$slots.footer ? {
1364
1369
  name: "footer",
1365
1370
  fn: y(() => [
1366
- C(s.$slots, "footer")
1371
+ C(l.$slots, "footer")
1367
1372
  ]),
1368
1373
  key: "0"
1369
1374
  } : void 0
@@ -1372,43 +1377,43 @@ const E6 = /* @__PURE__ */ U(q6, [["__scopeId", "data-v-79f49df8"]]), A6 = { cla
1372
1377
  }
1373
1378
  });
1374
1379
  const T6 = E(P6);
1375
- function U6(t, n, o, e) {
1376
- function l(i) {
1377
- return i instanceof o ? i : new o(function(s) {
1378
- s(i);
1380
+ function U6(t, o, n, e) {
1381
+ function s(i) {
1382
+ return i instanceof n ? i : new n(function(l) {
1383
+ l(i);
1379
1384
  });
1380
1385
  }
1381
- return new (o || (o = Promise))(function(i, s) {
1382
- function v(h) {
1386
+ return new (n || (n = Promise))(function(i, l) {
1387
+ function p(h) {
1383
1388
  try {
1384
1389
  a(e.next(h));
1385
- } catch (u) {
1386
- s(u);
1390
+ } catch (d) {
1391
+ l(d);
1387
1392
  }
1388
1393
  }
1389
1394
  function f(h) {
1390
1395
  try {
1391
1396
  a(e.throw(h));
1392
- } catch (u) {
1393
- s(u);
1397
+ } catch (d) {
1398
+ l(d);
1394
1399
  }
1395
1400
  }
1396
1401
  function a(h) {
1397
- h.done ? i(h.value) : l(h.value).then(v, f);
1402
+ h.done ? i(h.value) : s(h.value).then(p, f);
1398
1403
  }
1399
- a((e = e.apply(t, n || [])).next());
1404
+ a((e = e.apply(t, o || [])).next());
1400
1405
  });
1401
1406
  }
1402
- function j6(t, n) {
1403
- var o = { label: 0, sent: function() {
1407
+ function j6(t, o) {
1408
+ var n = { label: 0, sent: function() {
1404
1409
  if (i[0] & 1)
1405
1410
  throw i[1];
1406
1411
  return i[1];
1407
- }, trys: [], ops: [] }, e, l, i, s;
1408
- return s = { next: v(0), throw: v(1), return: v(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
1412
+ }, trys: [], ops: [] }, e, s, i, l;
1413
+ return l = { next: p(0), throw: p(1), return: p(2) }, typeof Symbol == "function" && (l[Symbol.iterator] = function() {
1409
1414
  return this;
1410
- }), s;
1411
- function v(a) {
1415
+ }), l;
1416
+ function p(a) {
1412
1417
  return function(h) {
1413
1418
  return f([a, h]);
1414
1419
  };
@@ -1416,46 +1421,46 @@ function j6(t, n) {
1416
1421
  function f(a) {
1417
1422
  if (e)
1418
1423
  throw new TypeError("Generator is already executing.");
1419
- for (; s && (s = 0, a[0] && (o = 0)), o; )
1424
+ for (; l && (l = 0, a[0] && (n = 0)), n; )
1420
1425
  try {
1421
- if (e = 1, l && (i = a[0] & 2 ? l.return : a[0] ? l.throw || ((i = l.return) && i.call(l), 0) : l.next) && !(i = i.call(l, a[1])).done)
1426
+ if (e = 1, s && (i = a[0] & 2 ? s.return : a[0] ? s.throw || ((i = s.return) && i.call(s), 0) : s.next) && !(i = i.call(s, a[1])).done)
1422
1427
  return i;
1423
- switch (l = 0, i && (a = [a[0] & 2, i.value]), a[0]) {
1428
+ switch (s = 0, i && (a = [a[0] & 2, i.value]), a[0]) {
1424
1429
  case 0:
1425
1430
  case 1:
1426
1431
  i = a;
1427
1432
  break;
1428
1433
  case 4:
1429
- return o.label++, { value: a[1], done: !1 };
1434
+ return n.label++, { value: a[1], done: !1 };
1430
1435
  case 5:
1431
- o.label++, l = a[1], a = [0];
1436
+ n.label++, s = a[1], a = [0];
1432
1437
  continue;
1433
1438
  case 7:
1434
- a = o.ops.pop(), o.trys.pop();
1439
+ a = n.ops.pop(), n.trys.pop();
1435
1440
  continue;
1436
1441
  default:
1437
- if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (a[0] === 6 || a[0] === 2)) {
1438
- o = 0;
1442
+ if (i = n.trys, !(i = i.length > 0 && i[i.length - 1]) && (a[0] === 6 || a[0] === 2)) {
1443
+ n = 0;
1439
1444
  continue;
1440
1445
  }
1441
1446
  if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
1442
- o.label = a[1];
1447
+ n.label = a[1];
1443
1448
  break;
1444
1449
  }
1445
- if (a[0] === 6 && o.label < i[1]) {
1446
- o.label = i[1], i = a;
1450
+ if (a[0] === 6 && n.label < i[1]) {
1451
+ n.label = i[1], i = a;
1447
1452
  break;
1448
1453
  }
1449
- if (i && o.label < i[2]) {
1450
- o.label = i[2], o.ops.push(a);
1454
+ if (i && n.label < i[2]) {
1455
+ n.label = i[2], n.ops.push(a);
1451
1456
  break;
1452
1457
  }
1453
- i[2] && o.ops.pop(), o.trys.pop();
1458
+ i[2] && n.ops.pop(), n.trys.pop();
1454
1459
  continue;
1455
1460
  }
1456
- a = n.call(t, o);
1461
+ a = o.call(t, n);
1457
1462
  } catch (h) {
1458
- a = [6, h], l = 0;
1463
+ a = [6, h], s = 0;
1459
1464
  } finally {
1460
1465
  e = i = 0;
1461
1466
  }
@@ -1464,27 +1469,27 @@ function j6(t, n) {
1464
1469
  return { value: a[0] ? a[1] : void 0, done: !0 };
1465
1470
  }
1466
1471
  }
1467
- var L6 = function(t, n) {
1472
+ var L6 = function(t, o) {
1468
1473
  return U6(void 0, void 0, void 0, function() {
1469
- return j6(this, function(o) {
1470
- return [2, new Promise(function(e, l) {
1474
+ return j6(this, function(n) {
1475
+ return [2, new Promise(function(e, s) {
1471
1476
  try {
1472
1477
  if (window.DocsAPI)
1473
1478
  return e(null);
1474
- var i = document.getElementById(n);
1479
+ var i = document.getElementById(o);
1475
1480
  if (i)
1476
- var s = setInterval(function() {
1481
+ var l = setInterval(function() {
1477
1482
  var f = i.getAttribute("loading");
1478
1483
  if (!f) {
1479
- if (clearInterval(s), window.DocsAPI)
1484
+ if (clearInterval(l), window.DocsAPI)
1480
1485
  return e(null);
1481
- var a = X(n, t, e, l);
1486
+ var a = Y(o, t, e, s);
1482
1487
  i.remove(), document.body.appendChild(a);
1483
1488
  }
1484
1489
  }, 500);
1485
1490
  else {
1486
- var v = X(n, t, e, l);
1487
- document.body.appendChild(v);
1491
+ var p = Y(o, t, e, s);
1492
+ document.body.appendChild(p);
1488
1493
  }
1489
1494
  } catch (f) {
1490
1495
  console.error(f);
@@ -1492,14 +1497,14 @@ var L6 = function(t, n) {
1492
1497
  })];
1493
1498
  });
1494
1499
  });
1495
- }, X = function(t, n, o, e) {
1496
- var l = document.createElement("script");
1497
- return l.id = t, l.type = "text/javascript", l.src = n, l.async = !0, l.onload = function() {
1498
- l.removeAttribute("loading"), o(null);
1499
- }, l.onerror = function(i) {
1500
- l.removeAttribute("loading"), e(i);
1501
- }, l.setAttribute("loading", ""), l;
1502
- }, W = F({
1500
+ }, Y = function(t, o, n, e) {
1501
+ var s = document.createElement("script");
1502
+ return s.id = t, s.type = "text/javascript", s.src = o, s.async = !0, s.onload = function() {
1503
+ s.removeAttribute("loading"), n(null);
1504
+ }, s.onerror = function(i) {
1505
+ s.removeAttribute("loading"), e(i);
1506
+ }, s.setAttribute("loading", ""), s;
1507
+ }, K = F({
1503
1508
  name: "DocumentEditor",
1504
1509
  props: {
1505
1510
  id: {
@@ -1551,58 +1556,58 @@ var L6 = function(t, n) {
1551
1556
  events_onRequestSelectDocument: Function
1552
1557
  },
1553
1558
  mounted: function() {
1554
- var t = this, n = this.documentServerUrl;
1555
- n.endsWith("/") || (n += "/");
1556
- var o = "".concat(n, "web-apps/apps/api/documents/api.js");
1557
- L6(o, "onlyoffice-api-script").then(function() {
1559
+ var t = this, o = this.documentServerUrl;
1560
+ o.endsWith("/") || (o += "/");
1561
+ var n = "".concat(o, "web-apps/apps/api/documents/api.js");
1562
+ L6(n, "onlyoffice-api-script").then(function() {
1558
1563
  return t.onLoad();
1559
1564
  }).catch(function() {
1560
1565
  t.onError(-2);
1561
1566
  });
1562
1567
  },
1563
1568
  unmounted: function() {
1564
- var t, n = this.id || "";
1565
- !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0);
1569
+ var t, o = this.id || "";
1570
+ !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[o] && (window.DocEditor.instances[o].destroyEditor(), window.DocEditor.instances[o] = void 0);
1566
1571
  },
1567
1572
  watch: {
1568
1573
  config: {
1569
- handler: function(t, n) {
1574
+ handler: function(t, o) {
1570
1575
  this.onChangeProps();
1571
1576
  },
1572
1577
  deep: !0
1573
1578
  },
1574
- document_fileType: function(t, n) {
1579
+ document_fileType: function(t, o) {
1575
1580
  this.onChangeProps();
1576
1581
  },
1577
- document_title: function(t, n) {
1582
+ document_title: function(t, o) {
1578
1583
  this.onChangeProps();
1579
1584
  },
1580
- documentType: function(t, n) {
1585
+ documentType: function(t, o) {
1581
1586
  this.onChangeProps();
1582
1587
  },
1583
- editorConfig_lang: function(t, n) {
1588
+ editorConfig_lang: function(t, o) {
1584
1589
  this.onChangeProps();
1585
1590
  },
1586
- height: function(t, n) {
1591
+ height: function(t, o) {
1587
1592
  this.onChangeProps();
1588
1593
  },
1589
- type: function(t, n) {
1594
+ type: function(t, o) {
1590
1595
  this.onChangeProps();
1591
1596
  },
1592
- width: function(t, n) {
1597
+ width: function(t, o) {
1593
1598
  this.onChangeProps();
1594
1599
  }
1595
1600
  },
1596
1601
  methods: {
1597
1602
  onLoad: function() {
1598
- var t, n;
1603
+ var t, o;
1599
1604
  try {
1600
- var o = this.id || "";
1601
- if (window.DocsAPI || this.onError(-3), !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[o]) {
1602
- console.log("Skip loading. Instance already exists", o);
1605
+ var n = this.id || "";
1606
+ if (window.DocsAPI || this.onError(-3), !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n]) {
1607
+ console.log("Skip loading. Instance already exists", n);
1603
1608
  return;
1604
1609
  }
1605
- !((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances || (window.DocEditor = { instances: {} });
1610
+ !((o = window == null ? void 0 : window.DocEditor) === null || o === void 0) && o.instances || (window.DocEditor = { instances: {} });
1606
1611
  var e = Object.assign({
1607
1612
  document: {
1608
1613
  fileType: this.document_fileType,
@@ -1638,42 +1643,42 @@ var L6 = function(t, n) {
1638
1643
  height: this.height,
1639
1644
  type: this.type,
1640
1645
  width: this.width
1641
- }, this.config || {}), l = window.DocsAPI.DocEditor(o, e);
1642
- window.DocEditor.instances[o] = l;
1646
+ }, this.config || {}), s = window.DocsAPI.DocEditor(n, e);
1647
+ window.DocEditor.instances[n] = s;
1643
1648
  } catch (i) {
1644
1649
  console.error(i), this.onError(-1);
1645
1650
  }
1646
1651
  },
1647
1652
  onError: function(t) {
1648
- var n;
1653
+ var o;
1649
1654
  switch (t) {
1650
1655
  case -2:
1651
- n = "Error load DocsAPI from " + this.documentServerUrl;
1656
+ o = "Error load DocsAPI from " + this.documentServerUrl;
1652
1657
  break;
1653
1658
  case -3:
1654
- n = "DocsAPI is not defined";
1659
+ o = "DocsAPI is not defined";
1655
1660
  break;
1656
1661
  default:
1657
- n = "Unknown error loading component", t = -1;
1662
+ o = "Unknown error loading component", t = -1;
1658
1663
  }
1659
- typeof this.onLoadComponentError > "u" ? console.error(n) : this.onLoadComponentError(t, n);
1664
+ typeof this.onLoadComponentError > "u" ? console.error(o) : this.onLoadComponentError(t, o);
1660
1665
  },
1661
1666
  onAppReady: function() {
1662
1667
  var t = this.id || "";
1663
1668
  this.events_onAppReady(window.DocEditor.instances[t]);
1664
1669
  },
1665
1670
  onChangeProps: function() {
1666
- var t, n = this.id || "";
1667
- !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
1671
+ var t, o = this.id || "";
1672
+ !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[o] && (window.DocEditor.instances[o].destroyEditor(), window.DocEditor.instances[o] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
1668
1673
  }
1669
1674
  }
1670
1675
  });
1671
1676
  const N6 = ["id"];
1672
- function W6(t, n, o, e, l, i) {
1673
- return c(), d("div", { id: t.id }, null, 8, N6);
1677
+ function W6(t, o, n, e, s, i) {
1678
+ return c(), u("div", { id: t.id }, null, 8, N6);
1674
1679
  }
1675
- W.render = W6;
1676
- W.__file = "src/components/DocumentEditor.vue";
1680
+ K.render = W6;
1681
+ K.__file = "src/components/DocumentEditor.vue";
1677
1682
  const K6 = /* @__PURE__ */ F({
1678
1683
  __name: "IkOnlyOffice",
1679
1684
  props: {
@@ -1695,25 +1700,25 @@ const K6 = /* @__PURE__ */ F({
1695
1700
  }
1696
1701
  },
1697
1702
  setup(t) {
1698
- const n = t, o = q({
1703
+ const o = t, n = q({
1699
1704
  width: "100%",
1700
1705
  height: "100%",
1701
- ...n.configOptions || {},
1702
- ...n.configOptions
1706
+ ...o.configOptions || {},
1707
+ ...o.configOptions
1703
1708
  }), e = () => {
1704
- console.info("文档加载完成", n.configOptions);
1709
+ console.info("文档加载完成", o.configOptions);
1705
1710
  };
1706
- return (l, i) => (c(), d(
1711
+ return (s, i) => (c(), u(
1707
1712
  "div",
1708
1713
  {
1709
- style: b({ height: n.officeHeight })
1714
+ style: z({ height: o.officeHeight })
1710
1715
  },
1711
1716
  [
1712
- k(g(W), {
1717
+ k(g(K), {
1713
1718
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1714
1719
  ref: "editorRef",
1715
1720
  "document-server-url": t.documentServerUrl,
1716
- config: o.value,
1721
+ config: n.value,
1717
1722
  events_onDocumentReady: e
1718
1723
  }, null, 8, ["id", "document-server-url", "config"])
1719
1724
  ],
@@ -1781,55 +1786,55 @@ const G6 = /* @__PURE__ */ U(K6, [["__scopeId", "data-v-98d51ef9"]]), X6 = E(G6)
1781
1786
  }
1782
1787
  },
1783
1788
  setup(t) {
1784
- i3((l) => ({
1789
+ i3((s) => ({
1785
1790
  acbb9d0c: e.value
1786
1791
  }));
1787
- const n = t, o = {
1792
+ const o = t, n = {
1788
1793
  id: "id",
1789
1794
  value: "value",
1790
1795
  props: "props",
1791
1796
  label: "label",
1792
1797
  tag: "tag",
1793
1798
  fileList: "fileList",
1794
- ...n.fileField
1795
- }, e = m(() => typeof n.labelWidth == "number" ? `${n.labelWidth}px` : n.labelWidth);
1796
- return (l, i) => {
1797
- const s = $("el-descriptions-item"), v = $("el-descriptions");
1798
- return c(), z(
1799
- v,
1800
- N({ class: "margin-top" }, { ...t.titleProps, ...n }),
1799
+ ...o.fileField
1800
+ }, e = m(() => typeof o.labelWidth == "number" ? `${o.labelWidth}px` : o.labelWidth);
1801
+ return (s, i) => {
1802
+ const l = $("el-descriptions-item"), p = $("el-descriptions");
1803
+ return c(), b(
1804
+ p,
1805
+ N({ class: "margin-top" }, { ...t.titleProps, ...o }),
1801
1806
  {
1802
1807
  extra: y(() => [
1803
- C(l.$slots, "extra", {}, void 0, !0)
1808
+ C(s.$slots, "extra", {}, void 0, !0)
1804
1809
  ]),
1805
1810
  default: y(() => [
1806
- (c(!0), d(
1811
+ (c(!0), u(
1807
1812
  M,
1808
1813
  null,
1809
- L(t.listData, (f) => (c(), z(
1810
- s,
1814
+ L(t.listData, (f) => (c(), b(
1815
+ l,
1811
1816
  N({
1812
- key: f[o.id],
1817
+ key: f[n.id],
1813
1818
  ref_for: !0
1814
- }, f[o.props]),
1819
+ }, f[n.props]),
1815
1820
  {
1816
1821
  label: y(() => [
1817
- C(l.$slots, f[o.label], {}, () => [
1822
+ C(s.$slots, f[n.label], {}, () => [
1818
1823
  H(
1819
- V(f[o.label]),
1824
+ V(f[n.label]),
1820
1825
  1
1821
1826
  /* TEXT */
1822
1827
  )
1823
1828
  ], !0)
1824
1829
  ]),
1825
1830
  default: y(() => [
1826
- C(l.$slots, `${f[o.label]}_value`, {}, () => [
1831
+ C(s.$slots, `${f[n.label]}_value`, {}, () => [
1827
1832
  H(
1828
- V(f[o.value]) + " ",
1833
+ V(f[n.value]) + " ",
1829
1834
  1
1830
1835
  /* TEXT */
1831
1836
  ),
1832
- f[o.tag] ? (c(), z(
1837
+ f[n.tag] ? (c(), b(
1833
1838
  g(l3),
1834
1839
  {
1835
1840
  key: 0,
@@ -1838,7 +1843,7 @@ const G6 = /* @__PURE__ */ U(K6, [["__scopeId", "data-v-98d51ef9"]]), X6 = E(G6)
1838
1843
  {
1839
1844
  default: y(() => [
1840
1845
  H(
1841
- V(f[o.value].value),
1846
+ V(f[n.value].value),
1842
1847
  1
1843
1848
  /* TEXT */
1844
1849
  )
@@ -1848,9 +1853,9 @@ const G6 = /* @__PURE__ */ U(K6, [["__scopeId", "data-v-98d51ef9"]]), X6 = E(G6)
1848
1853
  },
1849
1854
  1024
1850
1855
  /* DYNAMIC_SLOTS */
1851
- )) : R("v-if", !0),
1852
- k(g(z6), {
1853
- list: f[o.fileList],
1856
+ )) : I("v-if", !0),
1857
+ k(g(b6), {
1858
+ list: f[n.fileList],
1854
1859
  field: t.fileField,
1855
1860
  "load-url": t.loadUrl,
1856
1861
  "kk-url": t.kkUrl,
@@ -1881,8 +1886,8 @@ const G6 = /* @__PURE__ */ U(K6, [["__scopeId", "data-v-98d51ef9"]]), X6 = E(G6)
1881
1886
  };
1882
1887
  }
1883
1888
  });
1884
- const Z6 = /* @__PURE__ */ U(Y6, [["__scopeId", "data-v-a33bc2ce"]]), ne = E(Z6);
1889
+ const Z6 = /* @__PURE__ */ U(Y6, [["__scopeId", "data-v-a33bc2ce"]]), oe = E(Z6);
1885
1890
  export {
1886
- ne as IkDescriptions,
1887
- ne as default
1891
+ oe as IkDescriptions,
1892
+ oe as default
1888
1893
  };