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 S, computed as m, defineComponent as z, mergeModels as W, useModel as G, ref as R, reactive as Y, watch as Z, nextTick as J, resolveComponent as E, openBlock as r, createElementBlock as u, Fragment as T, createBlock as B, createCommentVNode as V, createVNode as b, unref as g, withCtx as C, createElementVNode as c, normalizeClass as F, normalizeStyle as k, createTextVNode as P, toDisplayString as q, h as Q, mergeProps as e3, createSlots as t3, renderSlot as $, renderList as n3, withModifiers as o3 } from "vue";
1
+ import { inject as R, computed as m, defineComponent as F, mergeModels as X, useModel as Y, ref as D, reactive as J, watch as Q, nextTick as e3, resolveComponent as E, openBlock as r, createElementBlock as u, Fragment as O, createBlock as B, createCommentVNode as M, createVNode as k, unref as g, withCtx as S, createElementVNode as c, normalizeClass as z, normalizeStyle as x, createTextVNode as U, toDisplayString as $, h as t3, mergeProps as n3, createSlots as o3, renderSlot as I, renderList as N, withModifiers as W } from "vue";
2
2
  import { buildUUID as i3, ikColor as s3, paramType as l3, ikFile as a3 } from "iking-utils-pro";
3
- const O = (t, n) => {
3
+ const A = (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);
@@ -8,7 +8,7 @@ const O = (t, n) => {
8
8
  for (const [o, e] of Object.entries(n))
9
9
  t[o] = e;
10
10
  return t;
11
- }, U = (t, n) => {
11
+ }, j = (t, n) => {
12
12
  const o = t.__vccOpts || t;
13
13
  for (const [e, l] of n)
14
14
  o[e] = l;
@@ -21,18 +21,18 @@ const O = (t, n) => {
21
21
  const o = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
22
22
  let l = t / Math.pow(1024, e);
23
23
  return (l % 1 === 0 ? l.toFixed(n || 0) : l.toFixed(n)) + " " + o[e];
24
- }, A = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", r3 = (t) => {
25
- const n = S("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = S("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = S("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), h = S("onlyofficeConfig"), p = m(() => t.onlyofficeConfig || (h == null ? void 0 : h.value)), a = S("userInfo"), v = m(() => t.userInfo || (a == null ? void 0 : a.value));
24
+ }, T = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", r3 = (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)), h = R("onlyofficeConfig"), f = m(() => t.onlyofficeConfig || (h == null ? void 0 : h.value)), a = R("userInfo"), p = m(() => t.userInfo || (a == null ? void 0 : a.value));
26
26
  return {
27
27
  cLoadUrl: o,
28
28
  cUploadUrl: l,
29
29
  cToken: s,
30
- cOnlyofficeConfig: p,
31
- cUserInfo: v
30
+ cOnlyofficeConfig: f,
31
+ cUserInfo: p
32
32
  };
33
- }, d3 = r3, K = (t, n) => {
34
- var i, s, h, p;
35
- const o = (i = t == null ? void 0 : t.response) != null && i.data ? L((h = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : h.suffix) : ((p = t.raw) == null ? void 0 : p.type) || L(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), l = {
33
+ }, d3 = r3, Z = (t, n) => {
34
+ var i, s, h, f;
35
+ const o = (i = t == null ? void 0 : t.response) != null && i.data ? G((h = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : h.suffix) : ((f = t.raw) == null ? void 0 : f.type) || G(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), l = {
36
36
  sheet: "excel",
37
37
  excel: "excel",
38
38
  zip: "zip",
@@ -137,15 +137,15 @@ const O = (t, n) => {
137
137
  ".vob": "video",
138
138
  ".txt": "txt",
139
139
  ".pdf": "pdf"
140
- }, L = (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 && u3[o] || "unknow";
143
- }, h3 = (t) => {
143
+ }, v3 = (t) => {
144
144
  let n = "", o = ["doc", "docx"], e = ["xls", "xlsx"], l = ["ppt", "pptx"], i = ["pdf"];
145
145
  return o.includes(t) && (n = "word"), e.includes(t) && (n = "cell"), l.includes(t) && (n = "slide"), i.includes(t) && (n = "text-pdf"), n;
146
- }, v3 = /* @__PURE__ */ z({
146
+ }, h3 = /* @__PURE__ */ F({
147
147
  __name: "IkPreviewFileDialog",
148
- props: /* @__PURE__ */ W({
148
+ props: /* @__PURE__ */ X({
149
149
  file: {
150
150
  type: Object,
151
151
  default: () => []
@@ -180,34 +180,34 @@ const O = (t, n) => {
180
180
  }),
181
181
  emits: ["update:show"],
182
182
  setup(t) {
183
- const n = t, o = G(t, "show"), e = m(() => ({
183
+ const n = t, o = Y(t, "show"), e = m(() => ({
184
184
  name: "name",
185
185
  url: "url",
186
186
  suffix: "suffix",
187
187
  size: "fileSize",
188
188
  ...n.field
189
- })), l = R(null), i = R(null), s = Y({
189
+ })), l = D(null), i = D(null), s = J({
190
190
  image: !1,
191
191
  office: !1,
192
192
  video: !1
193
193
  }), h = (a) => {
194
- var v, d, w, _, y, I, x;
194
+ var p, d, w, y, _, H, q;
195
195
  try {
196
- const f = ((v = a == null ? void 0 : a.response) == null ? void 0 : v.data) || a, M = f[e.value.url] || (f == null ? void 0 : f.id) || f.attachmentId, D = (d = f[e.value.suffix] || f.attachmentSuffix) == null ? void 0 : d.toLowerCase(), X = f[e.value.name] || (f == null ? void 0 : f.attachmentName) || (f == null ? void 0 : f.originName);
196
+ const v = ((p = a == null ? void 0 : a.response) == null ? void 0 : p.data) || a, b = v[e.value.url] || (v == null ? void 0 : v.id) || v.attachmentId, C = (d = v[e.value.suffix] || v.attachmentSuffix) == null ? void 0 : d.toLowerCase(), P = v[e.value.name] || (v == null ? void 0 : v.attachmentName) || (v == null ? void 0 : v.originName);
197
197
  if (i.value = {
198
198
  ...a,
199
199
  name: a[e.value.name],
200
- url: A(n.loadUrl, M)
201
- }, a && K(a, e.value) === "image") {
200
+ url: T(n.loadUrl, b)
201
+ }, a && Z(a, e.value) === "image") {
202
202
  s.image = !0;
203
203
  return;
204
- } else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(D)) {
204
+ } else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(C)) {
205
205
  s.office = !0, l.value = {
206
206
  ...n.onlyOfficeConfig,
207
207
  editorConfig: {
208
- ...((_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) || {},
208
+ ...((y = n.onlyOfficeConfig) == null ? void 0 : y.editorConfig) || {},
209
209
  customization: {
210
- ...((I = (y = n.onlyOfficeConfig) == null ? void 0 : y.editorConfig) == null ? void 0 : I.customization) || {},
210
+ ...((H = (_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) == null ? void 0 : H.customization) || {},
211
211
  review: {
212
212
  reviewDisplay: "final"
213
213
  }
@@ -215,46 +215,46 @@ const O = (t, n) => {
215
215
  },
216
216
  document: {
217
217
  key: i3(),
218
- title: X,
219
- url: A(n.loadUrl, M),
220
- fileType: D,
221
- ...((x = n.onlyOfficeConfig) == null ? void 0 : x.document) || {}
218
+ title: P,
219
+ url: T(n.loadUrl, b),
220
+ fileType: C,
221
+ ...((q = n.onlyOfficeConfig) == null ? void 0 : q.document) || {}
222
222
  },
223
- documentType: h3(D)
223
+ documentType: v3(C)
224
224
  };
225
225
  return;
226
226
  }
227
- } catch (f) {
228
- console.info("预览错误: ", f);
227
+ } catch (v) {
228
+ console.info("预览错误: ", v);
229
229
  }
230
230
  };
231
- Z([o, n.file], ([a, v]) => {
232
- a && J(() => {
231
+ Q([o, n.file], ([a, p]) => {
232
+ a && e3(() => {
233
233
  h(n.file);
234
234
  });
235
235
  });
236
- const p = () => {
236
+ const f = () => {
237
237
  o.value = !1, s.office = !1, s.image = !1, s.video = !1;
238
238
  };
239
- return (a, v) => {
240
- var w, _;
239
+ return (a, p) => {
240
+ var w, y;
241
241
  const d = E("el-image-viewer");
242
242
  return o.value ? (r(), u(
243
- T,
243
+ O,
244
244
  { key: 0 },
245
245
  [
246
246
  (w = i.value) != null && w.url && s.image ? (r(), B(d, {
247
247
  key: 0,
248
- onClose: v[0] || (v[0] = (y) => {
248
+ onClose: p[0] || (p[0] = (_) => {
249
249
  i.value = null, s.image = !1;
250
250
  }),
251
251
  ref: "previewImgRef",
252
- "url-list": [(_ = i.value) == null ? void 0 : _.url]
253
- }, null, 8, ["url-list"])) : V("v-if", !0),
254
- V(" 文档类 "),
255
- b(g(I6), {
252
+ "url-list": [(y = i.value) == null ? void 0 : y.url]
253
+ }, null, 8, ["url-list"])) : M("v-if", !0),
254
+ M(" 文档类 "),
255
+ k(g(I6), {
256
256
  modelValue: s.office,
257
- "onUpdate:modelValue": v[1] || (v[1] = (y) => s.office = y),
257
+ "onUpdate:modelValue": p[1] || (p[1] = (_) => s.office = _),
258
258
  draggable: "",
259
259
  "no-footer": "",
260
260
  "no-header": "",
@@ -264,15 +264,15 @@ const O = (t, n) => {
264
264
  "close-on-click-modal": "",
265
265
  "close-on-press-escape": !1,
266
266
  "append-to-body": "",
267
- onClose: p,
267
+ onClose: f,
268
268
  "modal-class": "ik-only-preview-dialog"
269
269
  }, {
270
- default: C(() => {
271
- var y;
270
+ default: S(() => {
271
+ var _;
272
272
  return [
273
- b(g(A6), {
273
+ k(g(A6), {
274
274
  "config-options": l.value,
275
- "document-server-url": ((y = t.onlyOfficeConfig) == null ? void 0 : y.serverUrl) || t.onlyofficeServer
275
+ "document-server-url": ((_ = t.onlyOfficeConfig) == null ? void 0 : _.serverUrl) || t.onlyofficeServer
276
276
  }, null, 8, ["config-options", "document-server-url"])
277
277
  ];
278
278
  }),
@@ -282,11 +282,11 @@ const O = (t, n) => {
282
282
  ],
283
283
  64
284
284
  /* STABLE_FRAGMENT */
285
- )) : V("v-if", !0);
285
+ )) : M("v-if", !0);
286
286
  };
287
287
  }
288
288
  });
289
- const p3 = O(v3), f3 = {
289
+ const p3 = A(h3), f3 = {
290
290
  key: 0,
291
291
  t: "1686300059786",
292
292
  class: "icon",
@@ -341,7 +341,7 @@ const p3 = O(v3), f3 = {
341
341
  m3,
342
342
  w3,
343
343
  _3
344
- ], x3 = {
344
+ ], k3 = {
345
345
  key: 1,
346
346
  t: "1686301531714",
347
347
  class: "icon",
@@ -351,7 +351,7 @@ const p3 = O(v3), f3 = {
351
351
  "p-id": "9067",
352
352
  width: "200",
353
353
  height: "200"
354
- }, k3 = /* @__PURE__ */ c(
354
+ }, x3 = /* @__PURE__ */ c(
355
355
  "path",
356
356
  {
357
357
  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",
@@ -372,7 +372,7 @@ const p3 = O(v3), f3 = {
372
372
  -1
373
373
  /* HOISTED */
374
374
  ), F3 = [
375
- k3,
375
+ x3,
376
376
  z3
377
377
  ], b3 = {
378
378
  key: 2,
@@ -407,7 +407,7 @@ const p3 = O(v3), f3 = {
407
407
  ), V3 = [
408
408
  C3,
409
409
  S3
410
- ], R3 = {
410
+ ], B3 = {
411
411
  key: 3,
412
412
  t: "1686300157181",
413
413
  class: "icon",
@@ -417,7 +417,7 @@ const p3 = O(v3), f3 = {
417
417
  "p-id": "8292",
418
418
  width: "200",
419
419
  height: "200"
420
- }, B3 = /* @__PURE__ */ c(
420
+ }, R3 = /* @__PURE__ */ c(
421
421
  "path",
422
422
  {
423
423
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",
@@ -438,9 +438,9 @@ const p3 = O(v3), f3 = {
438
438
  -1
439
439
  /* HOISTED */
440
440
  ), M3 = [
441
- B3,
441
+ R3,
442
442
  I3
443
- ], D3 = {
443
+ ], $3 = {
444
444
  key: 4,
445
445
  t: "1686300180947",
446
446
  class: "icon",
@@ -450,7 +450,7 @@ const p3 = O(v3), f3 = {
450
450
  "p-id": "8447",
451
451
  width: "200",
452
452
  height: "200"
453
- }, $3 = /* @__PURE__ */ c(
453
+ }, D3 = /* @__PURE__ */ c(
454
454
  "path",
455
455
  {
456
456
  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",
@@ -460,7 +460,7 @@ const p3 = O(v3), f3 = {
460
460
  null,
461
461
  -1
462
462
  /* HOISTED */
463
- ), q3 = /* @__PURE__ */ c(
463
+ ), H3 = /* @__PURE__ */ c(
464
464
  "path",
465
465
  {
466
466
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -470,9 +470,9 @@ const p3 = O(v3), f3 = {
470
470
  null,
471
471
  -1
472
472
  /* HOISTED */
473
- ), H3 = [
474
- $3,
475
- q3
473
+ ), q3 = [
474
+ D3,
475
+ H3
476
476
  ], O3 = {
477
477
  key: 5,
478
478
  t: "1686300195363",
@@ -728,7 +728,7 @@ const p3 = O(v3), f3 = {
728
728
  "p-id": "7515",
729
729
  width: "200",
730
730
  height: "200"
731
- }, h6 = /* @__PURE__ */ c(
731
+ }, v6 = /* @__PURE__ */ c(
732
732
  "path",
733
733
  {
734
734
  d: "M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",
@@ -738,7 +738,7 @@ const p3 = O(v3), f3 = {
738
738
  null,
739
739
  -1
740
740
  /* HOISTED */
741
- ), v6 = /* @__PURE__ */ c(
741
+ ), h6 = /* @__PURE__ */ c(
742
742
  "path",
743
743
  {
744
744
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -759,10 +759,10 @@ const p3 = O(v3), f3 = {
759
759
  -1
760
760
  /* HOISTED */
761
761
  ), f6 = [
762
- h6,
763
762
  v6,
763
+ h6,
764
764
  p6
765
- ], g6 = /* @__PURE__ */ z({
765
+ ], g6 = /* @__PURE__ */ F({
766
766
  __name: "FileIcon",
767
767
  props: {
768
768
  type: {
@@ -783,8 +783,8 @@ const p3 = O(v3), f3 = {
783
783
  }
784
784
  },
785
785
  setup(t) {
786
- const n = t, o = m(() => n.file ? K(n.file, n.fields) : n.type);
787
- return (e, l) => o.value === "image" ? (r(), u("svg", f3, y3)) : o.value === "zip" ? (r(), u("svg", x3, F3)) : o.value === "ppt" ? (r(), u("svg", b3, V3)) : o.value === "word" ? (r(), u("svg", R3, M3)) : o.value === "pdf" ? (r(), u("svg", D3, H3)) : o.value === "txt" ? (r(), u("svg", O3, T3)) : o.value === "audio" ? (r(), u("svg", P3, L3)) : o.value === "video" ? (r(), u("svg", N3, K3)) : o.value === "excel" ? (r(), u("svg", X3, Q3)) : o.value === "exe" ? (r(), u("svg", e6, s6)) : o.value === "json" ? (r(), u("svg", l6, d6)) : (r(), u("svg", u6, f6));
786
+ const n = t, o = m(() => n.file ? Z(n.file, n.fields) : n.type);
787
+ return (e, l) => o.value === "image" ? (r(), u("svg", f3, y3)) : o.value === "zip" ? (r(), u("svg", k3, F3)) : o.value === "ppt" ? (r(), u("svg", b3, V3)) : o.value === "word" ? (r(), u("svg", B3, M3)) : o.value === "pdf" ? (r(), u("svg", $3, q3)) : o.value === "txt" ? (r(), u("svg", O3, T3)) : o.value === "audio" ? (r(), u("svg", P3, L3)) : o.value === "video" ? (r(), u("svg", N3, K3)) : o.value === "excel" ? (r(), u("svg", X3, Q3)) : o.value === "exe" ? (r(), u("svg", e6, s6)) : o.value === "json" ? (r(), u("svg", l6, d6)) : (r(), u("svg", u6, f6));
788
788
  }
789
789
  }), m6 = {
790
790
  key: 0,
@@ -793,11 +793,11 @@ const p3 = O(v3), f3 = {
793
793
  key: 1,
794
794
  class: "h-[1em] w-[1em]",
795
795
  "aria-hidden": "true"
796
- }, _6 = ["xlink:href"], y6 = ["src"], x6 = {
796
+ }, _6 = ["xlink:href"], y6 = ["src"], k6 = {
797
797
  key: 1,
798
798
  class: "h-[1em] w-[1em]",
799
799
  "aria-hidden": "true"
800
- }, k6 = ["xlink:href"], z6 = ["src"], F6 = /* @__PURE__ */ z({
800
+ }, x6 = ["xlink:href"], z6 = ["src"], F6 = /* @__PURE__ */ F({
801
801
  name: "IkSvgIcon",
802
802
  __name: "index",
803
803
  props: {
@@ -824,7 +824,7 @@ const p3 = O(v3), f3 = {
824
824
  tableIconType: {}
825
825
  },
826
826
  setup(t) {
827
- const n = t, o = S("iconConfig"), e = m(() => ({
827
+ const n = t, o = R("iconConfig"), e = m(() => ({
828
828
  ...(o == null ? void 0 : o.value) || {},
829
829
  ...n
830
830
  })), l = m(() => {
@@ -858,13 +858,13 @@ const p3 = O(v3), f3 = {
858
858
  return e.value.width && (h.width = h.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), h;
859
859
  });
860
860
  return (s, h) => {
861
- const p = E("el-tooltip"), a = E("el-button");
861
+ const f = E("el-tooltip"), a = E("el-button");
862
862
  return e.value.tableIconType === "icon" || !e.value.tableIconType ? (r(), u("span", m6, [
863
863
  e.value.notip || !e.value.title ? (r(), u(
864
864
  "i",
865
865
  {
866
866
  key: 0,
867
- class: F(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
867
+ class: z(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
868
868
  [s.name]: l.value === "unocss",
869
869
  "show-bg": e.value.showBg || e.value.bg,
870
870
  default: e.value.size === "default",
@@ -877,16 +877,16 @@ const p3 = O(v3), f3 = {
877
877
  active: e.value.active,
878
878
  disabled: e.value.disabled
879
879
  }]),
880
- style: k(i.value)
880
+ style: x(i.value)
881
881
  },
882
882
  [
883
- V(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
883
+ M(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
884
884
  l.value === "iksig" ? (r(), u(
885
885
  "i",
886
886
  {
887
887
  key: 0,
888
- class: F(`iksig ${e.value.name}`),
889
- style: k(i.value)
888
+ class: z(`iksig ${e.value.name}`),
889
+ style: x(i.value)
890
890
  },
891
891
  null,
892
892
  6
@@ -903,8 +903,8 @@ const p3 = O(v3), f3 = {
903
903
  "i",
904
904
  {
905
905
  key: 3,
906
- class: F(e.value.name),
907
- style: k(i.value)
906
+ class: z(e.value.name),
907
+ style: x(i.value)
908
908
  },
909
909
  null,
910
910
  6
@@ -913,16 +913,16 @@ const p3 = O(v3), f3 = {
913
913
  ],
914
914
  6
915
915
  /* CLASS, STYLE */
916
- )) : (r(), B(p, {
916
+ )) : (r(), B(f, {
917
917
  key: 1,
918
918
  content: e.value.title,
919
919
  placement: "top"
920
920
  }, {
921
- default: C(() => [
921
+ default: S(() => [
922
922
  c(
923
923
  "i",
924
924
  {
925
- class: F(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
925
+ class: z(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
926
926
  [s.name]: l.value === "unocss",
927
927
  "show-bg": e.value.showBg || e.value.bg,
928
928
  default: e.value.size === "default",
@@ -934,23 +934,23 @@ const p3 = O(v3), f3 = {
934
934
  error: e.value.error || e.value.type === "error",
935
935
  active: e.value.active
936
936
  }]),
937
- style: k(i.value)
937
+ style: x(i.value)
938
938
  },
939
939
  [
940
940
  l.value === "iksig" ? (r(), u(
941
941
  "i",
942
942
  {
943
943
  key: 0,
944
- class: F(`iksig ${e.value.name}`),
945
- style: k(i.value)
944
+ class: z(`iksig ${e.value.name}`),
945
+ style: x(i.value)
946
946
  },
947
947
  null,
948
948
  6
949
949
  /* CLASS, STYLE */
950
- )) : l.value === "svg" ? (r(), u("svg", x6, [
950
+ )) : l.value === "svg" ? (r(), u("svg", k6, [
951
951
  c("use", {
952
952
  "xlink:href": `#${e.value.name}`
953
- }, null, 8, k6)
953
+ }, null, 8, x6)
954
954
  ])) : l.value === "img" ? (r(), u("img", {
955
955
  key: 2,
956
956
  src: e.value.name,
@@ -959,8 +959,8 @@ const p3 = O(v3), f3 = {
959
959
  "i",
960
960
  {
961
961
  key: 3,
962
- class: F(e.value.name),
963
- style: k(i.value)
962
+ class: z(e.value.name),
963
+ style: x(i.value)
964
964
  },
965
965
  null,
966
966
  6
@@ -978,9 +978,9 @@ const p3 = O(v3), f3 = {
978
978
  key: 1,
979
979
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
980
980
  }, {
981
- default: C(() => [
982
- P(
983
- q(e.value.title),
981
+ default: S(() => [
982
+ U(
983
+ $(e.value.title),
984
984
  1
985
985
  /* TEXT */
986
986
  )
@@ -991,10 +991,10 @@ const p3 = O(v3), f3 = {
991
991
  };
992
992
  }
993
993
  });
994
- const b6 = /* @__PURE__ */ U(F6, [["__scopeId", "data-v-7729b79a"]]), H = O(b6), C6 = {
994
+ const b6 = /* @__PURE__ */ j(F6, [["__scopeId", "data-v-7729b79a"]]), V = A(b6), C6 = {
995
995
  key: 0,
996
996
  class: "exit-main-page-maximize"
997
- }, S6 = /* @__PURE__ */ z({
997
+ }, S6 = /* @__PURE__ */ F({
998
998
  __name: "CloseIcon",
999
999
  props: {
1000
1000
  showBg: {
@@ -1009,13 +1009,13 @@ const b6 = /* @__PURE__ */ U(F6, [["__scopeId", "data-v-7729b79a"]]), H = O(b6),
1009
1009
  setup(t) {
1010
1010
  return (n, o) => (r(), u("div", null, [
1011
1011
  t.showBg && t.fullscreen ? (r(), u("div", C6, [
1012
- b(g(H), {
1012
+ k(g(V), {
1013
1013
  name: "iksvg_guanbidanchuang",
1014
1014
  title: "关闭",
1015
1015
  size: 20,
1016
1016
  error: ""
1017
1017
  })
1018
- ])) : (r(), B(g(H), {
1018
+ ])) : (r(), B(g(V), {
1019
1019
  key: 1,
1020
1020
  error: "",
1021
1021
  name: "iksvg_guanbidanchuang",
@@ -1025,9 +1025,9 @@ const b6 = /* @__PURE__ */ U(F6, [["__scopeId", "data-v-7729b79a"]]), H = O(b6),
1025
1025
  ]));
1026
1026
  }
1027
1027
  });
1028
- const V6 = /* @__PURE__ */ U(S6, [["__scopeId", "data-v-79f49df8"]]), R6 = { class: "base-header" }, B6 = /* @__PURE__ */ z({
1028
+ const V6 = /* @__PURE__ */ j(S6, [["__scopeId", "data-v-79f49df8"]]), B6 = { class: "base-header" }, R6 = /* @__PURE__ */ F({
1029
1029
  __name: "IkBaseDialog",
1030
- props: /* @__PURE__ */ W({
1030
+ props: /* @__PURE__ */ X({
1031
1031
  title: { default: "" },
1032
1032
  cancelText: { default: "取消" },
1033
1033
  confirmText: { default: "确认" },
@@ -1046,19 +1046,19 @@ const V6 = /* @__PURE__ */ U(S6, [["__scopeId", "data-v-79f49df8"]]), R6 = { cla
1046
1046
  }),
1047
1047
  emits: ["update:modelValue"],
1048
1048
  setup(t) {
1049
- const n = t, o = G(t, "modelValue"), e = R(n.fullscreen), l = () => {
1049
+ const n = t, o = Y(t, "modelValue"), e = D(n.fullscreen), l = () => {
1050
1050
  e.value = !e.value;
1051
- }, i = z({
1051
+ }, i = F({
1052
1052
  setup() {
1053
- return () => Q(V6, {
1053
+ return () => t3(V6, {
1054
1054
  showBg: n.showCloseBg,
1055
1055
  fullscreen: n.fullscreen
1056
1056
  });
1057
1057
  }
1058
1058
  });
1059
1059
  return (s, h) => {
1060
- const p = E("el-dialog");
1061
- return r(), B(p, e3({
1060
+ const f = E("el-dialog");
1061
+ return r(), B(f, n3({
1062
1062
  modelValue: o.value,
1063
1063
  "onUpdate:modelValue": h[0] || (h[0] = (a) => o.value = a)
1064
1064
  }, s.$attrs, {
@@ -1066,44 +1066,44 @@ const V6 = /* @__PURE__ */ U(S6, [["__scopeId", "data-v-79f49df8"]]), R6 = { cla
1066
1066
  class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
1067
1067
  fullscreen: e.value,
1068
1068
  "modal-class": "baseDialog"
1069
- }), t3({
1070
- icon: C(() => [
1071
- $(s.$slots, "title", {}, () => [
1072
- P(
1073
- q(s.title),
1069
+ }), o3({
1070
+ icon: S(() => [
1071
+ I(s.$slots, "title", {}, () => [
1072
+ U(
1073
+ $(s.title),
1074
1074
  1
1075
1075
  /* TEXT */
1076
1076
  )
1077
1077
  ])
1078
1078
  ]),
1079
- header: C(() => [
1080
- c("div", R6, [
1081
- $(s.$slots, "header", {}, () => [
1082
- P(
1083
- q(s.title),
1079
+ header: S(() => [
1080
+ c("div", B6, [
1081
+ I(s.$slots, "header", {}, () => [
1082
+ U(
1083
+ $(s.title),
1084
1084
  1
1085
1085
  /* TEXT */
1086
1086
  )
1087
1087
  ])
1088
1088
  ]),
1089
- s.$attrs.showClose ? (r(), B(g(H), {
1089
+ s.$attrs.showClose ? (r(), B(g(V), {
1090
1090
  key: 0,
1091
1091
  onClick: l,
1092
1092
  name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1093
1093
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1094
1094
  title: e.value ? "退出全屏" : "全屏"
1095
- }, null, 8, ["name", "title"])) : V("v-if", !0)
1095
+ }, null, 8, ["name", "title"])) : M("v-if", !0)
1096
1096
  ]),
1097
- default: C(() => [
1098
- $(s.$slots, "default")
1097
+ default: S(() => [
1098
+ I(s.$slots, "default")
1099
1099
  ]),
1100
1100
  _: 2
1101
1101
  /* DYNAMIC */
1102
1102
  }, [
1103
1103
  s.$slots.footer ? {
1104
1104
  name: "footer",
1105
- fn: C(() => [
1106
- $(s.$slots, "footer")
1105
+ fn: S(() => [
1106
+ I(s.$slots, "footer")
1107
1107
  ]),
1108
1108
  key: "0"
1109
1109
  } : void 0
@@ -1111,7 +1111,7 @@ const V6 = /* @__PURE__ */ U(S6, [["__scopeId", "data-v-79f49df8"]]), R6 = { cla
1111
1111
  };
1112
1112
  }
1113
1113
  });
1114
- const I6 = O(B6);
1114
+ const I6 = A(R6);
1115
1115
  function M6(t, n, o, e) {
1116
1116
  function l(i) {
1117
1117
  return i instanceof o ? i : new o(function(s) {
@@ -1119,27 +1119,27 @@ function M6(t, n, o, e) {
1119
1119
  });
1120
1120
  }
1121
1121
  return new (o || (o = Promise))(function(i, s) {
1122
- function h(v) {
1122
+ function h(p) {
1123
1123
  try {
1124
- a(e.next(v));
1124
+ a(e.next(p));
1125
1125
  } catch (d) {
1126
1126
  s(d);
1127
1127
  }
1128
1128
  }
1129
- function p(v) {
1129
+ function f(p) {
1130
1130
  try {
1131
- a(e.throw(v));
1131
+ a(e.throw(p));
1132
1132
  } catch (d) {
1133
1133
  s(d);
1134
1134
  }
1135
1135
  }
1136
- function a(v) {
1137
- v.done ? i(v.value) : l(v.value).then(h, p);
1136
+ function a(p) {
1137
+ p.done ? i(p.value) : l(p.value).then(h, f);
1138
1138
  }
1139
1139
  a((e = e.apply(t, n || [])).next());
1140
1140
  });
1141
1141
  }
1142
- function D6(t, n) {
1142
+ function $6(t, n) {
1143
1143
  var o = { label: 0, sent: function() {
1144
1144
  if (i[0] & 1)
1145
1145
  throw i[1];
@@ -1149,11 +1149,11 @@ function D6(t, n) {
1149
1149
  return this;
1150
1150
  }), s;
1151
1151
  function h(a) {
1152
- return function(v) {
1153
- return p([a, v]);
1152
+ return function(p) {
1153
+ return f([a, p]);
1154
1154
  };
1155
1155
  }
1156
- function p(a) {
1156
+ function f(a) {
1157
1157
  if (e)
1158
1158
  throw new TypeError("Generator is already executing.");
1159
1159
  for (; s && (s = 0, a[0] && (o = 0)), o; )
@@ -1194,8 +1194,8 @@ function D6(t, n) {
1194
1194
  continue;
1195
1195
  }
1196
1196
  a = n.call(t, o);
1197
- } catch (v) {
1198
- a = [6, v], l = 0;
1197
+ } catch (p) {
1198
+ a = [6, p], l = 0;
1199
1199
  } finally {
1200
1200
  e = i = 0;
1201
1201
  }
@@ -1204,9 +1204,9 @@ function D6(t, n) {
1204
1204
  return { value: a[0] ? a[1] : void 0, done: !0 };
1205
1205
  }
1206
1206
  }
1207
- var $6 = function(t, n) {
1207
+ var D6 = function(t, n) {
1208
1208
  return M6(void 0, void 0, void 0, function() {
1209
- return D6(this, function(o) {
1209
+ return $6(this, function(o) {
1210
1210
  return [2, new Promise(function(e, l) {
1211
1211
  try {
1212
1212
  if (window.DocsAPI)
@@ -1214,32 +1214,32 @@ var $6 = function(t, n) {
1214
1214
  var i = document.getElementById(n);
1215
1215
  if (i)
1216
1216
  var s = setInterval(function() {
1217
- var p = i.getAttribute("loading");
1218
- if (!p) {
1217
+ var f = i.getAttribute("loading");
1218
+ if (!f) {
1219
1219
  if (clearInterval(s), window.DocsAPI)
1220
1220
  return e(null);
1221
- var a = N(n, t, e, l);
1221
+ var a = K(n, t, e, l);
1222
1222
  i.remove(), document.body.appendChild(a);
1223
1223
  }
1224
1224
  }, 500);
1225
1225
  else {
1226
- var h = N(n, t, e, l);
1226
+ var h = K(n, t, e, l);
1227
1227
  document.body.appendChild(h);
1228
1228
  }
1229
- } catch (p) {
1230
- console.error(p);
1229
+ } catch (f) {
1230
+ console.error(f);
1231
1231
  }
1232
1232
  })];
1233
1233
  });
1234
1234
  });
1235
- }, N = function(t, n, o, e) {
1235
+ }, K = function(t, n, o, e) {
1236
1236
  var l = document.createElement("script");
1237
1237
  return l.id = t, l.type = "text/javascript", l.src = n, l.async = !0, l.onload = function() {
1238
1238
  l.removeAttribute("loading"), o(null);
1239
1239
  }, l.onerror = function(i) {
1240
1240
  l.removeAttribute("loading"), e(i);
1241
1241
  }, l.setAttribute("loading", ""), l;
1242
- }, j = z({
1242
+ }, L = F({
1243
1243
  name: "DocumentEditor",
1244
1244
  props: {
1245
1245
  id: {
@@ -1294,7 +1294,7 @@ var $6 = function(t, n) {
1294
1294
  var t = this, n = this.documentServerUrl;
1295
1295
  n.endsWith("/") || (n += "/");
1296
1296
  var o = "".concat(n, "web-apps/apps/api/documents/api.js");
1297
- $6(o, "onlyoffice-api-script").then(function() {
1297
+ D6(o, "onlyoffice-api-script").then(function() {
1298
1298
  return t.onLoad();
1299
1299
  }).catch(function() {
1300
1300
  t.onError(-2);
@@ -1408,13 +1408,13 @@ var $6 = function(t, n) {
1408
1408
  }
1409
1409
  }
1410
1410
  });
1411
- const q6 = ["id"];
1412
- function H6(t, n, o, e, l, i) {
1413
- return r(), u("div", { id: t.id }, null, 8, q6);
1411
+ const H6 = ["id"];
1412
+ function q6(t, n, o, e, l, i) {
1413
+ return r(), u("div", { id: t.id }, null, 8, H6);
1414
1414
  }
1415
- j.render = H6;
1416
- j.__file = "src/components/DocumentEditor.vue";
1417
- const O6 = /* @__PURE__ */ z({
1415
+ L.render = q6;
1416
+ L.__file = "src/components/DocumentEditor.vue";
1417
+ const O6 = /* @__PURE__ */ F({
1418
1418
  __name: "IkOnlyOffice",
1419
1419
  props: {
1420
1420
  // 文件服务器的服务的地址
@@ -1435,7 +1435,7 @@ const O6 = /* @__PURE__ */ z({
1435
1435
  }
1436
1436
  },
1437
1437
  setup(t) {
1438
- const n = t, o = R({
1438
+ const n = t, o = D({
1439
1439
  width: "100%",
1440
1440
  height: "100%",
1441
1441
  ...n.configOptions || {},
@@ -1446,10 +1446,10 @@ const O6 = /* @__PURE__ */ z({
1446
1446
  return (l, i) => (r(), u(
1447
1447
  "div",
1448
1448
  {
1449
- style: k({ height: n.officeHeight })
1449
+ style: x({ height: n.officeHeight })
1450
1450
  },
1451
1451
  [
1452
- b(g(j), {
1452
+ k(g(L), {
1453
1453
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1454
1454
  ref: "editorRef",
1455
1455
  "document-server-url": t.documentServerUrl,
@@ -1462,7 +1462,7 @@ const O6 = /* @__PURE__ */ z({
1462
1462
  ));
1463
1463
  }
1464
1464
  });
1465
- const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6), T6 = ["onClick"], P6 = { class: "text" }, U6 = { class: "fileName" }, j6 = { class: "size" }, L6 = /* @__PURE__ */ z({
1465
+ const E6 = /* @__PURE__ */ j(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = A(E6), T6 = ["onClick"], P6 = { class: "fileName simple" }, U6 = ["onClick"], j6 = { class: "text" }, L6 = { class: "fileName" }, N6 = { class: "size" }, W6 = /* @__PURE__ */ F({
1466
1466
  __name: "IkPreviewFile",
1467
1467
  props: {
1468
1468
  list: {
@@ -1529,6 +1529,11 @@ const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6)
1529
1529
  jwtToken: {
1530
1530
  type: String,
1531
1531
  default: ""
1532
+ },
1533
+ // 简单模式
1534
+ simple: {
1535
+ type: Boolean,
1536
+ default: !1
1532
1537
  }
1533
1538
  },
1534
1539
  setup(t) {
@@ -1538,119 +1543,176 @@ const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6)
1538
1543
  suffix: "suffix",
1539
1544
  size: "size",
1540
1545
  ...n.field
1541
- })), i = R({}), s = R(!1), h = (d) => {
1542
- var w, _;
1546
+ })), i = D({}), s = D(!1), h = (d) => {
1547
+ var w, y;
1543
1548
  i.value = {
1544
1549
  ...d,
1545
1550
  name: d.name,
1546
- url: A(
1551
+ url: T(
1547
1552
  o.value,
1548
- d.url || ((_ = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : _.id) || (d == null ? void 0 : d.id)
1553
+ d.url || ((y = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : y.id) || (d == null ? void 0 : d.id)
1549
1554
  )
1550
1555
  }, s.value = !0;
1551
- }, p = (d) => {
1556
+ }, f = (d) => {
1552
1557
  a3.downloadFile(
1553
- A(
1558
+ T(
1554
1559
  o.value,
1555
1560
  d[l.value.url] || d.attachmentId || d.id
1556
1561
  ),
1557
1562
  d[l.value.name] || d.attachmentName
1558
1563
  );
1559
- }, a = m(() => l3.isNumber(n.width) ? `${n.width}px` : n.width), v = m(() => n.list.map((d) => ({
1564
+ }, a = m(() => l3.isNumber(n.width) ? `${n.width}px` : n.width), p = m(() => n.list.map((d) => ({
1560
1565
  ...d,
1561
1566
  name: d[l.value.name] || d.attachmentName,
1562
1567
  size: d[l.value.size] || d.fileSize || d.attachmentSize,
1563
1568
  suffix: d[l.value.suffix] || d.attachmentSuffix
1564
1569
  })));
1565
1570
  return (d, w) => {
1566
- var _, y, I;
1571
+ var _, H, q;
1572
+ const y = E("tmplate");
1567
1573
  return r(), u(
1568
- T,
1574
+ O,
1569
1575
  null,
1570
1576
  [
1571
- (_ = t.list) != null && _.length ? (r(!0), u(
1572
- T,
1577
+ (_ = t.list) != null && _.length ? (r(), u(
1578
+ O,
1573
1579
  { key: 0 },
1574
- n3(v.value, (x, f) => {
1575
- var M;
1576
- return r(), u(
1577
- "div",
1578
- {
1579
- class: F(["iking-privew-annex", { "is-bg": t.showBg }]),
1580
- key: f,
1581
- style: k({
1582
- marginBottom: f == ((M = t.list) == null ? void 0 : M.length) - 1 ? "0" : "10px",
1583
- width: a.value
1584
- })
1585
- },
1586
- [
1587
- c("div", {
1588
- class: "file-card",
1589
- onClick: (D) => h(x)
1590
- }, [
1591
- b(g6, {
1592
- file: x,
1593
- style: k({ height: `${t.iconSize}px` }),
1594
- class: "ikui-w-auto",
1595
- fields: l.value
1596
- }, null, 8, ["file", "style", "fields"]),
1597
- c("div", P6, [
1598
- c(
1580
+ [
1581
+ t.simple ? (r(!0), u(
1582
+ O,
1583
+ { key: 0 },
1584
+ N(p.value, (v, b) => (r(), u("div", {
1585
+ class: "iking-privew-annex simple",
1586
+ onClick: (C) => h(v),
1587
+ style: x({ width: a.value })
1588
+ }, [
1589
+ c(
1590
+ "div",
1591
+ P6,
1592
+ $(v.name),
1593
+ 1
1594
+ /* TEXT */
1595
+ ),
1596
+ c(
1597
+ "div",
1598
+ {
1599
+ class: z(["flex flex-center", { "hover-show": t.iconHoverShow }])
1600
+ },
1601
+ [
1602
+ k(g(V), {
1603
+ name: "iksvg_daochu",
1604
+ onClick: W((C) => f(v), ["stop"]),
1605
+ size: 20,
1606
+ active: ""
1607
+ }, null, 8, ["onClick"]),
1608
+ k(g(V), {
1609
+ name: "iksvg_yulan",
1610
+ size: 20,
1611
+ active: ""
1612
+ }),
1613
+ I(d.$slots, "operation", {
1614
+ data: { ...v, findex: b }
1615
+ })
1616
+ ],
1617
+ 2
1618
+ /* CLASS */
1619
+ )
1620
+ ], 12, T6))),
1621
+ 256
1622
+ /* UNKEYED_FRAGMENT */
1623
+ )) : (r(), B(y, { key: 1 }, {
1624
+ default: S(() => [
1625
+ (r(!0), u(
1626
+ O,
1627
+ null,
1628
+ N(p.value, (v, b) => {
1629
+ var C;
1630
+ return r(), u(
1599
1631
  "div",
1600
- U6,
1601
- q(x.name),
1602
- 1
1603
- /* TEXT */
1604
- ),
1605
- c(
1606
- "div",
1607
- j6,
1608
- q(g(c3)(x.size)),
1609
- 1
1610
- /* TEXT */
1611
- )
1612
- ]),
1613
- c(
1614
- "div",
1615
- {
1616
- class: F(["flex flex-center", { "hover-show": t.iconHoverShow }])
1617
- },
1618
- [
1619
- b(g(H), {
1620
- name: "iksvg_daochu",
1621
- onClick: o3((D) => p(x), ["stop"]),
1622
- bg: t.showBg,
1623
- size: t.showBg ? "default" : 20
1624
- }, null, 8, ["onClick", "bg", "size"]),
1625
- b(g(H), {
1626
- name: "iksvg_yulan",
1627
- bg: t.showBg,
1628
- size: t.showBg ? "default" : 20
1629
- }, null, 8, ["bg", "size"]),
1630
- $(d.$slots, "operation", {
1631
- data: { ...x, findex: f }
1632
- })
1633
- ],
1634
- 2
1635
- /* CLASS */
1636
- )
1637
- ], 8, T6)
1638
- ],
1639
- 6
1640
- /* CLASS, STYLE */
1641
- );
1642
- }),
1643
- 128
1644
- /* KEYED_FRAGMENT */
1645
- )) : V("v-if", !0),
1646
- b(g(p3), {
1632
+ {
1633
+ class: z(["iking-privew-annex", { "is-bg": t.showBg }]),
1634
+ key: b,
1635
+ style: x({
1636
+ marginBottom: b == ((C = t.list) == null ? void 0 : C.length) - 1 ? "0" : "10px",
1637
+ width: a.value
1638
+ })
1639
+ },
1640
+ [
1641
+ c("div", {
1642
+ class: "file-card",
1643
+ onClick: (P) => h(v)
1644
+ }, [
1645
+ k(g6, {
1646
+ file: v,
1647
+ style: x({ height: `${t.iconSize}px` }),
1648
+ class: "ikui-w-auto",
1649
+ fields: l.value
1650
+ }, null, 8, ["file", "style", "fields"]),
1651
+ c("div", j6, [
1652
+ c(
1653
+ "div",
1654
+ L6,
1655
+ $(v.name),
1656
+ 1
1657
+ /* TEXT */
1658
+ ),
1659
+ c(
1660
+ "div",
1661
+ N6,
1662
+ $(g(c3)(v.size)),
1663
+ 1
1664
+ /* TEXT */
1665
+ )
1666
+ ]),
1667
+ c(
1668
+ "div",
1669
+ {
1670
+ class: z(["flex flex-center", { "hover-show": t.iconHoverShow }])
1671
+ },
1672
+ [
1673
+ k(g(V), {
1674
+ name: "iksvg_daochu",
1675
+ onClick: W((P) => f(v), ["stop"]),
1676
+ bg: t.showBg,
1677
+ size: t.showBg ? "default" : 20
1678
+ }, null, 8, ["onClick", "bg", "size"]),
1679
+ k(g(V), {
1680
+ name: "iksvg_yulan",
1681
+ bg: t.showBg,
1682
+ size: t.showBg ? "default" : 20
1683
+ }, null, 8, ["bg", "size"]),
1684
+ I(d.$slots, "operation", {
1685
+ data: { ...v, findex: b }
1686
+ })
1687
+ ],
1688
+ 2
1689
+ /* CLASS */
1690
+ )
1691
+ ], 8, U6)
1692
+ ],
1693
+ 6
1694
+ /* CLASS, STYLE */
1695
+ );
1696
+ }),
1697
+ 128
1698
+ /* KEYED_FRAGMENT */
1699
+ ))
1700
+ ]),
1701
+ _: 3
1702
+ /* FORWARDED */
1703
+ }))
1704
+ ],
1705
+ 64
1706
+ /* STABLE_FRAGMENT */
1707
+ )) : M("v-if", !0),
1708
+ k(g(p3), {
1647
1709
  show: s.value,
1648
- "onUpdate:show": w[0] || (w[0] = (x) => s.value = x),
1710
+ "onUpdate:show": w[0] || (w[0] = (v) => s.value = v),
1649
1711
  loadUrl: g(o),
1650
1712
  file: i.value,
1651
- onlyofficeServer: ((y = g(e)) == null ? void 0 : y.serverUrl) || t.onlyofficeServer,
1713
+ onlyofficeServer: ((H = g(e)) == null ? void 0 : H.serverUrl) || t.onlyofficeServer,
1652
1714
  onlyOfficeConfig: g(e),
1653
- onlyOfficeAccept: ((I = g(e)) == null ? void 0 : I.accept) || t.onlyOfficeAccept
1715
+ onlyOfficeAccept: ((q = g(e)) == null ? void 0 : q.accept) || t.onlyOfficeAccept
1654
1716
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
1655
1717
  ],
1656
1718
  64
@@ -1659,8 +1721,8 @@ const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6)
1659
1721
  };
1660
1722
  }
1661
1723
  });
1662
- const K6 = O(L6);
1724
+ const Y6 = A(W6);
1663
1725
  export {
1664
- K6 as IkPreviewFile,
1665
- K6 as default
1726
+ Y6 as IkPreviewFile,
1727
+ Y6 as default
1666
1728
  };