iking-web-ui-pro 0.2.5 → 0.2.6

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 (62) hide show
  1. package/dist/IKDetailPreviewFiles/ik.index.es.js +409 -406
  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 +123 -120
  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 +358 -355
  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 +142 -139
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcessDetail/ik.index.es.js +564 -561
  14. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcessDetail/style.css +1 -1
  16. package/dist/IkBaseDialog/ik.index.es.js +125 -122
  17. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  18. package/dist/IkBaseDialog/style.css +1 -1
  19. package/dist/IkBtnSetting/ik.index.es.js +252 -249
  20. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  21. package/dist/IkBtnSetting/style.css +1 -1
  22. package/dist/IkCollapseCard/ik.index.es.js +129 -126
  23. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  24. package/dist/IkCollapseCard/style.css +1 -1
  25. package/dist/IkDescription/ik.index.es.js +357 -354
  26. package/dist/IkDescription/ik.index.umd.js +1 -1
  27. package/dist/IkDescription/style.css +1 -1
  28. package/dist/IkIconPicker/ik.index.es.js +196 -193
  29. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  30. package/dist/IkIconPicker/style.css +1 -1
  31. package/dist/IkMonacoEditor/ik.index.es.js +397 -394
  32. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  33. package/dist/IkMonacoEditor/style.css +1 -1
  34. package/dist/IkPageFull/ik.index.es.js +1122 -1119
  35. package/dist/IkPageFull/ik.index.umd.js +2 -2
  36. package/dist/IkPageFull/style.css +1 -1
  37. package/dist/IkPreviewFileDialog/ik.index.es.js +293 -290
  38. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  39. package/dist/IkPreviewFileDialog/style.css +1 -1
  40. package/dist/IkSchedule/ik.index.es.js +968 -965
  41. package/dist/IkSchedule/ik.index.umd.js +1 -1
  42. package/dist/IkSchedule/style.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +148 -145
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/style.css +1 -1
  46. package/dist/IkSvgIcon/ik.index.es.js +106 -103
  47. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  48. package/dist/IkSvgIcon/style.css +1 -1
  49. package/dist/IkUploadFile/ik.index.es.js +530 -526
  50. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  51. package/dist/IkUploadFile/style.css +1 -1
  52. package/dist/IkUploadImage/ik.index.es.js +269 -266
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/Provider/ik.index.es.js +50 -46
  56. package/dist/Provider/ik.index.umd.js +5 -5
  57. package/dist/index.es.js +7052 -7044
  58. package/dist/index.umd.js +36 -36
  59. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
  60. package/dist/src/components/Provider/index.d.ts +19 -0
  61. package/dist/style.css +1 -1
  62. package/package.json +1 -1
@@ -1,21 +1,21 @@
1
- import { defineComponent as x, openBlock as i, createElementBlock as h, createElementVNode as d, computed as V, inject as W, mergeModels as G, useModel as c3, ref as M, reactive as _3, watch as k3, nextTick as s3, resolveComponent as X, Fragment as U, createBlock as b, createCommentVNode as z, createVNode as A, unref as r, withCtx as y, normalizeClass as R, normalizeStyle as O, createTextVNode as q, toDisplayString as I, h as z3, mergeProps as l3, createSlots as g3, renderSlot as E, renderList as b3, withDirectives as F3, vShow as C3, pushScopeId as x3, popScopeId as I3 } from "vue";
2
- import { ElUpload as d3, ElButton as B3, ElProgress as u3, ElTooltip as p3, ElIcon as H, ElMessage as o3 } from "element-plus";
1
+ import { defineComponent as C, openBlock as s, createElementBlock as p, createElementVNode as d, computed as D, inject as T, mergeModels as G, useModel as c3, ref as M, reactive as w3, watch as k3, nextTick as s3, resolveComponent as X, Fragment as U, createBlock as z, createCommentVNode as b, createVNode as m, unref as u, withCtx as _, normalizeClass as R, normalizeStyle as O, createTextVNode as q, toDisplayString as I, h as b3, mergeProps as l3, createSlots as A3, renderSlot as E, renderList as z3, withDirectives as x3, vShow as F3, pushScopeId as C3, popScopeId as I3 } from "vue";
2
+ import { ElUpload as u3, ElButton as B3, ElProgress as d3, ElTooltip as v3, ElIcon as H, ElMessage as o3 } from "element-plus";
3
3
  import { buildUUID as S3, ikColor as D3, ikFile as V3 } from "iking-utils-pro";
4
- const N = (e, t) => {
4
+ const N = (e, n) => {
5
5
  if (e.install = (o) => {
6
- for (const c of [e, ...Object.values(t ?? {})])
7
- o.component(c.name, c);
8
- }, t)
9
- for (const [o, c] of Object.entries(t))
10
- e[o] = c;
6
+ for (const t of [e, ...Object.values(n ?? {})])
7
+ o.component(t.name, t);
8
+ }, n)
9
+ for (const [o, t] of Object.entries(n))
10
+ e[o] = t;
11
11
  return e;
12
12
  }, $3 = "data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=";
13
13
  /*! Element Plus Icons Vue v2.3.1 */
