iking-web-ui-pro 0.1.75 → 0.1.76

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