iking-web-ui-pro 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/IKDetailPreviewFiles/ik.index.es.js +191 -191
  2. package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
  3. package/dist/IKPreviewFile/ik.index.es.js +188 -188
  4. package/dist/IKPreviewFile/ik.index.umd.js +1 -1
  5. package/dist/IkApprovalProcess/ik.index.es.js +1 -0
  6. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  7. package/dist/IkApprovalProcess/style.css +1 -1
  8. package/dist/IkApprovalProcessDetail/ik.index.es.js +119 -118
  9. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  10. package/dist/IkApprovalProcessDetail/style.css +1 -1
  11. package/dist/IkDescription/ik.index.es.js +189 -189
  12. package/dist/IkDescription/ik.index.umd.js +1 -1
  13. package/dist/IkDescription/style.css +1 -1
  14. package/dist/IkOnlyOffice/ik.index.es.js +59 -58
  15. package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
  16. package/dist/IkPreviewFileDialog/ik.index.es.js +121 -121
  17. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  18. package/dist/IkTemplateOfficeConfig/ik.index.es.js +12 -11
  19. package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
  20. package/dist/IkUploadFile/ik.index.es.js +218 -218
  21. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  22. package/dist/index.es.js +2579 -2578
  23. package/dist/index.umd.js +36 -36
  24. package/dist/src/components/IkUploadFile/index.d.ts +3 -3
  25. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +1 -1
  26. package/dist/src/components/IkUploadImage/index.d.ts +3 -3
  27. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as h, computed as F, resolveComponent as z, openBlock as l, createElementBlock as d, normalizeClass as w, normalizeStyle as v, createCommentVNode as S, createElementVNode as I, createBlock as _, withCtx as g, createTextVNode as B, toDisplayString as $, createVNode as D, unref as y, mergeModels as L, useModel as H, ref as x, h as N, mergeProps as X, createSlots as Y, renderSlot as C, reactive as G, watch as K, nextTick as J, Fragment as Q } from "vue";
