iking-web-ui-pro 0.2.8 → 0.2.10

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,7 @@
1
- import { inject as R, computed as m, defineComponent as z, openBlock as c, createElementBlock as u, createElementVNode as r, ref as M, Fragment as P, renderList as K, normalizeClass as C, normalizeStyle as b, createVNode as F, toDisplayString as O, unref as g, withModifiers as J, renderSlot as V, createCommentVNode as B, mergeModels as G, useModel as X, reactive as Q, watch as e3, nextTick as t3, resolveComponent as I, createBlock as S, withCtx as y, createTextVNode as D, h as n3, mergeProps as j, createSlots as o3, useCssVars as i3 } from "vue";
2
- import { paramType as l3, ikFile as s3, buildUUID as a3, ikColor as c3 } from "iking-utils-pro";
3
- const $ = (t, n) => {
1
+ import { inject as D, computed as m, defineComponent as F, openBlock as c, createElementBlock as d, createElementVNode as r, ref as q, resolveComponent as $, Fragment as M, renderList as L, normalizeStyle as b, toDisplayString as V, normalizeClass as S, createVNode as k, unref as g, withModifiers as K, renderSlot as C, createBlock as z, withCtx as y, createCommentVNode as R, mergeModels as Y, useModel as Z, reactive as Q, watch as e3, nextTick as t3, createTextVNode as H, h as n3, mergeProps as N, createSlots as o3, useCssVars as i3 } from "vue";
2
+ import { ElTag as l3 } from "element-plus";
3
+ import { paramType as s3, ikFile as a3, buildUUID as c3, ikColor as r3 } from "iking-utils-pro";
4
+ const E = (t, n) => {
4
5
  if (t.install = (o) => {
5
6
  for (const e of [t, ...Object.values(n ?? {})])
6
7
  o.component(e.name, e);
@@ -13,7 +14,7 @@ const $ = (t, n) => {
13
14
  for (const [e, l] of n)
14
15
  o[e] = l;
15
16
  return o;
16
- }, r3 = (t, n = 2) => {
17
+ }, u3 = (t, n = 2) => {
17
18
  if (t === void 0)
18
19
  return "";
19
20
  if (t === 0)
@@ -22,17 +23,17 @@ const $ = (t, n) => {
22
23
  let l = t / Math.pow(1024, e);
23
24
  return (l % 1 === 0 ? l.toFixed(n || 0) : l.toFixed(n)) + " " + o[e];
24
25
  }, T = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", d3 = (t) => {
25
- const n = R("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = R("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = R("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), f = R("onlyofficeConfig"), v = m(() => t.onlyofficeConfig || (f == null ? void 0 : f.value)), a = R("userInfo"), p = m(() => t.userInfo || (a == null ? void 0 : a.value));
26
+ const n = D("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = D("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = D("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), v = D("onlyofficeConfig"), f = m(() => t.onlyofficeConfig || (v == null ? void 0 : v.value)), a = D("userInfo"), h = m(() => t.userInfo || (a == null ? void 0 : a.value));
26
27
  return {
27
28
  cLoadUrl: o,
28
29
  cUploadUrl: l,
29
30
  cToken: s,
30
- cOnlyofficeConfig: v,
31
- cUserInfo: p
31
+ cOnlyofficeConfig: f,
32
+ cUserInfo: h
32
33
  };
33
- }, u3 = d3, Y = (t, n) => {
34
- var i, s, f, v;
35
- const o = (i = t == null ? void 0 : t.response) != null && i.data ? W((f = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : f.suffix) : ((v = t.raw) == null ? void 0 : v.type) || W(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), l = {
34
+ }, f3 = d3, J = (t, n) => {
35
+ var i, s, v, f;
36
+ const o = (i = t == null ? void 0 : t.response) != null && i.data ? G((v = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : v.suffix) : ((f = t.raw) == null ? void 0 : f.type) || G(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), l = {
36
37
  sheet: "excel",
37
38
  excel: "excel",
38
39
  zip: "zip",
@@ -52,7 +53,7 @@ const $ = (t, n) => {
52
53
  if (typeof e == "string" && (e.includes(a) || e === a))
53
54
  return l[a];
54
55
  return "unknown";
55
- }, f3 = {
56
+ }, p3 = {
56
57
  ".doc": "word",
57
58
  ".docx": "word",
58
59
  ".docxf": "word",
@@ -137,13 +138,13 @@ const $ = (t, n) => {
137
138
  ".vob": "video",
138
139
  ".txt": "txt",
139
140
  ".pdf": "pdf"
140
- }, W = (t) => {
141
+ }, G = (t) => {
141
142
  const n = t == null ? void 0 : t.toLocaleLowerCase(), o = n != null && n.startsWith(".") ? n : `.${n}`;
142
- return o && f3[o] || "unknow";
143
- }, p3 = (t) => {
143
+ return o && p3[o] || "unknow";
144
+ }, v3 = (t) => {
144
145
  let n = "", o = ["doc", "docx"], e = ["xls", "xlsx"], l = ["ppt", "pptx"], i = ["pdf"];
145
146
  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 = {
147
+ }, h3 = {
147
148
  key: 0,
148
149
  t: "1686300059786",
149
150
  class: "icon",
@@ -153,7 +154,7 @@ const $ = (t, n) => {
153
154
  "p-id": "7671",
154
155
  width: "200",
155
156
  height: "200"
156
- }, h3 = /* @__PURE__ */ r(
157
+ }, g3 = /* @__PURE__ */ r(
157
158
  "path",
158
159
  {
159
160
  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",
@@ -163,7 +164,7 @@ const $ = (t, n) => {
163
164
  null,
164
165
  -1
165
166
  /* HOISTED */
166
- ), g3 = /* @__PURE__ */ r(
167
+ ), m3 = /* @__PURE__ */ r(
167
168
  "path",
168
169
  {
169
170
  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",
@@ -173,7 +174,7 @@ const $ = (t, n) => {
173
174
  null,
174
175
  -1
175
176
  /* HOISTED */
176
- ), m3 = /* @__PURE__ */ r(
177
+ ), y3 = /* @__PURE__ */ r(
177
178
  "path",
178
179
  {
179
180
  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",
@@ -183,7 +184,7 @@ const $ = (t, n) => {
183
184
  null,
184
185
  -1
185
186
  /* HOISTED */
186
- ), y3 = /* @__PURE__ */ r(
187
+ ), w3 = /* @__PURE__ */ r(
187
188
  "path",
188
189
  {
189
190
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -193,12 +194,12 @@ const $ = (t, n) => {
193
194
  null,
194
195
  -1
195
196
  /* HOISTED */
196
- ), w3 = [
197
- h3,
197
+ ), _3 = [
198
198
  g3,
199
199
  m3,
200
- y3
201
- ], _3 = {
200
+ y3,
201
+ w3
202
+ ], k3 = {
202
203
  key: 1,
203
204
  t: "1686301531714",
204
205
  class: "icon",
@@ -218,7 +219,7 @@ const $ = (t, n) => {
218
219
  null,
219
220
  -1
220
221
  /* HOISTED */
221
- ), k3 = /* @__PURE__ */ r(
222
+ ), b3 = /* @__PURE__ */ r(
222
223
  "path",
223
224
  {
224
225
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -230,8 +231,8 @@ const $ = (t, n) => {
230
231
  /* HOISTED */
231
232
  ), z3 = [
232
233
  x3,
233
- k3
234
- ], b3 = {
234
+ b3
235
+ ], F3 = {
235
236
  key: 2,
236
237
  t: "1686300141125",
237
238
  class: "icon",
@@ -241,7 +242,7 @@ const $ = (t, n) => {
241
242
  "p-id": "8137",
242
243
  width: "200",
243
244
  height: "200"
244
- }, F3 = /* @__PURE__ */ r(
245
+ }, S3 = /* @__PURE__ */ r(
245
246
  "path",
246
247
  {
247
248
  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",
@@ -251,7 +252,7 @@ const $ = (t, n) => {
251
252
  null,
252
253
  -1
253
254
  /* HOISTED */
254
- ), S3 = /* @__PURE__ */ r(
255
+ ), C3 = /* @__PURE__ */ r(
255
256
  "path",
256
257
  {
257
258
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -261,10 +262,10 @@ const $ = (t, n) => {
261
262
  null,
262
263
  -1
263
264
  /* HOISTED */
264
- ), C3 = [
265
- F3,
266
- S3
267
- ], V3 = {
265
+ ), V3 = [
266
+ S3,
267
+ C3
268
+ ], O3 = {
268
269
  key: 3,
269
270
  t: "1686300157181",
270
271
  class: "icon",
@@ -274,7 +275,7 @@ const $ = (t, n) => {
274
275
  "p-id": "8292",
275
276
  width: "200",
276
277
  height: "200"
277
- }, O3 = /* @__PURE__ */ r(
278
+ }, B3 = /* @__PURE__ */ r(
278
279
  "path",
279
280
  {
280
281
  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",
@@ -284,7 +285,7 @@ const $ = (t, n) => {
284
285
  null,
285
286
  -1
286
287
  /* HOISTED */
287
- ), B3 = /* @__PURE__ */ r(
288
+ ), I3 = /* @__PURE__ */ r(
288
289
  "path",
289
290
  {
290
291
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -294,10 +295,10 @@ const $ = (t, n) => {
294
295
  null,
295
296
  -1
296
297
  /* HOISTED */
297
- ), I3 = [
298
- O3,
299
- B3
300
- ], R3 = {
298
+ ), R3 = [
299
+ B3,
300
+ I3
301
+ ], $3 = {
301
302
  key: 4,
302
303
  t: "1686300180947",
303
304
  class: "icon",
@@ -327,7 +328,7 @@ const $ = (t, n) => {
327
328
  null,
328
329
  -1
329
330
  /* HOISTED */
330
- ), $3 = [
331
+ ), H3 = [
331
332
  D3,
332
333
  M3
333
334
  ], q3 = {
@@ -340,7 +341,7 @@ const $ = (t, n) => {
340
341
  "p-id": "8602",
341
342
  width: "200",
342
343
  height: "200"
343
- }, H3 = /* @__PURE__ */ r(
344
+ }, E3 = /* @__PURE__ */ r(
344
345
  "path",
345
346
  {
346
347
  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",
@@ -350,7 +351,7 @@ const $ = (t, n) => {
350
351
  null,
351
352
  -1
352
353
  /* HOISTED */
353
- ), E3 = /* @__PURE__ */ r(
354
+ ), A3 = /* @__PURE__ */ r(
354
355
  "path",
355
356
  {
356
357
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -360,10 +361,10 @@ const $ = (t, n) => {
360
361
  null,
361
362
  -1
362
363
  /* HOISTED */
363
- ), A3 = [
364
- H3,
365
- E3
366
- ], P3 = {
364
+ ), P3 = [
365
+ E3,
366
+ A3
367
+ ], T3 = {
367
368
  key: 6,
368
369
  t: "1686300209288",
369
370
  class: "icon",
@@ -373,7 +374,7 @@ const $ = (t, n) => {
373
374
  "p-id": "8757",
374
375
  width: "200",
375
376
  height: "200"
376
- }, T3 = /* @__PURE__ */ r(
377
+ }, U3 = /* @__PURE__ */ r(
377
378
  "path",
378
379
  {
379
380
  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",
@@ -383,7 +384,7 @@ const $ = (t, n) => {
383
384
  null,
384
385
  -1
385
386
  /* HOISTED */
386
- ), U3 = /* @__PURE__ */ r(
387
+ ), j3 = /* @__PURE__ */ r(
387
388
  "path",
388
389
  {
389
390
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -393,10 +394,10 @@ const $ = (t, n) => {
393
394
  null,
394
395
  -1
395
396
  /* HOISTED */
396
- ), j3 = [
397
- T3,
398
- U3
399
- ], L3 = {
397
+ ), L3 = [
398
+ U3,
399
+ j3
400
+ ], N3 = {
400
401
  key: 7,
401
402
  t: "1686300225262",
402
403
  class: "icon",
@@ -416,7 +417,7 @@ const $ = (t, n) => {
416
417
  null,
417
418
  -1
418
419
  /* HOISTED */
419
- ), N3 = /* @__PURE__ */ r(
420
+ ), K3 = /* @__PURE__ */ r(
420
421
  "path",
421
422
  {
422
423
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -426,10 +427,10 @@ const $ = (t, n) => {
426
427
  null,
427
428
  -1
428
429
  /* HOISTED */
429
- ), K3 = [
430
+ ), G3 = [
430
431
  W3,
431
- N3
432
- ], G3 = {
432
+ K3
433
+ ], X3 = {
433
434
  key: 8,
434
435
  t: "1692251753690",
435
436
  class: "icon",
@@ -439,7 +440,7 @@ const $ = (t, n) => {
439
440
  "p-id": "4336",
440
441
  width: "200",
441
442
  height: "200"
442
- }, X3 = /* @__PURE__ */ r(
443
+ }, Y3 = /* @__PURE__ */ r(
443
444
  "path",
444
445
  {
445
446
  d: "M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",
@@ -449,7 +450,7 @@ const $ = (t, n) => {
449
450
  null,
450
451
  -1
451
452
  /* HOISTED */
452
- ), Y3 = /* @__PURE__ */ r(
453
+ ), Z3 = /* @__PURE__ */ r(
453
454
  "path",
454
455
  {
455
456
  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",
@@ -460,7 +461,7 @@ const $ = (t, n) => {
460
461
  null,
461
462
  -1
462
463
  /* HOISTED */
463
- ), Z3 = /* @__PURE__ */ r(
464
+ ), J3 = /* @__PURE__ */ r(
464
465
  "path",
465
466
  {
466
467
  d: "M640 0l320 320H768a128 128 0 0 1-128-128V0z",
@@ -470,11 +471,11 @@ const $ = (t, n) => {
470
471
  null,
471
472
  -1
472
473
  /* HOISTED */
473
- ), J3 = [
474
- X3,
474
+ ), Q3 = [
475
475
  Y3,
476
- Z3
477
- ], Q3 = {
476
+ Z3,
477
+ J3
478
+ ], e6 = {
478
479
  key: 9,
479
480
  t: "1692251753690",
480
481
  class: "icon",
@@ -484,7 +485,7 @@ const $ = (t, n) => {
484
485
  "p-id": "4336",
485
486
  width: "200",
486
487
  height: "200"
487
- }, e6 = /* @__PURE__ */ r(
488
+ }, t6 = /* @__PURE__ */ r(
488
489
  "path",
489
490
  {
490
491
  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",
@@ -494,7 +495,7 @@ const $ = (t, n) => {
494
495
  null,
495
496
  -1
496
497
  /* HOISTED */
497
- ), t6 = /* @__PURE__ */ r(
498
+ ), n6 = /* @__PURE__ */ r(
498
499
  "path",
499
500
  {
500
501
  d: "M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",
@@ -504,7 +505,7 @@ const $ = (t, n) => {
504
505
  null,
505
506
  -1
506
507
  /* HOISTED */
507
- ), n6 = /* @__PURE__ */ r(
508
+ ), o6 = /* @__PURE__ */ r(
508
509
  "path",
509
510
  {
510
511
  d: "M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",
@@ -515,7 +516,7 @@ const $ = (t, n) => {
515
516
  null,
516
517
  -1
517
518
  /* HOISTED */
518
- ), o6 = /* @__PURE__ */ r(
519
+ ), i6 = /* @__PURE__ */ r(
519
520
  "path",
520
521
  {
521
522
  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",
@@ -525,12 +526,12 @@ const $ = (t, n) => {
525
526
  null,
526
527
  -1
527
528
  /* HOISTED */
528
- ), i6 = [
529
- e6,
529
+ ), l6 = [
530
530
  t6,
531
531
  n6,
532
- o6
533
- ], l6 = {
532
+ o6,
533
+ i6
534
+ ], s6 = {
534
535
  key: 10,
535
536
  t: "1714099890925",
536
537
  class: "icon",
@@ -540,7 +541,7 @@ const $ = (t, n) => {
540
541
  "p-id": "2271",
541
542
  width: "200",
542
543
  height: "200"
543
- }, s6 = /* @__PURE__ */ r(
544
+ }, a6 = /* @__PURE__ */ r(
544
545
  "path",
545
546
  {
546
547
  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",
@@ -550,7 +551,7 @@ const $ = (t, n) => {
550
551
  null,
551
552
  -1
552
553
  /* HOISTED */
553
- ), a6 = /* @__PURE__ */ r(
554
+ ), c6 = /* @__PURE__ */ r(
554
555
  "path",
555
556
  {
556
557
  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",
@@ -561,7 +562,7 @@ const $ = (t, n) => {
561
562
  null,
562
563
  -1
563
564
  /* HOISTED */
564
- ), c6 = /* @__PURE__ */ r(
565
+ ), r6 = /* @__PURE__ */ r(
565
566
  "path",
566
567
  {
567
568
  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",
@@ -571,10 +572,10 @@ const $ = (t, n) => {
571
572
  null,
572
573
  -1
573
574
  /* HOISTED */
574
- ), r6 = [
575
- s6,
575
+ ), u6 = [
576
576
  a6,
577
- c6
577
+ c6,
578
+ r6
578
579
  ], d6 = {
579
580
  key: 11,
580
581
  t: "1686300037564",
@@ -585,7 +586,7 @@ const $ = (t, n) => {
585
586
  "p-id": "7515",
586
587
  width: "200",
587
588
  height: "200"
588
- }, u6 = /* @__PURE__ */ r(
589
+ }, f6 = /* @__PURE__ */ r(
589
590
  "path",
590
591
  {
591
592
  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",
@@ -595,7 +596,7 @@ const $ = (t, n) => {
595
596
  null,
596
597
  -1
597
598
  /* HOISTED */
598
- ), f6 = /* @__PURE__ */ r(
599
+ ), p6 = /* @__PURE__ */ r(
599
600
  "path",
600
601
  {
601
602
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -605,7 +606,7 @@ const $ = (t, n) => {
605
606
  null,
606
607
  -1
607
608
  /* HOISTED */
608
- ), p6 = /* @__PURE__ */ r(
609
+ ), v6 = /* @__PURE__ */ r(
609
610
  "path",
610
611
  {
611
612
  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",
@@ -615,11 +616,11 @@ const $ = (t, n) => {
615
616
  null,
616
617
  -1
617
618
  /* HOISTED */
618
- ), v6 = [
619
- u6,
619
+ ), h6 = [
620
620
  f6,
621
- p6
622
- ], h6 = /* @__PURE__ */ z({
621
+ p6,
622
+ v6
623
+ ], g6 = /* @__PURE__ */ F({
623
624
  __name: "FileIcon",
624
625
  props: {
625
626
  type: {
@@ -640,10 +641,10 @@ const $ = (t, n) => {
640
641
  }
641
642
  },
642
643
  setup(t) {
643
- const n = t, o = m(() => n.file ? Y(n.file, n.fields) : n.type);
644
- return (e, l) => o.value === "image" ? (c(), u("svg", v3, w3)) : o.value === "zip" ? (c(), u("svg", _3, z3)) : o.value === "ppt" ? (c(), u("svg", b3, C3)) : o.value === "word" ? (c(), u("svg", V3, I3)) : o.value === "pdf" ? (c(), u("svg", R3, $3)) : o.value === "txt" ? (c(), u("svg", q3, A3)) : o.value === "audio" ? (c(), u("svg", P3, j3)) : o.value === "video" ? (c(), u("svg", L3, K3)) : o.value === "excel" ? (c(), u("svg", G3, J3)) : o.value === "exe" ? (c(), u("svg", Q3, i6)) : o.value === "json" ? (c(), u("svg", l6, r6)) : (c(), u("svg", d6, v6));
644
+ const n = t, o = m(() => n.file ? J(n.file, n.fields) : n.type);
645
+ return (e, l) => o.value === "image" ? (c(), d("svg", h3, _3)) : o.value === "zip" ? (c(), d("svg", k3, z3)) : o.value === "ppt" ? (c(), d("svg", F3, V3)) : o.value === "word" ? (c(), d("svg", O3, R3)) : o.value === "pdf" ? (c(), d("svg", $3, H3)) : o.value === "txt" ? (c(), d("svg", q3, P3)) : o.value === "audio" ? (c(), d("svg", T3, L3)) : o.value === "video" ? (c(), d("svg", N3, G3)) : o.value === "excel" ? (c(), d("svg", X3, Q3)) : o.value === "exe" ? (c(), d("svg", e6, l6)) : o.value === "json" ? (c(), d("svg", s6, u6)) : (c(), d("svg", d6, h6));
645
646
  }
646
- }), g6 = ["onClick"], m6 = { class: "text" }, y6 = { class: "fileName" }, w6 = { class: "size" }, _6 = /* @__PURE__ */ z({
647
+ }), m6 = ["onClick"], y6 = { class: "fileName simple" }, w6 = ["onClick"], _6 = { class: "text" }, k6 = { class: "fileName" }, x6 = { class: "size" }, b6 = /* @__PURE__ */ F({
647
648
  __name: "IkPreviewFile",
648
649
  props: {
649
650
  list: {
@@ -710,128 +711,190 @@ const $ = (t, n) => {
710
711
  jwtToken: {
711
712
  type: String,
712
713
  default: ""
714
+ },
715
+ // 简单模式
716
+ simple: {
717
+ type: Boolean,
718
+ default: !1
713
719
  }
714
720
  },
715
721
  setup(t) {
716
- const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = u3(n), l = m(() => ({
722
+ const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = f3(n), l = m(() => ({
717
723
  name: "name",
718
724
  url: "url",
719
725
  suffix: "suffix",
720
726
  size: "size",
721
727
  ...n.field
722
- })), i = M({}), s = M(!1), f = (d) => {
723
- var w, _;
728
+ })), i = q({}), s = q(!1), v = (u) => {
729
+ var w, x;
724
730
  i.value = {
725
- ...d,
726
- name: d.name,
731
+ ...u,
732
+ name: u.name,
727
733
  url: T(
728
734
  o.value,
729
- d.url || ((_ = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : _.id) || (d == null ? void 0 : d.id)
735
+ u.url || ((x = (w = u == null ? void 0 : u.response) == null ? void 0 : w.data) == null ? void 0 : x.id) || (u == null ? void 0 : u.id)
730
736
  )
731
737
  }, s.value = !0;
732
- }, v = (d) => {
733
- s3.downloadFile(
738
+ }, f = (u) => {
739
+ a3.downloadFile(
734
740
  T(
735
741
  o.value,
736
- d[l.value.url] || d.attachmentId || d.id
742
+ u[l.value.url] || u.attachmentId || u.id
737
743
  ),
738
- d[l.value.name] || d.attachmentName
744
+ u[l.value.name] || u.attachmentName
739
745
  );
740
- }, a = m(() => l3.isNumber(n.width) ? `${n.width}px` : n.width), p = m(() => n.list.map((d) => ({
741
- ...d,
742
- name: d[l.value.name] || d.attachmentName,
743
- size: d[l.value.size] || d.fileSize || d.attachmentSize,
744
- suffix: d[l.value.suffix] || d.attachmentSuffix
746
+ }, a = m(() => s3.isNumber(n.width) ? `${n.width}px` : n.width), h = m(() => n.list.map((u) => ({
747
+ ...u,
748
+ name: u[l.value.name] || u.attachmentName,
749
+ size: u[l.value.size] || u.fileSize || u.attachmentSize,
750
+ suffix: u[l.value.suffix] || u.attachmentSuffix
745
751
  })));
746
- return (d, w) => {
747
- var _, x, q;
748
- return c(), u(
749
- P,
752
+ return (u, w) => {
753
+ var _, A, P;
754
+ const x = $("tmplate");
755
+ return c(), d(
756
+ M,
750
757
  null,
751
758
  [
752
- (_ = t.list) != null && _.length ? (c(!0), u(
753
- P,
759
+ (_ = t.list) != null && _.length ? (c(), d(
760
+ M,
754
761
  { key: 0 },
755
- K(p.value, (k, h) => {
756
- var H;
757
- return c(), u(
758
- "div",
759
- {
760
- class: C(["iking-privew-annex", { "is-bg": t.showBg }]),
761
- key: h,
762
- style: b({
763
- marginBottom: h == ((H = t.list) == null ? void 0 : H.length) - 1 ? "0" : "10px",
764
- width: a.value
765
- })
766
- },
767
- [
768
- r("div", {
769
- class: "file-card",
770
- onClick: (E) => f(k)
771
- }, [
772
- F(h6, {
773
- file: k,
774
- style: b({ height: `${t.iconSize}px` }),
775
- class: "ikui-w-auto",
776
- fields: l.value
777
- }, null, 8, ["file", "style", "fields"]),
778
- r("div", m6, [
779
- r(
762
+ [
763
+ t.simple ? (c(!0), d(
764
+ M,
765
+ { key: 0 },
766
+ L(h.value, (p, O) => (c(), d("div", {
767
+ class: "iking-privew-annex simple",
768
+ onClick: (B) => v(p),
769
+ style: b({ width: a.value })
770
+ }, [
771
+ r(
772
+ "div",
773
+ y6,
774
+ V(p.name),
775
+ 1
776
+ /* TEXT */
777
+ ),
778
+ r(
779
+ "div",
780
+ {
781
+ class: S(["flex flex-center", { "hover-show": t.iconHoverShow }])
782
+ },
783
+ [
784
+ k(g(I), {
785
+ name: "iksvg_daochu",
786
+ onClick: K((B) => f(p), ["stop"]),
787
+ size: 20,
788
+ active: ""
789
+ }, null, 8, ["onClick"]),
790
+ k(g(I), {
791
+ name: "iksvg_yulan",
792
+ size: 20,
793
+ active: ""
794
+ }),
795
+ C(u.$slots, "operation", {
796
+ data: { ...p, findex: O }
797
+ })
798
+ ],
799
+ 2
800
+ /* CLASS */
801
+ )
802
+ ], 12, m6))),
803
+ 256
804
+ /* UNKEYED_FRAGMENT */
805
+ )) : (c(), z(x, { key: 1 }, {
806
+ default: y(() => [
807
+ (c(!0), d(
808
+ M,
809
+ null,
810
+ L(h.value, (p, O) => {
811
+ var B;
812
+ return c(), d(
780
813
  "div",
781
- y6,
782
- O(k.name),
783
- 1
784
- /* TEXT */
785
- ),
786
- r(
787
- "div",
788
- w6,
789
- O(g(r3)(k.size)),
790
- 1
791
- /* TEXT */
792
- )
793
- ]),
794
- r(
795
- "div",
796
- {
797
- class: C(["flex flex-center", { "hover-show": t.iconHoverShow }])
798
- },
799
- [
800
- F(g(A), {
801
- name: "iksvg_daochu",
802
- onClick: J((E) => v(k), ["stop"]),
803
- bg: t.showBg,
804
- size: t.showBg ? "default" : 20
805
- }, null, 8, ["onClick", "bg", "size"]),
806
- F(g(A), {
807
- name: "iksvg_yulan",
808
- bg: t.showBg,
809
- size: t.showBg ? "default" : 20
810
- }, null, 8, ["bg", "size"]),
811
- V(d.$slots, "operation", {
812
- data: { ...k, findex: h }
813
- })
814
- ],
815
- 2
816
- /* CLASS */
817
- )
818
- ], 8, g6)
819
- ],
820
- 6
821
- /* CLASS, STYLE */
822
- );
823
- }),
824
- 128
825
- /* KEYED_FRAGMENT */
826
- )) : B("v-if", !0),
827
- F(g(z6), {
814
+ {
815
+ class: S(["iking-privew-annex", { "is-bg": t.showBg }]),
816
+ key: O,
817
+ style: b({
818
+ marginBottom: O == ((B = t.list) == null ? void 0 : B.length) - 1 ? "0" : "10px",
819
+ width: a.value
820
+ })
821
+ },
822
+ [
823
+ r("div", {
824
+ class: "file-card",
825
+ onClick: (j) => v(p)
826
+ }, [
827
+ k(g6, {
828
+ file: p,
829
+ style: b({ height: `${t.iconSize}px` }),
830
+ class: "ikui-w-auto",
831
+ fields: l.value
832
+ }, null, 8, ["file", "style", "fields"]),
833
+ r("div", _6, [
834
+ r(
835
+ "div",
836
+ k6,
837
+ V(p.name),
838
+ 1
839
+ /* TEXT */
840
+ ),
841
+ r(
842
+ "div",
843
+ x6,
844
+ V(g(u3)(p.size)),
845
+ 1
846
+ /* TEXT */
847
+ )
848
+ ]),
849
+ r(
850
+ "div",
851
+ {
852
+ class: S(["flex flex-center", { "hover-show": t.iconHoverShow }])
853
+ },
854
+ [
855
+ k(g(I), {
856
+ name: "iksvg_daochu",
857
+ onClick: K((j) => f(p), ["stop"]),
858
+ bg: t.showBg,
859
+ size: t.showBg ? "default" : 20
860
+ }, null, 8, ["onClick", "bg", "size"]),
861
+ k(g(I), {
862
+ name: "iksvg_yulan",
863
+ bg: t.showBg,
864
+ size: t.showBg ? "default" : 20
865
+ }, null, 8, ["bg", "size"]),
866
+ C(u.$slots, "operation", {
867
+ data: { ...p, findex: O }
868
+ })
869
+ ],
870
+ 2
871
+ /* CLASS */
872
+ )
873
+ ], 8, w6)
874
+ ],
875
+ 6
876
+ /* CLASS, STYLE */
877
+ );
878
+ }),
879
+ 128
880
+ /* KEYED_FRAGMENT */
881
+ ))
882
+ ]),
883
+ _: 3
884
+ /* FORWARDED */
885
+ }))
886
+ ],
887
+ 64
888
+ /* STABLE_FRAGMENT */
889
+ )) : R("v-if", !0),
890
+ k(g(S6), {
828
891
  show: s.value,
829
- "onUpdate:show": w[0] || (w[0] = (k) => s.value = k),
892
+ "onUpdate:show": w[0] || (w[0] = (p) => s.value = p),
830
893
  loadUrl: g(o),
831
894
  file: i.value,
832
- onlyofficeServer: ((x = g(e)) == null ? void 0 : x.serverUrl) || t.onlyofficeServer,
895
+ onlyofficeServer: ((A = g(e)) == null ? void 0 : A.serverUrl) || t.onlyofficeServer,
833
896
  onlyOfficeConfig: g(e),
834
- onlyOfficeAccept: ((q = g(e)) == null ? void 0 : q.accept) || t.onlyOfficeAccept
897
+ onlyOfficeAccept: ((P = g(e)) == null ? void 0 : P.accept) || t.onlyOfficeAccept
835
898
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
836
899
  ],
837
900
  64
@@ -840,9 +903,9 @@ const $ = (t, n) => {
840
903
  };
841
904
  }
842
905
  });
843
- const x6 = $(_6), k6 = /* @__PURE__ */ z({
906
+ const z6 = E(b6), F6 = /* @__PURE__ */ F({
844
907
  __name: "IkPreviewFileDialog",
845
- props: /* @__PURE__ */ G({
908
+ props: /* @__PURE__ */ Y({
846
909
  file: {
847
910
  type: Object,
848
911
  default: () => []
@@ -877,81 +940,81 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
877
940
  }),
878
941
  emits: ["update:show"],
879
942
  setup(t) {
880
- const n = t, o = X(t, "show"), e = m(() => ({
943
+ const n = t, o = Z(t, "show"), e = m(() => ({
881
944
  name: "name",
882
945
  url: "url",
883
946
  suffix: "suffix",
884
947
  size: "fileSize",
885
948
  ...n.field
886
- })), l = M(null), i = M(null), s = Q({
949
+ })), l = q(null), i = q(null), s = Q({
887
950
  image: !1,
888
951
  office: !1,
889
952
  video: !1
890
- }), f = (a) => {
891
- var p, d, w, _, x, q, k;
953
+ }), v = (a) => {
954
+ var h, u, w, x, _, A, P;
892
955
  try {
893
- const h = ((p = a == null ? void 0 : a.response) == null ? void 0 : p.data) || a, H = h[e.value.url] || (h == null ? void 0 : h.id) || h.attachmentId, E = (d = h[e.value.suffix] || h.attachmentSuffix) == null ? void 0 : d.toLowerCase(), Z = h[e.value.name] || (h == null ? void 0 : h.attachmentName) || (h == null ? void 0 : h.originName);
956
+ const p = ((h = a == null ? void 0 : a.response) == null ? void 0 : h.data) || a, O = p[e.value.url] || (p == null ? void 0 : p.id) || p.attachmentId, B = (u = p[e.value.suffix] || p.attachmentSuffix) == null ? void 0 : u.toLowerCase(), j = p[e.value.name] || (p == null ? void 0 : p.attachmentName) || (p == null ? void 0 : p.originName);
894
957
  if (i.value = {
895
958
  ...a,
896
959
  name: a[e.value.name],
897
- url: T(n.loadUrl, H)
898
- }, a && Y(a, e.value) === "image") {
960
+ url: T(n.loadUrl, O)
961
+ }, a && J(a, e.value) === "image") {
899
962
  s.image = !0;
900
963
  return;
901
- } else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(E)) {
964
+ } else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(B)) {
902
965
  s.office = !0, l.value = {
903
966
  ...n.onlyOfficeConfig,
904
967
  editorConfig: {
905
- ...((_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) || {},
968
+ ...((x = n.onlyOfficeConfig) == null ? void 0 : x.editorConfig) || {},
906
969
  customization: {
907
- ...((q = (x = n.onlyOfficeConfig) == null ? void 0 : x.editorConfig) == null ? void 0 : q.customization) || {},
970
+ ...((A = (_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) == null ? void 0 : A.customization) || {},
908
971
  review: {
909
972
  reviewDisplay: "final"
910
973
  }
911
974
  }
912
975
  },
913
976
  document: {
914
- key: a3(),
915
- title: Z,
916
- url: T(n.loadUrl, H),
917
- fileType: E,
918
- ...((k = n.onlyOfficeConfig) == null ? void 0 : k.document) || {}
977
+ key: c3(),
978
+ title: j,
979
+ url: T(n.loadUrl, O),
980
+ fileType: B,
981
+ ...((P = n.onlyOfficeConfig) == null ? void 0 : P.document) || {}
919
982
  },
920
- documentType: p3(E)
983
+ documentType: v3(B)
921
984
  };
922
985
  return;
923
986
  }
924
- } catch (h) {
925
- console.info("预览错误: ", h);
987
+ } catch (p) {
988
+ console.info("预览错误: ", p);
926
989
  }
927
990
  };
928
- e3([o, n.file], ([a, p]) => {
991
+ e3([o, n.file], ([a, h]) => {
929
992
  a && t3(() => {
930
- f(n.file);
993
+ v(n.file);
931
994
  });
932
995
  });
933
- const v = () => {
996
+ const f = () => {
934
997
  o.value = !1, s.office = !1, s.image = !1, s.video = !1;
935
998
  };
936
- return (a, p) => {
937
- var w, _;
938
- const d = I("el-image-viewer");
939
- return o.value ? (c(), u(
940
- P,
999
+ return (a, h) => {
1000
+ var w, x;
1001
+ const u = $("el-image-viewer");
1002
+ return o.value ? (c(), d(
1003
+ M,
941
1004
  { key: 0 },
942
1005
  [
943
- (w = i.value) != null && w.url && s.image ? (c(), S(d, {
1006
+ (w = i.value) != null && w.url && s.image ? (c(), z(u, {
944
1007
  key: 0,
945
- onClose: p[0] || (p[0] = (x) => {
1008
+ onClose: h[0] || (h[0] = (_) => {
946
1009
  i.value = null, s.image = !1;
947
1010
  }),
948
1011
  ref: "previewImgRef",
949
- "url-list": [(_ = i.value) == null ? void 0 : _.url]
950
- }, null, 8, ["url-list"])) : B("v-if", !0),
951
- B(" 文档类 "),
952
- F(g(E6), {
1012
+ "url-list": [(x = i.value) == null ? void 0 : x.url]
1013
+ }, null, 8, ["url-list"])) : R("v-if", !0),
1014
+ R(" 文档类 "),
1015
+ k(g(T6), {
953
1016
  modelValue: s.office,
954
- "onUpdate:modelValue": p[1] || (p[1] = (x) => s.office = x),
1017
+ "onUpdate:modelValue": h[1] || (h[1] = (_) => s.office = _),
955
1018
  draggable: "",
956
1019
  "no-footer": "",
957
1020
  "no-header": "",
@@ -961,15 +1024,15 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
961
1024
  "close-on-click-modal": "",
962
1025
  "close-on-press-escape": !1,
963
1026
  "append-to-body": "",
964
- onClose: v,
1027
+ onClose: f,
965
1028
  "modal-class": "ik-only-preview-dialog"
966
1029
  }, {
967
1030
  default: y(() => {
968
- var x;
1031
+ var _;
969
1032
  return [
970
- F(g(N6), {
1033
+ k(g(X6), {
971
1034
  "config-options": l.value,
972
- "document-server-url": ((x = t.onlyOfficeConfig) == null ? void 0 : x.serverUrl) || t.onlyofficeServer
1035
+ "document-server-url": ((_ = t.onlyOfficeConfig) == null ? void 0 : _.serverUrl) || t.onlyofficeServer
973
1036
  }, null, 8, ["config-options", "document-server-url"])
974
1037
  ];
975
1038
  }),
@@ -979,22 +1042,22 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
979
1042
  ],
980
1043
  64
981
1044
  /* STABLE_FRAGMENT */
982
- )) : B("v-if", !0);
1045
+ )) : R("v-if", !0);
983
1046
  };
984
1047
  }
985
1048
  });
986
- const z6 = $(k6), b6 = {
1049
+ const S6 = E(F6), C6 = {
987
1050
  key: 0,
988
1051
  class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
989
- }, F6 = {
1052
+ }, V6 = {
990
1053
  key: 1,
991
1054
  class: "h-[1em] w-[1em]",
992
1055
  "aria-hidden": "true"
993
- }, S6 = ["xlink:href"], C6 = ["src"], V6 = {
1056
+ }, O6 = ["xlink:href"], B6 = ["src"], I6 = {
994
1057
  key: 1,
995
1058
  class: "h-[1em] w-[1em]",
996
1059
  "aria-hidden": "true"
997
- }, O6 = ["xlink:href"], B6 = ["src"], I6 = /* @__PURE__ */ z({
1060
+ }, R6 = ["xlink:href"], $6 = ["src"], D6 = /* @__PURE__ */ F({
998
1061
  name: "IkSvgIcon",
999
1062
  __name: "index",
1000
1063
  props: {
@@ -1021,7 +1084,7 @@ const z6 = $(k6), b6 = {
1021
1084
  tableIconType: {}
1022
1085
  },
1023
1086
  setup(t) {
1024
- const n = t, o = R("iconConfig"), e = m(() => ({
1087
+ const n = t, o = D("iconConfig"), e = m(() => ({
1025
1088
  ...(o == null ? void 0 : o.value) || {},
1026
1089
  ...n
1027
1090
  })), l = m(() => {
@@ -1042,26 +1105,26 @@ const z6 = $(k6), b6 = {
1042
1105
  break;
1043
1106
  }
1044
1107
  e.value.rotate && s.push(`rotate(${e.value.rotate % 360}deg)`);
1045
- const f = {
1108
+ const v = {
1046
1109
  ...e.value.color && { color: e.value.color },
1047
1110
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
1048
1111
  ...s.length && { transform: s.join(" ") },
1049
1112
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
1050
1113
  ...e.value.color && l.value !== "iksig" ? {
1051
1114
  "--ik-color-icon-dark": e.value.color,
1052
- "--ik-color-icon-light": e.value.colorLight || c3.setOpacity(e.value.color, e.value.opacity)
1115
+ "--ik-color-icon-light": e.value.colorLight || r3.setOpacity(e.value.color, e.value.opacity)
1053
1116
  } : {}
1054
1117
  };
1055
- return e.value.width && (f.width = f.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), f;
1118
+ return e.value.width && (v.width = v.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), v;
1056
1119
  });
1057
- return (s, f) => {
1058
- const v = I("el-tooltip"), a = I("el-button");
1059
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), u("span", b6, [
1060
- e.value.notip || !e.value.title ? (c(), u(
1120
+ return (s, v) => {
1121
+ const f = $("el-tooltip"), a = $("el-button");
1122
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), d("span", C6, [
1123
+ e.value.notip || !e.value.title ? (c(), d(
1061
1124
  "i",
1062
1125
  {
1063
1126
  key: 0,
1064
- class: C(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1127
+ class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1065
1128
  [s.name]: l.value === "unocss",
1066
1129
  "show-bg": e.value.showBg || e.value.bg,
1067
1130
  default: e.value.size === "default",
@@ -1077,30 +1140,30 @@ const z6 = $(k6), b6 = {
1077
1140
  style: b(i.value)
1078
1141
  },
1079
1142
  [
1080
- B(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1081
- l.value === "iksig" ? (c(), u(
1143
+ R(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1144
+ l.value === "iksig" ? (c(), d(
1082
1145
  "i",
1083
1146
  {
1084
1147
  key: 0,
1085
- class: C(`iksig ${e.value.name}`),
1148
+ class: S(`iksig ${e.value.name}`),
1086
1149
  style: b(i.value)
1087
1150
  },
1088
1151
  null,
1089
1152
  6
1090
1153
  /* CLASS, STYLE */
1091
- )) : l.value === "svg" ? (c(), u("svg", F6, [
1154
+ )) : l.value === "svg" ? (c(), d("svg", V6, [
1092
1155
  r("use", {
1093
1156
  "xlink:href": `#${e.value.name}`
1094
- }, null, 8, S6)
1095
- ])) : l.value === "img" ? (c(), u("img", {
1157
+ }, null, 8, O6)
1158
+ ])) : l.value === "img" ? (c(), d("img", {
1096
1159
  key: 2,
1097
1160
  src: e.value.name,
1098
1161
  class: "h-[1em] w-[1em]"
1099
- }, null, 8, C6)) : (c(), u(
1162
+ }, null, 8, B6)) : (c(), d(
1100
1163
  "i",
1101
1164
  {
1102
1165
  key: 3,
1103
- class: C(e.value.name),
1166
+ class: S(e.value.name),
1104
1167
  style: b(i.value)
1105
1168
  },
1106
1169
  null,
@@ -1110,7 +1173,7 @@ const z6 = $(k6), b6 = {
1110
1173
  ],
1111
1174
  6
1112
1175
  /* CLASS, STYLE */
1113
- )) : (c(), S(v, {
1176
+ )) : (c(), z(f, {
1114
1177
  key: 1,
1115
1178
  content: e.value.title,
1116
1179
  placement: "top"
@@ -1119,7 +1182,7 @@ const z6 = $(k6), b6 = {
1119
1182
  r(
1120
1183
  "i",
1121
1184
  {
1122
- class: C(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1185
+ class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1123
1186
  [s.name]: l.value === "unocss",
1124
1187
  "show-bg": e.value.showBg || e.value.bg,
1125
1188
  default: e.value.size === "default",
@@ -1134,29 +1197,29 @@ const z6 = $(k6), b6 = {
1134
1197
  style: b(i.value)
1135
1198
  },
1136
1199
  [
1137
- l.value === "iksig" ? (c(), u(
1200
+ l.value === "iksig" ? (c(), d(
1138
1201
  "i",
1139
1202
  {
1140
1203
  key: 0,
1141
- class: C(`iksig ${e.value.name}`),
1204
+ class: S(`iksig ${e.value.name}`),
1142
1205
  style: b(i.value)
1143
1206
  },
1144
1207
  null,
1145
1208
  6
1146
1209
  /* CLASS, STYLE */
1147
- )) : l.value === "svg" ? (c(), u("svg", V6, [
1210
+ )) : l.value === "svg" ? (c(), d("svg", I6, [
1148
1211
  r("use", {
1149
1212
  "xlink:href": `#${e.value.name}`
1150
- }, null, 8, O6)
1151
- ])) : l.value === "img" ? (c(), u("img", {
1213
+ }, null, 8, R6)
1214
+ ])) : l.value === "img" ? (c(), d("img", {
1152
1215
  key: 2,
1153
1216
  src: e.value.name,
1154
1217
  class: "h-[1em] w-[1em]"
1155
- }, null, 8, B6)) : (c(), u(
1218
+ }, null, 8, $6)) : (c(), d(
1156
1219
  "i",
1157
1220
  {
1158
1221
  key: 3,
1159
- class: C(e.value.name),
1222
+ class: S(e.value.name),
1160
1223
  style: b(i.value)
1161
1224
  },
1162
1225
  null,
@@ -1171,13 +1234,13 @@ const z6 = $(k6), b6 = {
1171
1234
  _: 1
1172
1235
  /* STABLE */
1173
1236
  }, 8, ["content"]))
1174
- ])) : (c(), S(a, {
1237
+ ])) : (c(), z(a, {
1175
1238
  key: 1,
1176
1239
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
1177
1240
  }, {
1178
1241
  default: y(() => [
1179
- D(
1180
- O(e.value.title),
1242
+ H(
1243
+ V(e.value.title),
1181
1244
  1
1182
1245
  /* TEXT */
1183
1246
  )
@@ -1188,10 +1251,10 @@ const z6 = $(k6), b6 = {
1188
1251
  };
1189
1252
  }
1190
1253
  });
1191
- const R6 = /* @__PURE__ */ U(I6, [["__scopeId", "data-v-7729b79a"]]), A = $(R6), D6 = {
1254
+ const M6 = /* @__PURE__ */ U(D6, [["__scopeId", "data-v-7729b79a"]]), I = E(M6), H6 = {
1192
1255
  key: 0,
1193
1256
  class: "exit-main-page-maximize"
1194
- }, M6 = /* @__PURE__ */ z({
1257
+ }, q6 = /* @__PURE__ */ F({
1195
1258
  __name: "CloseIcon",
1196
1259
  props: {
1197
1260
  showBg: {
@@ -1204,15 +1267,15 @@ const R6 = /* @__PURE__ */ U(I6, [["__scopeId", "data-v-7729b79a"]]), A = $(R6),
1204
1267
  }
1205
1268
  },
1206
1269
  setup(t) {
1207
- return (n, o) => (c(), u("div", null, [
1208
- t.showBg && t.fullscreen ? (c(), u("div", D6, [
1209
- F(g(A), {
1270
+ return (n, o) => (c(), d("div", null, [
1271
+ t.showBg && t.fullscreen ? (c(), d("div", H6, [
1272
+ k(g(I), {
1210
1273
  name: "iksvg_guanbidanchuang",
1211
1274
  title: "关闭",
1212
1275
  size: 20,
1213
1276
  error: ""
1214
1277
  })
1215
- ])) : (c(), S(g(A), {
1278
+ ])) : (c(), z(g(I), {
1216
1279
  key: 1,
1217
1280
  error: "",
1218
1281
  name: "iksvg_guanbidanchuang",
@@ -1222,9 +1285,9 @@ const R6 = /* @__PURE__ */ U(I6, [["__scopeId", "data-v-7729b79a"]]), A = $(R6),
1222
1285
  ]));
1223
1286
  }
1224
1287
  });
1225
- const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { class: "base-header" }, H6 = /* @__PURE__ */ z({
1288
+ const E6 = /* @__PURE__ */ U(q6, [["__scopeId", "data-v-79f49df8"]]), A6 = { class: "base-header" }, P6 = /* @__PURE__ */ F({
1226
1289
  __name: "IkBaseDialog",
1227
- props: /* @__PURE__ */ G({
1290
+ props: /* @__PURE__ */ Y({
1228
1291
  title: { default: "" },
1229
1292
  cancelText: { default: "取消" },
1230
1293
  confirmText: { default: "确认" },
@@ -1243,21 +1306,21 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
1243
1306
  }),
1244
1307
  emits: ["update:modelValue"],
1245
1308
  setup(t) {
1246
- const n = t, o = X(t, "modelValue"), e = M(n.fullscreen), l = () => {
1309
+ const n = t, o = Z(t, "modelValue"), e = q(n.fullscreen), l = () => {
1247
1310
  e.value = !e.value;
1248
- }, i = z({
1311
+ }, i = F({
1249
1312
  setup() {
1250
- return () => n3($6, {
1313
+ return () => n3(E6, {
1251
1314
  showBg: n.showCloseBg,
1252
1315
  fullscreen: n.fullscreen
1253
1316
  });
1254
1317
  }
1255
1318
  });
1256
- return (s, f) => {
1257
- const v = I("el-dialog");
1258
- return c(), S(v, j({
1319
+ return (s, v) => {
1320
+ const f = $("el-dialog");
1321
+ return c(), z(f, N({
1259
1322
  modelValue: o.value,
1260
- "onUpdate:modelValue": f[0] || (f[0] = (a) => o.value = a)
1323
+ "onUpdate:modelValue": v[0] || (v[0] = (a) => o.value = a)
1261
1324
  }, s.$attrs, {
1262
1325
  "close-icon": g(i),
1263
1326
  class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
@@ -1265,34 +1328,34 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
1265
1328
  "modal-class": "baseDialog"
1266
1329
  }), o3({
1267
1330
  icon: y(() => [
1268
- V(s.$slots, "title", {}, () => [
1269
- D(
1270
- O(s.title),
1331
+ C(s.$slots, "title", {}, () => [
1332
+ H(
1333
+ V(s.title),
1271
1334
  1
1272
1335
  /* TEXT */
1273
1336
  )
1274
1337
  ])
1275
1338
  ]),
1276
1339
  header: y(() => [
1277
- r("div", q6, [
1278
- V(s.$slots, "header", {}, () => [
1279
- D(
1280
- O(s.title),
1340
+ r("div", A6, [
1341
+ C(s.$slots, "header", {}, () => [
1342
+ H(
1343
+ V(s.title),
1281
1344
  1
1282
1345
  /* TEXT */
1283
1346
  )
1284
1347
  ])
1285
1348
  ]),
1286
- s.$attrs.showClose ? (c(), S(g(A), {
1349
+ s.$attrs.showClose ? (c(), z(g(I), {
1287
1350
  key: 0,
1288
1351
  onClick: l,
1289
1352
  name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1290
1353
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1291
1354
  title: e.value ? "退出全屏" : "全屏"
1292
- }, null, 8, ["name", "title"])) : B("v-if", !0)
1355
+ }, null, 8, ["name", "title"])) : R("v-if", !0)
1293
1356
  ]),
1294
1357
  default: y(() => [
1295
- V(s.$slots, "default")
1358
+ C(s.$slots, "default")
1296
1359
  ]),
1297
1360
  _: 2
1298
1361
  /* DYNAMIC */
@@ -1300,7 +1363,7 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
1300
1363
  s.$slots.footer ? {
1301
1364
  name: "footer",
1302
1365
  fn: y(() => [
1303
- V(s.$slots, "footer")
1366
+ C(s.$slots, "footer")
1304
1367
  ]),
1305
1368
  key: "0"
1306
1369
  } : void 0
@@ -1308,49 +1371,49 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
1308
1371
  };
1309
1372
  }
1310
1373
  });
1311
- const E6 = $(H6);
1312
- function A6(t, n, o, e) {
1374
+ const T6 = E(P6);
1375
+ function U6(t, n, o, e) {
1313
1376
  function l(i) {
1314
1377
  return i instanceof o ? i : new o(function(s) {
1315
1378
  s(i);
1316
1379
  });
1317
1380
  }
1318
1381
  return new (o || (o = Promise))(function(i, s) {
1319
- function f(p) {
1382
+ function v(h) {
1320
1383
  try {
1321
- a(e.next(p));
1322
- } catch (d) {
1323
- s(d);
1384
+ a(e.next(h));
1385
+ } catch (u) {
1386
+ s(u);
1324
1387
  }
1325
1388
  }
1326
- function v(p) {
1389
+ function f(h) {
1327
1390
  try {
1328
- a(e.throw(p));
1329
- } catch (d) {
1330
- s(d);
1391
+ a(e.throw(h));
1392
+ } catch (u) {
1393
+ s(u);
1331
1394
  }
1332
1395
  }
1333
- function a(p) {
1334
- p.done ? i(p.value) : l(p.value).then(f, v);
1396
+ function a(h) {
1397
+ h.done ? i(h.value) : l(h.value).then(v, f);
1335
1398
  }
1336
1399
  a((e = e.apply(t, n || [])).next());
1337
1400
  });
1338
1401
  }
1339
- function P6(t, n) {
1402
+ function j6(t, n) {
1340
1403
  var o = { label: 0, sent: function() {
1341
1404
  if (i[0] & 1)
1342
1405
  throw i[1];
1343
1406
  return i[1];
1344
1407
  }, trys: [], ops: [] }, e, l, i, s;
1345
- return s = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
1408
+ return s = { next: v(0), throw: v(1), return: v(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
1346
1409
  return this;
1347
1410
  }), s;
1348
- function f(a) {
1349
- return function(p) {
1350
- return v([a, p]);
1411
+ function v(a) {
1412
+ return function(h) {
1413
+ return f([a, h]);
1351
1414
  };
1352
1415
  }
1353
- function v(a) {
1416
+ function f(a) {
1354
1417
  if (e)
1355
1418
  throw new TypeError("Generator is already executing.");
1356
1419
  for (; s && (s = 0, a[0] && (o = 0)), o; )
@@ -1391,8 +1454,8 @@ function P6(t, n) {
1391
1454
  continue;
1392
1455
  }
1393
1456
  a = n.call(t, o);
1394
- } catch (p) {
1395
- a = [6, p], l = 0;
1457
+ } catch (h) {
1458
+ a = [6, h], l = 0;
1396
1459
  } finally {
1397
1460
  e = i = 0;
1398
1461
  }
@@ -1401,9 +1464,9 @@ function P6(t, n) {
1401
1464
  return { value: a[0] ? a[1] : void 0, done: !0 };
1402
1465
  }
1403
1466
  }
1404
- var T6 = function(t, n) {
1405
- return A6(void 0, void 0, void 0, function() {
1406
- return P6(this, function(o) {
1467
+ var L6 = function(t, n) {
1468
+ return U6(void 0, void 0, void 0, function() {
1469
+ return j6(this, function(o) {
1407
1470
  return [2, new Promise(function(e, l) {
1408
1471
  try {
1409
1472
  if (window.DocsAPI)
@@ -1411,32 +1474,32 @@ var T6 = function(t, n) {
1411
1474
  var i = document.getElementById(n);
1412
1475
  if (i)
1413
1476
  var s = setInterval(function() {
1414
- var v = i.getAttribute("loading");
1415
- if (!v) {
1477
+ var f = i.getAttribute("loading");
1478
+ if (!f) {
1416
1479
  if (clearInterval(s), window.DocsAPI)
1417
1480
  return e(null);
1418
- var a = N(n, t, e, l);
1481
+ var a = X(n, t, e, l);
1419
1482
  i.remove(), document.body.appendChild(a);
1420
1483
  }
1421
1484
  }, 500);
1422
1485
  else {
1423
- var f = N(n, t, e, l);
1424
- document.body.appendChild(f);
1486
+ var v = X(n, t, e, l);
1487
+ document.body.appendChild(v);
1425
1488
  }
1426
- } catch (v) {
1427
- console.error(v);
1489
+ } catch (f) {
1490
+ console.error(f);
1428
1491
  }
1429
1492
  })];
1430
1493
  });
1431
1494
  });
1432
- }, N = function(t, n, o, e) {
1495
+ }, X = function(t, n, o, e) {
1433
1496
  var l = document.createElement("script");
1434
1497
  return l.id = t, l.type = "text/javascript", l.src = n, l.async = !0, l.onload = function() {
1435
1498
  l.removeAttribute("loading"), o(null);
1436
1499
  }, l.onerror = function(i) {
1437
1500
  l.removeAttribute("loading"), e(i);
1438
1501
  }, l.setAttribute("loading", ""), l;
1439
- }, L = z({
1502
+ }, W = F({
1440
1503
  name: "DocumentEditor",
1441
1504
  props: {
1442
1505
  id: {
@@ -1491,7 +1554,7 @@ var T6 = function(t, n) {
1491
1554
  var t = this, n = this.documentServerUrl;
1492
1555
  n.endsWith("/") || (n += "/");
1493
1556
  var o = "".concat(n, "web-apps/apps/api/documents/api.js");
1494
- T6(o, "onlyoffice-api-script").then(function() {
1557
+ L6(o, "onlyoffice-api-script").then(function() {
1495
1558
  return t.onLoad();
1496
1559
  }).catch(function() {
1497
1560
  t.onError(-2);
@@ -1605,13 +1668,13 @@ var T6 = function(t, n) {
1605
1668
  }
1606
1669
  }
1607
1670
  });
1608
- const U6 = ["id"];
1609
- function j6(t, n, o, e, l, i) {
1610
- return c(), u("div", { id: t.id }, null, 8, U6);
1671
+ const N6 = ["id"];
1672
+ function W6(t, n, o, e, l, i) {
1673
+ return c(), d("div", { id: t.id }, null, 8, N6);
1611
1674
  }
1612
- L.render = j6;
1613
- L.__file = "src/components/DocumentEditor.vue";
1614
- const L6 = /* @__PURE__ */ z({
1675
+ W.render = W6;
1676
+ W.__file = "src/components/DocumentEditor.vue";
1677
+ const K6 = /* @__PURE__ */ F({
1615
1678
  __name: "IkOnlyOffice",
1616
1679
  props: {
1617
1680
  // 文件服务器的服务的地址
@@ -1632,7 +1695,7 @@ const L6 = /* @__PURE__ */ z({
1632
1695
  }
1633
1696
  },
1634
1697
  setup(t) {
1635
- const n = t, o = M({
1698
+ const n = t, o = q({
1636
1699
  width: "100%",
1637
1700
  height: "100%",
1638
1701
  ...n.configOptions || {},
@@ -1640,13 +1703,13 @@ const L6 = /* @__PURE__ */ z({
1640
1703
  }), e = () => {
1641
1704
  console.info("文档加载完成", n.configOptions);
1642
1705
  };
1643
- return (l, i) => (c(), u(
1706
+ return (l, i) => (c(), d(
1644
1707
  "div",
1645
1708
  {
1646
1709
  style: b({ height: n.officeHeight })
1647
1710
  },
1648
1711
  [
1649
- F(g(L), {
1712
+ k(g(W), {
1650
1713
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1651
1714
  ref: "editorRef",
1652
1715
  "document-server-url": t.documentServerUrl,
@@ -1659,7 +1722,7 @@ const L6 = /* @__PURE__ */ z({
1659
1722
  ));
1660
1723
  }
1661
1724
  });
1662
- const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6), K6 = /* @__PURE__ */ z({
1725
+ const G6 = /* @__PURE__ */ U(K6, [["__scopeId", "data-v-98d51ef9"]]), X6 = E(G6), Y6 = /* @__PURE__ */ F({
1663
1726
  __name: "IKDescription",
1664
1727
  props: {
1665
1728
  showIcon: {
@@ -1719,7 +1782,7 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
1719
1782
  },
1720
1783
  setup(t) {
1721
1784
  i3((l) => ({
1722
- "645335a7": e.value
1785
+ acbb9d0c: e.value
1723
1786
  }));
1724
1787
  const n = t, o = {
1725
1788
  id: "id",
@@ -1731,51 +1794,51 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
1731
1794
  ...n.fileField
1732
1795
  }, e = m(() => typeof n.labelWidth == "number" ? `${n.labelWidth}px` : n.labelWidth);
1733
1796
  return (l, i) => {
1734
- const s = I("el-tag"), f = I("el-descriptions-item"), v = I("el-descriptions");
1735
- return c(), S(
1797
+ const s = $("el-descriptions-item"), v = $("el-descriptions");
1798
+ return c(), z(
1736
1799
  v,
1737
- j({ class: "margin-top" }, { ...t.titleProps, ...n }),
1800
+ N({ class: "margin-top" }, { ...t.titleProps, ...n }),
1738
1801
  {
1739
1802
  extra: y(() => [
1740
- V(l.$slots, "extra", {}, void 0, !0)
1803
+ C(l.$slots, "extra", {}, void 0, !0)
1741
1804
  ]),
1742
1805
  default: y(() => [
1743
- (c(!0), u(
1744
- P,
1806
+ (c(!0), d(
1807
+ M,
1745
1808
  null,
1746
- K(t.listData, (a) => (c(), S(
1747
- f,
1748
- j({
1749
- key: a[o.id],
1809
+ L(t.listData, (f) => (c(), z(
1810
+ s,
1811
+ N({
1812
+ key: f[o.id],
1750
1813
  ref_for: !0
1751
- }, a[o.props]),
1814
+ }, f[o.props]),
1752
1815
  {
1753
1816
  label: y(() => [
1754
- V(l.$slots, a[o.label], {}, () => [
1755
- D(
1756
- O(a[o.label]),
1817
+ C(l.$slots, f[o.label], {}, () => [
1818
+ H(
1819
+ V(f[o.label]),
1757
1820
  1
1758
1821
  /* TEXT */
1759
1822
  )
1760
1823
  ], !0)
1761
1824
  ]),
1762
1825
  default: y(() => [
1763
- V(l.$slots, `${a[o.label]}_value`, {}, () => [
1764
- D(
1765
- O(a[o.value]) + " ",
1826
+ C(l.$slots, `${f[o.label]}_value`, {}, () => [
1827
+ H(
1828
+ V(f[o.value]) + " ",
1766
1829
  1
1767
1830
  /* TEXT */
1768
1831
  ),
1769
- a[o.tag] ? (c(), S(
1770
- s,
1832
+ f[o.tag] ? (c(), z(
1833
+ g(l3),
1771
1834
  {
1772
1835
  key: 0,
1773
1836
  size: "small"
1774
1837
  },
1775
1838
  {
1776
1839
  default: y(() => [
1777
- D(
1778
- O(a[o.value].value),
1840
+ H(
1841
+ V(f[o.value].value),
1779
1842
  1
1780
1843
  /* TEXT */
1781
1844
  )
@@ -1785,9 +1848,9 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
1785
1848
  },
1786
1849
  1024
1787
1850
  /* DYNAMIC_SLOTS */
1788
- )) : B("v-if", !0),
1789
- F(g(x6), {
1790
- list: a[o.fileList],
1851
+ )) : R("v-if", !0),
1852
+ k(g(z6), {
1853
+ list: f[o.fileList],
1791
1854
  field: t.fileField,
1792
1855
  "load-url": t.loadUrl,
1793
1856
  "kk-url": t.kkUrl,
@@ -1818,8 +1881,8 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
1818
1881
  };
1819
1882
  }
1820
1883
  });
1821
- const G6 = /* @__PURE__ */ U(K6, [["__scopeId", "data-v-38defd72"]]), J6 = $(G6);
1884
+ const Z6 = /* @__PURE__ */ U(Y6, [["__scopeId", "data-v-a33bc2ce"]]), ne = E(Z6);
1822
1885
  export {
1823
- J6 as IkDescriptions,
1824
- J6 as default
1886
+ ne as IkDescriptions,
1887
+ ne as default
1825
1888
  };