iking-web-ui-pro 0.2.7 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { inject as R, computed as m, defineComponent as z, openBlock as c, createElementBlock as u, createElementVNode as r, ref as M, Fragment as P, renderList as K, normalizeClass as C, normalizeStyle as b, createVNode as F, toDisplayString as O, unref as g, withModifiers as J, renderSlot as V, createCommentVNode as B, mergeModels as G, useModel as X, reactive as Q, watch as e3, nextTick as t3, resolveComponent as I, createBlock as S, withCtx as y, createTextVNode as D, h as n3, mergeProps as j, createSlots as o3, useCssVars as i3 } from "vue";
1
+ import { inject as D, computed as m, defineComponent as F, openBlock as c, createElementBlock as u, createElementVNode as r, ref as q, resolveComponent as I, Fragment as M, renderList as L, normalizeStyle as z, toDisplayString as V, normalizeClass as S, createVNode as k, unref as g, withModifiers as K, renderSlot as C, createBlock as b, withCtx as y, createCommentVNode as $, mergeModels as Y, useModel as Z, reactive as Q, watch as e3, nextTick as t3, createTextVNode as H, h as n3, mergeProps as N, createSlots as o3, useCssVars as i3 } from "vue";
2
2
  import { paramType as l3, ikFile as s3, buildUUID as a3, ikColor as c3 } from "iking-utils-pro";