2
- import { ikColor as Z, buildUUID as ee } from "iking-utils-pro";
1
+ import { defineComponent as h, computed as F, resolveComponent as z, openBlock as l, createElementBlock as p, normalizeClass as w, normalizeStyle as m, createCommentVNode as S, createElementVNode as I, createBlock as _, withCtx as v, createTextVNode as B, toDisplayString as O, createVNode as D, unref as y, mergeModels as H, useModel as W, ref as x, h as X, mergeProps as Y, createSlots as G, renderSlot as C, reactive as K, watch as J, nextTick as Q, Fragment as Z } from "vue";
2
+ import { ikColor as ee, buildUUID as te } from "iking-utils-pro";
3
3
  const q = (n, e) => {
4
4
  if (n.install = (o) => {
5
5
  for (const r of [n, ...Object.values(e ?? {})])
@@ -8,14 +8,14 @@ const q = (n, e) => {
8
8
  for (const [o, r] of Object.entries(e))
9
9
  n[o] = r;
10
10
  return n;
11
- }, j = (n, e) => e ? e.startsWith("http") ? e : `${n || location.origin}${e}` : "", V = (n, e) => {
11
+ }, M = (n, e) => e ? e.startsWith("http") ? e : `${n || location.origin}${e}` : "", V = (n, e) => {
12
12
  const o = n.__vccOpts || n;
13
13
  for (const [r, t] of e)
14
14
  o[r] = t;
15
15
  return o;
16
- }, te = (n, e) => {
17
- var i, a, u, p;
18
- const o = (i = n == null ? void 0 : n.response) != null && i.data ? M((u = (a = n == null ? void 0 : n.response) == null ? void 0 : a.data) == null ? void 0 : u.suffix) : ((p = n.raw) == null ? void 0 : p.type) || M(n[e.suffix]), r = o == null ? void 0 : o.toLowerCase(), t = {
16
+ }, ne = (n, e) => {
17
+ var i, a, u, f;
18
+ const o = (i = n == null ? void 0 : n.response) != null && i.data ? L((u = (a = n == null ? void 0 : n.response) == null ? void 0 : a.data) == null ? void 0 : u.suffix) : ((f = n.raw) == null ? void 0 : f.type) || L(n[e.suffix]), r = o == null ? void 0 : o.toLowerCase(), t = {
19
19
  sheet: "excel",
20
20
  excel: "excel",
21
21
  zip: "zip",
@@ -35,7 +35,7 @@ const q = (n, e) => {
35
35
  if (typeof r == "string" && (r.includes(s) || r === s))
36
36
  return t[s];
37
37
  return "unknown";
38
- }, ne = {
38
+ }, oe = {
39
39
  ".doc": "word",
40
40
  ".docx": "word",
41
41
  ".docxf": "word",
@@ -120,24 +120,24 @@ const q = (n, e) => {
120
120
  ".vob": "video",
121
121
  ".txt": "txt",
122
122
  ".pdf": "pdf"
123
- }, M = (n) => {
123
+ }, L = (n) => {
124
124
  const e = n == null ? void 0 : n.toLocaleLowerCase(), o = e != null && e.startsWith(".") ? e : `.${e}`;
125
- return o && ne[o] || "unknow";
126
- }, oe = (n) => {
125
+ return o && oe[o] || "unknow";
126
+ }, ie = (n) => {
127
127
  let e = "", o = ["doc", "docx"], r = ["xls", "xlsx"], t = ["ppt", "pptx"], i = ["pdf"];
128
128
  return o.includes(n) && (e = "word"), r.includes(n) && (e = "cell"), t.includes(n) && (e = "slide"), i.includes(n) && (e = "text-pdf"), e;
129
- }, ie = {
129
+ }, se = {
130
130
  key: 0,
131
131
  class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
132
- }, se = {
132
+ }, re = {
133
133
  key: 1,
134
134
  class: "h-[1em] w-[1em]",
135
135
  "aria-hidden": "true"
136
- }, re = ["xlink:href"], ae = ["src"], le = {
136
+ }, ae = ["xlink:href"], le = ["src"], ce = {
137
137
  key: 1,
138
138
  class: "h-[1em] w-[1em]",
139
139
  "aria-hidden": "true"
140
- }, ce = ["xlink:href"], ue = ["src"], de = /* @__PURE__ */ h({
140
+ }, ue = ["xlink:href"], de = ["src"], pe = /* @__PURE__ */ h({
141
141
  name: "IkSvgIcon",
142
142
  __name: "index",
143
143
  props: {
@@ -189,15 +189,15 @@ const q = (n, e) => {
189
189
  padding: e.showBg || e.bg ? e.padding : 0,
190
190
  ...e.color && o.value !== "iksig" ? {
191
191
  "--ik-color-icon-dark": e.color,
192
- "--ik-color-icon-light": e.colorLight || Z.setOpacity(e.color, e.opacity)
192
+ "--ik-color-icon-light": e.colorLight || ee.setOpacity(e.color, e.opacity)
193
193
  } : {}
194
194
  };
195
195
  return e.width && (i.width = i.height = typeof e.width == "number" ? `${e.width}px` : e.width), i;
196
196
  });
197
197
  return (t, i) => {
198
198
  const a = z("el-tooltip"), u = z("el-button");
199
- return t.tableIconType === "icon" ? (l(), d("span", ie, [
200
- t.notip || !t.title ? (l(), d(
199
+ return t.tableIconType === "icon" ? (l(), p("span", se, [
200
+ t.notip || !t.title ? (l(), p(
201
201
  "i",
202
202
  {
203
203
  key: 0,
@@ -214,34 +214,34 @@ const q = (n, e) => {
214
214
  active: t.active,
215
215
  disabled: t.disabled
216
216
  }]),
217
- style: v(r.value)
217
+ style: m(r.value)
218
218
  },
219
219
  [
220
220
  S(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
221
- o.value === "iksig" ? (l(), d(
221
+ o.value === "iksig" ? (l(), p(
222
222
  "i",
223
223
  {
224
224
  key: 0,
225
225
  class: w(`iksig ${t.name}`),
226
- style: v(r.value)
226
+ style: m(r.value)
227
227
  },
228
228
  null,
229
229
  6
230
230
  /* CLASS, STYLE */
231
- )) : o.value === "svg" ? (l(), d("svg", se, [
231
+ )) : o.value === "svg" ? (l(), p("svg", re, [
232
232
  I("use", {
233
233
  "xlink:href": `#${t.name}`
234
- }, null, 8, re)
235
- ])) : o.value === "img" ? (l(), d("img", {
234
+ }, null, 8, ae)
235
+ ])) : o.value === "img" ? (l(), p("img", {
236
236
  key: 2,
237
237
  src: t.name,
238
238
  class: "h-[1em] w-[1em]"
239
- }, null, 8, ae)) : (l(), d(
239
+ }, null, 8, le)) : (l(), p(
240
240
  "i",
241
241
  {
242
242
  key: 3,
243
243
  class: w(t.name),
244
- style: v(r.value)
244
+ style: m(r.value)
245
245
  },
246
246
  null,
247
247
  6
@@ -255,7 +255,7 @@ const q = (n, e) => {
255
255
  content: t.title,
256
256
  placement: "top"
257
257
  }, {
258
- default: g(() => [
258
+ default: v(() => [
259
259
  I(
260
260
  "i",
261
261
  {
@@ -271,33 +271,33 @@ const q = (n, e) => {
271
271
  error: t.error || e.type === "error",
272
272
  active: t.active
273
273
  }]),
274
- style: v(r.value)
274
+ style: m(r.value)
275
275
  },
276
276
  [
277
- o.value === "iksig" ? (l(), d(
277
+ o.value === "iksig" ? (l(), p(
278
278
  "i",
279
279
  {
280
280
  key: 0,
281
281
  class: w(`iksig ${t.name}`),
282
- style: v(r.value)
282
+ style: m(r.value)
283
283
  },
284
284
  null,
285
285
  6
286
286
  /* CLASS, STYLE */
287
- )) : o.value === "svg" ? (l(), d("svg", le, [
287
+ )) : o.value === "svg" ? (l(), p("svg", ce, [
288
288
  I("use", {
289
289
  "xlink:href": `#${t.name}`
290
- }, null, 8, ce)
291
- ])) : o.value === "img" ? (l(), d("img", {
290
+ }, null, 8, ue)
291
+ ])) : o.value === "img" ? (l(), p("img", {
292
292
  key: 2,
293
293
  src: t.name,
294
294
  class: "h-[1em] w-[1em]"
295
- }, null, 8, ue)) : (l(), d(
295
+ }, null, 8, de)) : (l(), p(
296
296
  "i",
297
297
  {
298
298
  key: 3,
299
299
  class: w(t.name),
300
- style: v(r.value)
300
+ style: m(r.value)
301
301
  },
302
302
  null,
303
303
  6
@@ -315,9 +315,9 @@ const q = (n, e) => {
315
315
  key: 1,
316
316
  type: ["warning", "error"].includes(t.type) ? "danger" : ""
317
317
  }, {
318
- default: g(() => [
318
+ default: v(() => [
319
319
  B(
320
- $(t.title),
320
+ O(t.title),
321
321
  1
322
322
  /* TEXT */
323
323
  )
@@ -328,7 +328,7 @@ const q = (n, e) => {
328
328
  };
329
329
  }
330
330
  });
331
- const pe = /* @__PURE__ */ V(de, [["__scopeId", "data-v-7d95dbf5"]]), O = q(pe), fe = {
331
+ const fe = /* @__PURE__ */ V(pe, [["__scopeId", "data-v-7d95dbf5"]]), $ = q(fe), ge = {
332
332
  key: 0,
333
333
  class: "exit-main-page-maximize"
334
334
  }, me = /* @__PURE__ */ h({
@@ -344,15 +344,15 @@ const pe = /* @__PURE__ */ V(de, [["__scopeId", "data-v-7d95dbf5"]]), O = q(pe),
344
344
  }
345
345
  },
346
346
  setup(n) {
347
- return (e, o) => (l(), d("div", null, [
348
- n.showBg && n.fullscreen ? (l(), d("div", fe, [
349
- D(y(O), {
347
+ return (e, o) => (l(), p("div", null, [
348
+ n.showBg && n.fullscreen ? (l(), p("div", ge, [
349
+ D(y($), {
350
350
  name: "iksvg_guanbidanchuang",
351
351
  title: "关闭",
352
352
  size: 20,
353
353
  error: ""
354
354
  })
355
- ])) : (l(), _(y(O), {
355
+ ])) : (l(), _(y($), {
356
356
  key: 1,
357
357
  error: "",
358
358
  name: "iksvg_guanbidanchuang",
@@ -362,9 +362,9 @@ const pe = /* @__PURE__ */ V(de, [["__scopeId", "data-v-7d95dbf5"]]), O = q(pe),
362
362
  ]));
363
363
  }
364
364
  });
365
- const ve = /* @__PURE__ */ V(me, [["__scopeId", "data-v-79f49df8"]]), ge = { class: "base-header" }, he = /* @__PURE__ */ h({
365
+ const ve = /* @__PURE__ */ V(me, [["__scopeId", "data-v-79f49df8"]]), he = { class: "base-header" }, ye = /* @__PURE__ */ h({
366
366
  __name: "IkBaseDialog",
367
- props: /* @__PURE__ */ L({
367
+ props: /* @__PURE__ */ H({
368
368
  title: { default: "" },
369
369
  cancelText: { default: "取消" },
370
370
  confirmText: { default: "确认" },
@@ -383,19 +383,19 @@ const ve = /* @__PURE__ */ V(me, [["__scopeId", "data-v-79f49df8"]]), ge = { cla
383
383
  }),
384
384
  emits: ["update:modelValue"],
385
385
  setup(n) {
386
- const e = n, o = H(n, "modelValue"), r = x(e.fullscreen), t = () => {
386
+ const e = n, o = W(n, "modelValue"), r = x(e.fullscreen), t = () => {
387
387
  r.value = !r.value;
388
388
  }, i = h({
389
389
  setup() {
390
- return () => N(ve, {
390
+ return () => X(ve, {
391
391
  showBg: e.showCloseBg,
392
392
  fullscreen: e.fullscreen
393
393
  });
394
394
  }
395
395
  });
396
396
  return (a, u) => {
397
- const p = z("el-dialog");
398
- return l(), _(p, X({
397
+ const f = z("el-dialog");
398
+ return l(), _(f, Y({
399
399
  modelValue: o.value,
400
400
  "onUpdate:modelValue": u[0] || (u[0] = (s) => o.value = s)
401
401
  }, a.$attrs, {
@@ -403,27 +403,27 @@ const ve = /* @__PURE__ */ V(me, [["__scopeId", "data-v-79f49df8"]]), ge = { cla
403
403
  class: `ik-base-dialog ${a.noHeader ? "no-header" : ""} ${a.noFooter ? "no-footer" : ""}`,
404
404
  fullscreen: r.value,
405
405
  "modal-class": "baseDialog"
406
- }), Y({
407
- icon: g(() => [
406
+ }), G({
407
+ icon: v(() => [
408
408
  C(a.$slots, "title", {}, () => [
409
409
  B(
410
- $(a.title),
410
+ O(a.title),
411
411
  1
412
412
  /* TEXT */
413
413
  )
414
414
  ])
415
415
  ]),
416
- header: g(() => [
417
- I("div", ge, [
416
+ header: v(() => [
417
+ I("div", he, [
418
418
  C(a.$slots, "header", {}, () => [
419
419
  B(
420
- $(a.title),
420
+ O(a.title),
421
421
  1
422
422
  /* TEXT */
423
423
  )
424
424
  ])
425
425
  ]),
426
- a.$attrs.showClose ? (l(), _(y(O), {
426
+ a.$attrs.showClose ? (l(), _(y($), {
427
427
  key: 0,
428
428
  onClick: t,
429
429
  name: r.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -431,7 +431,7 @@ const ve = /* @__PURE__ */ V(me, [["__scopeId", "data-v-79f49df8"]]), ge = { cla
431
431
  title: r.value ? "退出全屏" : "全屏"
432
432
  }, null, 8, ["name", "title"])) : S("v-if", !0)
433
433
  ]),
434
- default: g(() => [
434
+ default: v(() => [
435
435
  C(a.$slots, "default")
436
436
  ]),
437
437
  _: 2
@@ -439,7 +439,7 @@ const ve = /* @__PURE__ */ V(me, [["__scopeId", "data-v-79f49df8"]]), ge = { cla
439
439
  }, [
440
440
  a.$slots.footer ? {
441
441
  name: "footer",
442
- fn: g(() => [
442
+ fn: v(() => [
443
443
  C(a.$slots, "footer")
444
444
  ]),
445
445
  key: "0"
@@ -448,8 +448,8 @@ const ve = /* @__PURE__ */ V(me, [["__scopeId", "data-v-79f49df8"]]), ge = { cla
448
448
  };
449
449
  }
450
450
  });
451
- const ye = q(he);
452
- function we(n, e, o, r) {
451
+ const we = q(ye);
452
+ function _e(n, e, o, r) {
453
453
  function t(i) {
454
454
  return i instanceof o ? i : new o(function(a) {
455
455
  a(i);
@@ -459,24 +459,24 @@ function we(n, e, o, r) {
459
459
  function u(c) {
460
460
  try {
461
461
  s(r.next(c));
462
- } catch (m) {
463
- a(m);
462
+ } catch (g) {
463
+ a(g);
464
464
  }
465
465
  }
466
- function p(c) {
466
+ function f(c) {
467
467
  try {
468
468
  s(r.throw(c));
469
- } catch (m) {
470
- a(m);
469
+ } catch (g) {
470
+ a(g);
471
471
  }
472
472
  }
473
473
  function s(c) {
474
- c.done ? i(c.value) : t(c.value).then(u, p);
474
+ c.done ? i(c.value) : t(c.value).then(u, f);
475
475
  }
476
476
  s((r = r.apply(n, e || [])).next());
477
477
  });
478
478
  }
479
- function _e(n, e) {
479
+ function ke(n, e) {
480
480
  var o = { label: 0, sent: function() {
481
481
  if (i[0] & 1)
482
482
  throw i[1];
@@ -487,10 +487,10 @@ function _e(n, e) {
487
487
  }), a;
488
488
  function u(s) {
489
489
  return function(c) {
490
- return p([s, c]);
490
+ return f([s, c]);
491
491
  };
492
492
  }
493
- function p(s) {
493
+ function f(s) {
494
494
  if (r)
495
495
  throw new TypeError("Generator is already executing.");
496
496
  for (; a && (a = 0, s[0] && (o = 0)), o; )
@@ -541,9 +541,9 @@ function _e(n, e) {
541
541
  return { value: s[0] ? s[1] : void 0, done: !0 };
542
542
  }
543
543
  }
544
- var ke = function(n, e) {
545
- return we(void 0, void 0, void 0, function() {
546
- return _e(this, function(o) {
544
+ var be = function(n, e) {
545
+ return _e(void 0, void 0, void 0, function() {
546
+ return ke(this, function(o) {
547
547
  return [2, new Promise(function(r, t) {
548
548
  try {
549
549
  if (window.DocsAPI)
@@ -551,8 +551,8 @@ var ke = function(n, e) {
551
551
  var i = document.getElementById(e);
552
552
  if (i)
553
553
  var a = setInterval(function() {
554
- var p = i.getAttribute("loading");
555
- if (!p) {
554
+ var f = i.getAttribute("loading");
555
+ if (!f) {
556
556
  if (clearInterval(a), window.DocsAPI)
557
557
  return r(null);
558
558
  var s = U(e, n, r, t);
@@ -563,8 +563,8 @@ var ke = function(n, e) {
563
563
  var u = U(e, n, r, t);
564
564
  document.body.appendChild(u);
565
565
  }
566
- } catch (p) {
567
- console.error(p);
566
+ } catch (f) {
567
+ console.error(f);
568
568
  }
569
569
  })];
570
570
  });
@@ -631,7 +631,7 @@ var ke = function(n, e) {
631
631
  var n = this, e = this.documentServerUrl;
632
632
  e.endsWith("/") || (e += "/");
633
633
  var o = "".concat(e, "web-apps/apps/api/documents/api.js");
634
- ke(o, "onlyoffice-api-script").then(function() {
634
+ be(o, "onlyoffice-api-script").then(function() {
635
635
  return n.onLoad();
636
636
  }).catch(function() {
637
637
  n.onError(-2);
@@ -745,13 +745,13 @@ var ke = function(n, e) {
745
745
  }
746
746
  }
747
747
  });
748
- const be = ["id"];
749
- function Re(n, e, o, r, t, i) {
750
- return l(), d("div", { id: n.id }, null, 8, be);
748
+ const Re = ["id"];
749
+ function Se(n, e, o, r, t, i) {
750
+ return l(), p("div", { id: n.id }, null, 8, Re);
751
751
  }
752
- T.render = Re;
752
+ T.render = Se;
753
753
  T.__file = "src/components/DocumentEditor.vue";
754
- const Se = /* @__PURE__ */ h({
754
+ const Ce = /* @__PURE__ */ h({
755
755
  __name: "IkOnlyOffice",
756
756
  props: {
757
757
  // 文件服务器的服务的地址
@@ -775,14 +775,15 @@ const Se = /* @__PURE__ */ h({
775
775
  const e = n, o = x({
776
776
  width: "100%",
777
777
  height: "100%",
778
- ...e.configOptions || {}
778
+ ...e.configOptions || {},
779
+ ...e.configOptions
779
780
  }), r = () => {
780
781
  console.info("文档加载完成", e.configOptions);
781
782
  };
782
- return (t, i) => (l(), d(
783
+ return (t, i) => (l(), p(
783
784
  "div",
784
785
  {
785
- style: v({ height: e.officeHeight })
786
+ style: m({ height: e.officeHeight })
786
787
  },
787
788
  [
788
789
  D(y(T), {
@@ -798,9 +799,9 @@ const Se = /* @__PURE__ */ h({
798
799
  ));
799
800
  }
800
801
  });
801
- const Ce = /* @__PURE__ */ V(Se, [["__scopeId", "data-v-fe959cd8"]]), Ie = q(Ce), ze = /* @__PURE__ */ h({
802
+ const Ie = /* @__PURE__ */ V(Ce, [["__scopeId", "data-v-98d51ef9"]]), ze = q(Ie), De = /* @__PURE__ */ h({
802
803
  __name: "IkPreviewFileDialog",
803
- props: /* @__PURE__ */ L({
804
+ props: /* @__PURE__ */ H({
804
805
  file: {
805
806
  type: Object,
806
807
  default: () => []
@@ -810,12 +811,12 @@ const Ce = /* @__PURE__ */ V(Se, [["__scopeId", "data-v-fe959cd8"]]), Ie = q(Ce)
810
811
  type: String,
811
812
  default: ""
812
813
  },
813
- // 需要onlyoffice预览的文件类型
814
+ // 需要onlyoffice预览的文件类型 - 0.2.3版本后可不填
814
815
  onlyOfficeAccept: {
815
816
  type: String,
816
817
  default: ".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"
817
818
  },
818
- // onlyoffice服务地址
819
+ // onlyoffice服务地址 - 0.2.3版本后可不填
819
820
  onlyofficeServer: {
820
821
  type: String,
821
822
  default: ""
@@ -835,70 +836,70 @@ const Ce = /* @__PURE__ */ V(Se, [["__scopeId", "data-v-fe959cd8"]]), Ie = q(Ce)
835
836
  }),
836
837
  emits: ["update:show"],
837
838
  setup(n) {
838
- const e = n, o = H(n, "show"), r = F(() => ({
839
+ const e = n, o = W(n, "show"), r = F(() => ({
839
840
  name: "name",
840
841
  url: "url",
841
842
  suffix: "suffix",
842
843
  size: "fileSize",
843
844
  ...e.field
844
- })), t = x(null), i = x(null), a = G({
845
+ })), t = x(null), i = x(null), a = K({
845
846
  image: !1,
846
847
  office: !1,
847
848
  video: !1
848
849
  }), u = (s) => {
849
- var c, m, k, b, R, A;
850
+ var c, g, k, b, R, A, P;
850
851
  try {
851
- const f = ((c = s == null ? void 0 : s.response) == null ? void 0 : c.data) || s, P = f[r.value.url] || (f == null ? void 0 : f.id) || f.attachmentId, E = (m = f[r.value.suffix] || f.attachmentSuffix) == null ? void 0 : m.toLowerCase(), W = f[r.value.name] || (f == null ? void 0 : f.attachmentName);
852
+ const d = ((c = s == null ? void 0 : s.response) == null ? void 0 : c.data) || s, j = d[r.value.url] || (d == null ? void 0 : d.id) || d.attachmentId, E = (g = d[r.value.suffix] || d.attachmentSuffix) == null ? void 0 : g.toLowerCase(), N = d[r.value.name] || (d == null ? void 0 : d.attachmentName) || (d == null ? void 0 : d.originName);
852
853
  if (i.value = {
853
854
  ...s,
854
855
  name: s[r.value.name],
855
- url: j(e.loadUrl, P)
856
- }, s && te(s, r.value) === "image") {
856
+ url: M(e.loadUrl, j)
857
+ }, s && ne(s, r.value) === "image") {
857
858
  a.image = !0;
858
859
  return;
859
- } else if (e.onlyOfficeAccept.includes(E)) {
860
+ } else if ((((k = e.onlyOfficeConfig) == null ? void 0 : k.accept) || e.onlyOfficeAccept).includes(E)) {
860
861
  a.office = !0, t.value = {
861
862
  ...e.onlyOfficeConfig,
862
863
  editorConfig: {
863
- ...((k = e.onlyOfficeConfig) == null ? void 0 : k.editorConfig) || {},
864
+ ...((b = e.onlyOfficeConfig) == null ? void 0 : b.editorConfig) || {},
864
865
  customization: {
865
- ...((R = (b = e.onlyOfficeConfig) == null ? void 0 : b.editorConfig) == null ? void 0 : R.customization) || {},
866
+ ...((A = (R = e.onlyOfficeConfig) == null ? void 0 : R.editorConfig) == null ? void 0 : A.customization) || {},
866
867
  review: {
867
868
  reviewDisplay: "final"
868
869
  }
869
870
  }
870
871
  },
871
872
  document: {
872
- key: ee(),
873
- title: W,
874
- url: j(e.loadUrl, P),
873
+ key: te(),
874
+ title: N,
875
+ url: M(e.loadUrl, j),
875
876
  fileType: E,
876
- ...((A = e.onlyOfficeConfig) == null ? void 0 : A.document) || {}
877
+ ...((P = e.onlyOfficeConfig) == null ? void 0 : P.document) || {}
877
878
  },
878
- documentType: oe(E)
879
+ documentType: ie(E)
879
880
  };
880
881
  return;
881
882
  }
882
- } catch (f) {
883
- console.info("预览错误: ", f);
883
+ } catch (d) {
884
+ console.info("预览错误: ", d);
884
885
  }
885
886
  };
886
- K([o, e.file], ([s, c]) => {
887
- s && J(() => {
887
+ J([o, e.file], ([s, c]) => {
888
+ s && Q(() => {
888
889
  u(e.file);
889
890
  });
890
891
  });
891
- const p = () => {
892
+ const f = () => {
892
893
  o.value = !1, a.office = !1, a.image = !1, a.video = !1;
893
894
  };
894
895
  return (s, c) => {
895
896
  var k, b;
896
- const m = z("el-image-viewer");
897
- return o.value ? (l(), d(
898
- Q,
897
+ const g = z("el-image-viewer");
898
+ return o.value ? (l(), p(
899
+ Z,
899
900
  { key: 0 },
900
901
  [
901
- (k = i.value) != null && k.url && a.image ? (l(), _(m, {
902
+ (k = i.value) != null && k.url && a.image ? (l(), _(g, {
902
903
  key: 0,
903
904
  onClose: c[0] || (c[0] = (R) => {
904
905
  i.value = null, a.image = !1;
@@ -907,7 +908,7 @@ const Ce = /* @__PURE__ */ V(Se, [["__scopeId", "data-v-fe959cd8"]]), Ie = q(Ce)
907
908
  "url-list": [(b = i.value) == null ? void 0 : b.url]
908
909
  }, null, 8, ["url-list"])) : S("v-if", !0),
909
910
  S(" 文档类 "),
910
- D(y(ye), {
911
+ D(y(we), {
911
912
  modelValue: a.office,
912
913
  "onUpdate:modelValue": c[1] || (c[1] = (R) => a.office = R),
913
914
  draggable: "",
@@ -919,15 +920,14 @@ const Ce = /* @__PURE__ */ V(Se, [["__scopeId", "data-v-fe959cd8"]]), Ie = q(Ce)
919
920
  "close-on-click-modal": "",
920
921
  "close-on-press-escape": !1,
921
922
  "append-to-body": "",
922
- onClose: p,
923
+ onClose: f,
923
924
  "modal-class": "ik-only-preview-dialog"
924
925
  }, {
925
- default: g(() => [
926
- D(y(Ie), {
927
- configOptions: t.value,
928
- documentServerUrl: n.onlyofficeServer,
929
- mode: "view"
930
- }, null, 8, ["configOptions", "documentServerUrl"])
926
+ default: v(() => [
927
+ D(y(ze), {
928
+ "config-options": t.value,
929
+ "document-server-url": n.onlyOfficeConfig.serverUrl || n.onlyofficeServer
930
+ }, null, 8, ["config-options", "document-server-url"])
931
931
  ]),
932
932
  _: 1
933
933
  /* STABLE */
@@ -939,8 +939,8 @@ const Ce = /* @__PURE__ */ V(Se, [["__scopeId", "data-v-fe959cd8"]]), Ie = q(Ce)
939
939
  };
940
940
  }
941
941
  });
942
- const qe = q(ze);
942
+ const Fe = q(De);
943
943
  export {
944
- qe as IkPreviewFileDialog,
945
- qe as default
944
+ Fe as IkPreviewFileDialog,
945
+ Fe as default
946
946
  };