iking-web-ui-pro 0.1.88 → 0.1.89

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 { defineComponent as k, computed as S, openBlock as d, createElementBlock as u, createElementVNode as c, mergeModels as L, useModel as P, ref as z, reactive as W, watch as j, nextTick as K, resolveComponent as $, createBlock as I, createCommentVNode as C, createVNode as y, unref as w, withCtx as b, Fragment as M, renderList as H, normalizeClass as x, normalizeStyle as _, toDisplayString as V, withModifiers as X, renderSlot as R, createTextVNode as O, h as Y, mergeProps as Z, createSlots as J, pushScopeId as Q, popScopeId as e3 } from "vue";
2
- import { buildUUID as t3, paramType as n3, ikFile as o3, ikColor as i3, ikUrl as s3 } from "iking-utils-pro";
3
- const D = (n, e) => {
1
+ import { defineComponent as k, computed as S, openBlock as c, createElementBlock as u, createElementVNode as r, ref as z, Fragment as M, renderList as H, normalizeClass as F, normalizeStyle as _, createVNode as y, toDisplayString as C, unref as w, withModifiers as W, renderSlot as $, createCommentVNode as V, mergeModels as P, useModel as L, reactive as K, watch as j, nextTick as X, resolveComponent as D, createBlock as I, withCtx as b, createTextVNode as O, h as Y, mergeProps as Z, createSlots as J, pushScopeId as Q, popScopeId as e3 } from "vue";
2
+ import { paramType as t3, ikFile as n3, buildUUID as o3, ikColor as i3, ikUrl as s3 } from "iking-utils-pro";
3
+ const R = (n, e) => {
4
4
  if (n.install = (i) => {
5
5
  for (const l of [n, ...Object.values(e ?? {})])
6
6
  i.component(l.name, l);
@@ -23,8 +23,8 @@ const D = (n, e) => {
23
23
  return (o % 1 === 0 ? o.toFixed(e || 0) : o.toFixed(e)) + " " + i[l];
24
24
  }, q = (n, e) => e ? e.startsWith("http") ? e : `${n || location.origin}${e}` : "";
25
25
  const G = (n, e) => {
26
- var s, a, f, g;
27
- const i = (s = n == null ? void 0 : n.response) != null && s.data ? U((f = (a = n == null ? void 0 : n.response) == null ? void 0 : a.data) == null ? void 0 : f.suffix) : ((g = n.raw) == null ? void 0 : g.type) || U(n[e.suffix]), l = i == null ? void 0 : i.toLowerCase(), o = {
26
+ var s, a, h, g;
27
+ const i = (s = n == null ? void 0 : n.response) != null && s.data ? U((h = (a = n == null ? void 0 : n.response) == null ? void 0 : a.data) == null ? void 0 : h.suffix) : ((g = n.raw) == null ? void 0 : g.type) || U(n[e.suffix]), l = i == null ? void 0 : i.toLowerCase(), o = {
28
28
  sheet: "excel",
29
29
  excel: "excel",
30
30
  zip: "zip",
@@ -145,7 +145,7 @@ const G = (n, e) => {
145
145
  "p-id": "7671",
146
146
  width: "200",
147
147
  height: "200"
148
- }, d3 = /* @__PURE__ */ c(
148
+ }, d3 = /* @__PURE__ */ r(
149
149
  "path",
150
150
  {
151
151
  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",
@@ -155,7 +155,7 @@ const G = (n, e) => {
155
155
  null,
156
156
  -1
157
157
  /* HOISTED */
158
- ), u3 = /* @__PURE__ */ c(
158
+ ), u3 = /* @__PURE__ */ r(
159
159
  "path",
160
160
  {
161
161
  d: "M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",
@@ -165,7 +165,7 @@ const G = (n, e) => {
165
165
  null,
166
166
  -1
167
167
  /* HOISTED */
168
- ), p3 = /* @__PURE__ */ c(
168
+ ), p3 = /* @__PURE__ */ r(
169
169
  "path",
170
170
  {
171
171
  d: "M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",
@@ -175,7 +175,7 @@ const G = (n, e) => {
175
175
  null,
176
176
  -1
177
177
  /* HOISTED */
178
- ), f3 = /* @__PURE__ */ c(
178
+ ), f3 = /* @__PURE__ */ r(
179
179
  "path",
180
180
  {
181
181
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -200,7 +200,7 @@ const G = (n, e) => {
200
200
  "p-id": "9067",
201
201
  width: "200",
202
202
  height: "200"
203
- }, g3 = /* @__PURE__ */ c(
203
+ }, g3 = /* @__PURE__ */ r(
204
204
  "path",
205
205
  {
206
206
  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",
@@ -210,7 +210,7 @@ const G = (n, e) => {
210
210
  null,
211
211
  -1
212
212
  /* HOISTED */
213
- ), m3 = /* @__PURE__ */ c(
213
+ ), m3 = /* @__PURE__ */ r(
214
214
  "path",
215
215
  {
216
216
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -233,7 +233,7 @@ const G = (n, e) => {
233
233
  "p-id": "8137",
234
234
  width: "200",
235
235
  height: "200"
236
- }, _3 = /* @__PURE__ */ c(
236
+ }, _3 = /* @__PURE__ */ r(
237
237
  "path",
238
238
  {
239
239
  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 m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",
@@ -243,7 +243,7 @@ const G = (n, e) => {
243
243
  null,
244
244
  -1
245
245
  /* HOISTED */
246
- ), k3 = /* @__PURE__ */ c(
246
+ ), k3 = /* @__PURE__ */ r(
247
247
  "path",
248
248
  {
249
249
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -266,7 +266,7 @@ const G = (n, e) => {
266
266
  "p-id": "8292",
267
267
  width: "200",
268
268
  height: "200"
269
- }, x3 = /* @__PURE__ */ c(
269
+ }, x3 = /* @__PURE__ */ r(
270
270
  "path",
271
271
  {
272
272
  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",
@@ -276,7 +276,7 @@ const G = (n, e) => {
276
276
  null,
277
277
  -1
278
278
  /* HOISTED */
279
- ), b3 = /* @__PURE__ */ c(
279
+ ), b3 = /* @__PURE__ */ r(
280
280
  "path",
281
281
  {
282
282
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -299,7 +299,7 @@ const G = (n, e) => {
299
299
  "p-id": "8447",
300
300
  width: "200",
301
301
  height: "200"
302
- }, V3 = /* @__PURE__ */ c(
302
+ }, V3 = /* @__PURE__ */ r(
303
303
  "path",
304
304
  {
305
305
  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",
@@ -309,7 +309,7 @@ const G = (n, e) => {
309
309
  null,
310
310
  -1
311
311
  /* HOISTED */
312
- ), B3 = /* @__PURE__ */ c(
312
+ ), B3 = /* @__PURE__ */ r(
313
313
  "path",
314
314
  {
315
315
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -332,7 +332,7 @@ const G = (n, e) => {
332
332
  "p-id": "8602",
333
333
  width: "200",
334
334
  height: "200"
335
- }, $3 = /* @__PURE__ */ c(
335
+ }, $3 = /* @__PURE__ */ r(
336
336
  "path",
337
337
  {
338
338
  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",
@@ -342,7 +342,7 @@ const G = (n, e) => {
342
342
  null,
343
343
  -1
344
344
  /* HOISTED */
345
- ), D3 = /* @__PURE__ */ c(
345
+ ), D3 = /* @__PURE__ */ r(
346
346
  "path",
347
347
  {
348
348
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -365,7 +365,7 @@ const G = (n, e) => {
365
365
  "p-id": "8757",
366
366
  width: "200",
367
367
  height: "200"
368
- }, E3 = /* @__PURE__ */ c(
368
+ }, E3 = /* @__PURE__ */ r(
369
369
  "path",
370
370
  {
371
371
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",
@@ -375,7 +375,7 @@ const G = (n, e) => {
375
375
  null,
376
376
  -1
377
377
  /* HOISTED */
378
- ), H3 = /* @__PURE__ */ c(
378
+ ), H3 = /* @__PURE__ */ r(
379
379
  "path",
380
380
  {
381
381
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -398,7 +398,7 @@ const G = (n, e) => {
398
398
  "p-id": "8912",
399
399
  width: "200",
400
400
  height: "200"
401
- }, U3 = /* @__PURE__ */ c(
401
+ }, U3 = /* @__PURE__ */ r(
402
402
  "path",
403
403
  {
404
404
  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",
@@ -408,7 +408,7 @@ const G = (n, e) => {
408
408
  null,
409
409
  -1
410
410
  /* HOISTED */
411
- ), T3 = /* @__PURE__ */ c(
411
+ ), T3 = /* @__PURE__ */ r(
412
412
  "path",
413
413
  {
414
414
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -418,10 +418,10 @@ const G = (n, e) => {
418
418
  null,
419
419
  -1
420
420
  /* HOISTED */
421
- ), L3 = [
421
+ ), P3 = [
422
422
  U3,
423
423
  T3
424
- ], P3 = {
424
+ ], L3 = {
425
425
  key: 8,
426
426
  t: "1692251753690",
427
427
  class: "icon",
@@ -431,7 +431,7 @@ const G = (n, e) => {
431
431
  "p-id": "4336",
432
432
  width: "200",
433
433
  height: "200"
434
- }, j3 = /* @__PURE__ */ c(
434
+ }, j3 = /* @__PURE__ */ r(
435
435
  "path",
436
436
  {
437
437
  d: "M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",
@@ -441,7 +441,7 @@ const G = (n, e) => {
441
441
  null,
442
442
  -1
443
443
  /* HOISTED */
444
- ), G3 = /* @__PURE__ */ c(
444
+ ), G3 = /* @__PURE__ */ r(
445
445
  "path",
446
446
  {
447
447
  d: "M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",
@@ -452,7 +452,7 @@ const G = (n, e) => {
452
452
  null,
453
453
  -1
454
454
  /* HOISTED */
455
- ), N3 = /* @__PURE__ */ c(
455
+ ), N3 = /* @__PURE__ */ r(
456
456
  "path",
457
457
  {
458
458
  d: "M640 0l320 320H768a128 128 0 0 1-128-128V0z",
@@ -476,7 +476,7 @@ const G = (n, e) => {
476
476
  "p-id": "4336",
477
477
  width: "200",
478
478
  height: "200"
479
- }, X3 = /* @__PURE__ */ c(
479
+ }, X3 = /* @__PURE__ */ r(
480
480
  "path",
481
481
  {
482
482
  d: "M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",
@@ -486,7 +486,7 @@ const G = (n, e) => {
486
486
  null,
487
487
  -1
488
488
  /* HOISTED */
489
- ), Y3 = /* @__PURE__ */ c(
489
+ ), Y3 = /* @__PURE__ */ r(
490
490
  "path",
491
491
  {
492
492
  d: "M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",
@@ -496,7 +496,7 @@ const G = (n, e) => {
496
496
  null,
497
497
  -1
498
498
  /* HOISTED */
499
- ), Z3 = /* @__PURE__ */ c(
499
+ ), Z3 = /* @__PURE__ */ r(
500
500
  "path",
501
501
  {
502
502
  d: "M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",
@@ -507,7 +507,7 @@ const G = (n, e) => {
507
507
  null,
508
508
  -1
509
509
  /* HOISTED */
510
- ), J3 = /* @__PURE__ */ c(
510
+ ), J3 = /* @__PURE__ */ r(
511
511
  "path",
512
512
  {
513
513
  d: "M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",
@@ -532,7 +532,7 @@ const G = (n, e) => {
532
532
  "p-id": "2271",
533
533
  width: "200",
534
534
  height: "200"
535
- }, t6 = /* @__PURE__ */ c(
535
+ }, t6 = /* @__PURE__ */ r(
536
536
  "path",
537
537
  {
538
538
  d: "M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",
@@ -542,7 +542,7 @@ const G = (n, e) => {
542
542
  null,
543
543
  -1
544
544
  /* HOISTED */
545
- ), n6 = /* @__PURE__ */ c(
545
+ ), n6 = /* @__PURE__ */ r(
546
546
  "path",
547
547
  {
548
548
  d: "M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",
@@ -553,7 +553,7 @@ const G = (n, e) => {
553
553
  null,
554
554
  -1
555
555
  /* HOISTED */
556
- ), o6 = /* @__PURE__ */ c(
556
+ ), o6 = /* @__PURE__ */ r(
557
557
  "path",
558
558
  {
559
559
  d: "M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",
@@ -577,7 +577,7 @@ const G = (n, e) => {
577
577
  "p-id": "7515",
578
578
  width: "200",
579
579
  height: "200"
580
- }, l6 = /* @__PURE__ */ c(
580
+ }, l6 = /* @__PURE__ */ r(
581
581
  "path",
582
582
  {
583
583
  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",
@@ -587,7 +587,7 @@ const G = (n, e) => {
587
587
  null,
588
588
  -1
589
589
  /* HOISTED */
590
- ), a6 = /* @__PURE__ */ c(
590
+ ), a6 = /* @__PURE__ */ r(
591
591
  "path",
592
592
  {
593
593
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -597,7 +597,7 @@ const G = (n, e) => {
597
597
  null,
598
598
  -1
599
599
  /* HOISTED */
600
- ), r6 = /* @__PURE__ */ c(
600
+ ), r6 = /* @__PURE__ */ r(
601
601
  "path",
602
602
  {
603
603
  d: "M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",
@@ -633,137 +633,9 @@ const G = (n, e) => {
633
633
  },
634
634
  setup(n) {
635
635
  const e = n, i = S(() => e.file ? G(e.file, e.fields) : e.type);
636
- return (l, o) => i.value === "image" ? (d(), u("svg", c3, h3)) : i.value === "zip" ? (d(), u("svg", v3, w3)) : i.value === "ppt" ? (d(), u("svg", y3, z3)) : i.value === "word" ? (d(), u("svg", F3, S3)) : i.value === "pdf" ? (d(), u("svg", C3, I3)) : i.value === "txt" ? (d(), u("svg", R3, M3)) : i.value === "audio" ? (d(), u("svg", q3, O3)) : i.value === "video" ? (d(), u("svg", A3, L3)) : i.value === "excel" ? (d(), u("svg", P3, W3)) : i.value === "exe" ? (d(), u("svg", K3, Q3)) : i.value === "json" ? (d(), u("svg", e6, i6)) : (d(), u("svg", s6, c6));
636
+ return (l, o) => i.value === "image" ? (c(), u("svg", c3, h3)) : i.value === "zip" ? (c(), u("svg", v3, w3)) : i.value === "ppt" ? (c(), u("svg", y3, z3)) : i.value === "word" ? (c(), u("svg", F3, S3)) : i.value === "pdf" ? (c(), u("svg", C3, I3)) : i.value === "txt" ? (c(), u("svg", R3, M3)) : i.value === "audio" ? (c(), u("svg", q3, O3)) : i.value === "video" ? (c(), u("svg", A3, P3)) : i.value === "excel" ? (c(), u("svg", L3, W3)) : i.value === "exe" ? (c(), u("svg", K3, Q3)) : i.value === "json" ? (c(), u("svg", e6, i6)) : (c(), u("svg", s6, c6));
637
637
  }
638
- }), u6 = /* @__PURE__ */ k({
639
- __name: "IkPreviewFileDialog",
640
- props: /* @__PURE__ */ L({
641
- file: {
642
- type: Object,
643
- default: () => []
644
- },
645
- // url为文件全路径(以http开头)时,不需要传递
646
- loadUrl: {
647
- type: String,
648
- default: ""
649
- },
650
- // 需要onlyoffice预览的文件类型
651
- onlyOfficeAccept: {
652
- type: String,
653
- default: ".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"
654
- },
655
- // onlyoffice服务地址
656
- onlyofficeServer: {
657
- type: String,
658
- default: ""
659
- },
660
- // onlyoffice公共配置
661
- onlyOfficeConfig: {
662
- type: Object,
663
- default: () => ({})
664
- },
665
- field: {
666
- type: Object,
667
- default: () => ({})
668
- }
669
- }, {
670
- show: { default: !1 },
671
- showModifiers: {}
672
- }),
673
- emits: ["update:show"],
674
- setup(n) {
675
- const e = n, i = P(n, "show"), l = S(() => ({
676
- name: "name",
677
- url: "url",
678
- suffix: "suffix",
679
- size: "fileSize",
680
- ...e.field
681
- })), o = z(null), s = z(null), a = W({
682
- image: !1,
683
- office: !1,
684
- video: !1
685
- }), f = (t) => {
686
- var p, F;
687
- const r = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || t, v = r[l.value.url] || (r == null ? void 0 : r.id) || r.attachmentId, h = (F = r[l.value.suffix] || r.attachmentSuffix) == null ? void 0 : F.toLowerCase(), m = r[l.value.name] || (r == null ? void 0 : r.attachmentName);
688
- if (s.value = {
689
- ...t,
690
- name: t[l.value.name],
691
- url: q(e.loadUrl, v)
692
- }, t && G(t, l.value) === "image") {
693
- a.image = !0;
694
- return;
695
- } else if (e.onlyOfficeAccept.includes(h)) {
696
- a.office = !0, o.value = {
697
- documentType: r3(h),
698
- document: {
699
- key: t3(),
700
- title: m,
701
- url: q(e.loadUrl, v),
702
- fileType: h
703
- },
704
- editorConfig: {
705
- customization: {
706
- review: {
707
- reviewDisplay: "final"
708
- }
709
- }
710
- },
711
- ...e.onlyOfficeConfig
712
- };
713
- return;
714
- }
715
- };
716
- j([i, e.file], ([t, r]) => {
717
- t && K(() => {
718
- f(e.file);
719
- });
720
- });
721
- const g = () => {
722
- i.value = !1, a.office = !1, a.image = !1, a.video = !1;
723
- };
724
- return (t, r) => {
725
- var h, m;
726
- const v = $("el-image-viewer");
727
- return d(), u("template", null, [
728
- (h = s.value) != null && h.url && a.image ? (d(), I(v, {
729
- key: 0,
730
- onClose: r[0] || (r[0] = (p) => {
731
- s.value = null, a.image = !1;
732
- }),
733
- ref: "previewImgRef",
734
- "url-list": [(m = s.value) == null ? void 0 : m.url]
735
- }, null, 8, ["url-list"])) : C("v-if", !0),
736
- C(" 文档类 "),
737
- y(w($6), {
738
- modelValue: a.office,
739
- "onUpdate:modelValue": r[1] || (r[1] = (p) => a.office = p),
740
- draggable: "",
741
- "no-footer": "",
742
- "no-header": "",
743
- fullscreen: "",
744
- "show-close-bg": "",
745
- "destroy-on-close": "",
746
- "close-on-click-modal": "",
747
- "close-on-press-escape": !1,
748
- "append-to-body": "",
749
- onClose: g,
750
- "modal-class": "ik-only-preview-dialog"
751
- }, {
752
- default: b(() => [
753
- y(w(U6), {
754
- configOptions: o.value,
755
- documentServerUrl: n.onlyofficeServer,
756
- mode: "view"
757
- }, null, 8, ["configOptions", "documentServerUrl"])
758
- ]),
759
- _: 1
760
- /* STABLE */
761
- }, 8, ["modelValue"])
762
- ]);
763
- };
764
- }
765
- });
766
- const p6 = ["onClick"], f6 = { class: "text" }, h6 = { class: "fileName" }, v6 = { class: "size" }, g6 = /* @__PURE__ */ k({
638
+ }), u6 = ["onClick"], p6 = { class: "text" }, f6 = { class: "fileName" }, h6 = { class: "size" }, v6 = /* @__PURE__ */ k({
767
639
  __name: "IkPreviewFile",
768
640
  props: {
769
641
  list: {
@@ -840,86 +712,86 @@ const p6 = ["onClick"], f6 = { class: "text" }, h6 = { class: "fileName" }, v6 =
840
712
  size: "size",
841
713
  ...e.field
842
714
  })), l = z(null), o = z(!1), s = (t) => {
843
- var r, v;
715
+ var d, v;
844
716
  l.value = {
845
717
  ...t,
846
718
  name: t.name,
847
719
  url: q(
848
720
  e.loadUrl,
849
- t.url || ((v = (r = t == null ? void 0 : t.response) == null ? void 0 : r.data) == null ? void 0 : v.id) || (t == null ? void 0 : t.id)
721
+ t.url || ((v = (d = t == null ? void 0 : t.response) == null ? void 0 : d.data) == null ? void 0 : v.id) || (t == null ? void 0 : t.id)
850
722
  )
851
723
  }, o.value = !0;
852
724
  }, a = (t) => {
853
- o3.downloadFile(
725
+ n3.downloadFile(
854
726
  q(
855
727
  e.loadUrl,
856
728
  t[i.value.url] || t.attachmentId || t.id
857
729
  ),
858
730
  t[i.value.name] || t.attachmentName
859
731
  );
860
- }, f = S(() => n3.isNumber(e.width) ? `${e.width}px` : e.width), g = S(() => e.list.map((t) => ({
732
+ }, h = S(() => t3.isNumber(e.width) ? `${e.width}px` : e.width), g = S(() => e.list.map((t) => ({
861
733
  ...t,
862
734
  name: t[i.value.name] || t.attachmentName,
863
735
  size: t[i.value.size] || t.fileSize || t.attachmentSize,
864
736
  suffix: t[i.value.suffix] || t.attachmentSuffix
865
737
  })));
866
- return (t, r) => {
738
+ return (t, d) => {
867
739
  var v;
868
- return d(), u(
740
+ return c(), u(
869
741
  M,
870
742
  null,
871
743
  [
872
- (v = n.list) != null && v.length ? (d(!0), u(
744
+ (v = n.list) != null && v.length ? (c(!0), u(
873
745
  M,
874
746
  { key: 0 },
875
- H(g.value, (h, m) => {
876
- var p;
877
- return d(), u(
747
+ H(g.value, (p, m) => {
748
+ var f;
749
+ return c(), u(
878
750
  "div",
879
751
  {
880
- class: x(["iking-privew-annex", { "is-bg": n.showBg }]),
752
+ class: F(["iking-privew-annex", { "is-bg": n.showBg }]),
881
753
  key: m,
882
754
  style: _({
883
- marginBottom: m == ((p = n.list) == null ? void 0 : p.length) - 1 ? "0" : "10px",
884
- width: f.value
755
+ marginBottom: m == ((f = n.list) == null ? void 0 : f.length) - 1 ? "0" : "10px",
756
+ width: h.value
885
757
  })
886
758
  },
887
759
  [
888
- c("div", {
760
+ r("div", {
889
761
  class: "file-card",
890
- onClick: (F) => s(h)
762
+ onClick: (x) => s(p)
891
763
  }, [
892
764
  y(d6, {
893
- file: h,
765
+ file: p,
894
766
  style: _({ height: `${n.iconSize}px` }),
895
767
  class: "ikui-w-auto",
896
768
  fields: i.value
897
769
  }, null, 8, ["file", "style", "fields"]),
898
- c("div", f6, [
899
- c(
770
+ r("div", p6, [
771
+ r(
900
772
  "div",
901
- h6,
902
- V(h.name),
773
+ f6,
774
+ C(p.name),
903
775
  1
904
776
  /* TEXT */
905
777
  ),
906
- c(
778
+ r(
907
779
  "div",
908
- v6,
909
- V(w(l3)(h.size)),
780
+ h6,
781
+ C(w(l3)(p.size)),
910
782
  1
911
783
  /* TEXT */
912
784
  )
913
785
  ]),
914
- c(
786
+ r(
915
787
  "div",
916
788
  {
917
- class: x(["flex flex-center", { "hover-show": n.iconHoverShow }])
789
+ class: F(["flex flex-center", { "hover-show": n.iconHoverShow }])
918
790
  },
919
791
  [
920
792
  y(w(B), {
921
793
  name: "iksvg_daochu",
922
- onClick: X((F) => a(h), ["stop"]),
794
+ onClick: W((x) => a(p), ["stop"]),
923
795
  bg: n.showBg,
924
796
  size: n.showBg ? "default" : 20
925
797
  }, null, 8, ["onClick", "bg", "size"]),
@@ -928,14 +800,14 @@ const p6 = ["onClick"], f6 = { class: "text" }, h6 = { class: "fileName" }, v6 =
928
800
  bg: n.showBg,
929
801
  size: n.showBg ? "default" : 20
930
802
  }, null, 8, ["bg", "size"]),
931
- R(t.$slots, "operation", {
932
- data: { ...h, findex: m }
803
+ $(t.$slots, "operation", {
804
+ data: { ...p, findex: m }
933
805
  })
934
806
  ],
935
807
  2
936
808
  /* CLASS */
937
809
  )
938
- ], 8, p6)
810
+ ], 8, u6)
939
811
  ],
940
812
  6
941
813
  /* CLASS, STYLE */
@@ -943,15 +815,16 @@ const p6 = ["onClick"], f6 = { class: "text" }, h6 = { class: "fileName" }, v6 =
943
815
  }),
944
816
  128
945
817
  /* KEYED_FRAGMENT */
946
- )) : C("v-if", !0),
947
- y(u6, {
818
+ )) : V("v-if", !0),
819
+ y(w(w6), {
948
820
  show: o.value,
949
- "onUpdate:show": r[0] || (r[0] = (h) => o.value = h),
821
+ "onUpdate:show": d[0] || (d[0] = (p) => o.value = p),
950
822
  loadUrl: n.loadUrl,
951
823
  file: l.value,
952
824
  onlyofficeServer: n.onlyofficeServer,
953
- onlyOfficeConfig: n.onlyOfficeConfig
954
- }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig"])
825
+ onlyOfficeConfig: n.onlyOfficeConfig,
826
+ onlyOfficeAccept: n.onlyOfficeAccept
827
+ }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
955
828
  ],
956
829
  64
957
830
  /* STABLE_FRAGMENT */
@@ -959,18 +832,150 @@ const p6 = ["onClick"], f6 = { class: "text" }, h6 = { class: "fileName" }, v6 =
959
832
  };
960
833
  }
961
834
  });
962
- const m6 = D(g6), w6 = {
835
+ const g6 = R(v6), m6 = /* @__PURE__ */ k({
836
+ __name: "IkPreviewFileDialog",
837
+ props: /* @__PURE__ */ P({
838
+ file: {
839
+ type: Object,
840
+ default: () => []
841
+ },
842
+ // url为文件全路径(以http开头)时,不需要传递
843
+ loadUrl: {
844
+ type: String,
845
+ default: ""
846
+ },
847
+ // 需要onlyoffice预览的文件类型
848
+ onlyOfficeAccept: {
849
+ type: String,
850
+ default: ".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"
851
+ },
852
+ // onlyoffice服务地址
853
+ onlyofficeServer: {
854
+ type: String,
855
+ default: ""
856
+ },
857
+ // onlyoffice公共配置
858
+ onlyOfficeConfig: {
859
+ type: Object,
860
+ default: () => ({})
861
+ },
862
+ field: {
863
+ type: Object,
864
+ default: () => ({})
865
+ }
866
+ }, {
867
+ show: { default: !1 },
868
+ showModifiers: {}
869
+ }),
870
+ emits: ["update:show"],
871
+ setup(n) {
872
+ const e = n, i = L(n, "show"), l = S(() => ({
873
+ name: "name",
874
+ url: "url",
875
+ suffix: "suffix",
876
+ size: "fileSize",
877
+ ...e.field
878
+ })), o = z(null), s = z(null), a = K({
879
+ image: !1,
880
+ office: !1,
881
+ video: !1
882
+ }), h = (t) => {
883
+ var d, v;
884
+ try {
885
+ const p = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || t, m = p[l.value.url] || (p == null ? void 0 : p.id) || p.attachmentId, f = (v = p[l.value.suffix] || p.attachmentSuffix) == null ? void 0 : v.toLowerCase(), x = p[l.value.name] || (p == null ? void 0 : p.attachmentName);
886
+ if (s.value = {
887
+ ...t,
888
+ name: t[l.value.name],
889
+ url: q(e.loadUrl, m)
890
+ }, t && G(t, l.value) === "image") {
891
+ a.image = !0;
892
+ return;
893
+ } else if (e.onlyOfficeAccept.includes(f)) {
894
+ a.office = !0, o.value = {
895
+ documentType: r3(f),
896
+ document: {
897
+ key: o3(),
898
+ title: x,
899
+ url: q(e.loadUrl, m),
900
+ fileType: f
901
+ },
902
+ editorConfig: {
903
+ customization: {
904
+ review: {
905
+ reviewDisplay: "final"
906
+ }
907
+ }
908
+ },
909
+ ...e.onlyOfficeConfig
910
+ };
911
+ return;
912
+ }
913
+ } catch (p) {
914
+ console.info("预览错误: ", p);
915
+ }
916
+ };
917
+ j([i, e.file], ([t, d]) => {
918
+ t && X(() => {
919
+ h(e.file);
920
+ });
921
+ });
922
+ const g = () => {
923
+ i.value = !1, a.office = !1, a.image = !1, a.video = !1;
924
+ };
925
+ return (t, d) => {
926
+ var p, m;
927
+ const v = D("el-image-viewer");
928
+ return c(), u("template", null, [
929
+ (p = s.value) != null && p.url && a.image ? (c(), I(v, {
930
+ key: 0,
931
+ onClose: d[0] || (d[0] = (f) => {
932
+ s.value = null, a.image = !1;
933
+ }),
934
+ ref: "previewImgRef",
935
+ "url-list": [(m = s.value) == null ? void 0 : m.url]
936
+ }, null, 8, ["url-list"])) : V("v-if", !0),
937
+ V(" 文档类 "),
938
+ y(w(D6), {
939
+ modelValue: a.office,
940
+ "onUpdate:modelValue": d[1] || (d[1] = (f) => a.office = f),
941
+ draggable: "",
942
+ "no-footer": "",
943
+ "no-header": "",
944
+ fullscreen: "",
945
+ "show-close-bg": "",
946
+ "destroy-on-close": "",
947
+ "close-on-click-modal": "",
948
+ "close-on-press-escape": !1,
949
+ "append-to-body": "",
950
+ onClose: g,
951
+ "modal-class": "ik-only-preview-dialog"
952
+ }, {
953
+ default: b(() => [
954
+ y(w(T6), {
955
+ configOptions: o.value,
956
+ documentServerUrl: n.onlyofficeServer,
957
+ mode: "view"
958
+ }, null, 8, ["configOptions", "documentServerUrl"])
959
+ ]),
960
+ _: 1
961
+ /* STABLE */
962
+ }, 8, ["modelValue"])
963
+ ]);
964
+ };
965
+ }
966
+ });
967
+ const w6 = R(m6), y6 = {
963
968
  key: 0,
964
969
  class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
965
- }, y6 = {
970
+ }, _6 = {
966
971
  key: 1,
967
972
  class: "h-[1em] w-[1em]",
968
973
  "aria-hidden": "true"
969
- }, _6 = ["xlink:href"], k6 = ["src"], z6 = {
974
+ }, k6 = ["xlink:href"], z6 = ["src"], F6 = {
970
975
  key: 1,
971
976
  class: "h-[1em] w-[1em]",
972
977
  "aria-hidden": "true"
973
- }, F6 = ["xlink:href"], x6 = ["src"], b6 = /* @__PURE__ */ k({
978
+ }, x6 = ["xlink:href"], b6 = ["src"], S6 = /* @__PURE__ */ k({
974
979
  name: "IkSvgIcon",
975
980
  __name: "index",
976
981
  props: {
@@ -1028,13 +1033,13 @@ const m6 = D(g6), w6 = {
1028
1033
  return e.width && (s.width = s.height = typeof e.width == "number" ? `${e.width}px` : e.width), s;
1029
1034
  });
1030
1035
  return (o, s) => {
1031
- const a = $("el-tooltip"), f = $("el-button");
1032
- return o.tableIconType === "icon" ? (d(), u("span", w6, [
1033
- o.notip || !o.title ? (d(), u(
1036
+ const a = D("el-tooltip"), h = D("el-button");
1037
+ return o.tableIconType === "icon" ? (c(), u("span", y6, [
1038
+ o.notip || !o.title ? (c(), u(
1034
1039
  "i",
1035
1040
  {
1036
1041
  key: 0,
1037
- class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1042
+ class: F(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1038
1043
  [o.name]: i.value === "unocss",
1039
1044
  "show-bg": o.showBg || o.bg,
1040
1045
  default: o.size === "default",
@@ -1050,30 +1055,30 @@ const m6 = D(g6), w6 = {
1050
1055
  style: _(l.value)
1051
1056
  },
1052
1057
  [
1053
- C(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1054
- i.value === "iksig" ? (d(), u(
1058
+ V(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1059
+ i.value === "iksig" ? (c(), u(
1055
1060
  "i",
1056
1061
  {
1057
1062
  key: 0,
1058
- class: x(`iksig ${o.name}`),
1063
+ class: F(`iksig ${o.name}`),
1059
1064
  style: _(l.value)
1060
1065
  },
1061
1066
  null,
1062
1067
  6
1063
1068
  /* CLASS, STYLE */
1064
- )) : i.value === "svg" ? (d(), u("svg", y6, [
1065
- c("use", {
1069
+ )) : i.value === "svg" ? (c(), u("svg", _6, [
1070
+ r("use", {
1066
1071
  "xlink:href": `#${o.name}`
1067
- }, null, 8, _6)
1068
- ])) : i.value === "img" ? (d(), u("img", {
1072
+ }, null, 8, k6)
1073
+ ])) : i.value === "img" ? (c(), u("img", {
1069
1074
  key: 2,
1070
1075
  src: o.name,
1071
1076
  class: "h-[1em] w-[1em]"
1072
- }, null, 8, k6)) : (d(), u(
1077
+ }, null, 8, z6)) : (c(), u(
1073
1078
  "i",
1074
1079
  {
1075
1080
  key: 3,
1076
- class: x(o.name),
1081
+ class: F(o.name),
1077
1082
  style: _(l.value)
1078
1083
  },
1079
1084
  null,
@@ -1083,16 +1088,16 @@ const m6 = D(g6), w6 = {
1083
1088
  ],
1084
1089
  6
1085
1090
  /* CLASS, STYLE */
1086
- )) : (d(), I(a, {
1091
+ )) : (c(), I(a, {
1087
1092
  key: 1,
1088
1093
  content: o.title,
1089
1094
  placement: "top"
1090
1095
  }, {
1091
1096
  default: b(() => [
1092
- c(
1097
+ r(
1093
1098
  "i",
1094
1099
  {
1095
- class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1100
+ class: F(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1096
1101
  [o.name]: i.value === "unocss",
1097
1102
  "show-bg": o.showBg || o.bg,
1098
1103
  default: o.size === "default",
@@ -1107,29 +1112,29 @@ const m6 = D(g6), w6 = {
1107
1112
  style: _(l.value)
1108
1113
  },
1109
1114
  [
1110
- i.value === "iksig" ? (d(), u(
1115
+ i.value === "iksig" ? (c(), u(
1111
1116
  "i",
1112
1117
  {
1113
1118
  key: 0,
1114
- class: x(`iksig ${o.name}`),
1119
+ class: F(`iksig ${o.name}`),
1115
1120
  style: _(l.value)
1116
1121
  },
1117
1122
  null,
1118
1123
  6
1119
1124
  /* CLASS, STYLE */
1120
- )) : i.value === "svg" ? (d(), u("svg", z6, [
1121
- c("use", {
1125
+ )) : i.value === "svg" ? (c(), u("svg", F6, [
1126
+ r("use", {
1122
1127
  "xlink:href": `#${o.name}`
1123
- }, null, 8, F6)
1124
- ])) : i.value === "img" ? (d(), u("img", {
1128
+ }, null, 8, x6)
1129
+ ])) : i.value === "img" ? (c(), u("img", {
1125
1130
  key: 2,
1126
1131
  src: o.name,
1127
1132
  class: "h-[1em] w-[1em]"
1128
- }, null, 8, x6)) : (d(), u(
1133
+ }, null, 8, b6)) : (c(), u(
1129
1134
  "i",
1130
1135
  {
1131
1136
  key: 3,
1132
- class: x(o.name),
1137
+ class: F(o.name),
1133
1138
  style: _(l.value)
1134
1139
  },
1135
1140
  null,
@@ -1144,13 +1149,13 @@ const m6 = D(g6), w6 = {
1144
1149
  _: 1
1145
1150
  /* STABLE */
1146
1151
  }, 8, ["content"]))
1147
- ])) : (d(), I(f, {
1152
+ ])) : (c(), I(h, {
1148
1153
  key: 1,
1149
1154
  type: ["warning", "error"].includes(o.type) ? "danger" : ""
1150
1155
  }, {
1151
1156
  default: b(() => [
1152
1157
  O(
1153
- V(o.title),
1158
+ C(o.title),
1154
1159
  1
1155
1160
  /* TEXT */
1156
1161
  )
@@ -1161,10 +1166,10 @@ const m6 = D(g6), w6 = {
1161
1166
  };
1162
1167
  }
1163
1168
  });
1164
- const S6 = /* @__PURE__ */ E(b6, [["__scopeId", "data-v-7d95dbf5"]]), B = D(S6), C6 = {
1169
+ const C6 = /* @__PURE__ */ E(S6, [["__scopeId", "data-v-7d95dbf5"]]), B = R(C6), V6 = {
1165
1170
  key: 0,
1166
1171
  class: "exit-main-page-maximize"
1167
- }, V6 = /* @__PURE__ */ k({
1172
+ }, B6 = /* @__PURE__ */ k({
1168
1173
  __name: "CloseIcon",
1169
1174
  props: {
1170
1175
  showBg: {
@@ -1177,15 +1182,15 @@ const S6 = /* @__PURE__ */ E(b6, [["__scopeId", "data-v-7d95dbf5"]]), B = D(S6),
1177
1182
  }
1178
1183
  },
1179
1184
  setup(n) {
1180
- return (e, i) => (d(), u("div", null, [
1181
- n.showBg && n.fullscreen ? (d(), u("div", C6, [
1185
+ return (e, i) => (c(), u("div", null, [
1186
+ n.showBg && n.fullscreen ? (c(), u("div", V6, [
1182
1187
  y(w(B), {
1183
1188
  name: "iksvg_guanbidanchuang",
1184
1189
  title: "关闭",
1185
1190
  size: 20,
1186
1191
  error: ""
1187
1192
  })
1188
- ])) : (d(), I(w(B), {
1193
+ ])) : (c(), I(w(B), {
1189
1194
  key: 1,
1190
1195
  error: "",
1191
1196
  name: "iksvg_guanbidanchuang",
@@ -1195,9 +1200,9 @@ const S6 = /* @__PURE__ */ E(b6, [["__scopeId", "data-v-7d95dbf5"]]), B = D(S6),
1195
1200
  ]));
1196
1201
  }
1197
1202
  });
1198
- const B6 = /* @__PURE__ */ E(V6, [["__scopeId", "data-v-79f49df8"]]), I6 = { class: "base-header" }, R6 = /* @__PURE__ */ k({
1203
+ const I6 = /* @__PURE__ */ E(B6, [["__scopeId", "data-v-79f49df8"]]), R6 = { class: "base-header" }, $6 = /* @__PURE__ */ k({
1199
1204
  __name: "IkBaseDialog",
1200
- props: /* @__PURE__ */ L({
1205
+ props: /* @__PURE__ */ P({
1201
1206
  title: { default: "" },
1202
1207
  cancelText: { default: "取消" },
1203
1208
  confirmText: { default: "确认" },
@@ -1216,21 +1221,21 @@ const B6 = /* @__PURE__ */ E(V6, [["__scopeId", "data-v-79f49df8"]]), I6 = { cla
1216
1221
  }),
1217
1222
  emits: ["update:modelValue"],
1218
1223
  setup(n) {
1219
- const e = n, i = P(n, "modelValue"), l = z(e.fullscreen), o = () => {
1224
+ const e = n, i = L(n, "modelValue"), l = z(e.fullscreen), o = () => {
1220
1225
  l.value = !l.value;
1221
1226
  }, s = k({
1222
1227
  setup() {
1223
- return () => Y(B6, {
1228
+ return () => Y(I6, {
1224
1229
  showBg: e.showCloseBg,
1225
1230
  fullscreen: e.fullscreen
1226
1231
  });
1227
1232
  }
1228
1233
  });
1229
- return (a, f) => {
1230
- const g = $("el-dialog");
1231
- return d(), I(g, Z({
1234
+ return (a, h) => {
1235
+ const g = D("el-dialog");
1236
+ return c(), I(g, Z({
1232
1237
  modelValue: i.value,
1233
- "onUpdate:modelValue": f[0] || (f[0] = (t) => i.value = t)
1238
+ "onUpdate:modelValue": h[0] || (h[0] = (t) => i.value = t)
1234
1239
  }, a.$attrs, {
1235
1240
  "close-icon": w(s),
1236
1241
  class: `ik-base-dialog ${a.noHeader ? "no-header" : ""} ${a.noFooter ? "no-footer" : ""}`,
@@ -1238,34 +1243,34 @@ const B6 = /* @__PURE__ */ E(V6, [["__scopeId", "data-v-79f49df8"]]), I6 = { cla
1238
1243
  "modal-class": "baseDialog"
1239
1244
  }), J({
1240
1245
  icon: b(() => [
1241
- R(a.$slots, "title", {}, () => [
1246
+ $(a.$slots, "title", {}, () => [
1242
1247
  O(
1243
- V(a.title),
1248
+ C(a.title),
1244
1249
  1
1245
1250
  /* TEXT */
1246
1251
  )
1247
1252
  ])
1248
1253
  ]),
1249
1254
  header: b(() => [
1250
- c("div", I6, [
1251
- R(a.$slots, "header", {}, () => [
1255
+ r("div", R6, [
1256
+ $(a.$slots, "header", {}, () => [
1252
1257
  O(
1253
- V(a.title),
1258
+ C(a.title),
1254
1259
  1
1255
1260
  /* TEXT */
1256
1261
  )
1257
1262
  ])
1258
1263
  ]),
1259
- a.$attrs.showClose ? (d(), I(w(B), {
1264
+ a.$attrs.showClose ? (c(), I(w(B), {
1260
1265
  key: 0,
1261
1266
  onClick: o,
1262
1267
  name: l.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1263
1268
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1264
1269
  title: l.value ? "退出全屏" : "全屏"
1265
- }, null, 8, ["name", "title"])) : C("v-if", !0)
1270
+ }, null, 8, ["name", "title"])) : V("v-if", !0)
1266
1271
  ]),
1267
1272
  default: b(() => [
1268
- R(a.$slots, "default")
1273
+ $(a.$slots, "default")
1269
1274
  ]),
1270
1275
  _: 2
1271
1276
  /* DYNAMIC */
@@ -1273,7 +1278,7 @@ const B6 = /* @__PURE__ */ E(V6, [["__scopeId", "data-v-79f49df8"]]), I6 = { cla
1273
1278
  a.$slots.footer ? {
1274
1279
  name: "footer",
1275
1280
  fn: b(() => [
1276
- R(a.$slots, "footer")
1281
+ $(a.$slots, "footer")
1277
1282
  ]),
1278
1283
  key: "0"
1279
1284
  } : void 0
@@ -1281,46 +1286,46 @@ const B6 = /* @__PURE__ */ E(V6, [["__scopeId", "data-v-79f49df8"]]), I6 = { cla
1281
1286
  };
1282
1287
  }
1283
1288
  });
1284
- const $6 = D(R6);
1285
- function D6(n, e, i, l) {
1289
+ const D6 = R($6);
1290
+ function M6(n, e, i, l) {
1286
1291
  function o(s) {
1287
1292
  return s instanceof i ? s : new i(function(a) {
1288
1293
  a(s);
1289
1294
  });
1290
1295
  }
1291
1296
  return new (i || (i = Promise))(function(s, a) {
1292
- function f(r) {
1297
+ function h(d) {
1293
1298
  try {
1294
- t(l.next(r));
1299
+ t(l.next(d));
1295
1300
  } catch (v) {
1296
1301
  a(v);
1297
1302
  }
1298
1303
  }
1299
- function g(r) {
1304
+ function g(d) {
1300
1305
  try {
1301
- t(l.throw(r));
1306
+ t(l.throw(d));
1302
1307
  } catch (v) {
1303
1308
  a(v);
1304
1309
  }
1305
1310
  }
1306
- function t(r) {
1307
- r.done ? s(r.value) : o(r.value).then(f, g);
1311
+ function t(d) {
1312
+ d.done ? s(d.value) : o(d.value).then(h, g);
1308
1313
  }
1309
1314
  t((l = l.apply(n, e || [])).next());
1310
1315
  });
1311
1316
  }
1312
- function M6(n, e) {
1317
+ function q6(n, e) {
1313
1318
  var i = { label: 0, sent: function() {
1314
1319
  if (s[0] & 1)
1315
1320
  throw s[1];
1316
1321
  return s[1];
1317
1322
  }, trys: [], ops: [] }, l, o, s, a;
1318
- return a = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
1323
+ return a = { next: h(0), throw: h(1), return: h(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
1319
1324
  return this;
1320
1325
  }), a;
1321
- function f(t) {
1322
- return function(r) {
1323
- return g([t, r]);
1326
+ function h(t) {
1327
+ return function(d) {
1328
+ return g([t, d]);
1324
1329
  };
1325
1330
  }
1326
1331
  function g(t) {
@@ -1364,8 +1369,8 @@ function M6(n, e) {
1364
1369
  continue;
1365
1370
  }
1366
1371
  t = e.call(n, i);
1367
- } catch (r) {
1368
- t = [6, r], o = 0;
1372
+ } catch (d) {
1373
+ t = [6, d], o = 0;
1369
1374
  } finally {
1370
1375
  l = s = 0;
1371
1376
  }
@@ -1374,9 +1379,9 @@ function M6(n, e) {
1374
1379
  return { value: t[0] ? t[1] : void 0, done: !0 };
1375
1380
  }
1376
1381
  }
1377
- var q6 = function(n, e) {
1378
- return D6(void 0, void 0, void 0, function() {
1379
- return M6(this, function(i) {
1382
+ var E6 = function(n, e) {
1383
+ return M6(void 0, void 0, void 0, function() {
1384
+ return q6(this, function(i) {
1380
1385
  return [2, new Promise(function(l, o) {
1381
1386
  try {
1382
1387
  if (window.DocsAPI)
@@ -1393,8 +1398,8 @@ var q6 = function(n, e) {
1393
1398
  }
1394
1399
  }, 500);
1395
1400
  else {
1396
- var f = T(e, n, l, o);
1397
- document.body.appendChild(f);
1401
+ var h = T(e, n, l, o);
1402
+ document.body.appendChild(h);
1398
1403
  }
1399
1404
  } catch (g) {
1400
1405
  console.error(g);
@@ -1464,7 +1469,7 @@ var q6 = function(n, e) {
1464
1469
  var n = this, e = this.documentServerUrl;
1465
1470
  e.endsWith("/") || (e += "/");
1466
1471
  var i = "".concat(e, "web-apps/apps/api/documents/api.js");
1467
- q6(i, "onlyoffice-api-script").then(function() {
1472
+ E6(i, "onlyoffice-api-script").then(function() {
1468
1473
  return n.onLoad();
1469
1474
  }).catch(function() {
1470
1475
  n.onError(-2);
@@ -1578,13 +1583,13 @@ var q6 = function(n, e) {
1578
1583
  }
1579
1584
  }
1580
1585
  });
1581
- const E6 = ["id"];
1582
- function H6(n, e, i, l, o, s) {
1583
- return d(), u("div", { id: n.id }, null, 8, E6);
1586
+ const H6 = ["id"];
1587
+ function O6(n, e, i, l, o, s) {
1588
+ return c(), u("div", { id: n.id }, null, 8, H6);
1584
1589
  }
1585
- A.render = H6;
1590
+ A.render = O6;
1586
1591
  A.__file = "src/components/DocumentEditor.vue";
1587
- const O6 = /* @__PURE__ */ k({
1592
+ const A6 = /* @__PURE__ */ k({
1588
1593
  __name: "IkOnlyOffice",
1589
1594
  props: {
1590
1595
  // 文件服务器的服务的地址
@@ -1615,7 +1620,7 @@ const O6 = /* @__PURE__ */ k({
1615
1620
  }
1616
1621
  },
1617
1622
  setup(n) {
1618
- var o, s, a, f;
1623
+ var o, s, a, h;
1619
1624
  const e = n, i = z({
1620
1625
  width: "100%",
1621
1626
  height: "100%",
@@ -1623,7 +1628,7 @@ const O6 = /* @__PURE__ */ k({
1623
1628
  // word cell(表格) slide(PPT)
1624
1629
  documentType: (s = e.configOptions) == null ? void 0 : s.documentType,
1625
1630
  editorConfig: {
1626
- callbackUrl: (f = (a = e.configOptions) == null ? void 0 : a.editorConfig) == null ? void 0 : f.callbackUrl,
1631
+ callbackUrl: (h = (a = e.configOptions) == null ? void 0 : a.editorConfig) == null ? void 0 : h.callbackUrl,
1627
1632
  // 保存的回调函数
1628
1633
  lang: "zh-CN",
1629
1634
  mode: e.mode,
@@ -1659,7 +1664,7 @@ const O6 = /* @__PURE__ */ k({
1659
1664
  }), l = () => {
1660
1665
  console.info("文档加载完成");
1661
1666
  };
1662
- return (g, t) => (d(), u(
1667
+ return (g, t) => (c(), u(
1663
1668
  "div",
1664
1669
  {
1665
1670
  style: _({ height: e.officeHeight })
@@ -1678,22 +1683,22 @@ const O6 = /* @__PURE__ */ k({
1678
1683
  ));
1679
1684
  }
1680
1685
  });
1681
- const A6 = /* @__PURE__ */ E(O6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6), T6 = (n) => (Q("data-v-170abcfc"), n = n(), e3(), n), L6 = {
1686
+ const U6 = /* @__PURE__ */ E(A6, [["__scopeId", "data-v-ea0a8f6d"]]), T6 = R(U6), P6 = (n) => (Q("data-v-170abcfc"), n = n(), e3(), n), L6 = {
1682
1687
  key: 0,
1683
1688
  class: "preview-files"
1684
- }, P6 = {
1689
+ }, j6 = {
1685
1690
  class: "flex",
1686
1691
  style: { width: "80%", "align-items": "center" }
1687
- }, j6 = ["onClick"], G6 = ["title"], N6 = { style: { color: "#b8c6d9" } }, W6 = ["onClick"], K6 = /* @__PURE__ */ T6(() => /* @__PURE__ */ c(
1692
+ }, G6 = ["onClick"], N6 = ["title"], W6 = { style: { color: "#b8c6d9" } }, K6 = ["onClick"], X6 = /* @__PURE__ */ P6(() => /* @__PURE__ */ r(
1688
1693
  "span",
1689
1694
  null,
1690
1695
  "预览",
1691
1696
  -1
1692
1697
  /* HOISTED */
1693
- )), X6 = {
1698
+ )), Y6 = {
1694
1699
  key: 1,
1695
1700
  class: "flex preview-img"
1696
- }, Y6 = /* @__PURE__ */ k({
1701
+ }, Z6 = /* @__PURE__ */ k({
1697
1702
  __name: "IKDetailPreviewFiles",
1698
1703
  props: {
1699
1704
  // 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
@@ -1738,27 +1743,27 @@ const A6 = /* @__PURE__ */ E(O6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
1738
1743
  // row.originName
1739
1744
  }, l.value = !0;
1740
1745
  }, a = (t) => {
1741
- var r, v, h, m, p;
1742
- return (r = t == null ? void 0 : t.suffix) != null && r.includes("pdf") ? "iksvg_pdf" : (v = t == null ? void 0 : t.suffix) != null && v.includes("doc") ? "iksvg_word" : (h = t == null ? void 0 : t.suffix) != null && h.includes("xls") ? "iksvg_excel" : (m = t == null ? void 0 : t.suffix) != null && m.includes("mov") ? "iksvg_mov" : (p = t == null ? void 0 : t.suffix) != null && p.includes("zip") ? "iksvg_zip" : "icon-jpg";
1743
- }, f = (t) => {
1744
- var r, v, h, m, p;
1745
- return (r = t == null ? void 0 : t.suffix) != null && r.includes("pdf") ? "#FA4E4E" : (v = t == null ? void 0 : t.suffix) != null && v.includes("doc") ? "#2c69e0" : (h = t.suffix) != null && h.includes("xls") ? "#39BFBF" : (m = t.suffix) != null && m.includes("txt") ? "#2c69e0" : (p = t.suffix) != null && p.includes("zip") ? "#FF9000" : "#32CD79";
1746
+ var d, v, p, m, f;
1747
+ return (d = t == null ? void 0 : t.suffix) != null && d.includes("pdf") ? "iksvg_pdf" : (v = t == null ? void 0 : t.suffix) != null && v.includes("doc") ? "iksvg_word" : (p = t == null ? void 0 : t.suffix) != null && p.includes("xls") ? "iksvg_excel" : (m = t == null ? void 0 : t.suffix) != null && m.includes("mov") ? "iksvg_mov" : (f = t == null ? void 0 : t.suffix) != null && f.includes("zip") ? "iksvg_zip" : "icon-jpg";
1748
+ }, h = (t) => {
1749
+ var d, v, p, m, f;
1750
+ return (d = t == null ? void 0 : t.suffix) != null && d.includes("pdf") ? "#FA4E4E" : (v = t == null ? void 0 : t.suffix) != null && v.includes("doc") ? "#2c69e0" : (p = t.suffix) != null && p.includes("xls") ? "#39BFBF" : (m = t.suffix) != null && m.includes("txt") ? "#2c69e0" : (f = t.suffix) != null && f.includes("zip") ? "#FF9000" : "#32CD79";
1746
1751
  }, g = (t) => {
1747
- const r = document.createElement("a");
1748
- r.href = s3.assembleUrl(e.loadUrl, t.url), r.download = t.name, r.click();
1752
+ const d = document.createElement("a");
1753
+ d.href = s3.assembleUrl(e.loadUrl, t.url), d.download = t.name, d.click();
1749
1754
  };
1750
- return (t, r) => {
1751
- var h, m;
1752
- const v = $("el-image");
1753
- return d(), u("div", null, [
1754
- e.fileType === "file" ? (d(), u("div", L6, [
1755
- (d(!0), u(
1755
+ return (t, d) => {
1756
+ var p, m;
1757
+ const v = D("el-image");
1758
+ return c(), u("div", null, [
1759
+ e.fileType === "file" ? (c(), u("div", L6, [
1760
+ (c(!0), u(
1756
1761
  M,
1757
1762
  null,
1758
- H(i.value, (p, F) => (d(), u(
1763
+ H(i.value, (f, x) => (c(), u(
1759
1764
  "div",
1760
1765
  {
1761
- key: F,
1766
+ key: x,
1762
1767
  class: "files-item",
1763
1768
  style: _({
1764
1769
  width: e.fileWidth,
@@ -1766,35 +1771,35 @@ const A6 = /* @__PURE__ */ E(O6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
1766
1771
  })
1767
1772
  },
1768
1773
  [
1769
- c("div", P6, [
1774
+ r("div", j6, [
1770
1775
  y(w(B), {
1771
- name: a(p),
1772
- style: _(`color:${f(p)}`),
1776
+ name: a(f),
1777
+ style: _(`color:${h(f)}`),
1773
1778
  size: 36
1774
1779
  }, null, 8, ["name", "style"]),
1775
- c("div", {
1780
+ r("div", {
1776
1781
  class: "file-name",
1777
- onClick: (N) => g(p)
1782
+ onClick: (N) => g(f)
1778
1783
  }, [
1779
- c("p", {
1780
- title: p.name
1781
- }, V(p.name), 9, G6),
1782
- c(
1784
+ r("p", {
1785
+ title: f.name
1786
+ }, C(f.name), 9, N6),
1787
+ r(
1783
1788
  "p",
1784
- N6,
1785
- V((p.size / 1024).toFixed(2)) + "KB",
1789
+ W6,
1790
+ C((f.size / 1024).toFixed(2)) + "KB",
1786
1791
  1
1787
1792
  /* TEXT */
1788
1793
  )
1789
- ], 8, j6)
1794
+ ], 8, G6)
1790
1795
  ]),
1791
- c("div", {
1796
+ r("div", {
1792
1797
  class: "file-preview",
1793
- onClick: (N) => s(p)
1798
+ onClick: (N) => s(f)
1794
1799
  }, [
1795
1800
  y(w(B), { name: "iksvg_yulan" }),
1796
- K6
1797
- ], 8, W6)
1801
+ X6
1802
+ ], 8, K6)
1798
1803
  ],
1799
1804
  4
1800
1805
  /* STYLE */
@@ -1802,31 +1807,31 @@ const A6 = /* @__PURE__ */ E(O6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
1802
1807
  128
1803
1808
  /* KEYED_FRAGMENT */
1804
1809
  ))
1805
- ])) : C("v-if", !0),
1806
- e.fileType === "img" ? (d(), u("div", X6, [
1807
- (d(!0), u(
1810
+ ])) : V("v-if", !0),
1811
+ e.fileType === "img" ? (c(), u("div", Y6, [
1812
+ (c(!0), u(
1808
1813
  M,
1809
1814
  null,
1810
- H(i.value, (p, F) => (d(), u("div", {
1811
- key: F,
1815
+ H(i.value, (f, x) => (c(), u("div", {
1816
+ key: x,
1812
1817
  class: "preview-img"
1813
1818
  }, [
1814
1819
  y(v, {
1815
1820
  class: "show-img",
1816
- src: n.loadUrl + p.url,
1817
- "preview-src-list": [n.loadUrl + p.url],
1821
+ src: n.loadUrl + f.url,
1822
+ "preview-src-list": [n.loadUrl + f.url],
1818
1823
  fit: "cover"
1819
1824
  }, null, 8, ["src", "preview-src-list"])
1820
1825
  ]))),
1821
1826
  128
1822
1827
  /* KEYED_FRAGMENT */
1823
1828
  ))
1824
- ])) : C("v-if", !0),
1825
- y(w(m6), {
1829
+ ])) : V("v-if", !0),
1830
+ y(w(g6), {
1826
1831
  modelValue: l.value,
1827
- "onUpdate:modelValue": r[0] || (r[0] = (p) => l.value = p),
1832
+ "onUpdate:modelValue": d[0] || (d[0] = (f) => l.value = f),
1828
1833
  "load-url": e.loadUrl,
1829
- url: (h = o.value) == null ? void 0 : h.url,
1834
+ url: (p = o.value) == null ? void 0 : p.url,
1830
1835
  "kk-url": n.kkUrl,
1831
1836
  "file-name": (m = o.value) == null ? void 0 : m.name
1832
1837
  }, null, 8, ["modelValue", "load-url", "url", "kk-url", "file-name"])
@@ -1834,8 +1839,8 @@ const A6 = /* @__PURE__ */ E(O6, [["__scopeId", "data-v-ea0a8f6d"]]), U6 = D(A6)
1834
1839
  };
1835
1840
  }
1836
1841
  });
1837
- const Z6 = /* @__PURE__ */ E(Y6, [["__scopeId", "data-v-170abcfc"]]), ee = D(Z6);
1842
+ const J6 = /* @__PURE__ */ E(Z6, [["__scopeId", "data-v-170abcfc"]]), te = R(J6);
1838
1843
  export {
1839
- ee as IKDetailPreviewFiles,
1840
- ee as default
1844
+ te as IKDetailPreviewFiles,
1845
+ te as default
1841
1846
  };