14
- var R3 = /* @__PURE__ */ x({
14
+ var R3 = /* @__PURE__ */ C({
15
15
  name: "Delete",
16
16
  __name: "delete",
17
17
  setup(e) {
18
- return (t, o) => (i(), h("svg", {
18
+ return (n, o) => (s(), p("svg", {
19
19
  xmlns: "http://www.w3.org/2000/svg",
20
20
  viewBox: "0 0 1024 1024"
21
21
  }, [
@@ -25,11 +25,11 @@ var R3 = /* @__PURE__ */ x({
25
25
  })
26
26
  ]));
27
27
  }
28
- }), M3 = R3, E3 = /* @__PURE__ */ x({
28
+ }), M3 = R3, E3 = /* @__PURE__ */ C({
29
29
  name: "Download",
30
30
  __name: "download",
31
31
  setup(e) {
32
- return (t, o) => (i(), h("svg", {
32
+ return (n, o) => (s(), p("svg", {
33
33
  xmlns: "http://www.w3.org/2000/svg",
34
34
  viewBox: "0 0 1024 1024"
35
35
  }, [
@@ -39,11 +39,11 @@ var R3 = /* @__PURE__ */ x({
39
39
  })
40
40
  ]));
41
41
  }
42
- }), H3 = E3, U3 = /* @__PURE__ */ x({
42
+ }), H3 = E3, U3 = /* @__PURE__ */ C({
43
43
  name: "QuestionFilled",
44
44
  __name: "question-filled",
45
45
  setup(e) {
46
- return (t, o) => (i(), h("svg", {
46
+ return (n, o) => (s(), p("svg", {
47
47
  xmlns: "http://www.w3.org/2000/svg",
48
48
  viewBox: "0 0 1024 1024"
49
49
  }, [
@@ -53,11 +53,11 @@ var R3 = /* @__PURE__ */ x({
53
53
  })
54
54
  ]));
55
55
  }
56
- }), h3 = U3, O3 = /* @__PURE__ */ x({
56
+ }), p3 = U3, O3 = /* @__PURE__ */ C({
57
57
  name: "Refresh",
58
58
  __name: "refresh",
59
59
  setup(e) {
60
- return (t, o) => (i(), h("svg", {
60
+ return (n, o) => (s(), p("svg", {
61
61
  xmlns: "http://www.w3.org/2000/svg",
62
62
  viewBox: "0 0 1024 1024"
63
63
  }, [
@@ -67,11 +67,11 @@ var R3 = /* @__PURE__ */ x({
67
67
  })
68
68
  ]));
69
69
  }
70
- }), q3 = O3, L3 = /* @__PURE__ */ x({
70
+ }), q3 = O3, L3 = /* @__PURE__ */ C({
71
71
  name: "View",
72
72
  __name: "view",
73
73
  setup(e) {
74
- return (t, o) => (i(), h("svg", {
74
+ return (n, o) => (s(), p("svg", {
75
75
  xmlns: "http://www.w3.org/2000/svg",
76
76
  viewBox: "0 0 1024 1024"
77
77
  }, [
@@ -81,11 +81,11 @@ var R3 = /* @__PURE__ */ x({
81
81
  })
82
82
  ]));
83
83
  }
84
- }), T3 = L3, j3 = /* @__PURE__ */ x({
84
+ }), T3 = L3, j3 = /* @__PURE__ */ C({
85
85
  name: "WarningFilled",
86
86
  __name: "warning-filled",
87
87
  setup(e) {
88
- return (t, o) => (i(), h("svg", {
88
+ return (n, o) => (s(), p("svg", {
89
89
  xmlns: "http://www.w3.org/2000/svg",
90
90
  viewBox: "0 0 1024 1024"
91
91
  }, [
@@ -96,9 +96,9 @@ var R3 = /* @__PURE__ */ x({
96
96
  ]));
97
97
  }
98
98
  }), P3 = j3;
99
- const C = (e, t) => {
100
- var s, a, g, _;
101
- const o = (s = e == null ? void 0 : e.response) != null && s.data ? f3((g = (a = e == null ? void 0 : e.response) == null ? void 0 : a.data) == null ? void 0 : g.suffix) : ((_ = e.raw) == null ? void 0 : _.type) || f3(e[t.suffix]), c = o == null ? void 0 : o.toLowerCase(), n = {
99
+ const F = (e, n) => {
100
+ var c, i, f, w;
101
+ const o = (c = e == null ? void 0 : e.response) != null && c.data ? h3((f = (i = e == null ? void 0 : e.response) == null ? void 0 : i.data) == null ? void 0 : f.suffix) : ((w = e.raw) == null ? void 0 : w.type) || h3(e[n.suffix]), t = o == null ? void 0 : o.toLowerCase(), a = {
102
102
  sheet: "excel",
103
103
  excel: "excel",
104
104
  zip: "zip",
@@ -114,9 +114,9 @@ const C = (e, t) => {
114
114
  exe: "exe",
115
115
  json: "json"
116
116
  };
117
- for (let u in n)
118
- if (typeof c == "string" && (c.includes(u) || c === u))
119
- return n[u];
117
+ for (let r in a)
118
+ if (typeof t == "string" && (t.includes(r) || t === r))
119
+ return a[r];
120
120
  return "unknown";
121
121
  }, W3 = {
122
122
  ".doc": "word",
@@ -203,12 +203,12 @@ const C = (e, t) => {
203
203
  ".vob": "video",
204
204
  ".txt": "txt",
205
205
  ".pdf": "pdf"
206
- }, f3 = (e) => {
207
- const t = e == null ? void 0 : e.toLocaleLowerCase(), o = t != null && t.startsWith(".") ? t : `.${t}`;
206
+ }, h3 = (e) => {
207
+ const n = e == null ? void 0 : e.toLocaleLowerCase(), o = n != null && n.startsWith(".") ? n : `.${n}`;
208
208
  return o && W3[o] || "unknow";
209
209
  }, N3 = (e) => {
210
- let t = "", o = ["doc", "docx"], c = ["xls", "xlsx"], n = ["ppt", "pptx"], s = ["pdf"];
211
- return o.includes(e) && (t = "word"), c.includes(e) && (t = "cell"), n.includes(e) && (t = "slide"), s.includes(e) && (t = "text-pdf"), t;
210
+ let n = "", o = ["doc", "docx"], t = ["xls", "xlsx"], a = ["ppt", "pptx"], c = ["pdf"];
211
+ return o.includes(e) && (n = "word"), t.includes(e) && (n = "cell"), a.includes(e) && (n = "slide"), c.includes(e) && (n = "text-pdf"), n;
212
212
  }, Z3 = {
213
213
  key: 0,
214
214
  t: "1686300059786",
@@ -360,10 +360,10 @@ const C = (e, t) => {
360
360
  null,
361
361
  -1
362
362
  /* HOISTED */
363
- ), d6 = [
363
+ ), u6 = [
364
364
  c6,
365
365
  r6
366
- ], u6 = {
366
+ ], d6 = {
367
367
  key: 4,
368
368
  t: "1686300180947",
369
369
  class: "icon",
@@ -373,7 +373,7 @@ const C = (e, t) => {
373
373
  "p-id": "8447",
374
374
  width: "200",
375
375
  height: "200"
376
- }, p6 = /* @__PURE__ */ d(
376
+ }, v6 = /* @__PURE__ */ d(
377
377
  "path",
378
378
  {
379
379
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",
@@ -383,7 +383,7 @@ const C = (e, t) => {
383
383
  null,
384
384
  -1
385
385
  /* HOISTED */
386
- ), h6 = /* @__PURE__ */ d(
386
+ ), p6 = /* @__PURE__ */ d(
387
387
  "path",
388
388
  {
389
389
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -393,10 +393,10 @@ const C = (e, t) => {
393
393
  null,
394
394
  -1
395
395
  /* HOISTED */
396
- ), f6 = [
397
- p6,
398
- h6
399
- ], v6 = {
396
+ ), h6 = [
397
+ v6,
398
+ p6
399
+ ], f6 = {
400
400
  key: 5,
401
401
  t: "1686300195363",
402
402
  class: "icon",
@@ -406,7 +406,7 @@ const C = (e, t) => {
406
406
  "p-id": "8602",
407
407
  width: "200",
408
408
  height: "200"
409
- }, m6 = /* @__PURE__ */ d(
409
+ }, g6 = /* @__PURE__ */ d(
410
410
  "path",
411
411
  {
412
412
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",
@@ -416,7 +416,7 @@ const C = (e, t) => {
416
416
  null,
417
417
  -1
418
418
  /* HOISTED */
419
- ), g6 = /* @__PURE__ */ d(
419
+ ), A6 = /* @__PURE__ */ d(
420
420
  "path",
421
421
  {
422
422
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -426,10 +426,10 @@ const C = (e, t) => {
426
426
  null,
427
427
  -1
428
428
  /* HOISTED */
429
- ), A6 = [
430
- m6,
431
- g6
432
- ], y6 = {
429
+ ), m6 = [
430
+ g6,
431
+ A6
432
+ ], _6 = {
433
433
  key: 6,
434
434
  t: "1686300209288",
435
435
  class: "icon",
@@ -439,7 +439,7 @@ const C = (e, t) => {
439
439
  "p-id": "8757",
440
440
  width: "200",
441
441
  height: "200"
442
- }, w6 = /* @__PURE__ */ d(
442
+ }, y6 = /* @__PURE__ */ d(
443
443
  "path",
444
444
  {
445
445
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",
@@ -449,7 +449,7 @@ const C = (e, t) => {
449
449
  null,
450
450
  -1
451
451
  /* HOISTED */
452
- ), _6 = /* @__PURE__ */ d(
452
+ ), w6 = /* @__PURE__ */ d(
453
453
  "path",
454
454
  {
455
455
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -460,9 +460,9 @@ const C = (e, t) => {
460
460
  -1
461
461
  /* HOISTED */
462
462
  ), k6 = [
463
- w6,
464
- _6
465
- ], z6 = {
463
+ y6,
464
+ w6
465
+ ], b6 = {
466
466
  key: 7,
467
467
  t: "1686300225262",
468
468
  class: "icon",
@@ -472,7 +472,7 @@ const C = (e, t) => {
472
472
  "p-id": "8912",
473
473
  width: "200",
474
474
  height: "200"
475
- }, b6 = /* @__PURE__ */ d(
475
+ }, z6 = /* @__PURE__ */ d(
476
476
  "path",
477
477
  {
478
478
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",
@@ -482,7 +482,7 @@ const C = (e, t) => {
482
482
  null,
483
483
  -1
484
484
  /* HOISTED */
485
- ), F6 = /* @__PURE__ */ d(
485
+ ), x6 = /* @__PURE__ */ d(
486
486
  "path",
487
487
  {
488
488
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -492,10 +492,10 @@ const C = (e, t) => {
492
492
  null,
493
493
  -1
494
494
  /* HOISTED */
495
- ), C6 = [
496
- b6,
497
- F6
498
- ], x6 = {
495
+ ), F6 = [
496
+ z6,
497
+ x6
498
+ ], C6 = {
499
499
  key: 8,
500
500
  t: "1692251753690",
501
501
  class: "icon",
@@ -685,7 +685,7 @@ const C = (e, t) => {
685
685
  P6,
686
686
  W6,
687
687
  N6
688
- ], v3 = /* @__PURE__ */ x({
688
+ ], f3 = /* @__PURE__ */ C({
689
689
  __name: "FileIcon",
690
690
  props: {
691
691
  type: {
@@ -706,24 +706,24 @@ const C = (e, t) => {
706
706
  }
707
707
  },
708
708
  setup(e) {
709
- const t = e, o = V(() => t.file ? C(t.file, t.fields) : t.type);
710
- return (c, n) => o.value === "image" ? (i(), h("svg", Z3, X3)) : o.value === "zip" ? (i(), h("svg", Y3, n6)) : o.value === "ppt" ? (i(), h("svg", o6, l6)) : o.value === "word" ? (i(), h("svg", a6, d6)) : o.value === "pdf" ? (i(), h("svg", u6, f6)) : o.value === "txt" ? (i(), h("svg", v6, A6)) : o.value === "audio" ? (i(), h("svg", y6, k6)) : o.value === "video" ? (i(), h("svg", z6, C6)) : o.value === "excel" ? (i(), h("svg", x6, D6)) : o.value === "exe" ? (i(), h("svg", V6, H6)) : o.value === "json" ? (i(), h("svg", U6, T6)) : (i(), h("svg", j6, Z6));
709
+ const n = e, o = D(() => n.file ? F(n.file, n.fields) : n.type);
710
+ return (t, a) => o.value === "image" ? (s(), p("svg", Z3, X3)) : o.value === "zip" ? (s(), p("svg", Y3, n6)) : o.value === "ppt" ? (s(), p("svg", o6, l6)) : o.value === "word" ? (s(), p("svg", a6, u6)) : o.value === "pdf" ? (s(), p("svg", d6, h6)) : o.value === "txt" ? (s(), p("svg", f6, m6)) : o.value === "audio" ? (s(), p("svg", _6, k6)) : o.value === "video" ? (s(), p("svg", b6, F6)) : o.value === "excel" ? (s(), p("svg", C6, D6)) : o.value === "exe" ? (s(), p("svg", V6, H6)) : o.value === "json" ? (s(), p("svg", U6, T6)) : (s(), p("svg", j6, Z6));
711
711
  }
712
- }), Y = (e, t) => {
712
+ }), Y = (e, n) => {
713
713
  const o = e.__vccOpts || e;
714
- for (const [c, n] of t)
715
- o[c] = n;
714
+ for (const [t, a] of n)
715
+ o[t] = a;
716
716
  return o;
717
- }, i3 = (e) => e % 1 === 0 ? e.toString() : e.toFixed(2), a3 = (e, t) => t ? t.startsWith("http") ? t : `${e || location.origin}${t}` : "", Q6 = (e) => {
718
- const t = W("loadUrl"), o = V(() => e.loadUrl || (t == null ? void 0 : t.value)), c = W("uploadUrl"), n = V(() => e.action || e.uploadUrl || (c == null ? void 0 : c.value)), s = W("token"), a = V(() => e.token || (s == null ? void 0 : s.value)), g = W("onlyofficeConfig"), _ = V(() => e.onlyofficeConfig || (g == null ? void 0 : g.value)), u = W("userInfo"), m = V(() => e.userInfo || (u == null ? void 0 : u.value));
717
+ }, i3 = (e) => e % 1 === 0 ? e.toString() : e.toFixed(2), a3 = (e, n) => n ? n.startsWith("http") ? n : `${e || location.origin}${n}` : "", Q6 = (e) => {
718
+ const n = T("loadUrl"), o = D(() => e.loadUrl || (n == null ? void 0 : n.value)), t = T("uploadUrl"), a = D(() => e.action || e.uploadUrl || (t == null ? void 0 : t.value)), c = T("token"), i = D(() => e.token || (c == null ? void 0 : c.value)), f = T("onlyofficeConfig"), w = D(() => e.onlyofficeConfig || (f == null ? void 0 : f.value)), r = T("userInfo"), A = D(() => e.userInfo || (r == null ? void 0 : r.value));
719
719
  return {
720
720
  cLoadUrl: o,
721
- cUploadUrl: n,
722
- cToken: a,
723
- cOnlyofficeConfig: _,
724
- cUserInfo: m
721
+ cUploadUrl: a,
722
+ cToken: i,
723
+ cOnlyofficeConfig: w,
724
+ cUserInfo: A
725
725
  };
726
- }, J6 = Q6, K6 = /* @__PURE__ */ x({
726
+ }, J6 = Q6, K6 = /* @__PURE__ */ C({
727
727
  __name: "IkPreviewFileDialog",
728
728
  props: /* @__PURE__ */ G({
729
729
  file: {
@@ -760,34 +760,34 @@ const C = (e, t) => {
760
760
  }),
761
761
  emits: ["update:show"],
762
762
  setup(e) {
763
- const t = e, o = c3(e, "show"), c = V(() => ({
763
+ const n = e, o = c3(e, "show"), t = D(() => ({
764
764
  name: "name",
765
765
  url: "url",
766
766
  suffix: "suffix",
767
767
  size: "fileSize",
768
- ...t.field
769
- })), n = M(null), s = M(null), a = _3({
768
+ ...n.field
769
+ })), a = M(null), c = M(null), i = w3({
770
770
  image: !1,
771
771
  office: !1,
772
772
  video: !1
773
- }), g = (u) => {
774
- var m, F, D, $, B, T, j;
773
+ }), f = (r) => {
774
+ var A, x, V, $, B, j, P;
775
775
  try {
776
- const k = ((m = u == null ? void 0 : u.response) == null ? void 0 : m.data) || u, Z = k[c.value.url] || (k == null ? void 0 : k.id) || k.attachmentId, L = (F = k[c.value.suffix] || k.attachmentSuffix) == null ? void 0 : F.toLowerCase(), Q = k[c.value.name] || (k == null ? void 0 : k.attachmentName) || (k == null ? void 0 : k.originName);
777
- if (s.value = {
778
- ...u,
779
- name: u[c.value.name],
780
- url: a3(t.loadUrl, Z)
781
- }, u && C(u, c.value) === "image") {
782
- a.image = !0;
776
+ const k = ((A = r == null ? void 0 : r.response) == null ? void 0 : A.data) || r, Z = k[t.value.url] || (k == null ? void 0 : k.id) || k.attachmentId, L = (x = k[t.value.suffix] || k.attachmentSuffix) == null ? void 0 : x.toLowerCase(), Q = k[t.value.name] || (k == null ? void 0 : k.attachmentName) || (k == null ? void 0 : k.originName);
777
+ if (c.value = {
778
+ ...r,
779
+ name: r[t.value.name],
780
+ url: a3(n.loadUrl, Z)
781
+ }, r && F(r, t.value) === "image") {
782
+ i.image = !0;
783
783
  return;
784
- } else if ((((D = t.onlyOfficeConfig) == null ? void 0 : D.accept) || t.onlyOfficeAccept).includes(L)) {
785
- a.office = !0, n.value = {
786
- ...t.onlyOfficeConfig,
784
+ } else if ((((V = n.onlyOfficeConfig) == null ? void 0 : V.accept) || n.onlyOfficeAccept).includes(L)) {
785
+ i.office = !0, a.value = {
786
+ ...n.onlyOfficeConfig,
787
787
  editorConfig: {
788
- ...(($ = t.onlyOfficeConfig) == null ? void 0 : $.editorConfig) || {},
788
+ ...(($ = n.onlyOfficeConfig) == null ? void 0 : $.editorConfig) || {},
789
789
  customization: {
790
- ...((T = (B = t.onlyOfficeConfig) == null ? void 0 : B.editorConfig) == null ? void 0 : T.customization) || {},
790
+ ...((j = (B = n.onlyOfficeConfig) == null ? void 0 : B.editorConfig) == null ? void 0 : j.customization) || {},
791
791
  review: {
792
792
  reviewDisplay: "final"
793
793
  }
@@ -796,9 +796,9 @@ const C = (e, t) => {
796
796
  document: {
797
797
  key: S3(),
798
798
  title: Q,
799
- url: a3(t.loadUrl, Z),
799
+ url: a3(n.loadUrl, Z),
800
800
  fileType: L,
801
- ...((j = t.onlyOfficeConfig) == null ? void 0 : j.document) || {}
801
+ ...((P = n.onlyOfficeConfig) == null ? void 0 : P.document) || {}
802
802
  },
803
803
  documentType: N3(L)
804
804
  };
@@ -808,33 +808,33 @@ const C = (e, t) => {
808
808
  console.info("预览错误: ", k);
809
809
  }
810
810
  };
811
- k3([o, t.file], ([u, m]) => {
812
- u && s3(() => {
813
- g(t.file);
811
+ k3([o, n.file], ([r, A]) => {
812
+ r && s3(() => {
813
+ f(n.file);
814
814
  });
815
815
  });
816
- const _ = () => {
817
- o.value = !1, a.office = !1, a.image = !1, a.video = !1;
816
+ const w = () => {
817
+ o.value = !1, i.office = !1, i.image = !1, i.video = !1;
818
818
  };
819
- return (u, m) => {
820
- var D, $;
821
- const F = X("el-image-viewer");
822
- return o.value ? (i(), h(
819
+ return (r, A) => {
820
+ var V, $;
821
+ const x = X("el-image-viewer");
822
+ return o.value ? (s(), p(
823
823
  U,
824
824
  { key: 0 },
825
825
  [
826
- (D = s.value) != null && D.url && a.image ? (i(), b(F, {
826
+ (V = c.value) != null && V.url && i.image ? (s(), z(x, {
827
827
  key: 0,
828
- onClose: m[0] || (m[0] = (B) => {
829
- s.value = null, a.image = !1;
828
+ onClose: A[0] || (A[0] = (B) => {
829
+ c.value = null, i.image = !1;
830
830
  }),
831
831
  ref: "previewImgRef",
832
- "url-list": [($ = s.value) == null ? void 0 : $.url]
833
- }, null, 8, ["url-list"])) : z("v-if", !0),
834
- z(" 文档类 "),
835
- A(r(pe), {
836
- modelValue: a.office,
837
- "onUpdate:modelValue": m[1] || (m[1] = (B) => a.office = B),
832
+ "url-list": [($ = c.value) == null ? void 0 : $.url]
833
+ }, null, 8, ["url-list"])) : b("v-if", !0),
834
+ b(" 文档类 "),
835
+ m(u(ve), {
836
+ modelValue: i.office,
837
+ "onUpdate:modelValue": A[1] || (A[1] = (B) => i.office = B),
838
838
  draggable: "",
839
839
  "no-footer": "",
840
840
  "no-header": "",
@@ -844,14 +844,14 @@ const C = (e, t) => {
844
844
  "close-on-click-modal": "",
845
845
  "close-on-press-escape": !1,
846
846
  "append-to-body": "",
847
- onClose: _,
847
+ onClose: w,
848
848
  "modal-class": "ik-only-preview-dialog"
849
849
  }, {
850
- default: y(() => {
850
+ default: _(() => {
851
851
  var B;
852
852
  return [
853
- A(r(we), {
854
- "config-options": n.value,
853
+ m(u(ye), {
854
+ "config-options": a.value,
855
855
  "document-server-url": ((B = e.onlyOfficeConfig) == null ? void 0 : B.serverUrl) || e.onlyofficeServer
856
856
  }, null, 8, ["config-options", "document-server-url"])
857
857
  ];
@@ -862,7 +862,7 @@ const C = (e, t) => {
862
862
  ],
863
863
  64
864
864
  /* STABLE_FRAGMENT */
865
- )) : z("v-if", !0);
865
+ )) : b("v-if", !0);
866
866
  };
867
867
  }
868
868
  });
@@ -877,7 +877,7 @@ const G6 = N(K6), X6 = {
877
877
  key: 1,
878
878
  class: "h-[1em] w-[1em]",
879
879
  "aria-hidden": "true"
880
- }, oe = ["xlink:href"], ie = ["src"], se = /* @__PURE__ */ x({
880
+ }, oe = ["xlink:href"], ie = ["src"], se = /* @__PURE__ */ C({
881
881
  name: "IkSvgIcon",
882
882
  __name: "index",
883
883
  props: {
@@ -904,83 +904,86 @@ const G6 = N(K6), X6 = {
904
904
  tableIconType: { default: "icon" }
905
905
  },
906
906
  setup(e) {
907
- const t = e, o = V(() => {
908
- var n, s, a;
909
- return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (n = t.name) != null && n.startsWith("iksig") ? "iksig" : (s = t.name) != null && s.includes(":") ? "iconify" : (a = t.name) != null && a.startsWith("iksvg") ? "svg" : "i";
910
- }), c = V(() => {
911
- const n = [];
912
- if (t.flip)
913
- switch (t.flip) {
907
+ const n = e, o = T("iconConfig"), t = D(() => ({
908
+ ...(o == null ? void 0 : o.value) || {},
909
+ ...n
910
+ })), a = D(() => {
911
+ const { name: i } = t.value;
912
+ return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
913
+ }), c = D(() => {
914
+ const i = [];
915
+ if (t.value.flip)
916
+ switch (t.value.flip) {
914
917
  case "horizontal":
915
- n.push("rotateY(180deg)");
918
+ i.push("rotateY(180deg)");
916
919
  break;
917
920
  case "vertical":
918
- n.push("rotateX(180deg)");
921
+ i.push("rotateX(180deg)");
919
922
  break;
920
923
  case "both":
921
- n.push("rotateX(180deg)"), n.push("rotateY(180deg)");
924
+ i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
922
925
  break;
923
926
  }
924
- t.rotate && n.push(`rotate(${t.rotate % 360}deg)`);
925
- const s = {
926
- ...t.color && { color: t.color },
927
- ...t.size && { fontSize: typeof t.size == "number" ? `${t.size}px` : t.size },
928
- ...n.length && { transform: n.join(" ") },
929
- padding: t.showBg || t.bg ? t.padding : 0,
930
- ...t.color && o.value !== "iksig" ? {
931
- "--ik-color-icon-dark": t.color,
932
- "--ik-color-icon-light": t.colorLight || D3.setOpacity(t.color, t.opacity)
927
+ t.value.rotate && i.push(`rotate(${t.value.rotate % 360}deg)`);
928
+ const f = {
929
+ ...t.value.color && { color: t.value.color },
930
+ ...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
931
+ ...i.length && { transform: i.join(" ") },
932
+ padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
933
+ ...t.value.color && a.value !== "iksig" ? {
934
+ "--ik-color-icon-dark": t.value.color,
935
+ "--ik-color-icon-light": t.value.colorLight || D3.setOpacity(t.value.color, t.value.opacity)
933
936
  } : {}
934
937
  };
935
- return t.width && (s.width = s.height = typeof t.width == "number" ? `${t.width}px` : t.width), s;
938
+ return t.value.width && (f.width = f.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), f;
936
939
  });
937
- return (n, s) => {
938
- const a = X("el-tooltip"), g = X("el-button");
939
- return n.tableIconType === "icon" ? (i(), h("span", X6, [
940
- n.notip || !n.title ? (i(), h(
940
+ return (i, f) => {
941
+ const w = X("el-tooltip"), r = X("el-button");
942
+ return t.value.tableIconType === "icon" ? (s(), p("span", X6, [
943
+ t.value.notip || !t.value.title ? (s(), p(
941
944
  "i",
942
945
  {
943
946
  key: 0,
944
947
  class: R(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
945
- [n.name]: o.value === "unocss",
946
- "show-bg": n.showBg || n.bg,
947
- default: n.size === "default",
948
- small: n.size === "small",
949
- big: n.size === "big",
950
- warning: n.warning || t.type === "warning",
951
- primary: n.primary || t.type === "primary",
952
- success: n.success || t.type === "success",
953
- error: n.error || t.type === "error",
954
- active: n.active,
955
- disabled: n.disabled
948
+ [i.name]: a.value === "unocss",
949
+ "show-bg": t.value.showBg || t.value.bg,
950
+ default: t.value.size === "default",
951
+ small: t.value.size === "small",
952
+ big: t.value.size === "big",
953
+ warning: t.value.warning || t.value.type === "warning",
954
+ primary: t.value.primary || t.value.type === "primary",
955
+ success: i.success || t.value.type === "success",
956
+ error: t.value.error || t.value.type === "error",
957
+ active: t.value.active,
958
+ disabled: t.value.disabled
956
959
  }]),
957
960
  style: O(c.value)
958
961
  },
959
962
  [
960
- z(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
961
- o.value === "iksig" ? (i(), h(
963
+ b(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
964
+ a.value === "iksig" ? (s(), p(
962
965
  "i",
963
966
  {
964
967
  key: 0,
965
- class: R(`iksig ${n.name}`),
968
+ class: R(`iksig ${t.value.name}`),
966
969
  style: O(c.value)
967
970
  },
968
971
  null,
969
972
  6
970
973
  /* CLASS, STYLE */
971
- )) : o.value === "svg" ? (i(), h("svg", Y6, [
974
+ )) : a.value === "svg" ? (s(), p("svg", Y6, [
972
975
  d("use", {
973
- "xlink:href": `#${n.name}`
976
+ "xlink:href": `#${t.value.name}`
974
977
  }, null, 8, ee)
975
- ])) : o.value === "img" ? (i(), h("img", {
978
+ ])) : a.value === "img" ? (s(), p("img", {
976
979
  key: 2,
977
- src: n.name,
980
+ src: t.value.name,
978
981
  class: "h-[1em] w-[1em]"
979
- }, null, 8, te)) : (i(), h(
982
+ }, null, 8, te)) : (s(), p(
980
983
  "i",
981
984
  {
982
985
  key: 3,
983
- class: R(n.name),
986
+ class: R(t.value.name),
984
987
  style: O(c.value)
985
988
  },
986
989
  null,
@@ -990,53 +993,53 @@ const G6 = N(K6), X6 = {
990
993
  ],
991
994
  6
992
995
  /* CLASS, STYLE */
993
- )) : (i(), b(a, {
996
+ )) : (s(), z(w, {
994
997
  key: 1,
995
- content: n.title,
998
+ content: t.value.title,
996
999
  placement: "top"
997
1000
  }, {
998
- default: y(() => [
1001
+ default: _(() => [
999
1002
  d(
1000
1003
  "i",
1001
1004
  {
1002
1005
  class: R(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1003
- [n.name]: o.value === "unocss",
1004
- "show-bg": n.showBg || n.bg,
1005
- default: n.size === "default",
1006
- small: n.size === "small",
1007
- big: n.size === "big",
1008
- warning: n.warning || t.type === "warning",
1009
- primary: n.primary || t.type === "primary",
1010
- success: n.success || t.type === "success",
1011
- error: n.error || t.type === "error",
1012
- active: n.active
1006
+ [i.name]: a.value === "unocss",
1007
+ "show-bg": t.value.showBg || t.value.bg,
1008
+ default: t.value.size === "default",
1009
+ small: t.value.size === "small",
1010
+ big: t.value.size === "big",
1011
+ warning: t.value.warning || t.value.type === "warning",
1012
+ primary: i.primary || t.value.type === "primary",
1013
+ success: i.success || t.value.type === "success",
1014
+ error: t.value.error || t.value.type === "error",
1015
+ active: t.value.active
1013
1016
  }]),
1014
1017
  style: O(c.value)
1015
1018
  },
1016
1019
  [
1017
- o.value === "iksig" ? (i(), h(
1020
+ a.value === "iksig" ? (s(), p(
1018
1021
  "i",
1019
1022
  {
1020
1023
  key: 0,
1021
- class: R(`iksig ${n.name}`),
1024
+ class: R(`iksig ${t.value.name}`),
1022
1025
  style: O(c.value)
1023
1026
  },
1024
1027
  null,
1025
1028
  6
1026
1029
  /* CLASS, STYLE */
1027
- )) : o.value === "svg" ? (i(), h("svg", ne, [
1030
+ )) : a.value === "svg" ? (s(), p("svg", ne, [
1028
1031
  d("use", {
1029
- "xlink:href": `#${n.name}`
1032
+ "xlink:href": `#${t.value.name}`
1030
1033
  }, null, 8, oe)
1031
- ])) : o.value === "img" ? (i(), h("img", {
1034
+ ])) : a.value === "img" ? (s(), p("img", {
1032
1035
  key: 2,
1033
- src: n.name,
1036
+ src: t.value.name,
1034
1037
  class: "h-[1em] w-[1em]"
1035
- }, null, 8, ie)) : (i(), h(
1038
+ }, null, 8, ie)) : (s(), p(
1036
1039
  "i",
1037
1040
  {
1038
1041
  key: 3,
1039
- class: R(n.name),
1042
+ class: R(t.value.name),
1040
1043
  style: O(c.value)
1041
1044
  },
1042
1045
  null,
@@ -1051,13 +1054,13 @@ const G6 = N(K6), X6 = {
1051
1054
  _: 1
1052
1055
  /* STABLE */
1053
1056
  }, 8, ["content"]))
1054
- ])) : (i(), b(g, {
1057
+ ])) : (s(), z(r, {
1055
1058
  key: 1,
1056
- type: ["warning", "error"].includes(n.type) ? "danger" : ""
1059
+ type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
1057
1060
  }, {
1058
- default: y(() => [
1061
+ default: _(() => [
1059
1062
  q(
1060
- I(n.title),
1063
+ I(t.value.title),
1061
1064
  1
1062
1065
  /* TEXT */
1063
1066
  )
@@ -1068,10 +1071,10 @@ const G6 = N(K6), X6 = {
1068
1071
  };
1069
1072
  }
1070
1073
  });
1071
- const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-7d95dbf5"]]), S = N(le), ae = {
1074
+ const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-1be337e4"]]), S = N(le), ae = {
1072
1075
  key: 0,
1073
1076
  class: "exit-main-page-maximize"
1074
- }, ce = /* @__PURE__ */ x({
1077
+ }, ce = /* @__PURE__ */ C({
1075
1078
  __name: "CloseIcon",
1076
1079
  props: {
1077
1080
  showBg: {
@@ -1084,15 +1087,15 @@ const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-7d95dbf5"]]), S = N(le),
1084
1087
  }
1085
1088
  },
1086
1089
  setup(e) {
1087
- return (t, o) => (i(), h("div", null, [
1088
- e.showBg && e.fullscreen ? (i(), h("div", ae, [
1089
- A(r(S), {
1090
+ return (n, o) => (s(), p("div", null, [
1091
+ e.showBg && e.fullscreen ? (s(), p("div", ae, [
1092
+ m(u(S), {
1090
1093
  name: "iksvg_guanbidanchuang",
1091
1094
  title: "关闭",
1092
1095
  size: 20,
1093
1096
  error: ""
1094
1097
  })
1095
- ])) : (i(), b(r(S), {
1098
+ ])) : (s(), z(u(S), {
1096
1099
  key: 1,
1097
1100
  error: "",
1098
1101
  name: "iksvg_guanbidanchuang",
@@ -1102,7 +1105,7 @@ const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-7d95dbf5"]]), S = N(le),
1102
1105
  ]));
1103
1106
  }
1104
1107
  });
1105
- const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]), de = { class: "base-header" }, ue = /* @__PURE__ */ x({
1108
+ const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]), ue = { class: "base-header" }, de = /* @__PURE__ */ C({
1106
1109
  __name: "IkBaseDialog",
1107
1110
  props: /* @__PURE__ */ G({
1108
1111
  title: { default: "" },
@@ -1123,64 +1126,64 @@ const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]), de = { cla
1123
1126
  }),
1124
1127
  emits: ["update:modelValue"],
1125
1128
  setup(e) {
1126
- const t = e, o = c3(e, "modelValue"), c = M(t.fullscreen), n = () => {
1127
- c.value = !c.value;
1128
- }, s = x({
1129
+ const n = e, o = c3(e, "modelValue"), t = M(n.fullscreen), a = () => {
1130
+ t.value = !t.value;
1131
+ }, c = C({
1129
1132
  setup() {
1130
- return () => z3(re, {
1131
- showBg: t.showCloseBg,
1132
- fullscreen: t.fullscreen
1133
+ return () => b3(re, {
1134
+ showBg: n.showCloseBg,
1135
+ fullscreen: n.fullscreen
1133
1136
  });
1134
1137
  }
1135
1138
  });
1136
- return (a, g) => {
1137
- const _ = X("el-dialog");
1138
- return i(), b(_, l3({
1139
+ return (i, f) => {
1140
+ const w = X("el-dialog");
1141
+ return s(), z(w, l3({
1139
1142
  modelValue: o.value,
1140
- "onUpdate:modelValue": g[0] || (g[0] = (u) => o.value = u)
1141
- }, a.$attrs, {
1142
- "close-icon": r(s),
1143
- class: `ik-base-dialog ${a.noHeader ? "no-header" : ""} ${a.noFooter ? "no-footer" : ""}`,
1144
- fullscreen: c.value,
1143
+ "onUpdate:modelValue": f[0] || (f[0] = (r) => o.value = r)
1144
+ }, i.$attrs, {
1145
+ "close-icon": u(c),
1146
+ class: `ik-base-dialog ${i.noHeader ? "no-header" : ""} ${i.noFooter ? "no-footer" : ""}`,
1147
+ fullscreen: t.value,
1145
1148
  "modal-class": "baseDialog"
1146
- }), g3({
1147
- icon: y(() => [
1148
- E(a.$slots, "title", {}, () => [
1149
+ }), A3({
1150
+ icon: _(() => [
1151
+ E(i.$slots, "title", {}, () => [
1149
1152
  q(
1150
- I(a.title),
1153
+ I(i.title),
1151
1154
  1
1152
1155
  /* TEXT */
1153
1156
  )
1154
1157
  ])
1155
1158
  ]),
1156
- header: y(() => [
1157
- d("div", de, [
1158
- E(a.$slots, "header", {}, () => [
1159
+ header: _(() => [
1160
+ d("div", ue, [
1161
+ E(i.$slots, "header", {}, () => [
1159
1162
  q(
1160
- I(a.title),
1163
+ I(i.title),
1161
1164
  1
1162
1165
  /* TEXT */
1163
1166
  )
1164
1167
  ])
1165
1168
  ]),
1166
- a.$attrs.showClose ? (i(), b(r(S), {
1169
+ i.$attrs.showClose ? (s(), z(u(S), {
1167
1170
  key: 0,
1168
- onClick: n,
1169
- name: c.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1171
+ onClick: a,
1172
+ name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1170
1173
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1171
- title: c.value ? "退出全屏" : "全屏"
1172
- }, null, 8, ["name", "title"])) : z("v-if", !0)
1174
+ title: t.value ? "退出全屏" : "全屏"
1175
+ }, null, 8, ["name", "title"])) : b("v-if", !0)
1173
1176
  ]),
1174
- default: y(() => [
1175
- E(a.$slots, "default")
1177
+ default: _(() => [
1178
+ E(i.$slots, "default")
1176
1179
  ]),
1177
1180
  _: 2
1178
1181
  /* DYNAMIC */
1179
1182
  }, [
1180
- a.$slots.footer ? {
1183
+ i.$slots.footer ? {
1181
1184
  name: "footer",
1182
- fn: y(() => [
1183
- E(a.$slots, "footer")
1185
+ fn: _(() => [
1186
+ E(i.$slots, "footer")
1184
1187
  ]),
1185
1188
  key: "0"
1186
1189
  } : void 0
@@ -1188,135 +1191,135 @@ const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]), de = { cla
1188
1191
  };
1189
1192
  }
1190
1193
  });
1191
- const pe = N(ue);
1192
- function he(e, t, o, c) {
1193
- function n(s) {
1194
- return s instanceof o ? s : new o(function(a) {
1195
- a(s);
1194
+ const ve = N(de);
1195
+ function pe(e, n, o, t) {
1196
+ function a(c) {
1197
+ return c instanceof o ? c : new o(function(i) {
1198
+ i(c);
1196
1199
  });
1197
1200
  }
1198
- return new (o || (o = Promise))(function(s, a) {
1199
- function g(m) {
1201
+ return new (o || (o = Promise))(function(c, i) {
1202
+ function f(A) {
1200
1203
  try {
1201
- u(c.next(m));
1202
- } catch (F) {
1203
- a(F);
1204
+ r(t.next(A));
1205
+ } catch (x) {
1206
+ i(x);
1204
1207
  }
1205
1208
  }
1206
- function _(m) {
1209
+ function w(A) {
1207
1210
  try {
1208
- u(c.throw(m));
1209
- } catch (F) {
1210
- a(F);
1211
+ r(t.throw(A));
1212
+ } catch (x) {
1213
+ i(x);
1211
1214
  }
1212
1215
  }
1213
- function u(m) {
1214
- m.done ? s(m.value) : n(m.value).then(g, _);
1216
+ function r(A) {
1217
+ A.done ? c(A.value) : a(A.value).then(f, w);
1215
1218
  }
1216
- u((c = c.apply(e, t || [])).next());
1219
+ r((t = t.apply(e, n || [])).next());
1217
1220
  });
1218
1221
  }
1219
- function fe(e, t) {
1222
+ function he(e, n) {
1220
1223
  var o = { label: 0, sent: function() {
1221
- if (s[0] & 1)
1222
- throw s[1];
1223
- return s[1];
1224
- }, trys: [], ops: [] }, c, n, s, a;
1225
- return a = { next: g(0), throw: g(1), return: g(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
1224
+ if (c[0] & 1)
1225
+ throw c[1];
1226
+ return c[1];
1227
+ }, trys: [], ops: [] }, t, a, c, i;
1228
+ return i = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
1226
1229
  return this;
1227
- }), a;
1228
- function g(u) {
1229
- return function(m) {
1230
- return _([u, m]);
1230
+ }), i;
1231
+ function f(r) {
1232
+ return function(A) {
1233
+ return w([r, A]);
1231
1234
  };
1232
1235
  }
1233
- function _(u) {
1234
- if (c)
1236
+ function w(r) {
1237
+ if (t)
1235
1238
  throw new TypeError("Generator is already executing.");
1236
- for (; a && (a = 0, u[0] && (o = 0)), o; )
1239
+ for (; i && (i = 0, r[0] && (o = 0)), o; )
1237
1240
  try {
1238
- if (c = 1, n && (s = u[0] & 2 ? n.return : u[0] ? n.throw || ((s = n.return) && s.call(n), 0) : n.next) && !(s = s.call(n, u[1])).done)
1239
- return s;
1240
- switch (n = 0, s && (u = [u[0] & 2, s.value]), u[0]) {
1241
+ if (t = 1, a && (c = r[0] & 2 ? a.return : r[0] ? a.throw || ((c = a.return) && c.call(a), 0) : a.next) && !(c = c.call(a, r[1])).done)
1242
+ return c;
1243
+ switch (a = 0, c && (r = [r[0] & 2, c.value]), r[0]) {
1241
1244
  case 0:
1242
1245
  case 1:
1243
- s = u;
1246
+ c = r;
1244
1247
  break;
1245
1248
  case 4:
1246
- return o.label++, { value: u[1], done: !1 };
1249
+ return o.label++, { value: r[1], done: !1 };
1247
1250
  case 5:
1248
- o.label++, n = u[1], u = [0];
1251
+ o.label++, a = r[1], r = [0];
1249
1252
  continue;
1250
1253
  case 7:
1251
- u = o.ops.pop(), o.trys.pop();
1254
+ r = o.ops.pop(), o.trys.pop();
1252
1255
  continue;
1253
1256
  default:
1254
- if (s = o.trys, !(s = s.length > 0 && s[s.length - 1]) && (u[0] === 6 || u[0] === 2)) {
1257
+ if (c = o.trys, !(c = c.length > 0 && c[c.length - 1]) && (r[0] === 6 || r[0] === 2)) {
1255
1258
  o = 0;
1256
1259
  continue;
1257
1260
  }
1258
- if (u[0] === 3 && (!s || u[1] > s[0] && u[1] < s[3])) {
1259
- o.label = u[1];
1261
+ if (r[0] === 3 && (!c || r[1] > c[0] && r[1] < c[3])) {
1262
+ o.label = r[1];
1260
1263
  break;
1261
1264
  }
1262
- if (u[0] === 6 && o.label < s[1]) {
1263
- o.label = s[1], s = u;
1265
+ if (r[0] === 6 && o.label < c[1]) {
1266
+ o.label = c[1], c = r;
1264
1267
  break;
1265
1268
  }
1266
- if (s && o.label < s[2]) {
1267
- o.label = s[2], o.ops.push(u);
1269
+ if (c && o.label < c[2]) {
1270
+ o.label = c[2], o.ops.push(r);
1268
1271
  break;
1269
1272
  }
1270
- s[2] && o.ops.pop(), o.trys.pop();
1273
+ c[2] && o.ops.pop(), o.trys.pop();
1271
1274
  continue;
1272
1275
  }
1273
- u = t.call(e, o);
1274
- } catch (m) {
1275
- u = [6, m], n = 0;
1276
+ r = n.call(e, o);
1277
+ } catch (A) {
1278
+ r = [6, A], a = 0;
1276
1279
  } finally {
1277
- c = s = 0;
1280
+ t = c = 0;
1278
1281
  }
1279
- if (u[0] & 5)
1280
- throw u[1];
1281
- return { value: u[0] ? u[1] : void 0, done: !0 };
1282
+ if (r[0] & 5)
1283
+ throw r[1];
1284
+ return { value: r[0] ? r[1] : void 0, done: !0 };
1282
1285
  }
1283
1286
  }
1284
- var ve = function(e, t) {
1285
- return he(void 0, void 0, void 0, function() {
1286
- return fe(this, function(o) {
1287
- return [2, new Promise(function(c, n) {
1287
+ var fe = function(e, n) {
1288
+ return pe(void 0, void 0, void 0, function() {
1289
+ return he(this, function(o) {
1290
+ return [2, new Promise(function(t, a) {
1288
1291
  try {
1289
1292
  if (window.DocsAPI)
1290
- return c(null);
1291
- var s = document.getElementById(t);
1292
- if (s)
1293
- var a = setInterval(function() {
1294
- var _ = s.getAttribute("loading");
1295
- if (!_) {
1296
- if (clearInterval(a), window.DocsAPI)
1297
- return c(null);
1298
- var u = m3(t, e, c, n);
1299
- s.remove(), document.body.appendChild(u);
1293
+ return t(null);
1294
+ var c = document.getElementById(n);
1295
+ if (c)
1296
+ var i = setInterval(function() {
1297
+ var w = c.getAttribute("loading");
1298
+ if (!w) {
1299
+ if (clearInterval(i), window.DocsAPI)
1300
+ return t(null);
1301
+ var r = g3(n, e, t, a);
1302
+ c.remove(), document.body.appendChild(r);
1300
1303
  }
1301
1304
  }, 500);
1302
1305
  else {
1303
- var g = m3(t, e, c, n);
1304
- document.body.appendChild(g);
1306
+ var f = g3(n, e, t, a);
1307
+ document.body.appendChild(f);
1305
1308
  }
1306
- } catch (_) {
1307
- console.error(_);
1309
+ } catch (w) {
1310
+ console.error(w);
1308
1311
  }
1309
1312
  })];
1310
1313
  });
1311
1314
  });
1312
- }, m3 = function(e, t, o, c) {
1313
- var n = document.createElement("script");
1314
- return n.id = e, n.type = "text/javascript", n.src = t, n.async = !0, n.onload = function() {
1315
- n.removeAttribute("loading"), o(null);
1316
- }, n.onerror = function(s) {
1317
- n.removeAttribute("loading"), c(s);
1318
- }, n.setAttribute("loading", ""), n;
1319
- }, r3 = x({
1315
+ }, g3 = function(e, n, o, t) {
1316
+ var a = document.createElement("script");
1317
+ return a.id = e, a.type = "text/javascript", a.src = n, a.async = !0, a.onload = function() {
1318
+ a.removeAttribute("loading"), o(null);
1319
+ }, a.onerror = function(c) {
1320
+ a.removeAttribute("loading"), t(c);
1321
+ }, a.setAttribute("loading", ""), a;
1322
+ }, r3 = C({
1320
1323
  name: "DocumentEditor",
1321
1324
  props: {
1322
1325
  id: {
@@ -1368,59 +1371,59 @@ var ve = function(e, t) {
1368
1371
  events_onRequestSelectDocument: Function
1369
1372
  },
1370
1373
  mounted: function() {
1371
- var e = this, t = this.documentServerUrl;
1372
- t.endsWith("/") || (t += "/");
1373
- var o = "".concat(t, "web-apps/apps/api/documents/api.js");
1374
- ve(o, "onlyoffice-api-script").then(function() {
1374
+ var e = this, n = this.documentServerUrl;
1375
+ n.endsWith("/") || (n += "/");
1376
+ var o = "".concat(n, "web-apps/apps/api/documents/api.js");
1377
+ fe(o, "onlyoffice-api-script").then(function() {
1375
1378
  return e.onLoad();
1376
1379
  }).catch(function() {
1377
1380
  e.onError(-2);
1378
1381
  });
1379
1382
  },
1380
1383
  unmounted: function() {
1381
- var e, t = this.id || "";
1382
- !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[t] && (window.DocEditor.instances[t].destroyEditor(), window.DocEditor.instances[t] = void 0);
1384
+ var e, n = this.id || "";
1385
+ !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0);
1383
1386
  },
1384
1387
  watch: {
1385
1388
  config: {
1386
- handler: function(e, t) {
1389
+ handler: function(e, n) {
1387
1390
  this.onChangeProps();
1388
1391
  },
1389
1392
  deep: !0
1390
1393
  },
1391
- document_fileType: function(e, t) {
1394
+ document_fileType: function(e, n) {
1392
1395
  this.onChangeProps();
1393
1396
  },
1394
- document_title: function(e, t) {
1397
+ document_title: function(e, n) {
1395
1398
  this.onChangeProps();
1396
1399
  },
1397
- documentType: function(e, t) {
1400
+ documentType: function(e, n) {
1398
1401
  this.onChangeProps();
1399
1402
  },
1400
- editorConfig_lang: function(e, t) {
1403
+ editorConfig_lang: function(e, n) {
1401
1404
  this.onChangeProps();
1402
1405
  },
1403
- height: function(e, t) {
1406
+ height: function(e, n) {
1404
1407
  this.onChangeProps();
1405
1408
  },
1406
- type: function(e, t) {
1409
+ type: function(e, n) {
1407
1410
  this.onChangeProps();
1408
1411
  },
1409
- width: function(e, t) {
1412
+ width: function(e, n) {
1410
1413
  this.onChangeProps();
1411
1414
  }
1412
1415
  },
1413
1416
  methods: {
1414
1417
  onLoad: function() {
1415
- var e, t;
1418
+ var e, n;
1416
1419
  try {
1417
1420
  var o = this.id || "";
1418
1421
  if (window.DocsAPI || this.onError(-3), !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[o]) {
1419
1422
  console.log("Skip loading. Instance already exists", o);
1420
1423
  return;
1421
1424
  }
1422
- !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances || (window.DocEditor = { instances: {} });
1423
- var c = Object.assign({
1425
+ !((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances || (window.DocEditor = { instances: {} });
1426
+ var t = Object.assign({
1424
1427
  document: {
1425
1428
  fileType: this.document_fileType,
1426
1429
  title: this.document_title
@@ -1455,43 +1458,43 @@ var ve = function(e, t) {
1455
1458
  height: this.height,
1456
1459
  type: this.type,
1457
1460
  width: this.width
1458
- }, this.config || {}), n = window.DocsAPI.DocEditor(o, c);
1459
- window.DocEditor.instances[o] = n;
1460
- } catch (s) {
1461
- console.error(s), this.onError(-1);
1461
+ }, this.config || {}), a = window.DocsAPI.DocEditor(o, t);
1462
+ window.DocEditor.instances[o] = a;
1463
+ } catch (c) {
1464
+ console.error(c), this.onError(-1);
1462
1465
  }
1463
1466
  },
1464
1467
  onError: function(e) {
1465
- var t;
1468
+ var n;
1466
1469
  switch (e) {
1467
1470
  case -2:
1468
- t = "Error load DocsAPI from " + this.documentServerUrl;
1471
+ n = "Error load DocsAPI from " + this.documentServerUrl;
1469
1472
  break;
1470
1473
  case -3:
1471
- t = "DocsAPI is not defined";
1474
+ n = "DocsAPI is not defined";
1472
1475
  break;
1473
1476
  default:
1474
- t = "Unknown error loading component", e = -1;
1477
+ n = "Unknown error loading component", e = -1;
1475
1478
  }
1476
- typeof this.onLoadComponentError > "u" ? console.error(t) : this.onLoadComponentError(e, t);
1479
+ typeof this.onLoadComponentError > "u" ? console.error(n) : this.onLoadComponentError(e, n);
1477
1480
  },
1478
1481
  onAppReady: function() {
1479
1482
  var e = this.id || "";
1480
1483
  this.events_onAppReady(window.DocEditor.instances[e]);
1481
1484
  },
1482
1485
  onChangeProps: function() {
1483
- var e, t = this.id || "";
1484
- !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[t] && (window.DocEditor.instances[t].destroyEditor(), window.DocEditor.instances[t] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
1486
+ var e, n = this.id || "";
1487
+ !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.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());
1485
1488
  }
1486
1489
  }
1487
1490
  });
1488
- const me = ["id"];
1489
- function ge(e, t, o, c, n, s) {
1490
- return i(), h("div", { id: e.id }, null, 8, me);
1491
+ const ge = ["id"];
1492
+ function Ae(e, n, o, t, a, c) {
1493
+ return s(), p("div", { id: e.id }, null, 8, ge);
1491
1494
  }
1492
- r3.render = ge;
1495
+ r3.render = Ae;
1493
1496
  r3.__file = "src/components/DocumentEditor.vue";
1494
- const Ae = /* @__PURE__ */ x({
1497
+ const me = /* @__PURE__ */ C({
1495
1498
  __name: "IkOnlyOffice",
1496
1499
  props: {
1497
1500
  // 文件服务器的服务的地址
@@ -1512,26 +1515,26 @@ const Ae = /* @__PURE__ */ x({
1512
1515
  }
1513
1516
  },
1514
1517
  setup(e) {
1515
- const t = e, o = M({
1518
+ const n = e, o = M({
1516
1519
  width: "100%",
1517
1520
  height: "100%",
1518
- ...t.configOptions || {},
1519
- ...t.configOptions
1520
- }), c = () => {
1521
- console.info("文档加载完成", t.configOptions);
1521
+ ...n.configOptions || {},
1522
+ ...n.configOptions
1523
+ }), t = () => {
1524
+ console.info("文档加载完成", n.configOptions);
1522
1525
  };
1523
- return (n, s) => (i(), h(
1526
+ return (a, c) => (s(), p(
1524
1527
  "div",
1525
1528
  {
1526
- style: O({ height: t.officeHeight })
1529
+ style: O({ height: n.officeHeight })
1527
1530
  },
1528
1531
  [
1529
- A(r(r3), {
1532
+ m(u(r3), {
1530
1533
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1531
1534
  ref: "editorRef",
1532
1535
  "document-server-url": e.documentServerUrl,
1533
1536
  config: o.value,
1534
- events_onDocumentReady: c
1537
+ events_onDocumentReady: t
1535
1538
  }, null, 8, ["id", "document-server-url", "config"])
1536
1539
  ],
1537
1540
  4
@@ -1539,10 +1542,10 @@ const Ae = /* @__PURE__ */ x({
1539
1542
  ));
1540
1543
  }
1541
1544
  });
1542
- const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye), _e = (e) => (x3("data-v-91a04040"), e = e(), I3(), e), ke = { class: "ik-flie-list" }, ze = { class: "name" }, be = { key: 1 }, Fe = ["src"], Ce = { class: "file-icon" }, xe = { class: "file-name-loading" }, Ie = { class: "file-name" }, Be = { key: 0 }, Se = {
1545
+ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e), we = (e) => (C3("data-v-cbfa5eb9"), e = e(), I3(), e), ke = { class: "ik-flie-list" }, be = { class: "name" }, ze = { key: 1 }, xe = ["src"], Fe = { class: "file-icon" }, Ce = { class: "file-name-loading" }, Ie = { class: "file-name" }, Be = { key: 0 }, Se = {
1543
1546
  key: 0,
1544
1547
  class: "file-size"
1545
- }, De = { class: "name" }, Ve = { class: "file-name-loading" }, $e = { class: "file-name" }, Re = { class: "file-size" }, Me = { class: "operate-btn" }, Ee = { class: "card" }, He = { class: "title" }, Ue = /* @__PURE__ */ _e(() => /* @__PURE__ */ d(
1548
+ }, De = { class: "name" }, Ve = { class: "file-name-loading" }, $e = { class: "file-name" }, Re = { class: "file-size" }, Me = { class: "operate-btn" }, Ee = { class: "card" }, He = { class: "title" }, Ue = /* @__PURE__ */ we(() => /* @__PURE__ */ d(
1546
1549
  "img",
1547
1550
  {
1548
1551
  src: $3,
@@ -1554,7 +1557,7 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
1554
1557
  )), Oe = { class: "ik-flie-list" }, qe = { class: "name" }, Le = { key: 1 }, Te = ["src"], je = { class: "file-icon" }, Pe = { class: "file-name-loading" }, We = { class: "file-name" }, Ne = { key: 0 }, Ze = {
1555
1558
  key: 0,
1556
1559
  class: "file-size"
1557
- }, Qe = { key: 0 }, Je = /* @__PURE__ */ x({
1560
+ }, Qe = { key: 0 }, Je = /* @__PURE__ */ C({
1558
1561
  __name: "index",
1559
1562
  props: /* @__PURE__ */ G({
1560
1563
  // 显示图标
@@ -1697,8 +1700,8 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
1697
1700
  modelModifiers: {}
1698
1701
  }),
1699
1702
  emits: /* @__PURE__ */ G(["delete", "exceed", "success", "error", "outSize"], ["update:modelValue"]),
1700
- setup(e, { emit: t }) {
1701
- const o = e, c = t, n = c3(e, "modelValue"), a = {
1703
+ setup(e, { emit: n }) {
1704
+ const o = e, t = n, a = c3(e, "modelValue"), i = {
1702
1705
  ...{
1703
1706
  name: "name",
1704
1707
  url: "url",
@@ -1706,111 +1709,111 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
1706
1709
  size: "size"
1707
1710
  },
1708
1711
  ...o.defaultFileds
1709
- }, { cLoadUrl: g, cUploadUrl: _, cOnlyofficeConfig: u } = J6(o), m = V(() => o.size), F = M(null), D = M([]), $ = M({}), B = M(!1), T = (p) => {
1710
- const f = p.size / 1024 / 1024;
1711
- return f < m.value ? !0 : (c("outSize"), o3({
1712
- message: `上传文件大小(${f.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,
1712
+ }, { cLoadUrl: f, cUploadUrl: w, cOnlyofficeConfig: r } = J6(o), A = D(() => o.size), x = M(null), V = M([]), $ = M({}), B = M(!1), j = (v) => {
1713
+ const h = v.size / 1024 / 1024;
1714
+ return h < A.value ? !0 : (t("outSize"), o3({
1715
+ message: `上传文件大小(${h.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,
1713
1716
  type: "warning",
1714
1717
  showClose: !0,
1715
1718
  duration: 5e3
1716
1719
  }), !1);
1717
- }, j = (p, f) => {
1718
- var v;
1719
- p.size / 1024 / 1024 < m.value || s3(() => {
1720
- n.value.pop();
1721
- }), o.accept !== "*" && !o.accept.split(",").includes((v = p == null ? void 0 : p.raw) == null ? void 0 : v.type) && !o.accept.split(",").includes(`.${p.name.split(".").pop()}`) && (o3({
1722
- message: `不允许的上传文件格式(${p.name}),请重新选择`,
1720
+ }, P = (v, h) => {
1721
+ var g;
1722
+ v.size / 1024 / 1024 < A.value || s3(() => {
1723
+ a.value.pop();
1724
+ }), o.accept !== "*" && !o.accept.split(",").includes((g = v == null ? void 0 : v.raw) == null ? void 0 : g.type) && !o.accept.split(",").includes(`.${v.name.split(".").pop()}`) && (o3({
1725
+ message: `不允许的上传文件格式(${v.name}),请重新选择`,
1723
1726
  type: "warning",
1724
1727
  showClose: !0,
1725
1728
  duration: 5e3
1726
1729
  }), s3(() => {
1727
- n.value.pop();
1730
+ a.value.pop();
1728
1731
  }));
1729
- }, k = () => !1, Z = (p, f) => {
1730
- var w, l;
1731
- p.status = "ready", f !== void 0 && D.value.splice(f, 1), (w = F.value) == null || w.handleStart(p.raw), (l = F.value) == null || l.submit();
1732
- }, L = (p, f) => {
1733
- var P, K;
1734
- const w = n.value.length, l = o.limit - w;
1735
- let v = 0;
1736
- for (; v < l && v < p.length; )
1737
- (P = F.value) == null || P.handleStart(p[v]), (K = F.value) == null || K.submit(), v++;
1732
+ }, k = () => !1, Z = (v, h) => {
1733
+ var y, l;
1734
+ v.status = "ready", h !== void 0 && V.value.splice(h, 1), (y = x.value) == null || y.handleStart(v.raw), (l = x.value) == null || l.submit();
1735
+ }, L = (v, h) => {
1736
+ var W, K;
1737
+ const y = a.value.length, l = o.limit - y;
1738
+ let g = 0;
1739
+ for (; g < l && g < v.length; )
1740
+ (W = x.value) == null || W.handleStart(v[g]), (K = x.value) == null || K.submit(), g++;
1738
1741
  o3({
1739
1742
  message: (o == null ? void 0 : o.limitText) || `最大可上传${o.limit}个文件,已忽略超出文件`,
1740
1743
  type: "warning",
1741
1744
  showClose: !0,
1742
1745
  duration: 5e3
1743
- }), c("exceed", p);
1744
- }, Q = (p, f, w) => {
1745
- c("success", p, f, w);
1746
- }, e3 = (p, f, w) => {
1747
- D.value.push(f), c("error", p, f, w);
1748
- }, t3 = (p) => {
1749
- var f, w;
1746
+ }), t("exceed", v);
1747
+ }, Q = (v, h, y) => {
1748
+ t("success", v, h, y);
1749
+ }, e3 = (v, h, y) => {
1750
+ V.value.push(h), t("error", v, h, y);
1751
+ }, t3 = (v) => {
1752
+ var h, y;
1750
1753
  $.value = {
1751
- ...p,
1752
- name: p[a.name],
1754
+ ...v,
1755
+ name: v[i.name],
1753
1756
  url: a3(
1754
- g.value,
1755
- p[a.url] || ((w = (f = p == null ? void 0 : p.response) == null ? void 0 : f.data) == null ? void 0 : w.id)
1757
+ f.value,
1758
+ v[i.url] || ((y = (h = v == null ? void 0 : v.response) == null ? void 0 : h.data) == null ? void 0 : y.id)
1756
1759
  )
1757
1760
  }, B.value = !0;
1758
- }, A3 = (p) => {
1761
+ }, m3 = (v) => {
1759
1762
  V3.downloadByOnlineUrl(
1760
- p[a.url],
1761
- p[a.name]
1763
+ v[i.url],
1764
+ v[i.name]
1762
1765
  );
1763
- }, y3 = (p, f = !1) => {
1764
- var w;
1765
- (w = F.value) == null || w.abort(p);
1766
- }, J = (p) => {
1767
- var f, w;
1766
+ }, _3 = (v, h = !1) => {
1767
+ var y;
1768
+ (y = x.value) == null || y.abort(v);
1769
+ }, J = (v) => {
1770
+ var h, y;
1768
1771
  try {
1769
- p.status !== "success" && y3(p), (f = F.value) == null || f.handleRemove(p), n.value = n.value.filter((l) => l.uid !== p.uid), c("delete", p);
1772
+ v.status !== "success" && _3(v), (h = x.value) == null || h.handleRemove(v), a.value = a.value.filter((l) => l.uid !== v.uid), t("delete", v);
1770
1773
  } catch (l) {
1771
- (w = F.value) == null || w.handleRemove(p), n.value = n.value.filter((v) => v.uid !== p.uid), c("delete", p), console.error(l);
1774
+ (y = x.value) == null || y.handleRemove(v), a.value = a.value.filter((g) => g.uid !== v.uid), t("delete", v), console.error(l);
1772
1775
  }
1773
- }, w3 = (p, f) => {
1774
- D.value.splice(f, 1);
1775
- }, n3 = V(
1776
- () => n.value.length >= o.limit || o.disabled
1776
+ }, y3 = (v, h) => {
1777
+ V.value.splice(h, 1);
1778
+ }, n3 = D(
1779
+ () => a.value.length >= o.limit || o.disabled
1777
1780
  );
1778
- return (p, f) => {
1779
- var w;
1780
- return i(), h(
1781
+ return (v, h) => {
1782
+ var y;
1783
+ return s(), p(
1781
1784
  U,
1782
1785
  null,
1783
1786
  [
1784
- e.preview ? z("v-if", !0) : (i(), h(
1787
+ e.preview ? b("v-if", !0) : (s(), p(
1785
1788
  U,
1786
1789
  { key: 0 },
1787
1790
  [
1788
- e.type === "button" ? (i(), b(r(d3), l3({
1791
+ e.type === "button" ? (s(), z(u(u3), l3({
1789
1792
  key: 0,
1790
1793
  class: "ik-file-upload"
1791
- }, p.$attrs, {
1794
+ }, v.$attrs, {
1792
1795
  accept: e.accept,
1793
- action: r(_),
1794
- "file-list": n.value,
1795
- "onUpdate:fileList": f[0] || (f[0] = (l) => n.value = l),
1796
+ action: u(w),
1797
+ "file-list": a.value,
1798
+ "onUpdate:fileList": h[0] || (h[0] = (l) => a.value = l),
1796
1799
  ref_key: "refUpload",
1797
- ref: F,
1798
- "before-upload": T,
1800
+ ref: x,
1801
+ "before-upload": j,
1799
1802
  "before-remove": k,
1800
1803
  "on-exceed": L,
1801
- "on-change": j,
1804
+ "on-change": P,
1802
1805
  multiple: e.multiple,
1803
1806
  headers: e.headers,
1804
1807
  limit: e.limit,
1805
1808
  "on-success": Q,
1806
1809
  "on-error": e3
1807
1810
  }), {
1808
- trigger: y(() => [
1809
- p.$slots.trigger ? E(p.$slots, "trigger", { key: 0 }, void 0, !0) : (i(), b(r(B3), {
1811
+ trigger: _(() => [
1812
+ v.$slots.trigger ? E(v.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), z(u(B3), {
1810
1813
  key: 1,
1811
1814
  disabled: n3.value
1812
- }, g3({
1813
- default: y(() => [
1815
+ }, A3({
1816
+ default: _(() => [
1814
1817
  q(
1815
1818
  " " + I(e.title),
1816
1819
  1
@@ -1822,8 +1825,8 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
1822
1825
  }, [
1823
1826
  e.showIcon ? {
1824
1827
  name: "icon",
1825
- fn: y(() => [
1826
- A(r(S), {
1828
+ fn: _(() => [
1829
+ m(u(S), {
1827
1830
  name: "iksvg_daoru",
1828
1831
  disabled: n3.value
1829
1832
  }, null, 8, ["disabled"])
@@ -1832,24 +1835,24 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
1832
1835
  } : void 0
1833
1836
  ]), 1032, ["disabled"]))
1834
1837
  ]),
1835
- file: y(({ file: l }) => [
1838
+ file: _(({ file: l }) => [
1836
1839
  d("div", ke, [
1837
- d("div", ze, [
1838
- !p.$slots.fileIcon && (!e.customIconData[r(C)(l, a)] || !e.customIconData[r(C)(l, a)][e.customIconFields.icon]) ? (i(), b(v3, {
1840
+ d("div", be, [
1841
+ !v.$slots.fileIcon && (!e.customIconData[u(F)(l, i)] || !e.customIconData[u(F)(l, i)][e.customIconFields.icon]) ? (s(), z(f3, {
1839
1842
  key: 0,
1840
- type: r(C)(l, a)
1841
- }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[r(C)(l, a)] && e.customIconData[r(C)(l, a)][e.customIconFields.icon] ? (i(), h("div", be, [
1842
- e.customIconData[r(C)(l, a)][e.customIconFields.type] === "img" ? (i(), h("img", {
1843
+ type: u(F)(l, i)
1844
+ }, null, 8, ["type"])) : !v.$slots.fileIcon && e.customIconData[u(F)(l, i)] && e.customIconData[u(F)(l, i)][e.customIconFields.icon] ? (s(), p("div", ze, [
1845
+ e.customIconData[u(F)(l, i)][e.customIconFields.type] === "img" ? (s(), p("img", {
1843
1846
  key: 0,
1844
- src: e.customIconData[r(C)(l, a)][e.customIconFields.icon],
1847
+ src: e.customIconData[u(F)(l, i)][e.customIconFields.icon],
1845
1848
  alt: "",
1846
1849
  class: "file-img-icon"
1847
- }, null, 8, Fe)) : (i(), h(
1850
+ }, null, 8, xe)) : (s(), p(
1848
1851
  "span",
1849
1852
  {
1850
1853
  key: 1,
1851
1854
  class: R([
1852
- e.customIconData[r(C)(l, a)][e.customIconFields.icon],
1855
+ e.customIconData[u(F)(l, i)][e.customIconFields.icon],
1853
1856
  "file-icon-size"
1854
1857
  ])
1855
1858
  },
@@ -1857,55 +1860,55 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
1857
1860
  2
1858
1861
  /* CLASS */
1859
1862
  ))
1860
- ])) : z("v-if", !0),
1861
- d("div", Ce, [
1862
- E(p.$slots, "fileIcon", { file: l }, void 0, !0)
1863
+ ])) : b("v-if", !0),
1864
+ d("div", Fe, [
1865
+ E(v.$slots, "fileIcon", { file: l }, void 0, !0)
1863
1866
  ]),
1864
- d("div", xe, [
1867
+ d("div", Ce, [
1865
1868
  d("p", Ie, [
1866
1869
  q(
1867
- I(l[a.name] || l.name) + " ",
1870
+ I(l[i.name] || l.name) + " ",
1868
1871
  1
1869
1872
  /* TEXT */
1870
1873
  ),
1871
- l.percentage && l.status === "uploading" ? (i(), h(
1874
+ l.percentage && l.status === "uploading" ? (s(), p(
1872
1875
  "span",
1873
1876
  Be,
1874
1877
  "(" + I(l.percentage) + "%)",
1875
1878
  1
1876
1879
  /* TEXT */
1877
- )) : z("v-if", !0)
1880
+ )) : b("v-if", !0)
1878
1881
  ]),
1879
- l.status === "success" ? (i(), h(
1882
+ l.status === "success" ? (s(), p(
1880
1883
  "p",
1881
1884
  Se,
1882
- I(r(i3)(l.size / 1024 / 1024)) + "MB ",
1885
+ I(u(i3)(l.size / 1024 / 1024)) + "MB ",
1883
1886
  1
1884
1887
  /* TEXT */
1885
- )) : z("v-if", !0),
1886
- l.percentage && l.status === "uploading" ? (i(), b(r(u3), {
1888
+ )) : b("v-if", !0),
1889
+ l.percentage && l.status === "uploading" ? (s(), z(u(d3), {
1887
1890
  key: 1,
1888
1891
  "text-inside": "",
1889
1892
  percentage: l.percentage,
1890
1893
  color: "var(--el-color-primary)",
1891
1894
  "show-text": !1
1892
- }, null, 8, ["percentage"])) : z("v-if", !0)
1895
+ }, null, 8, ["percentage"])) : b("v-if", !0)
1893
1896
  ])
1894
1897
  ]),
1895
1898
  d("div", null, [
1896
- l.status === "success" ? (i(), h(
1899
+ l.status === "success" ? (s(), p(
1897
1900
  U,
1898
1901
  { key: 0 },
1899
1902
  [
1900
- A(r(S), {
1901
- onClick: (v) => t3(l),
1903
+ m(u(S), {
1904
+ onClick: (g) => t3(l),
1902
1905
  name: "iksvg_yulan",
1903
1906
  title: "预览",
1904
1907
  bg: "",
1905
1908
  size: "default"
1906
1909
  }, null, 8, ["onClick"]),
1907
- A(r(S), {
1908
- onClick: (v) => J(l),
1910
+ m(u(S), {
1911
+ onClick: (g) => J(l),
1909
1912
  error: "",
1910
1913
  name: "iksvg_shanchu",
1911
1914
  title: "删除",
@@ -1915,9 +1918,9 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
1915
1918
  ],
1916
1919
  64
1917
1920
  /* STABLE_FRAGMENT */
1918
- )) : (i(), b(r(S), {
1921
+ )) : (s(), z(u(S), {
1919
1922
  key: 1,
1920
- onClick: (v) => J(l),
1923
+ onClick: (g) => J(l),
1921
1924
  error: "",
1922
1925
  name: "iksvg_guanbi",
1923
1926
  size: "default",
@@ -1927,22 +1930,22 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
1927
1930
  ])
1928
1931
  ])
1929
1932
  ]),
1930
- default: y(() => {
1933
+ default: _(() => {
1931
1934
  var l;
1932
1935
  return [
1933
- !e.preview && e.tip ? (i(), b(r(p3), {
1936
+ !e.preview && e.tip ? (s(), z(u(v3), {
1934
1937
  key: 0,
1935
1938
  effect: "dark",
1936
1939
  content: o.tipText || "",
1937
1940
  "popper-class": "_ik_web_ui_file-help-tooltip"
1938
1941
  }, {
1939
- default: y(() => [
1940
- A(r(H), {
1942
+ default: _(() => [
1943
+ m(u(H), {
1941
1944
  size: 23,
1942
1945
  class: "_ik_web_ui_file_help_icon"
1943
1946
  }, {
1944
- default: y(() => [
1945
- A(r(h3))
1947
+ default: _(() => [
1948
+ m(u(p3))
1946
1949
  ]),
1947
1950
  _: 1
1948
1951
  /* STABLE */
@@ -1950,22 +1953,22 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
1950
1953
  ]),
1951
1954
  _: 1
1952
1955
  /* STABLE */
1953
- }, 8, ["content"])) : z("v-if", !0),
1954
- (l = D.value) != null && l.length ? (i(!0), h(
1956
+ }, 8, ["content"])) : b("v-if", !0),
1957
+ (l = V.value) != null && l.length ? (s(!0), p(
1955
1958
  U,
1956
1959
  { key: 1 },
1957
- b3(D.value, (v, P) => (i(), h("div", {
1960
+ z3(V.value, (g, W) => (s(), p("div", {
1958
1961
  class: "ik-error-flie-list",
1959
- key: v.uid
1962
+ key: g.uid
1960
1963
  }, [
1961
1964
  d("div", De, [
1962
- A(r(H), {
1965
+ m(u(H), {
1963
1966
  size: 32,
1964
1967
  class: "info",
1965
1968
  style: { "vertical-align": "middle" }
1966
1969
  }, {
1967
- default: y(() => [
1968
- A(r(P3))
1970
+ default: _(() => [
1971
+ m(u(P3))
1969
1972
  ]),
1970
1973
  _: 1
1971
1974
  /* STABLE */
@@ -1974,42 +1977,42 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
1974
1977
  d(
1975
1978
  "p",
1976
1979
  $e,
1977
- I(v[a.name] || v.name),
1980
+ I(g[i.name] || g.name),
1978
1981
  1
1979
1982
  /* TEXT */
1980
1983
  ),
1981
1984
  d(
1982
1985
  "p",
1983
1986
  Re,
1984
- I(r(i3)(v.size / 1024 / 1024)) + "MB ",
1987
+ I(u(i3)(g.size / 1024 / 1024)) + "MB ",
1985
1988
  1
1986
1989
  /* TEXT */
1987
1990
  )
1988
1991
  ])
1989
1992
  ]),
1990
- F3(d(
1993
+ x3(d(
1991
1994
  "div",
1992
1995
  Me,
1993
1996
  [
1994
- A(r(H), {
1997
+ m(u(H), {
1995
1998
  style: { "vertical-align": "middle" },
1996
- onClick: (K) => Z(v, P),
1999
+ onClick: (K) => Z(g, W),
1997
2000
  title: "重新上传",
1998
2001
  class: "primary"
1999
2002
  }, {
2000
- default: y(() => [
2001
- A(r(q3))
2003
+ default: _(() => [
2004
+ m(u(q3))
2002
2005
  ]),
2003
2006
  _: 2
2004
2007
  /* DYNAMIC */
2005
2008
  }, 1032, ["onClick"]),
2006
- A(r(H), {
2009
+ m(u(H), {
2007
2010
  class: "error",
2008
- onClick: (K) => w3(v, P),
2011
+ onClick: (K) => y3(g, W),
2009
2012
  title: "删除"
2010
2013
  }, {
2011
- default: y(() => [
2012
- A(r(M3))
2014
+ default: _(() => [
2015
+ m(u(M3))
2013
2016
  ]),
2014
2017
  _: 2
2015
2018
  /* DYNAMIC */
@@ -2018,28 +2021,28 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
2018
2021
  512
2019
2022
  /* NEED_PATCH */
2020
2023
  ), [
2021
- [C3, (v == null ? void 0 : v.status) === "fail"]
2024
+ [F3, (g == null ? void 0 : g.status) === "fail"]
2022
2025
  ])
2023
2026
  ]))),
2024
2027
  128
2025
2028
  /* KEYED_FRAGMENT */
2026
- )) : z("v-if", !0)
2029
+ )) : b("v-if", !0)
2027
2030
  ];
2028
2031
  }),
2029
2032
  _: 3
2030
2033
  /* FORWARDED */
2031
- }, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (i(), b(r(d3), l3({
2034
+ }, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), z(u(u3), l3({
2032
2035
  key: 1,
2033
- "file-list": n.value,
2034
- "onUpdate:fileList": f[1] || (f[1] = (l) => n.value = l),
2036
+ "file-list": a.value,
2037
+ "onUpdate:fileList": h[1] || (h[1] = (l) => a.value = l),
2035
2038
  class: ["ik-file-pload-card", { plain: e.plain }]
2036
- }, p.$attrs, {
2039
+ }, v.$attrs, {
2037
2040
  accept: e.accept,
2038
- action: r(_),
2041
+ action: u(w),
2039
2042
  disabled: n3.value,
2040
2043
  ref_key: "refUpload",
2041
- ref: F,
2042
- "before-upload": T,
2044
+ ref: x,
2045
+ "before-upload": j,
2043
2046
  "before-remove": k,
2044
2047
  "on-exceed": L,
2045
2048
  multiple: e.multiple,
@@ -2047,26 +2050,26 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
2047
2050
  limit: e.limit,
2048
2051
  "on-success": Q,
2049
2052
  "on-error": e3,
2050
- "on-change": j
2053
+ "on-change": P
2051
2054
  }), {
2052
- file: y(({ file: l }) => [
2055
+ file: _(({ file: l }) => [
2053
2056
  d("div", Oe, [
2054
2057
  d("div", qe, [
2055
- !p.$slots.fileIcon && (!e.customIconData[r(C)(l, a)] || !e.customIconData[r(C)(l, a)][e.customIconFields.icon]) ? (i(), b(v3, {
2058
+ !v.$slots.fileIcon && (!e.customIconData[u(F)(l, i)] || !e.customIconData[u(F)(l, i)][e.customIconFields.icon]) ? (s(), z(f3, {
2056
2059
  key: 0,
2057
- type: r(C)(l, a)
2058
- }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[r(C)(l, a)] && e.customIconData[r(C)(l, a)][e.customIconFields.icon] ? (i(), h("div", Le, [
2059
- e.customIconData[r(C)(l, a)][e.customIconFields.type] === "img" ? (i(), h("img", {
2060
+ type: u(F)(l, i)
2061
+ }, null, 8, ["type"])) : !v.$slots.fileIcon && e.customIconData[u(F)(l, i)] && e.customIconData[u(F)(l, i)][e.customIconFields.icon] ? (s(), p("div", Le, [
2062
+ e.customIconData[u(F)(l, i)][e.customIconFields.type] === "img" ? (s(), p("img", {
2060
2063
  key: 0,
2061
- src: e.customIconData[r(C)(l, a)][e.customIconFields.icon],
2064
+ src: e.customIconData[u(F)(l, i)][e.customIconFields.icon],
2062
2065
  alt: "",
2063
2066
  class: "file-img-icon"
2064
- }, null, 8, Te)) : (i(), h(
2067
+ }, null, 8, Te)) : (s(), p(
2065
2068
  "span",
2066
2069
  {
2067
2070
  key: 1,
2068
2071
  class: R([
2069
- e.customIconData[r(C)(l, a)][e.customIconFields.icon],
2072
+ e.customIconData[u(F)(l, i)][e.customIconFields.icon],
2070
2073
  "file-icon-size"
2071
2074
  ])
2072
2075
  },
@@ -2074,56 +2077,56 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
2074
2077
  2
2075
2078
  /* CLASS */
2076
2079
  ))
2077
- ])) : z("v-if", !0),
2080
+ ])) : b("v-if", !0),
2078
2081
  d("div", je, [
2079
- E(p.$slots, "fileIcon", { file: l }, void 0, !0)
2082
+ E(v.$slots, "fileIcon", { file: l }, void 0, !0)
2080
2083
  ]),
2081
2084
  d("div", Pe, [
2082
2085
  d("p", We, [
2083
2086
  q(
2084
- I(l[a.name] || l.name) + " ",
2087
+ I(l[i.name] || l.name) + " ",
2085
2088
  1
2086
2089
  /* TEXT */
2087
2090
  ),
2088
- l.percentage && l.status === "uploading" ? (i(), h(
2091
+ l.percentage && l.status === "uploading" ? (s(), p(
2089
2092
  "span",
2090
2093
  Ne,
2091
2094
  "(" + I(l.percentage) + "%)",
2092
2095
  1
2093
2096
  /* TEXT */
2094
- )) : z("v-if", !0)
2097
+ )) : b("v-if", !0)
2095
2098
  ]),
2096
- l.status === "success" ? (i(), h(
2099
+ l.status === "success" ? (s(), p(
2097
2100
  "p",
2098
2101
  Ze,
2099
- I(r(i3)(l.size / 1024 / 1024)) + "MB ",
2102
+ I(u(i3)(l.size / 1024 / 1024)) + "MB ",
2100
2103
  1
2101
2104
  /* TEXT */
2102
- )) : z("v-if", !0),
2103
- l.percentage && l.status === "uploading" ? (i(), b(r(u3), {
2105
+ )) : b("v-if", !0),
2106
+ l.percentage && l.status === "uploading" ? (s(), z(u(d3), {
2104
2107
  key: 1,
2105
2108
  "text-inside": "",
2106
2109
  percentage: l.percentage,
2107
2110
  color: "var(--el-color-primary)",
2108
2111
  "show-text": !1
2109
- }, null, 8, ["percentage"])) : z("v-if", !0)
2112
+ }, null, 8, ["percentage"])) : b("v-if", !0)
2110
2113
  ])
2111
2114
  ]),
2112
- e.preview ? (i(), h(
2115
+ e.preview ? (s(), p(
2113
2116
  U,
2114
2117
  { key: 1 },
2115
2118
  [
2116
- e.preview || l.percentage === 100 ? (i(), b(
2117
- r(H),
2119
+ e.preview || l.percentage === 100 ? (s(), z(
2120
+ u(H),
2118
2121
  {
2119
2122
  key: 0,
2120
2123
  title: "预览",
2121
2124
  class: "primary"
2122
2125
  },
2123
2126
  {
2124
- default: y(() => [
2125
- A(r(T3), {
2126
- onClick: (v) => t3(l)
2127
+ default: _(() => [
2128
+ m(u(T3), {
2129
+ onClick: (g) => t3(l)
2127
2130
  }, null, 8, ["onClick"])
2128
2131
  ]),
2129
2132
  _: 2
@@ -2131,17 +2134,17 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
2131
2134
  },
2132
2135
  1024
2133
2136
  /* DYNAMIC_SLOTS */
2134
- )) : z("v-if", !0),
2135
- A(
2136
- r(H),
2137
+ )) : b("v-if", !0),
2138
+ m(
2139
+ u(H),
2137
2140
  {
2138
2141
  title: "下载",
2139
2142
  class: "primary"
2140
2143
  },
2141
2144
  {
2142
- default: y(() => [
2143
- A(r(H3), {
2144
- onClick: (v) => A3(l)
2145
+ default: _(() => [
2146
+ m(u(H3), {
2147
+ onClick: (g) => m3(l)
2145
2148
  }, null, 8, ["onClick"])
2146
2149
  ]),
2147
2150
  _: 2
@@ -2153,20 +2156,20 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
2153
2156
  ],
2154
2157
  64
2155
2158
  /* STABLE_FRAGMENT */
2156
- )) : (i(), h("div", Qe, [
2157
- l.status === "success" ? (i(), h(
2159
+ )) : (s(), p("div", Qe, [
2160
+ l.status === "success" ? (s(), p(
2158
2161
  U,
2159
2162
  { key: 0 },
2160
2163
  [
2161
- A(r(S), {
2162
- onClick: (v) => t3(l),
2164
+ m(u(S), {
2165
+ onClick: (g) => t3(l),
2163
2166
  name: "iksvg_yulan",
2164
2167
  title: "预览",
2165
2168
  bg: "",
2166
2169
  size: "default"
2167
2170
  }, null, 8, ["onClick"]),
2168
- A(r(S), {
2169
- onClick: (v) => J(l),
2171
+ m(u(S), {
2172
+ onClick: (g) => J(l),
2170
2173
  error: "",
2171
2174
  name: "iksvg_shanchu",
2172
2175
  title: "删除",
@@ -2176,9 +2179,9 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
2176
2179
  ],
2177
2180
  64
2178
2181
  /* STABLE_FRAGMENT */
2179
- )) : (i(), b(r(S), {
2182
+ )) : (s(), z(u(S), {
2180
2183
  key: 1,
2181
- onClick: (v) => J(l),
2184
+ onClick: (g) => J(l),
2182
2185
  error: "",
2183
2186
  name: "iksvg_guanbi",
2184
2187
  size: "default",
@@ -2188,37 +2191,37 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
2188
2191
  ]))
2189
2192
  ])
2190
2193
  ]),
2191
- default: y(() => [
2194
+ default: _(() => [
2192
2195
  d("div", Ee, [
2193
2196
  d("div", He, [
2194
- e.imageMode ? E(p.$slots, "image", { key: 0 }, () => [
2197
+ e.imageMode ? E(v.$slots, "image", { key: 0 }, () => [
2195
2198
  Ue
2196
- ], !0) : e.showIcon ? (i(), b(r(S), {
2199
+ ], !0) : e.showIcon ? (s(), z(u(S), {
2197
2200
  key: 1,
2198
2201
  name: "iksvg_img_shangchuanhetongfujianbeifen",
2199
2202
  type: "primary",
2200
2203
  bg: "",
2201
2204
  size: 40
2202
- })) : z("v-if", !0),
2205
+ })) : b("v-if", !0),
2203
2206
  d("span", null, [
2204
2207
  q(
2205
2208
  I(e.title) + " ",
2206
2209
  1
2207
2210
  /* TEXT */
2208
2211
  ),
2209
- !e.preview && e.tip ? (i(), b(r(p3), {
2212
+ !e.preview && e.tip ? (s(), z(u(v3), {
2210
2213
  key: 0,
2211
2214
  effect: "dark",
2212
2215
  content: o.tipText || "",
2213
2216
  "popper-class": "_ik_web_ui_file-help-tooltip"
2214
2217
  }, {
2215
- default: y(() => [
2216
- A(r(H), {
2218
+ default: _(() => [
2219
+ m(u(H), {
2217
2220
  size: 23,
2218
2221
  class: "_ik_web_ui_file_help_icon"
2219
2222
  }, {
2220
- default: y(() => [
2221
- A(r(h3))
2223
+ default: _(() => [
2224
+ m(u(p3))
2222
2225
  ]),
2223
2226
  _: 1
2224
2227
  /* STABLE */
@@ -2226,14 +2229,15 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
2226
2229
  ]),
2227
2230
  _: 1
2228
2231
  /* STABLE */
2229
- }, 8, ["content"])) : z("v-if", !0)
2232
+ }, 8, ["content"])) : b("v-if", !0)
2230
2233
  ])
2231
2234
  ]),
2232
- A(r(S), {
2235
+ m(u(S), {
2233
2236
  name: "iksvg_daoru",
2234
2237
  bg: "",
2235
- size: 40,
2236
- padding: "8px"
2238
+ size: 24,
2239
+ width: 40,
2240
+ padding: "0"
2237
2241
  })
2238
2242
  ])
2239
2243
  ]),
@@ -2244,13 +2248,13 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
2244
2248
  64
2245
2249
  /* STABLE_FRAGMENT */
2246
2250
  )),
2247
- A(r(G6), {
2251
+ m(u(G6), {
2248
2252
  show: B.value,
2249
- "onUpdate:show": f[2] || (f[2] = (l) => B.value = l),
2250
- loadUrl: r(g),
2253
+ "onUpdate:show": h[2] || (h[2] = (l) => B.value = l),
2254
+ loadUrl: u(f),
2251
2255
  file: $.value,
2252
- onlyofficeServer: ((w = r(u)) == null ? void 0 : w.serverUrl) || e.onlyofficeServer,
2253
- onlyOfficeConfig: r(u)
2256
+ onlyofficeServer: ((y = u(r)) == null ? void 0 : y.serverUrl) || e.onlyofficeServer,
2257
+ onlyOfficeConfig: u(r)
2254
2258
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig"])
2255
2259
  ],
2256
2260
  64
@@ -2259,7 +2263,7 @@ const ye = /* @__PURE__ */ Y(Ae, [["__scopeId", "data-v-98d51ef9"]]), we = N(ye)
2259
2263
  };
2260
2264
  }
2261
2265
  });
2262
- const Ke = /* @__PURE__ */ Y(Je, [["__scopeId", "data-v-91a04040"]]), et = N(Ke);
2266
+ const Ke = /* @__PURE__ */ Y(Je, [["__scopeId", "data-v-cbfa5eb9"]]), et = N(Ke);
2263
2267
  export {
2264
2268
  et as IkUploadFile,
2265
2269
  et as default