3
- const $ = (t, n) => {
3
+ const E = (t, n) => {
4
4
  if (t.install = (o) => {
5
5
  for (const e of [t, ...Object.values(n ?? {})])
6
6
  o.component(e.name, e);
@@ -10,8 +10,8 @@ const $ = (t, n) => {
10
10
  return t;
11
11
  }, U = (t, n) => {
12
12
  const o = t.__vccOpts || t;
13
- for (const [e, l] of n)
14
- o[e] = l;
13
+ for (const [e, s] of n)
14
+ o[e] = s;
15
15
  return o;
16
16
  }, r3 = (t, n = 2) => {
17
17
  if (t === void 0)
@@ -19,20 +19,20 @@ const $ = (t, n) => {
19
19
  if (t === 0)
20
20
  return "0 B";
21
21
  const o = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
22
- let l = t / Math.pow(1024, e);
23
- return (l % 1 === 0 ? l.toFixed(n || 0) : l.toFixed(n)) + " " + o[e];
22
+ let s = t / Math.pow(1024, e);
23
+ return (s % 1 === 0 ? s.toFixed(n || 0) : s.toFixed(n)) + " " + o[e];
24
24
  }, T = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", d3 = (t) => {
25
- const n = R("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = R("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = R("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), f = R("onlyofficeConfig"), v = m(() => t.onlyofficeConfig || (f == null ? void 0 : f.value)), a = R("userInfo"), p = m(() => t.userInfo || (a == null ? void 0 : a.value));
25
+ const n = D("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = D("uploadUrl"), s = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = D("token"), a = m(() => t.token || (i == null ? void 0 : i.value)), p = D("onlyofficeConfig"), h = m(() => t.onlyofficeConfig || (p == null ? void 0 : p.value)), l = D("userInfo"), v = m(() => t.userInfo || (l == null ? void 0 : l.value));
26
26
  return {
27
27
  cLoadUrl: o,
28
- cUploadUrl: l,
29
- cToken: s,
30
- cOnlyofficeConfig: v,
31
- cUserInfo: p
28
+ cUploadUrl: s,
29
+ cToken: a,
30
+ cOnlyofficeConfig: h,
31
+ cUserInfo: v
32
32
  };
33
- }, u3 = d3, Y = (t, n) => {
34
- var i, s, f, v;
35
- const o = (i = t == null ? void 0 : t.response) != null && i.data ? W((f = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : f.suffix) : ((v = t.raw) == null ? void 0 : v.type) || W(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), l = {
33
+ }, u3 = d3, J = (t, n) => {
34
+ var i, a, p, h;
35
+ const o = (i = t == null ? void 0 : t.response) != null && i.data ? G((p = (a = t == null ? void 0 : t.response) == null ? void 0 : a.data) == null ? void 0 : p.suffix) : ((h = t.raw) == null ? void 0 : h.type) || G(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), s = {
36
36
  sheet: "excel",
37
37
  excel: "excel",
38
38
  zip: "zip",
@@ -48,9 +48,9 @@ const $ = (t, n) => {
48
48
  exe: "exe",
49
49
  json: "json"
50
50
  };
51
- for (let a in l)
52
- if (typeof e == "string" && (e.includes(a) || e === a))
53
- return l[a];
51
+ for (let l in s)
52
+ if (typeof e == "string" && (e.includes(l) || e === l))
53
+ return s[l];
54
54
  return "unknown";
55
55
  }, f3 = {
56
56
  ".doc": "word",
@@ -137,12 +137,12 @@ const $ = (t, n) => {
137
137
  ".vob": "video",
138
138
  ".txt": "txt",
139
139
  ".pdf": "pdf"
140
- }, W = (t) => {
140
+ }, G = (t) => {
141
141
  const n = t == null ? void 0 : t.toLocaleLowerCase(), o = n != null && n.startsWith(".") ? n : `.${n}`;
142
142
  return o && f3[o] || "unknow";
143
143
  }, p3 = (t) => {
144
- let n = "", o = ["doc", "docx"], e = ["xls", "xlsx"], l = ["ppt", "pptx"], i = ["pdf"];
145
- return o.includes(t) && (n = "word"), e.includes(t) && (n = "cell"), l.includes(t) && (n = "slide"), i.includes(t) && (n = "text-pdf"), n;
144
+ let n = "", o = ["doc", "docx"], e = ["xls", "xlsx"], s = ["ppt", "pptx"], i = ["pdf"];
145
+ return o.includes(t) && (n = "word"), e.includes(t) && (n = "cell"), s.includes(t) && (n = "slide"), i.includes(t) && (n = "text-pdf"), n;
146
146
  }, v3 = {
147
147
  key: 0,
148
148
  t: "1686300059786",
@@ -208,7 +208,7 @@ const $ = (t, n) => {
208
208
  "p-id": "9067",
209
209
  width: "200",
210
210
  height: "200"
211
- }, x3 = /* @__PURE__ */ r(
211
+ }, k3 = /* @__PURE__ */ r(
212
212
  "path",
213
213
  {
214
214
  d: "M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.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 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",
@@ -218,7 +218,7 @@ const $ = (t, n) => {
218
218
  null,
219
219
  -1
220
220
  /* HOISTED */
221
- ), k3 = /* @__PURE__ */ r(
221
+ ), x3 = /* @__PURE__ */ r(
222
222
  "path",
223
223
  {
224
224
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -229,8 +229,8 @@ const $ = (t, n) => {
229
229
  -1
230
230
  /* HOISTED */
231
231
  ), z3 = [
232
- x3,
233
- k3
232
+ k3,
233
+ x3
234
234
  ], b3 = {
235
235
  key: 2,
236
236
  t: "1686300141125",
@@ -307,7 +307,7 @@ const $ = (t, n) => {
307
307
  "p-id": "8447",
308
308
  width: "200",
309
309
  height: "200"
310
- }, D3 = /* @__PURE__ */ r(
310
+ }, $3 = /* @__PURE__ */ r(
311
311
  "path",
312
312
  {
313
313
  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",
@@ -317,7 +317,7 @@ const $ = (t, n) => {
317
317
  null,
318
318
  -1
319
319
  /* HOISTED */
320
- ), M3 = /* @__PURE__ */ r(
320
+ ), D3 = /* @__PURE__ */ r(
321
321
  "path",
322
322
  {
323
323
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -327,10 +327,10 @@ const $ = (t, n) => {
327
327
  null,
328
328
  -1
329
329
  /* HOISTED */
330
- ), $3 = [
331
- D3,
332
- M3
333
- ], q3 = {
330
+ ), M3 = [
331
+ $3,
332
+ D3
333
+ ], H3 = {
334
334
  key: 5,
335
335
  t: "1686300195363",
336
336
  class: "icon",
@@ -340,7 +340,7 @@ const $ = (t, n) => {
340
340
  "p-id": "8602",
341
341
  width: "200",
342
342
  height: "200"
343
- }, H3 = /* @__PURE__ */ r(
343
+ }, q3 = /* @__PURE__ */ r(
344
344
  "path",
345
345
  {
346
346
  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",
@@ -361,7 +361,7 @@ const $ = (t, n) => {
361
361
  -1
362
362
  /* HOISTED */
363
363
  ), A3 = [
364
- H3,
364
+ q3,
365
365
  E3
366
366
  ], P3 = {
367
367
  key: 6,
@@ -406,7 +406,7 @@ const $ = (t, n) => {
406
406
  "p-id": "8912",
407
407
  width: "200",
408
408
  height: "200"
409
- }, W3 = /* @__PURE__ */ r(
409
+ }, N3 = /* @__PURE__ */ r(
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 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",
@@ -416,7 +416,7 @@ const $ = (t, n) => {
416
416
  null,
417
417
  -1
418
418
  /* HOISTED */
419
- ), N3 = /* @__PURE__ */ r(
419
+ ), W3 = /* @__PURE__ */ r(
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",
@@ -427,8 +427,8 @@ const $ = (t, n) => {
427
427
  -1
428
428
  /* HOISTED */
429
429
  ), K3 = [
430
- W3,
431
- N3
430
+ N3,
431
+ W3
432
432
  ], G3 = {
433
433
  key: 8,
434
434
  t: "1692251753690",
@@ -619,7 +619,7 @@ const $ = (t, n) => {
619
619
  u6,
620
620
  f6,
621
621
  p6
622
- ], h6 = /* @__PURE__ */ z({
622
+ ], h6 = /* @__PURE__ */ F({
623
623
  __name: "FileIcon",
624
624
  props: {
625
625
  type: {
@@ -640,10 +640,10 @@ const $ = (t, n) => {
640
640
  }
641
641
  },
642
642
  setup(t) {
643
- const n = t, o = m(() => n.file ? Y(n.file, n.fields) : n.type);
644
- return (e, l) => o.value === "image" ? (c(), u("svg", v3, w3)) : o.value === "zip" ? (c(), u("svg", _3, z3)) : o.value === "ppt" ? (c(), u("svg", b3, C3)) : o.value === "word" ? (c(), u("svg", V3, I3)) : o.value === "pdf" ? (c(), u("svg", R3, $3)) : o.value === "txt" ? (c(), u("svg", q3, A3)) : o.value === "audio" ? (c(), u("svg", P3, j3)) : o.value === "video" ? (c(), u("svg", L3, K3)) : o.value === "excel" ? (c(), u("svg", G3, J3)) : o.value === "exe" ? (c(), u("svg", Q3, i6)) : o.value === "json" ? (c(), u("svg", l6, r6)) : (c(), u("svg", d6, v6));
643
+ const n = t, o = m(() => n.file ? J(n.file, n.fields) : n.type);
644
+ return (e, s) => o.value === "image" ? (c(), u("svg", v3, w3)) : o.value === "zip" ? (c(), u("svg", _3, z3)) : o.value === "ppt" ? (c(), u("svg", b3, C3)) : o.value === "word" ? (c(), u("svg", V3, I3)) : o.value === "pdf" ? (c(), u("svg", R3, M3)) : o.value === "txt" ? (c(), u("svg", H3, A3)) : o.value === "audio" ? (c(), u("svg", P3, j3)) : o.value === "video" ? (c(), u("svg", L3, K3)) : o.value === "excel" ? (c(), u("svg", G3, J3)) : o.value === "exe" ? (c(), u("svg", Q3, i6)) : o.value === "json" ? (c(), u("svg", l6, r6)) : (c(), u("svg", d6, v6));
645
645
  }
646
- }), g6 = ["onClick"], m6 = { class: "text" }, y6 = { class: "fileName" }, w6 = { class: "size" }, _6 = /* @__PURE__ */ z({
646
+ }), g6 = ["onClick"], m6 = { class: "fileName simple" }, y6 = ["onClick"], w6 = { class: "text" }, _6 = { class: "fileName" }, k6 = { class: "size" }, x6 = /* @__PURE__ */ F({
647
647
  __name: "IkPreviewFile",
648
648
  props: {
649
649
  list: {
@@ -710,128 +710,190 @@ const $ = (t, n) => {
710
710
  jwtToken: {
711
711
  type: String,
712
712
  default: ""
713
+ },
714
+ // 简单模式
715
+ simple: {
716
+ type: Boolean,
717
+ default: !1
713
718
  }
714
719
  },
715
720
  setup(t) {
716
- const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = u3(n), l = m(() => ({
721
+ const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = u3(n), s = m(() => ({
717
722
  name: "name",
718
723
  url: "url",
719
724
  suffix: "suffix",
720
725
  size: "size",
721
726
  ...n.field
722
- })), i = M({}), s = M(!1), f = (d) => {
723
- var w, _;
727
+ })), i = q({}), a = q(!1), p = (d) => {
728
+ var w, x;
724
729
  i.value = {
725
730
  ...d,
726
731
  name: d.name,
727
732
  url: T(
728
733
  o.value,
729
- d.url || ((_ = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : _.id) || (d == null ? void 0 : d.id)
734
+ d.url || ((x = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : x.id) || (d == null ? void 0 : d.id)
730
735
  )
731
- }, s.value = !0;
732
- }, v = (d) => {
736
+ }, a.value = !0;
737
+ }, h = (d) => {
733
738
  s3.downloadFile(
734
739
  T(
735
740
  o.value,
736
- d[l.value.url] || d.attachmentId || d.id
741
+ d[s.value.url] || d.attachmentId || d.id
737
742
  ),
738
- d[l.value.name] || d.attachmentName
743
+ d[s.value.name] || d.attachmentName
739
744
  );
740
- }, a = m(() => l3.isNumber(n.width) ? `${n.width}px` : n.width), p = m(() => n.list.map((d) => ({
745
+ }, l = m(() => l3.isNumber(n.width) ? `${n.width}px` : n.width), v = m(() => n.list.map((d) => ({
741
746
  ...d,
742
- name: d[l.value.name] || d.attachmentName,
743
- size: d[l.value.size] || d.fileSize || d.attachmentSize,
744
- suffix: d[l.value.suffix] || d.attachmentSuffix
747
+ name: d[s.value.name] || d.attachmentName,
748
+ size: d[s.value.size] || d.fileSize || d.attachmentSize,
749
+ suffix: d[s.value.suffix] || d.attachmentSuffix
745
750
  })));
746
751
  return (d, w) => {
747
- var _, x, q;
752
+ var _, A, P;
753
+ const x = I("tmplate");
748
754
  return c(), u(
749
- P,
755
+ M,
750
756
  null,
751
757
  [
752
- (_ = t.list) != null && _.length ? (c(!0), u(
753
- P,
758
+ (_ = t.list) != null && _.length ? (c(), u(
759
+ M,
754
760
  { key: 0 },
755
- K(p.value, (k, h) => {
756
- var H;
757
- return c(), u(
758
- "div",
759
- {
760
- class: C(["iking-privew-annex", { "is-bg": t.showBg }]),
761
- key: h,
762
- style: b({
763
- marginBottom: h == ((H = t.list) == null ? void 0 : H.length) - 1 ? "0" : "10px",
764
- width: a.value
765
- })
766
- },
767
- [
768
- r("div", {
769
- class: "file-card",
770
- onClick: (E) => f(k)
771
- }, [
772
- F(h6, {
773
- file: k,
774
- style: b({ height: `${t.iconSize}px` }),
775
- class: "ikui-w-auto",
776
- fields: l.value
777
- }, null, 8, ["file", "style", "fields"]),
778
- r("div", m6, [
779
- r(
761
+ [
762
+ t.simple ? (c(!0), u(
763
+ M,
764
+ { key: 0 },
765
+ L(v.value, (f, O) => (c(), u("div", {
766
+ class: "iking-privew-annex simple",
767
+ onClick: (B) => p(f),
768
+ style: z({ width: l.value })
769
+ }, [
770
+ r(
771
+ "div",
772
+ m6,
773
+ V(f.name),
774
+ 1
775
+ /* TEXT */
776
+ ),
777
+ r(
778
+ "div",
779
+ {
780
+ class: S(["flex flex-center", { "hover-show": t.iconHoverShow }])
781
+ },
782
+ [
783
+ k(g(R), {
784
+ name: "iksvg_daochu",
785
+ onClick: K((B) => h(f), ["stop"]),
786
+ size: 20,
787
+ active: ""
788
+ }, null, 8, ["onClick"]),
789
+ k(g(R), {
790
+ name: "iksvg_yulan",
791
+ size: 20,
792
+ active: ""
793
+ }),
794
+ C(d.$slots, "operation", {
795
+ data: { ...f, findex: O }
796
+ })
797
+ ],
798
+ 2
799
+ /* CLASS */
800
+ )
801
+ ], 12, g6))),
802
+ 256
803
+ /* UNKEYED_FRAGMENT */
804
+ )) : (c(), b(x, { key: 1 }, {
805
+ default: y(() => [
806
+ (c(!0), u(
807
+ M,
808
+ null,
809
+ L(v.value, (f, O) => {
810
+ var B;
811
+ return c(), u(
780
812
  "div",
781
- y6,
782
- O(k.name),
783
- 1
784
- /* TEXT */
785
- ),
786
- r(
787
- "div",
788
- w6,
789
- O(g(r3)(k.size)),
790
- 1
791
- /* TEXT */
792
- )
793
- ]),
794
- r(
795
- "div",
796
- {
797
- class: C(["flex flex-center", { "hover-show": t.iconHoverShow }])
798
- },
799
- [
800
- F(g(A), {
801
- name: "iksvg_daochu",
802
- onClick: J((E) => v(k), ["stop"]),
803
- bg: t.showBg,
804
- size: t.showBg ? "default" : 20
805
- }, null, 8, ["onClick", "bg", "size"]),
806
- F(g(A), {
807
- name: "iksvg_yulan",
808
- bg: t.showBg,
809
- size: t.showBg ? "default" : 20
810
- }, null, 8, ["bg", "size"]),
811
- V(d.$slots, "operation", {
812
- data: { ...k, findex: h }
813
- })
814
- ],
815
- 2
816
- /* CLASS */
817
- )
818
- ], 8, g6)
819
- ],
820
- 6
821
- /* CLASS, STYLE */
822
- );
823
- }),
824
- 128
825
- /* KEYED_FRAGMENT */
826
- )) : B("v-if", !0),
827
- F(g(z6), {
828
- show: s.value,
829
- "onUpdate:show": w[0] || (w[0] = (k) => s.value = k),
813
+ {
814
+ class: S(["iking-privew-annex", { "is-bg": t.showBg }]),
815
+ key: O,
816
+ style: z({
817
+ marginBottom: O == ((B = t.list) == null ? void 0 : B.length) - 1 ? "0" : "10px",
818
+ width: l.value
819
+ })
820
+ },
821
+ [
822
+ r("div", {
823
+ class: "file-card",
824
+ onClick: (j) => p(f)
825
+ }, [
826
+ k(h6, {
827
+ file: f,
828
+ style: z({ height: `${t.iconSize}px` }),
829
+ class: "ikui-w-auto",
830
+ fields: s.value
831
+ }, null, 8, ["file", "style", "fields"]),
832
+ r("div", w6, [
833
+ r(
834
+ "div",
835
+ _6,
836
+ V(f.name),
837
+ 1
838
+ /* TEXT */
839
+ ),
840
+ r(
841
+ "div",
842
+ k6,
843
+ V(g(r3)(f.size)),
844
+ 1
845
+ /* TEXT */
846
+ )
847
+ ]),
848
+ r(
849
+ "div",
850
+ {
851
+ class: S(["flex flex-center", { "hover-show": t.iconHoverShow }])
852
+ },
853
+ [
854
+ k(g(R), {
855
+ name: "iksvg_daochu",
856
+ onClick: K((j) => h(f), ["stop"]),
857
+ bg: t.showBg,
858
+ size: t.showBg ? "default" : 20
859
+ }, null, 8, ["onClick", "bg", "size"]),
860
+ k(g(R), {
861
+ name: "iksvg_yulan",
862
+ bg: t.showBg,
863
+ size: t.showBg ? "default" : 20
864
+ }, null, 8, ["bg", "size"]),
865
+ C(d.$slots, "operation", {
866
+ data: { ...f, findex: O }
867
+ })
868
+ ],
869
+ 2
870
+ /* CLASS */
871
+ )
872
+ ], 8, y6)
873
+ ],
874
+ 6
875
+ /* CLASS, STYLE */
876
+ );
877
+ }),
878
+ 128
879
+ /* KEYED_FRAGMENT */
880
+ ))
881
+ ]),
882
+ _: 3
883
+ /* FORWARDED */
884
+ }))
885
+ ],
886
+ 64
887
+ /* STABLE_FRAGMENT */
888
+ )) : $("v-if", !0),
889
+ k(g(F6), {
890
+ show: a.value,
891
+ "onUpdate:show": w[0] || (w[0] = (f) => a.value = f),
830
892
  loadUrl: g(o),
831
893
  file: i.value,
832
- onlyofficeServer: ((x = g(e)) == null ? void 0 : x.serverUrl) || t.onlyofficeServer,
894
+ onlyofficeServer: ((A = g(e)) == null ? void 0 : A.serverUrl) || t.onlyofficeServer,
833
895
  onlyOfficeConfig: g(e),
834
- onlyOfficeAccept: ((q = g(e)) == null ? void 0 : q.accept) || t.onlyOfficeAccept
896
+ onlyOfficeAccept: ((P = g(e)) == null ? void 0 : P.accept) || t.onlyOfficeAccept
835
897
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
836
898
  ],
837
899
  64
@@ -840,9 +902,9 @@ const $ = (t, n) => {
840
902
  };
841
903
  }
842
904
  });
843
- const x6 = $(_6), k6 = /* @__PURE__ */ z({
905
+ const z6 = E(x6), b6 = /* @__PURE__ */ F({
844
906
  __name: "IkPreviewFileDialog",
845
- props: /* @__PURE__ */ G({
907
+ props: /* @__PURE__ */ Y({
846
908
  file: {
847
909
  type: Object,
848
910
  default: () => []
@@ -877,34 +939,34 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
877
939
  }),
878
940
  emits: ["update:show"],
879
941
  setup(t) {
880
- const n = t, o = X(t, "show"), e = m(() => ({
942
+ const n = t, o = Z(t, "show"), e = m(() => ({
881
943
  name: "name",
882
944
  url: "url",
883
945
  suffix: "suffix",
884
946
  size: "fileSize",
885
947
  ...n.field
886
- })), l = M(null), i = M(null), s = Q({
948
+ })), s = q(null), i = q(null), a = Q({
887
949
  image: !1,
888
950
  office: !1,
889
951
  video: !1
890
- }), f = (a) => {
891
- var p, d, w, _, x, q, k;
952
+ }), p = (l) => {
953
+ var v, d, w, x, _, A, P;
892
954
  try {
893
- const h = ((p = a == null ? void 0 : a.response) == null ? void 0 : p.data) || a, H = h[e.value.url] || (h == null ? void 0 : h.id) || h.attachmentId, E = (d = h[e.value.suffix] || h.attachmentSuffix) == null ? void 0 : d.toLowerCase(), Z = h[e.value.name] || (h == null ? void 0 : h.attachmentName) || (h == null ? void 0 : h.originName);
955
+ const f = ((v = l == null ? void 0 : l.response) == null ? void 0 : v.data) || l, O = f[e.value.url] || (f == null ? void 0 : f.id) || f.attachmentId, B = (d = f[e.value.suffix] || f.attachmentSuffix) == null ? void 0 : d.toLowerCase(), j = f[e.value.name] || (f == null ? void 0 : f.attachmentName) || (f == null ? void 0 : f.originName);
894
956
  if (i.value = {
895
- ...a,
896
- name: a[e.value.name],
897
- url: T(n.loadUrl, H)
898
- }, a && Y(a, e.value) === "image") {
899
- s.image = !0;
957
+ ...l,
958
+ name: l[e.value.name],
959
+ url: T(n.loadUrl, O)
960
+ }, l && J(l, e.value) === "image") {
961
+ a.image = !0;
900
962
  return;
901
- } else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(E)) {
902
- s.office = !0, l.value = {
963
+ } else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(B)) {
964
+ a.office = !0, s.value = {
903
965
  ...n.onlyOfficeConfig,
904
966
  editorConfig: {
905
- ...((_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) || {},
967
+ ...((x = n.onlyOfficeConfig) == null ? void 0 : x.editorConfig) || {},
906
968
  customization: {
907
- ...((q = (x = n.onlyOfficeConfig) == null ? void 0 : x.editorConfig) == null ? void 0 : q.customization) || {},
969
+ ...((A = (_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) == null ? void 0 : A.customization) || {},
908
970
  review: {
909
971
  reviewDisplay: "final"
910
972
  }
@@ -912,46 +974,46 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
912
974
  },
913
975
  document: {
914
976
  key: a3(),
915
- title: Z,
916
- url: T(n.loadUrl, H),
917
- fileType: E,
918
- ...((k = n.onlyOfficeConfig) == null ? void 0 : k.document) || {}
977
+ title: j,
978
+ url: T(n.loadUrl, O),
979
+ fileType: B,
980
+ ...((P = n.onlyOfficeConfig) == null ? void 0 : P.document) || {}
919
981
  },
920
- documentType: p3(E)
982
+ documentType: p3(B)
921
983
  };
922
984
  return;
923
985
  }
924
- } catch (h) {
925
- console.info("预览错误: ", h);
986
+ } catch (f) {
987
+ console.info("预览错误: ", f);
926
988
  }
927
989
  };
928
- e3([o, n.file], ([a, p]) => {
929
- a && t3(() => {
930
- f(n.file);
990
+ e3([o, n.file], ([l, v]) => {
991
+ l && t3(() => {
992
+ p(n.file);
931
993
  });
932
994
  });
933
- const v = () => {
934
- o.value = !1, s.office = !1, s.image = !1, s.video = !1;
995
+ const h = () => {
996
+ o.value = !1, a.office = !1, a.image = !1, a.video = !1;
935
997
  };
936
- return (a, p) => {
937
- var w, _;
998
+ return (l, v) => {
999
+ var w, x;
938
1000
  const d = I("el-image-viewer");
939
1001
  return o.value ? (c(), u(
940
- P,
1002
+ M,
941
1003
  { key: 0 },
942
1004
  [
943
- (w = i.value) != null && w.url && s.image ? (c(), S(d, {
1005
+ (w = i.value) != null && w.url && a.image ? (c(), b(d, {
944
1006
  key: 0,
945
- onClose: p[0] || (p[0] = (x) => {
946
- i.value = null, s.image = !1;
1007
+ onClose: v[0] || (v[0] = (_) => {
1008
+ i.value = null, a.image = !1;
947
1009
  }),
948
1010
  ref: "previewImgRef",
949
- "url-list": [(_ = i.value) == null ? void 0 : _.url]
950
- }, null, 8, ["url-list"])) : B("v-if", !0),
951
- B(" 文档类 "),
952
- F(g(E6), {
953
- modelValue: s.office,
954
- "onUpdate:modelValue": p[1] || (p[1] = (x) => s.office = x),
1011
+ "url-list": [(x = i.value) == null ? void 0 : x.url]
1012
+ }, null, 8, ["url-list"])) : $("v-if", !0),
1013
+ $(" 文档类 "),
1014
+ k(g(P6), {
1015
+ modelValue: a.office,
1016
+ "onUpdate:modelValue": v[1] || (v[1] = (_) => a.office = _),
955
1017
  draggable: "",
956
1018
  "no-footer": "",
957
1019
  "no-header": "",
@@ -961,15 +1023,15 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
961
1023
  "close-on-click-modal": "",
962
1024
  "close-on-press-escape": !1,
963
1025
  "append-to-body": "",
964
- onClose: v,
1026
+ onClose: h,
965
1027
  "modal-class": "ik-only-preview-dialog"
966
1028
  }, {
967
1029
  default: y(() => {
968
- var x;
1030
+ var _;
969
1031
  return [
970
- F(g(N6), {
971
- "config-options": l.value,
972
- "document-server-url": ((x = t.onlyOfficeConfig) == null ? void 0 : x.serverUrl) || t.onlyofficeServer
1032
+ k(g(G6), {
1033
+ "config-options": s.value,
1034
+ "document-server-url": ((_ = t.onlyOfficeConfig) == null ? void 0 : _.serverUrl) || t.onlyofficeServer
973
1035
  }, null, 8, ["config-options", "document-server-url"])
974
1036
  ];
975
1037
  }),
@@ -979,22 +1041,22 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
979
1041
  ],
980
1042
  64
981
1043
  /* STABLE_FRAGMENT */
982
- )) : B("v-if", !0);
1044
+ )) : $("v-if", !0);
983
1045
  };
984
1046
  }
985
1047
  });
986
- const z6 = $(k6), b6 = {
1048
+ const F6 = E(b6), S6 = {
987
1049
  key: 0,
988
1050
  class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
989
- }, F6 = {
1051
+ }, C6 = {
990
1052
  key: 1,
991
1053
  class: "h-[1em] w-[1em]",
992
1054
  "aria-hidden": "true"
993
- }, S6 = ["xlink:href"], C6 = ["src"], V6 = {
1055
+ }, V6 = ["xlink:href"], O6 = ["src"], B6 = {
994
1056
  key: 1,
995
1057
  class: "h-[1em] w-[1em]",
996
1058
  "aria-hidden": "true"
997
- }, O6 = ["xlink:href"], B6 = ["src"], I6 = /* @__PURE__ */ z({
1059
+ }, I6 = ["xlink:href"], R6 = ["src"], $6 = /* @__PURE__ */ F({
998
1060
  name: "IkSvgIcon",
999
1061
  __name: "index",
1000
1062
  props: {
@@ -1021,87 +1083,87 @@ const z6 = $(k6), b6 = {
1021
1083
  tableIconType: {}
1022
1084
  },
1023
1085
  setup(t) {
1024
- const n = t, o = R("iconConfig"), e = m(() => ({
1086
+ const n = t, o = D("iconConfig"), e = m(() => ({
1025
1087
  ...(o == null ? void 0 : o.value) || {},
1026
1088
  ...n
1027
- })), l = m(() => {
1028
- const { name: s } = e.value;
1029
- return /^http?:\/\//.test(s) ? "img" : /i-[^:]+:[^:]+/.test(s) ? "unocss" : s != null && s.startsWith("iksig") ? "iksig" : s != null && s.includes(":") ? "iconify" : s != null && s.startsWith("iksvg") ? "svg" : "i";
1089
+ })), s = m(() => {
1090
+ const { name: a } = e.value;
1091
+ return /^http?:\/\//.test(a) ? "img" : /i-[^:]+:[^:]+/.test(a) ? "unocss" : a != null && a.startsWith("iksig") ? "iksig" : a != null && a.includes(":") ? "iconify" : a != null && a.startsWith("iksvg") ? "svg" : "i";
1030
1092
  }), i = m(() => {
1031
- const s = [];
1093
+ const a = [];
1032
1094
  if (e.value.flip)
1033
1095
  switch (e.value.flip) {
1034
1096
  case "horizontal":
1035
- s.push("rotateY(180deg)");
1097
+ a.push("rotateY(180deg)");
1036
1098
  break;
1037
1099
  case "vertical":
1038
- s.push("rotateX(180deg)");
1100
+ a.push("rotateX(180deg)");
1039
1101
  break;
1040
1102
  case "both":
1041
- s.push("rotateX(180deg)"), s.push("rotateY(180deg)");
1103
+ a.push("rotateX(180deg)"), a.push("rotateY(180deg)");
1042
1104
  break;
1043
1105
  }
1044
- e.value.rotate && s.push(`rotate(${e.value.rotate % 360}deg)`);
1045
- const f = {
1106
+ e.value.rotate && a.push(`rotate(${e.value.rotate % 360}deg)`);
1107
+ const p = {
1046
1108
  ...e.value.color && { color: e.value.color },
1047
1109
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
1048
- ...s.length && { transform: s.join(" ") },
1110
+ ...a.length && { transform: a.join(" ") },
1049
1111
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
1050
- ...e.value.color && l.value !== "iksig" ? {
1112
+ ...e.value.color && s.value !== "iksig" ? {
1051
1113
  "--ik-color-icon-dark": e.value.color,
1052
1114
  "--ik-color-icon-light": e.value.colorLight || c3.setOpacity(e.value.color, e.value.opacity)
1053
1115
  } : {}
1054
1116
  };
1055
- return e.value.width && (f.width = f.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), f;
1117
+ return e.value.width && (p.width = p.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), p;
1056
1118
  });
1057
- return (s, f) => {
1058
- const v = I("el-tooltip"), a = I("el-button");
1059
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), u("span", b6, [
1119
+ return (a, p) => {
1120
+ const h = I("el-tooltip"), l = I("el-button");
1121
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), u("span", S6, [
1060
1122
  e.value.notip || !e.value.title ? (c(), u(
1061
1123
  "i",
1062
1124
  {
1063
1125
  key: 0,
1064
- class: C(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1065
- [s.name]: l.value === "unocss",
1126
+ class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1127
+ [a.name]: s.value === "unocss",
1066
1128
  "show-bg": e.value.showBg || e.value.bg,
1067
1129
  default: e.value.size === "default",
1068
1130
  small: e.value.size === "small",
1069
1131
  big: e.value.size === "big",
1070
1132
  warning: e.value.warning || e.value.type === "warning",
1071
1133
  primary: e.value.primary || e.value.type === "primary",
1072
- success: s.success || e.value.type === "success",
1134
+ success: a.success || e.value.type === "success",
1073
1135
  error: e.value.error || e.value.type === "error",
1074
1136
  active: e.value.active,
1075
1137
  disabled: e.value.disabled
1076
1138
  }]),
1077
- style: b(i.value)
1139
+ style: z(i.value)
1078
1140
  },
1079
1141
  [
1080
- B(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1081
- l.value === "iksig" ? (c(), u(
1142
+ $(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1143
+ s.value === "iksig" ? (c(), u(
1082
1144
  "i",
1083
1145
  {
1084
1146
  key: 0,
1085
- class: C(`iksig ${e.value.name}`),
1086
- style: b(i.value)
1147
+ class: S(`iksig ${e.value.name}`),
1148
+ style: z(i.value)
1087
1149
  },
1088
1150
  null,
1089
1151
  6
1090
1152
  /* CLASS, STYLE */
1091
- )) : l.value === "svg" ? (c(), u("svg", F6, [
1153
+ )) : s.value === "svg" ? (c(), u("svg", C6, [
1092
1154
  r("use", {
1093
1155
  "xlink:href": `#${e.value.name}`
1094
- }, null, 8, S6)
1095
- ])) : l.value === "img" ? (c(), u("img", {
1156
+ }, null, 8, V6)
1157
+ ])) : s.value === "img" ? (c(), u("img", {
1096
1158
  key: 2,
1097
1159
  src: e.value.name,
1098
1160
  class: "h-[1em] w-[1em]"
1099
- }, null, 8, C6)) : (c(), u(
1161
+ }, null, 8, O6)) : (c(), u(
1100
1162
  "i",
1101
1163
  {
1102
1164
  key: 3,
1103
- class: C(e.value.name),
1104
- style: b(i.value)
1165
+ class: S(e.value.name),
1166
+ style: z(i.value)
1105
1167
  },
1106
1168
  null,
1107
1169
  6
@@ -1110,7 +1172,7 @@ const z6 = $(k6), b6 = {
1110
1172
  ],
1111
1173
  6
1112
1174
  /* CLASS, STYLE */
1113
- )) : (c(), S(v, {
1175
+ )) : (c(), b(h, {
1114
1176
  key: 1,
1115
1177
  content: e.value.title,
1116
1178
  placement: "top"
@@ -1119,45 +1181,45 @@ const z6 = $(k6), b6 = {
1119
1181
  r(
1120
1182
  "i",
1121
1183
  {
1122
- class: C(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1123
- [s.name]: l.value === "unocss",
1184
+ class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1185
+ [a.name]: s.value === "unocss",
1124
1186
  "show-bg": e.value.showBg || e.value.bg,
1125
1187
  default: e.value.size === "default",
1126
1188
  small: e.value.size === "small",
1127
1189
  big: e.value.size === "big",
1128
1190
  warning: e.value.warning || e.value.type === "warning",
1129
- primary: s.primary || e.value.type === "primary",
1130
- success: s.success || e.value.type === "success",
1191
+ primary: a.primary || e.value.type === "primary",
1192
+ success: a.success || e.value.type === "success",
1131
1193
  error: e.value.error || e.value.type === "error",
1132
1194
  active: e.value.active
1133
1195
  }]),
1134
- style: b(i.value)
1196
+ style: z(i.value)
1135
1197
  },
1136
1198
  [
1137
- l.value === "iksig" ? (c(), u(
1199
+ s.value === "iksig" ? (c(), u(
1138
1200
  "i",
1139
1201
  {
1140
1202
  key: 0,
1141
- class: C(`iksig ${e.value.name}`),
1142
- style: b(i.value)
1203
+ class: S(`iksig ${e.value.name}`),
1204
+ style: z(i.value)
1143
1205
  },
1144
1206
  null,
1145
1207
  6
1146
1208
  /* CLASS, STYLE */
1147
- )) : l.value === "svg" ? (c(), u("svg", V6, [
1209
+ )) : s.value === "svg" ? (c(), u("svg", B6, [
1148
1210
  r("use", {
1149
1211
  "xlink:href": `#${e.value.name}`
1150
- }, null, 8, O6)
1151
- ])) : l.value === "img" ? (c(), u("img", {
1212
+ }, null, 8, I6)
1213
+ ])) : s.value === "img" ? (c(), u("img", {
1152
1214
  key: 2,
1153
1215
  src: e.value.name,
1154
1216
  class: "h-[1em] w-[1em]"
1155
- }, null, 8, B6)) : (c(), u(
1217
+ }, null, 8, R6)) : (c(), u(
1156
1218
  "i",
1157
1219
  {
1158
1220
  key: 3,
1159
- class: C(e.value.name),
1160
- style: b(i.value)
1221
+ class: S(e.value.name),
1222
+ style: z(i.value)
1161
1223
  },
1162
1224
  null,
1163
1225
  6
@@ -1171,13 +1233,13 @@ const z6 = $(k6), b6 = {
1171
1233
  _: 1
1172
1234
  /* STABLE */
1173
1235
  }, 8, ["content"]))
1174
- ])) : (c(), S(a, {
1236
+ ])) : (c(), b(l, {
1175
1237
  key: 1,
1176
1238
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
1177
1239
  }, {
1178
1240
  default: y(() => [
1179
- D(
1180
- O(e.value.title),
1241
+ H(
1242
+ V(e.value.title),
1181
1243
  1
1182
1244
  /* TEXT */
1183
1245
  )
@@ -1188,10 +1250,10 @@ const z6 = $(k6), b6 = {
1188
1250
  };
1189
1251
  }
1190
1252
  });
1191
- const R6 = /* @__PURE__ */ U(I6, [["__scopeId", "data-v-7729b79a"]]), A = $(R6), D6 = {
1253
+ const D6 = /* @__PURE__ */ U($6, [["__scopeId", "data-v-7729b79a"]]), R = E(D6), M6 = {
1192
1254
  key: 0,
1193
1255
  class: "exit-main-page-maximize"
1194
- }, M6 = /* @__PURE__ */ z({
1256
+ }, H6 = /* @__PURE__ */ F({
1195
1257
  __name: "CloseIcon",
1196
1258
  props: {
1197
1259
  showBg: {
@@ -1205,14 +1267,14 @@ const R6 = /* @__PURE__ */ U(I6, [["__scopeId", "data-v-7729b79a"]]), A = $(R6),
1205
1267
  },
1206
1268
  setup(t) {
1207
1269
  return (n, o) => (c(), u("div", null, [
1208
- t.showBg && t.fullscreen ? (c(), u("div", D6, [
1209
- F(g(A), {
1270
+ t.showBg && t.fullscreen ? (c(), u("div", M6, [
1271
+ k(g(R), {
1210
1272
  name: "iksvg_guanbidanchuang",
1211
1273
  title: "关闭",
1212
1274
  size: 20,
1213
1275
  error: ""
1214
1276
  })
1215
- ])) : (c(), S(g(A), {
1277
+ ])) : (c(), b(g(R), {
1216
1278
  key: 1,
1217
1279
  error: "",
1218
1280
  name: "iksvg_guanbidanchuang",
@@ -1222,9 +1284,9 @@ const R6 = /* @__PURE__ */ U(I6, [["__scopeId", "data-v-7729b79a"]]), A = $(R6),
1222
1284
  ]));
1223
1285
  }
1224
1286
  });
1225
- const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { class: "base-header" }, H6 = /* @__PURE__ */ z({
1287
+ const q6 = /* @__PURE__ */ U(H6, [["__scopeId", "data-v-79f49df8"]]), E6 = { class: "base-header" }, A6 = /* @__PURE__ */ F({
1226
1288
  __name: "IkBaseDialog",
1227
- props: /* @__PURE__ */ G({
1289
+ props: /* @__PURE__ */ Y({
1228
1290
  title: { default: "" },
1229
1291
  cancelText: { default: "取消" },
1230
1292
  confirmText: { default: "确认" },
@@ -1243,64 +1305,64 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
1243
1305
  }),
1244
1306
  emits: ["update:modelValue"],
1245
1307
  setup(t) {
1246
- const n = t, o = X(t, "modelValue"), e = M(n.fullscreen), l = () => {
1308
+ const n = t, o = Z(t, "modelValue"), e = q(n.fullscreen), s = () => {
1247
1309
  e.value = !e.value;
1248
- }, i = z({
1310
+ }, i = F({
1249
1311
  setup() {
1250
- return () => n3($6, {
1312
+ return () => n3(q6, {
1251
1313
  showBg: n.showCloseBg,
1252
1314
  fullscreen: n.fullscreen
1253
1315
  });
1254
1316
  }
1255
1317
  });
1256
- return (s, f) => {
1257
- const v = I("el-dialog");
1258
- return c(), S(v, j({
1318
+ return (a, p) => {
1319
+ const h = I("el-dialog");
1320
+ return c(), b(h, N({
1259
1321
  modelValue: o.value,
1260
- "onUpdate:modelValue": f[0] || (f[0] = (a) => o.value = a)
1261
- }, s.$attrs, {
1322
+ "onUpdate:modelValue": p[0] || (p[0] = (l) => o.value = l)
1323
+ }, a.$attrs, {
1262
1324
  "close-icon": g(i),
1263
- class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
1325
+ class: `ik-base-dialog ${a.noHeader ? "no-header" : ""} ${a.noFooter ? "no-footer" : ""}`,
1264
1326
  fullscreen: e.value,
1265
1327
  "modal-class": "baseDialog"
1266
1328
  }), o3({
1267
1329
  icon: y(() => [
1268
- V(s.$slots, "title", {}, () => [
1269
- D(
1270
- O(s.title),
1330
+ C(a.$slots, "title", {}, () => [
1331
+ H(
1332
+ V(a.title),
1271
1333
  1
1272
1334
  /* TEXT */
1273
1335
  )
1274
1336
  ])
1275
1337
  ]),
1276
1338
  header: y(() => [
1277
- r("div", q6, [
1278
- V(s.$slots, "header", {}, () => [
1279
- D(
1280
- O(s.title),
1339
+ r("div", E6, [
1340
+ C(a.$slots, "header", {}, () => [
1341
+ H(
1342
+ V(a.title),
1281
1343
  1
1282
1344
  /* TEXT */
1283
1345
  )
1284
1346
  ])
1285
1347
  ]),
1286
- s.$attrs.showClose ? (c(), S(g(A), {
1348
+ a.$attrs.showClose ? (c(), b(g(R), {
1287
1349
  key: 0,
1288
- onClick: l,
1350
+ onClick: s,
1289
1351
  name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1290
1352
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1291
1353
  title: e.value ? "退出全屏" : "全屏"
1292
- }, null, 8, ["name", "title"])) : B("v-if", !0)
1354
+ }, null, 8, ["name", "title"])) : $("v-if", !0)
1293
1355
  ]),
1294
1356
  default: y(() => [
1295
- V(s.$slots, "default")
1357
+ C(a.$slots, "default")
1296
1358
  ]),
1297
1359
  _: 2
1298
1360
  /* DYNAMIC */
1299
1361
  }, [
1300
- s.$slots.footer ? {
1362
+ a.$slots.footer ? {
1301
1363
  name: "footer",
1302
1364
  fn: y(() => [
1303
- V(s.$slots, "footer")
1365
+ C(a.$slots, "footer")
1304
1366
  ]),
1305
1367
  key: "0"
1306
1368
  } : void 0
@@ -1308,135 +1370,135 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
1308
1370
  };
1309
1371
  }
1310
1372
  });
1311
- const E6 = $(H6);
1312
- function A6(t, n, o, e) {
1313
- function l(i) {
1314
- return i instanceof o ? i : new o(function(s) {
1315
- s(i);
1373
+ const P6 = E(A6);
1374
+ function T6(t, n, o, e) {
1375
+ function s(i) {
1376
+ return i instanceof o ? i : new o(function(a) {
1377
+ a(i);
1316
1378
  });
1317
1379
  }
1318
- return new (o || (o = Promise))(function(i, s) {
1319
- function f(p) {
1380
+ return new (o || (o = Promise))(function(i, a) {
1381
+ function p(v) {
1320
1382
  try {
1321
- a(e.next(p));
1383
+ l(e.next(v));
1322
1384
  } catch (d) {
1323
- s(d);
1385
+ a(d);
1324
1386
  }
1325
1387
  }
1326
- function v(p) {
1388
+ function h(v) {
1327
1389
  try {
1328
- a(e.throw(p));
1390
+ l(e.throw(v));
1329
1391
  } catch (d) {
1330
- s(d);
1392
+ a(d);
1331
1393
  }
1332
1394
  }
1333
- function a(p) {
1334
- p.done ? i(p.value) : l(p.value).then(f, v);
1395
+ function l(v) {
1396
+ v.done ? i(v.value) : s(v.value).then(p, h);
1335
1397
  }
1336
- a((e = e.apply(t, n || [])).next());
1398
+ l((e = e.apply(t, n || [])).next());
1337
1399
  });
1338
1400
  }
1339
- function P6(t, n) {
1401
+ function U6(t, n) {
1340
1402
  var o = { label: 0, sent: function() {
1341
1403
  if (i[0] & 1)
1342
1404
  throw i[1];
1343
1405
  return i[1];
1344
- }, trys: [], ops: [] }, e, l, i, s;
1345
- return s = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
1406
+ }, trys: [], ops: [] }, e, s, i, a;
1407
+ return a = { next: p(0), throw: p(1), return: p(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
1346
1408
  return this;
1347
- }), s;
1348
- function f(a) {
1349
- return function(p) {
1350
- return v([a, p]);
1409
+ }), a;
1410
+ function p(l) {
1411
+ return function(v) {
1412
+ return h([l, v]);
1351
1413
  };
1352
1414
  }
1353
- function v(a) {
1415
+ function h(l) {
1354
1416
  if (e)
1355
1417
  throw new TypeError("Generator is already executing.");
1356
- for (; s && (s = 0, a[0] && (o = 0)), o; )
1418
+ for (; a && (a = 0, l[0] && (o = 0)), o; )
1357
1419
  try {
1358
- if (e = 1, l && (i = a[0] & 2 ? l.return : a[0] ? l.throw || ((i = l.return) && i.call(l), 0) : l.next) && !(i = i.call(l, a[1])).done)
1420
+ if (e = 1, s && (i = l[0] & 2 ? s.return : l[0] ? s.throw || ((i = s.return) && i.call(s), 0) : s.next) && !(i = i.call(s, l[1])).done)
1359
1421
  return i;
1360
- switch (l = 0, i && (a = [a[0] & 2, i.value]), a[0]) {
1422
+ switch (s = 0, i && (l = [l[0] & 2, i.value]), l[0]) {
1361
1423
  case 0:
1362
1424
  case 1:
1363
- i = a;
1425
+ i = l;
1364
1426
  break;
1365
1427
  case 4:
1366
- return o.label++, { value: a[1], done: !1 };
1428
+ return o.label++, { value: l[1], done: !1 };
1367
1429
  case 5:
1368
- o.label++, l = a[1], a = [0];
1430
+ o.label++, s = l[1], l = [0];
1369
1431
  continue;
1370
1432
  case 7:
1371
- a = o.ops.pop(), o.trys.pop();
1433
+ l = o.ops.pop(), o.trys.pop();
1372
1434
  continue;
1373
1435
  default:
1374
- if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (a[0] === 6 || a[0] === 2)) {
1436
+ if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (l[0] === 6 || l[0] === 2)) {
1375
1437
  o = 0;
1376
1438
  continue;
1377
1439
  }
1378
- if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
1379
- o.label = a[1];
1440
+ if (l[0] === 3 && (!i || l[1] > i[0] && l[1] < i[3])) {
1441
+ o.label = l[1];
1380
1442
  break;
1381
1443
  }
1382
- if (a[0] === 6 && o.label < i[1]) {
1383
- o.label = i[1], i = a;
1444
+ if (l[0] === 6 && o.label < i[1]) {
1445
+ o.label = i[1], i = l;
1384
1446
  break;
1385
1447
  }
1386
1448
  if (i && o.label < i[2]) {
1387
- o.label = i[2], o.ops.push(a);
1449
+ o.label = i[2], o.ops.push(l);
1388
1450
  break;
1389
1451
  }
1390
1452
  i[2] && o.ops.pop(), o.trys.pop();
1391
1453
  continue;
1392
1454
  }
1393
- a = n.call(t, o);
1394
- } catch (p) {
1395
- a = [6, p], l = 0;
1455
+ l = n.call(t, o);
1456
+ } catch (v) {
1457
+ l = [6, v], s = 0;
1396
1458
  } finally {
1397
1459
  e = i = 0;
1398
1460
  }
1399
- if (a[0] & 5)
1400
- throw a[1];
1401
- return { value: a[0] ? a[1] : void 0, done: !0 };
1461
+ if (l[0] & 5)
1462
+ throw l[1];
1463
+ return { value: l[0] ? l[1] : void 0, done: !0 };
1402
1464
  }
1403
1465
  }
1404
- var T6 = function(t, n) {
1405
- return A6(void 0, void 0, void 0, function() {
1406
- return P6(this, function(o) {
1407
- return [2, new Promise(function(e, l) {
1466
+ var j6 = function(t, n) {
1467
+ return T6(void 0, void 0, void 0, function() {
1468
+ return U6(this, function(o) {
1469
+ return [2, new Promise(function(e, s) {
1408
1470
  try {
1409
1471
  if (window.DocsAPI)
1410
1472
  return e(null);
1411
1473
  var i = document.getElementById(n);
1412
1474
  if (i)
1413
- var s = setInterval(function() {
1414
- var v = i.getAttribute("loading");
1415
- if (!v) {
1416
- if (clearInterval(s), window.DocsAPI)
1475
+ var a = setInterval(function() {
1476
+ var h = i.getAttribute("loading");
1477
+ if (!h) {
1478
+ if (clearInterval(a), window.DocsAPI)
1417
1479
  return e(null);
1418
- var a = N(n, t, e, l);
1419
- i.remove(), document.body.appendChild(a);
1480
+ var l = X(n, t, e, s);
1481
+ i.remove(), document.body.appendChild(l);
1420
1482
  }
1421
1483
  }, 500);
1422
1484
  else {
1423
- var f = N(n, t, e, l);
1424
- document.body.appendChild(f);
1485
+ var p = X(n, t, e, s);
1486
+ document.body.appendChild(p);
1425
1487
  }
1426
- } catch (v) {
1427
- console.error(v);
1488
+ } catch (h) {
1489
+ console.error(h);
1428
1490
  }
1429
1491
  })];
1430
1492
  });
1431
1493
  });
1432
- }, N = function(t, n, o, e) {
1433
- var l = document.createElement("script");
1434
- return l.id = t, l.type = "text/javascript", l.src = n, l.async = !0, l.onload = function() {
1435
- l.removeAttribute("loading"), o(null);
1436
- }, l.onerror = function(i) {
1437
- l.removeAttribute("loading"), e(i);
1438
- }, l.setAttribute("loading", ""), l;
1439
- }, L = z({
1494
+ }, X = function(t, n, o, e) {
1495
+ var s = document.createElement("script");
1496
+ return s.id = t, s.type = "text/javascript", s.src = n, s.async = !0, s.onload = function() {
1497
+ s.removeAttribute("loading"), o(null);
1498
+ }, s.onerror = function(i) {
1499
+ s.removeAttribute("loading"), e(i);
1500
+ }, s.setAttribute("loading", ""), s;
1501
+ }, W = F({
1440
1502
  name: "DocumentEditor",
1441
1503
  props: {
1442
1504
  id: {
@@ -1491,7 +1553,7 @@ var T6 = function(t, n) {
1491
1553
  var t = this, n = this.documentServerUrl;
1492
1554
  n.endsWith("/") || (n += "/");
1493
1555
  var o = "".concat(n, "web-apps/apps/api/documents/api.js");
1494
- T6(o, "onlyoffice-api-script").then(function() {
1556
+ j6(o, "onlyoffice-api-script").then(function() {
1495
1557
  return t.onLoad();
1496
1558
  }).catch(function() {
1497
1559
  t.onError(-2);
@@ -1575,8 +1637,8 @@ var T6 = function(t, n) {
1575
1637
  height: this.height,
1576
1638
  type: this.type,
1577
1639
  width: this.width
1578
- }, this.config || {}), l = window.DocsAPI.DocEditor(o, e);
1579
- window.DocEditor.instances[o] = l;
1640
+ }, this.config || {}), s = window.DocsAPI.DocEditor(o, e);
1641
+ window.DocEditor.instances[o] = s;
1580
1642
  } catch (i) {
1581
1643
  console.error(i), this.onError(-1);
1582
1644
  }
@@ -1605,13 +1667,13 @@ var T6 = function(t, n) {
1605
1667
  }
1606
1668
  }
1607
1669
  });
1608
- const U6 = ["id"];
1609
- function j6(t, n, o, e, l, i) {
1610
- return c(), u("div", { id: t.id }, null, 8, U6);
1670
+ const L6 = ["id"];
1671
+ function N6(t, n, o, e, s, i) {
1672
+ return c(), u("div", { id: t.id }, null, 8, L6);
1611
1673
  }
1612
- L.render = j6;
1613
- L.__file = "src/components/DocumentEditor.vue";
1614
- const L6 = /* @__PURE__ */ z({
1674
+ W.render = N6;
1675
+ W.__file = "src/components/DocumentEditor.vue";
1676
+ const W6 = /* @__PURE__ */ F({
1615
1677
  __name: "IkOnlyOffice",
1616
1678
  props: {
1617
1679
  // 文件服务器的服务的地址
@@ -1632,7 +1694,7 @@ const L6 = /* @__PURE__ */ z({
1632
1694
  }
1633
1695
  },
1634
1696
  setup(t) {
1635
- const n = t, o = M({
1697
+ const n = t, o = q({
1636
1698
  width: "100%",
1637
1699
  height: "100%",
1638
1700
  ...n.configOptions || {},
@@ -1640,13 +1702,13 @@ const L6 = /* @__PURE__ */ z({
1640
1702
  }), e = () => {
1641
1703
  console.info("文档加载完成", n.configOptions);
1642
1704
  };
1643
- return (l, i) => (c(), u(
1705
+ return (s, i) => (c(), u(
1644
1706
  "div",
1645
1707
  {
1646
- style: b({ height: n.officeHeight })
1708
+ style: z({ height: n.officeHeight })
1647
1709
  },
1648
1710
  [
1649
- F(g(L), {
1711
+ k(g(W), {
1650
1712
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1651
1713
  ref: "editorRef",
1652
1714
  "document-server-url": t.documentServerUrl,
@@ -1659,7 +1721,7 @@ const L6 = /* @__PURE__ */ z({
1659
1721
  ));
1660
1722
  }
1661
1723
  });
1662
- const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6), K6 = /* @__PURE__ */ z({
1724
+ const K6 = /* @__PURE__ */ U(W6, [["__scopeId", "data-v-98d51ef9"]]), G6 = E(K6), X6 = /* @__PURE__ */ F({
1663
1725
  __name: "IKDescription",
1664
1726
  props: {
1665
1727
  showIcon: {
@@ -1718,7 +1780,7 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
1718
1780
  }
1719
1781
  },
1720
1782
  setup(t) {
1721
- i3((l) => ({
1783
+ i3((s) => ({
1722
1784
  "645335a7": e.value
1723
1785
  }));
1724
1786
  const n = t, o = {
@@ -1730,52 +1792,52 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
1730
1792
  fileList: "fileList",
1731
1793
  ...n.fileField
1732
1794
  }, e = m(() => typeof n.labelWidth == "number" ? `${n.labelWidth}px` : n.labelWidth);
1733
- return (l, i) => {
1734
- const s = I("el-tag"), f = I("el-descriptions-item"), v = I("el-descriptions");
1735
- return c(), S(
1736
- v,
1737
- j({ class: "margin-top" }, { ...t.titleProps, ...n }),
1795
+ return (s, i) => {
1796
+ const a = I("el-tag"), p = I("el-descriptions-item"), h = I("el-descriptions");
1797
+ return c(), b(
1798
+ h,
1799
+ N({ class: "margin-top" }, { ...t.titleProps, ...n }),
1738
1800
  {
1739
1801
  extra: y(() => [
1740
- V(l.$slots, "extra", {}, void 0, !0)
1802
+ C(s.$slots, "extra", {}, void 0, !0)
1741
1803
  ]),
1742
1804
  default: y(() => [
1743
1805
  (c(!0), u(
1744
- P,
1806
+ M,
1745
1807
  null,
1746
- K(t.listData, (a) => (c(), S(
1747
- f,
1748
- j({
1749
- key: a[o.id],
1808
+ L(t.listData, (l) => (c(), b(
1809
+ p,
1810
+ N({
1811
+ key: l[o.id],
1750
1812
  ref_for: !0
1751
- }, a[o.props]),
1813
+ }, l[o.props]),
1752
1814
  {
1753
1815
  label: y(() => [
1754
- V(l.$slots, a[o.label], {}, () => [
1755
- D(
1756
- O(a[o.label]),
1816
+ C(s.$slots, l[o.label], {}, () => [
1817
+ H(
1818
+ V(l[o.label]),
1757
1819
  1
1758
1820
  /* TEXT */
1759
1821
  )
1760
1822
  ], !0)
1761
1823
  ]),
1762
1824
  default: y(() => [
1763
- V(l.$slots, `${a[o.label]}_value`, {}, () => [
1764
- D(
1765
- O(a[o.value]) + " ",
1825
+ C(s.$slots, `${l[o.label]}_value`, {}, () => [
1826
+ H(
1827
+ V(l[o.value]) + " ",
1766
1828
  1
1767
1829
  /* TEXT */
1768
1830
  ),
1769
- a[o.tag] ? (c(), S(
1770
- s,
1831
+ l[o.tag] ? (c(), b(
1832
+ a,
1771
1833
  {
1772
1834
  key: 0,
1773
1835
  size: "small"
1774
1836
  },
1775
1837
  {
1776
1838
  default: y(() => [
1777
- D(
1778
- O(a[o.value].value),
1839
+ H(
1840
+ V(l[o.value].value),
1779
1841
  1
1780
1842
  /* TEXT */
1781
1843
  )
@@ -1785,9 +1847,9 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
1785
1847
  },
1786
1848
  1024
1787
1849
  /* DYNAMIC_SLOTS */
1788
- )) : B("v-if", !0),
1789
- F(g(x6), {
1790
- list: a[o.fileList],
1850
+ )) : $("v-if", !0),
1851
+ k(g(z6), {
1852
+ list: l[o.fileList],
1791
1853
  field: t.fileField,
1792
1854
  "load-url": t.loadUrl,
1793
1855
  "kk-url": t.kkUrl,
@@ -1818,8 +1880,8 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
1818
1880
  };
1819
1881
  }
1820
1882
  });
1821
- const G6 = /* @__PURE__ */ U(K6, [["__scopeId", "data-v-38defd72"]]), J6 = $(G6);
1883
+ const Y6 = /* @__PURE__ */ U(X6, [["__scopeId", "data-v-38defd72"]]), ee = E(Y6);
1822
1884
  export {
1823
- J6 as IkDescriptions,
1824
- J6 as default
1885
+ ee as IkDescriptions,
1886
+ ee as default
1825
1887
  };