iking-web-ui-pro 0.2.5 → 0.2.6
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.
- package/dist/IKDetailPreviewFiles/ik.index.es.js +409 -406
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +123 -120
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +358 -355
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +564 -561
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +125 -122
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +252 -249
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +129 -126
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +357 -354
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +196 -193
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +397 -394
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1122 -1119
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +293 -290
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +968 -965
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +148 -145
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +106 -103
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +530 -526
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +269 -266
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +50 -46
- package/dist/Provider/ik.index.umd.js +5 -5
- package/dist/index.es.js +7052 -7044
- package/dist/index.umd.js +36 -36
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
- package/dist/src/components/Provider/index.d.ts +19 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as S, computed as m, defineComponent as z, mergeModels as W, useModel as G, ref as R, reactive as Y, watch as Z, nextTick as J, resolveComponent as E, openBlock as r, createElementBlock as u, Fragment as T, createBlock as B, createCommentVNode as V, createVNode as b, unref as g, withCtx as C, createElementVNode as c, normalizeClass as F, normalizeStyle as k, createTextVNode as P, toDisplayString as q, h as Q, mergeProps as e3, createSlots as t3, renderSlot as $, renderList as n3, withModifiers as o3 } from "vue";
|
|
2
2
|
import { buildUUID as i3, ikColor as s3, paramType as l3, ikFile as a3 } from "iking-utils-pro";
|
|
3
|
-
const O = (t,
|
|
3
|
+
const O = (t, n) => {
|
|
4
4
|
if (t.install = (o) => {
|
|
5
|
-
for (const
|
|
6
|
-
o.component(
|
|
7
|
-
},
|
|
8
|
-
for (const [o,
|
|
9
|
-
t[o] =
|
|
5
|
+
for (const e of [t, ...Object.values(n ?? {})])
|
|
6
|
+
o.component(e.name, e);
|
|
7
|
+
}, n)
|
|
8
|
+
for (const [o, e] of Object.entries(n))
|
|
9
|
+
t[o] = e;
|
|
10
10
|
return t;
|
|
11
|
-
}, U = (t,
|
|
11
|
+
}, U = (t, n) => {
|
|
12
12
|
const o = t.__vccOpts || t;
|
|
13
|
-
for (const [
|
|
14
|
-
o[
|
|
13
|
+
for (const [e, l] of n)
|
|
14
|
+
o[e] = l;
|
|
15
15
|
return o;
|
|
16
|
-
}, c3 = (t,
|
|
16
|
+
}, c3 = (t, n = 2) => {
|
|
17
17
|
if (t === void 0)
|
|
18
18
|
return "";
|
|
19
19
|
if (t === 0)
|
|
20
20
|
return "0 B";
|
|
21
|
-
const o = ["B", "KB", "MB", "GB", "TB"],
|
|
22
|
-
let
|
|
23
|
-
return (
|
|
24
|
-
}, A = (t,
|
|
25
|
-
const
|
|
21
|
+
const o = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
|
|
22
|
+
let l = t / Math.pow(1024, e);
|
|
23
|
+
return (l % 1 === 0 ? l.toFixed(n || 0) : l.toFixed(n)) + " " + o[e];
|
|
24
|
+
}, A = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", r3 = (t) => {
|
|
25
|
+
const n = S("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = S("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = S("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), h = S("onlyofficeConfig"), p = m(() => t.onlyofficeConfig || (h == null ? void 0 : h.value)), a = S("userInfo"), v = m(() => t.userInfo || (a == null ? void 0 : a.value));
|
|
26
26
|
return {
|
|
27
27
|
cLoadUrl: o,
|
|
28
|
-
cUploadUrl:
|
|
29
|
-
cToken:
|
|
30
|
-
cOnlyofficeConfig:
|
|
31
|
-
cUserInfo:
|
|
28
|
+
cUploadUrl: l,
|
|
29
|
+
cToken: s,
|
|
30
|
+
cOnlyofficeConfig: p,
|
|
31
|
+
cUserInfo: v
|
|
32
32
|
};
|
|
33
|
-
}, d3 = r3, K = (t,
|
|
34
|
-
var i,
|
|
35
|
-
const o = (i = t == null ? void 0 : t.response) != null && i.data ? L((
|
|
33
|
+
}, d3 = r3, K = (t, n) => {
|
|
34
|
+
var i, s, h, p;
|
|
35
|
+
const o = (i = t == null ? void 0 : t.response) != null && i.data ? L((h = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : h.suffix) : ((p = t.raw) == null ? void 0 : p.type) || L(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), l = {
|
|
36
36
|
sheet: "excel",
|
|
37
37
|
excel: "excel",
|
|
38
38
|
zip: "zip",
|
|
@@ -48,9 +48,9 @@ const O = (t, e) => {
|
|
|
48
48
|
exe: "exe",
|
|
49
49
|
json: "json"
|
|
50
50
|
};
|
|
51
|
-
for (let
|
|
52
|
-
if (typeof
|
|
53
|
-
return
|
|
51
|
+
for (let a in l)
|
|
52
|
+
if (typeof e == "string" && (e.includes(a) || e === a))
|
|
53
|
+
return l[a];
|
|
54
54
|
return "unknown";
|
|
55
55
|
}, u3 = {
|
|
56
56
|
".doc": "word",
|
|
@@ -138,12 +138,12 @@ const O = (t, e) => {
|
|
|
138
138
|
".txt": "txt",
|
|
139
139
|
".pdf": "pdf"
|
|
140
140
|
}, L = (t) => {
|
|
141
|
-
const
|
|
141
|
+
const n = t == null ? void 0 : t.toLocaleLowerCase(), o = n != null && n.startsWith(".") ? n : `.${n}`;
|
|
142
142
|
return o && u3[o] || "unknow";
|
|
143
143
|
}, h3 = (t) => {
|
|
144
|
-
let
|
|
145
|
-
return o.includes(t) && (
|
|
146
|
-
},
|
|
144
|
+
let n = "", o = ["doc", "docx"], e = ["xls", "xlsx"], l = ["ppt", "pptx"], i = ["pdf"];
|
|
145
|
+
return o.includes(t) && (n = "word"), e.includes(t) && (n = "cell"), l.includes(t) && (n = "slide"), i.includes(t) && (n = "text-pdf"), n;
|
|
146
|
+
}, v3 = /* @__PURE__ */ z({
|
|
147
147
|
__name: "IkPreviewFileDialog",
|
|
148
148
|
props: /* @__PURE__ */ W({
|
|
149
149
|
file: {
|
|
@@ -180,34 +180,34 @@ const O = (t, e) => {
|
|
|
180
180
|
}),
|
|
181
181
|
emits: ["update:show"],
|
|
182
182
|
setup(t) {
|
|
183
|
-
const
|
|
183
|
+
const n = t, o = G(t, "show"), e = m(() => ({
|
|
184
184
|
name: "name",
|
|
185
185
|
url: "url",
|
|
186
186
|
suffix: "suffix",
|
|
187
187
|
size: "fileSize",
|
|
188
|
-
...
|
|
189
|
-
})),
|
|
188
|
+
...n.field
|
|
189
|
+
})), l = R(null), i = R(null), s = Y({
|
|
190
190
|
image: !1,
|
|
191
191
|
office: !1,
|
|
192
192
|
video: !1
|
|
193
|
-
}),
|
|
194
|
-
var
|
|
193
|
+
}), h = (a) => {
|
|
194
|
+
var v, d, w, _, y, I, x;
|
|
195
195
|
try {
|
|
196
|
-
const f = ((
|
|
196
|
+
const f = ((v = a == null ? void 0 : a.response) == null ? void 0 : v.data) || a, M = f[e.value.url] || (f == null ? void 0 : f.id) || f.attachmentId, D = (d = f[e.value.suffix] || f.attachmentSuffix) == null ? void 0 : d.toLowerCase(), X = f[e.value.name] || (f == null ? void 0 : f.attachmentName) || (f == null ? void 0 : f.originName);
|
|
197
197
|
if (i.value = {
|
|
198
|
-
...
|
|
199
|
-
name:
|
|
200
|
-
url: A(
|
|
201
|
-
},
|
|
202
|
-
|
|
198
|
+
...a,
|
|
199
|
+
name: a[e.value.name],
|
|
200
|
+
url: A(n.loadUrl, M)
|
|
201
|
+
}, a && K(a, e.value) === "image") {
|
|
202
|
+
s.image = !0;
|
|
203
203
|
return;
|
|
204
|
-
} else if ((((w =
|
|
205
|
-
|
|
206
|
-
...
|
|
204
|
+
} else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(D)) {
|
|
205
|
+
s.office = !0, l.value = {
|
|
206
|
+
...n.onlyOfficeConfig,
|
|
207
207
|
editorConfig: {
|
|
208
|
-
...((
|
|
208
|
+
...((_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) || {},
|
|
209
209
|
customization: {
|
|
210
|
-
...((
|
|
210
|
+
...((I = (y = n.onlyOfficeConfig) == null ? void 0 : y.editorConfig) == null ? void 0 : I.customization) || {},
|
|
211
211
|
review: {
|
|
212
212
|
reviewDisplay: "final"
|
|
213
213
|
}
|
|
@@ -216,11 +216,11 @@ const O = (t, e) => {
|
|
|
216
216
|
document: {
|
|
217
217
|
key: i3(),
|
|
218
218
|
title: X,
|
|
219
|
-
url: A(
|
|
220
|
-
fileType:
|
|
221
|
-
...((
|
|
219
|
+
url: A(n.loadUrl, M),
|
|
220
|
+
fileType: D,
|
|
221
|
+
...((x = n.onlyOfficeConfig) == null ? void 0 : x.document) || {}
|
|
222
222
|
},
|
|
223
|
-
documentType: h3(
|
|
223
|
+
documentType: h3(D)
|
|
224
224
|
};
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
@@ -228,33 +228,33 @@ const O = (t, e) => {
|
|
|
228
228
|
console.info("预览错误: ", f);
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
Z([o,
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
Z([o, n.file], ([a, v]) => {
|
|
232
|
+
a && J(() => {
|
|
233
|
+
h(n.file);
|
|
234
234
|
});
|
|
235
235
|
});
|
|
236
|
-
const
|
|
237
|
-
o.value = !1,
|
|
236
|
+
const p = () => {
|
|
237
|
+
o.value = !1, s.office = !1, s.image = !1, s.video = !1;
|
|
238
238
|
};
|
|
239
|
-
return (
|
|
240
|
-
var w,
|
|
239
|
+
return (a, v) => {
|
|
240
|
+
var w, _;
|
|
241
241
|
const d = E("el-image-viewer");
|
|
242
242
|
return o.value ? (r(), u(
|
|
243
243
|
T,
|
|
244
244
|
{ key: 0 },
|
|
245
245
|
[
|
|
246
|
-
(w = i.value) != null && w.url &&
|
|
246
|
+
(w = i.value) != null && w.url && s.image ? (r(), B(d, {
|
|
247
247
|
key: 0,
|
|
248
|
-
onClose:
|
|
249
|
-
i.value = null,
|
|
248
|
+
onClose: v[0] || (v[0] = (y) => {
|
|
249
|
+
i.value = null, s.image = !1;
|
|
250
250
|
}),
|
|
251
251
|
ref: "previewImgRef",
|
|
252
|
-
"url-list": [(
|
|
253
|
-
}, null, 8, ["url-list"])) :
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
modelValue:
|
|
257
|
-
"onUpdate:modelValue":
|
|
252
|
+
"url-list": [(_ = i.value) == null ? void 0 : _.url]
|
|
253
|
+
}, null, 8, ["url-list"])) : V("v-if", !0),
|
|
254
|
+
V(" 文档类 "),
|
|
255
|
+
b(g(I6), {
|
|
256
|
+
modelValue: s.office,
|
|
257
|
+
"onUpdate:modelValue": v[1] || (v[1] = (y) => s.office = y),
|
|
258
258
|
draggable: "",
|
|
259
259
|
"no-footer": "",
|
|
260
260
|
"no-header": "",
|
|
@@ -264,15 +264,15 @@ const O = (t, e) => {
|
|
|
264
264
|
"close-on-click-modal": "",
|
|
265
265
|
"close-on-press-escape": !1,
|
|
266
266
|
"append-to-body": "",
|
|
267
|
-
onClose:
|
|
267
|
+
onClose: p,
|
|
268
268
|
"modal-class": "ik-only-preview-dialog"
|
|
269
269
|
}, {
|
|
270
|
-
default:
|
|
271
|
-
var
|
|
270
|
+
default: C(() => {
|
|
271
|
+
var y;
|
|
272
272
|
return [
|
|
273
|
-
|
|
274
|
-
"config-options":
|
|
275
|
-
"document-server-url": ((
|
|
273
|
+
b(g(A6), {
|
|
274
|
+
"config-options": l.value,
|
|
275
|
+
"document-server-url": ((y = t.onlyOfficeConfig) == null ? void 0 : y.serverUrl) || t.onlyofficeServer
|
|
276
276
|
}, null, 8, ["config-options", "document-server-url"])
|
|
277
277
|
];
|
|
278
278
|
}),
|
|
@@ -282,11 +282,11 @@ const O = (t, e) => {
|
|
|
282
282
|
],
|
|
283
283
|
64
|
|
284
284
|
/* STABLE_FRAGMENT */
|
|
285
|
-
)) :
|
|
285
|
+
)) : V("v-if", !0);
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
|
-
const
|
|
289
|
+
const p3 = O(v3), f3 = {
|
|
290
290
|
key: 0,
|
|
291
291
|
t: "1686300059786",
|
|
292
292
|
class: "icon",
|
|
@@ -326,7 +326,7 @@ const f3 = O(p3), v3 = {
|
|
|
326
326
|
null,
|
|
327
327
|
-1
|
|
328
328
|
/* HOISTED */
|
|
329
|
-
),
|
|
329
|
+
), _3 = /* @__PURE__ */ c(
|
|
330
330
|
"path",
|
|
331
331
|
{
|
|
332
332
|
d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
|
|
@@ -336,12 +336,12 @@ const f3 = O(p3), v3 = {
|
|
|
336
336
|
null,
|
|
337
337
|
-1
|
|
338
338
|
/* HOISTED */
|
|
339
|
-
),
|
|
339
|
+
), y3 = [
|
|
340
340
|
g3,
|
|
341
341
|
m3,
|
|
342
342
|
w3,
|
|
343
|
-
|
|
344
|
-
],
|
|
343
|
+
_3
|
|
344
|
+
], x3 = {
|
|
345
345
|
key: 1,
|
|
346
346
|
t: "1686301531714",
|
|
347
347
|
class: "icon",
|
|
@@ -351,7 +351,7 @@ const f3 = O(p3), v3 = {
|
|
|
351
351
|
"p-id": "9067",
|
|
352
352
|
width: "200",
|
|
353
353
|
height: "200"
|
|
354
|
-
},
|
|
354
|
+
}, k3 = /* @__PURE__ */ c(
|
|
355
355
|
"path",
|
|
356
356
|
{
|
|
357
357
|
d: "M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",
|
|
@@ -361,7 +361,7 @@ const f3 = O(p3), v3 = {
|
|
|
361
361
|
null,
|
|
362
362
|
-1
|
|
363
363
|
/* HOISTED */
|
|
364
|
-
),
|
|
364
|
+
), z3 = /* @__PURE__ */ c(
|
|
365
365
|
"path",
|
|
366
366
|
{
|
|
367
367
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -371,10 +371,10 @@ const f3 = O(p3), v3 = {
|
|
|
371
371
|
null,
|
|
372
372
|
-1
|
|
373
373
|
/* HOISTED */
|
|
374
|
-
),
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
],
|
|
374
|
+
), F3 = [
|
|
375
|
+
k3,
|
|
376
|
+
z3
|
|
377
|
+
], b3 = {
|
|
378
378
|
key: 2,
|
|
379
379
|
t: "1686300141125",
|
|
380
380
|
class: "icon",
|
|
@@ -384,7 +384,7 @@ const f3 = O(p3), v3 = {
|
|
|
384
384
|
"p-id": "8137",
|
|
385
385
|
width: "200",
|
|
386
386
|
height: "200"
|
|
387
|
-
},
|
|
387
|
+
}, C3 = /* @__PURE__ */ c(
|
|
388
388
|
"path",
|
|
389
389
|
{
|
|
390
390
|
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",
|
|
@@ -394,7 +394,7 @@ const f3 = O(p3), v3 = {
|
|
|
394
394
|
null,
|
|
395
395
|
-1
|
|
396
396
|
/* HOISTED */
|
|
397
|
-
),
|
|
397
|
+
), S3 = /* @__PURE__ */ c(
|
|
398
398
|
"path",
|
|
399
399
|
{
|
|
400
400
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -405,8 +405,8 @@ const f3 = O(p3), v3 = {
|
|
|
405
405
|
-1
|
|
406
406
|
/* HOISTED */
|
|
407
407
|
), V3 = [
|
|
408
|
-
|
|
409
|
-
|
|
408
|
+
C3,
|
|
409
|
+
S3
|
|
410
410
|
], R3 = {
|
|
411
411
|
key: 3,
|
|
412
412
|
t: "1686300157181",
|
|
@@ -738,7 +738,7 @@ const f3 = O(p3), v3 = {
|
|
|
738
738
|
null,
|
|
739
739
|
-1
|
|
740
740
|
/* HOISTED */
|
|
741
|
-
),
|
|
741
|
+
), v6 = /* @__PURE__ */ c(
|
|
742
742
|
"path",
|
|
743
743
|
{
|
|
744
744
|
d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
|
|
@@ -748,7 +748,7 @@ const f3 = O(p3), v3 = {
|
|
|
748
748
|
null,
|
|
749
749
|
-1
|
|
750
750
|
/* HOISTED */
|
|
751
|
-
),
|
|
751
|
+
), p6 = /* @__PURE__ */ c(
|
|
752
752
|
"path",
|
|
753
753
|
{
|
|
754
754
|
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",
|
|
@@ -758,11 +758,11 @@ const f3 = O(p3), v3 = {
|
|
|
758
758
|
null,
|
|
759
759
|
-1
|
|
760
760
|
/* HOISTED */
|
|
761
|
-
),
|
|
761
|
+
), f6 = [
|
|
762
762
|
h6,
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
], g6 = /* @__PURE__ */
|
|
763
|
+
v6,
|
|
764
|
+
p6
|
|
765
|
+
], g6 = /* @__PURE__ */ z({
|
|
766
766
|
__name: "FileIcon",
|
|
767
767
|
props: {
|
|
768
768
|
type: {
|
|
@@ -783,8 +783,8 @@ const f3 = O(p3), v3 = {
|
|
|
783
783
|
}
|
|
784
784
|
},
|
|
785
785
|
setup(t) {
|
|
786
|
-
const
|
|
787
|
-
return (
|
|
786
|
+
const n = t, o = m(() => n.file ? K(n.file, n.fields) : n.type);
|
|
787
|
+
return (e, l) => o.value === "image" ? (r(), u("svg", f3, y3)) : o.value === "zip" ? (r(), u("svg", x3, F3)) : o.value === "ppt" ? (r(), u("svg", b3, V3)) : o.value === "word" ? (r(), u("svg", R3, M3)) : o.value === "pdf" ? (r(), u("svg", D3, H3)) : o.value === "txt" ? (r(), u("svg", O3, T3)) : o.value === "audio" ? (r(), u("svg", P3, L3)) : o.value === "video" ? (r(), u("svg", N3, K3)) : o.value === "excel" ? (r(), u("svg", X3, Q3)) : o.value === "exe" ? (r(), u("svg", e6, s6)) : o.value === "json" ? (r(), u("svg", l6, d6)) : (r(), u("svg", u6, f6));
|
|
788
788
|
}
|
|
789
789
|
}), m6 = {
|
|
790
790
|
key: 0,
|
|
@@ -793,11 +793,11 @@ const f3 = O(p3), v3 = {
|
|
|
793
793
|
key: 1,
|
|
794
794
|
class: "h-[1em] w-[1em]",
|
|
795
795
|
"aria-hidden": "true"
|
|
796
|
-
},
|
|
796
|
+
}, _6 = ["xlink:href"], y6 = ["src"], x6 = {
|
|
797
797
|
key: 1,
|
|
798
798
|
class: "h-[1em] w-[1em]",
|
|
799
799
|
"aria-hidden": "true"
|
|
800
|
-
},
|
|
800
|
+
}, k6 = ["xlink:href"], z6 = ["src"], F6 = /* @__PURE__ */ z({
|
|
801
801
|
name: "IkSvgIcon",
|
|
802
802
|
__name: "index",
|
|
803
803
|
props: {
|
|
@@ -824,84 +824,87 @@ const f3 = O(p3), v3 = {
|
|
|
824
824
|
tableIconType: { default: "icon" }
|
|
825
825
|
},
|
|
826
826
|
setup(t) {
|
|
827
|
-
const
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
}),
|
|
831
|
-
const
|
|
832
|
-
|
|
833
|
-
|
|
827
|
+
const n = t, o = S("iconConfig"), e = m(() => ({
|
|
828
|
+
...(o == null ? void 0 : o.value) || {},
|
|
829
|
+
...n
|
|
830
|
+
})), l = m(() => {
|
|
831
|
+
const { name: s } = e.value;
|
|
832
|
+
return /^http?:\/\//.test(s) ? "img" : /i-[^:]+:[^:]+/.test(s) ? "unocss" : s != null && s.startsWith("iksig") ? "iksig" : s != null && s.includes(":") ? "iconify" : s != null && s.startsWith("iksvg") ? "svg" : "i";
|
|
833
|
+
}), i = m(() => {
|
|
834
|
+
const s = [];
|
|
835
|
+
if (e.value.flip)
|
|
836
|
+
switch (e.value.flip) {
|
|
834
837
|
case "horizontal":
|
|
835
|
-
|
|
838
|
+
s.push("rotateY(180deg)");
|
|
836
839
|
break;
|
|
837
840
|
case "vertical":
|
|
838
|
-
|
|
841
|
+
s.push("rotateX(180deg)");
|
|
839
842
|
break;
|
|
840
843
|
case "both":
|
|
841
|
-
|
|
844
|
+
s.push("rotateX(180deg)"), s.push("rotateY(180deg)");
|
|
842
845
|
break;
|
|
843
846
|
}
|
|
844
|
-
e.rotate &&
|
|
845
|
-
const
|
|
846
|
-
...e.color && { color: e.color },
|
|
847
|
-
...e.size && { fontSize: typeof e.size == "number" ? `${e.size}px` : e.size },
|
|
848
|
-
...
|
|
849
|
-
padding: e.showBg || e.bg ? e.padding : 0,
|
|
850
|
-
...e.color &&
|
|
851
|
-
"--ik-color-icon-dark": e.color,
|
|
852
|
-
"--ik-color-icon-light": e.colorLight || s3.setOpacity(e.color, e.opacity)
|
|
847
|
+
e.value.rotate && s.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
848
|
+
const h = {
|
|
849
|
+
...e.value.color && { color: e.value.color },
|
|
850
|
+
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
851
|
+
...s.length && { transform: s.join(" ") },
|
|
852
|
+
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
853
|
+
...e.value.color && l.value !== "iksig" ? {
|
|
854
|
+
"--ik-color-icon-dark": e.value.color,
|
|
855
|
+
"--ik-color-icon-light": e.value.colorLight || s3.setOpacity(e.value.color, e.value.opacity)
|
|
853
856
|
} : {}
|
|
854
857
|
};
|
|
855
|
-
return e.width && (
|
|
858
|
+
return e.value.width && (h.width = h.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), h;
|
|
856
859
|
});
|
|
857
|
-
return (
|
|
858
|
-
const
|
|
859
|
-
return
|
|
860
|
-
|
|
860
|
+
return (s, h) => {
|
|
861
|
+
const p = E("el-tooltip"), a = E("el-button");
|
|
862
|
+
return e.value.tableIconType === "icon" ? (r(), u("span", m6, [
|
|
863
|
+
e.value.notip || !e.value.title ? (r(), u(
|
|
861
864
|
"i",
|
|
862
865
|
{
|
|
863
866
|
key: 0,
|
|
864
|
-
class:
|
|
865
|
-
[
|
|
866
|
-
"show-bg":
|
|
867
|
-
default:
|
|
868
|
-
small:
|
|
869
|
-
big:
|
|
870
|
-
warning:
|
|
871
|
-
primary:
|
|
872
|
-
success:
|
|
873
|
-
error:
|
|
874
|
-
active:
|
|
875
|
-
disabled:
|
|
867
|
+
class: F(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
868
|
+
[s.name]: l.value === "unocss",
|
|
869
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
870
|
+
default: e.value.size === "default",
|
|
871
|
+
small: e.value.size === "small",
|
|
872
|
+
big: e.value.size === "big",
|
|
873
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
874
|
+
primary: e.value.primary || e.value.type === "primary",
|
|
875
|
+
success: s.success || e.value.type === "success",
|
|
876
|
+
error: e.value.error || e.value.type === "error",
|
|
877
|
+
active: e.value.active,
|
|
878
|
+
disabled: e.value.disabled
|
|
876
879
|
}]),
|
|
877
|
-
style:
|
|
880
|
+
style: k(i.value)
|
|
878
881
|
},
|
|
879
882
|
[
|
|
880
|
-
|
|
881
|
-
|
|
883
|
+
V(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
884
|
+
l.value === "iksig" ? (r(), u(
|
|
882
885
|
"i",
|
|
883
886
|
{
|
|
884
887
|
key: 0,
|
|
885
|
-
class:
|
|
886
|
-
style:
|
|
888
|
+
class: F(`iksig ${e.value.name}`),
|
|
889
|
+
style: k(i.value)
|
|
887
890
|
},
|
|
888
891
|
null,
|
|
889
892
|
6
|
|
890
893
|
/* CLASS, STYLE */
|
|
891
|
-
)) :
|
|
894
|
+
)) : l.value === "svg" ? (r(), u("svg", w6, [
|
|
892
895
|
c("use", {
|
|
893
|
-
"xlink:href": `#${
|
|
894
|
-
}, null, 8,
|
|
895
|
-
])) :
|
|
896
|
+
"xlink:href": `#${e.value.name}`
|
|
897
|
+
}, null, 8, _6)
|
|
898
|
+
])) : l.value === "img" ? (r(), u("img", {
|
|
896
899
|
key: 2,
|
|
897
|
-
src:
|
|
900
|
+
src: e.value.name,
|
|
898
901
|
class: "h-[1em] w-[1em]"
|
|
899
|
-
}, null, 8,
|
|
902
|
+
}, null, 8, y6)) : (r(), u(
|
|
900
903
|
"i",
|
|
901
904
|
{
|
|
902
905
|
key: 3,
|
|
903
|
-
class:
|
|
904
|
-
style:
|
|
906
|
+
class: F(e.value.name),
|
|
907
|
+
style: k(i.value)
|
|
905
908
|
},
|
|
906
909
|
null,
|
|
907
910
|
6
|
|
@@ -910,54 +913,54 @@ const f3 = O(p3), v3 = {
|
|
|
910
913
|
],
|
|
911
914
|
6
|
|
912
915
|
/* CLASS, STYLE */
|
|
913
|
-
)) : (r(),
|
|
916
|
+
)) : (r(), B(p, {
|
|
914
917
|
key: 1,
|
|
915
|
-
content:
|
|
918
|
+
content: e.value.title,
|
|
916
919
|
placement: "top"
|
|
917
920
|
}, {
|
|
918
|
-
default:
|
|
921
|
+
default: C(() => [
|
|
919
922
|
c(
|
|
920
923
|
"i",
|
|
921
924
|
{
|
|
922
|
-
class:
|
|
923
|
-
[
|
|
924
|
-
"show-bg":
|
|
925
|
-
default:
|
|
926
|
-
small:
|
|
927
|
-
big:
|
|
928
|
-
warning:
|
|
929
|
-
primary:
|
|
930
|
-
success:
|
|
931
|
-
error:
|
|
932
|
-
active:
|
|
925
|
+
class: F(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
926
|
+
[s.name]: l.value === "unocss",
|
|
927
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
928
|
+
default: e.value.size === "default",
|
|
929
|
+
small: e.value.size === "small",
|
|
930
|
+
big: e.value.size === "big",
|
|
931
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
932
|
+
primary: s.primary || e.value.type === "primary",
|
|
933
|
+
success: s.success || e.value.type === "success",
|
|
934
|
+
error: e.value.error || e.value.type === "error",
|
|
935
|
+
active: e.value.active
|
|
933
936
|
}]),
|
|
934
|
-
style:
|
|
937
|
+
style: k(i.value)
|
|
935
938
|
},
|
|
936
939
|
[
|
|
937
|
-
|
|
940
|
+
l.value === "iksig" ? (r(), u(
|
|
938
941
|
"i",
|
|
939
942
|
{
|
|
940
943
|
key: 0,
|
|
941
|
-
class:
|
|
942
|
-
style:
|
|
944
|
+
class: F(`iksig ${e.value.name}`),
|
|
945
|
+
style: k(i.value)
|
|
943
946
|
},
|
|
944
947
|
null,
|
|
945
948
|
6
|
|
946
949
|
/* CLASS, STYLE */
|
|
947
|
-
)) :
|
|
950
|
+
)) : l.value === "svg" ? (r(), u("svg", x6, [
|
|
948
951
|
c("use", {
|
|
949
|
-
"xlink:href": `#${
|
|
950
|
-
}, null, 8,
|
|
951
|
-
])) :
|
|
952
|
+
"xlink:href": `#${e.value.name}`
|
|
953
|
+
}, null, 8, k6)
|
|
954
|
+
])) : l.value === "img" ? (r(), u("img", {
|
|
952
955
|
key: 2,
|
|
953
|
-
src:
|
|
956
|
+
src: e.value.name,
|
|
954
957
|
class: "h-[1em] w-[1em]"
|
|
955
|
-
}, null, 8,
|
|
958
|
+
}, null, 8, z6)) : (r(), u(
|
|
956
959
|
"i",
|
|
957
960
|
{
|
|
958
961
|
key: 3,
|
|
959
|
-
class:
|
|
960
|
-
style:
|
|
962
|
+
class: F(e.value.name),
|
|
963
|
+
style: k(i.value)
|
|
961
964
|
},
|
|
962
965
|
null,
|
|
963
966
|
6
|
|
@@ -971,13 +974,13 @@ const f3 = O(p3), v3 = {
|
|
|
971
974
|
_: 1
|
|
972
975
|
/* STABLE */
|
|
973
976
|
}, 8, ["content"]))
|
|
974
|
-
])) : (r(),
|
|
977
|
+
])) : (r(), B(a, {
|
|
975
978
|
key: 1,
|
|
976
|
-
type: ["warning", "error"].includes(
|
|
979
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
977
980
|
}, {
|
|
978
|
-
default:
|
|
981
|
+
default: C(() => [
|
|
979
982
|
P(
|
|
980
|
-
q(
|
|
983
|
+
q(e.value.title),
|
|
981
984
|
1
|
|
982
985
|
/* TEXT */
|
|
983
986
|
)
|
|
@@ -988,10 +991,10 @@ const f3 = O(p3), v3 = {
|
|
|
988
991
|
};
|
|
989
992
|
}
|
|
990
993
|
});
|
|
991
|
-
const
|
|
994
|
+
const b6 = /* @__PURE__ */ U(F6, [["__scopeId", "data-v-1be337e4"]]), H = O(b6), C6 = {
|
|
992
995
|
key: 0,
|
|
993
996
|
class: "exit-main-page-maximize"
|
|
994
|
-
},
|
|
997
|
+
}, S6 = /* @__PURE__ */ z({
|
|
995
998
|
__name: "CloseIcon",
|
|
996
999
|
props: {
|
|
997
1000
|
showBg: {
|
|
@@ -1004,15 +1007,15 @@ const x6 = /* @__PURE__ */ U(b6, [["__scopeId", "data-v-7d95dbf5"]]), H = O(x6),
|
|
|
1004
1007
|
}
|
|
1005
1008
|
},
|
|
1006
1009
|
setup(t) {
|
|
1007
|
-
return (
|
|
1008
|
-
t.showBg && t.fullscreen ? (r(), u("div",
|
|
1009
|
-
|
|
1010
|
+
return (n, o) => (r(), u("div", null, [
|
|
1011
|
+
t.showBg && t.fullscreen ? (r(), u("div", C6, [
|
|
1012
|
+
b(g(H), {
|
|
1010
1013
|
name: "iksvg_guanbidanchuang",
|
|
1011
1014
|
title: "关闭",
|
|
1012
1015
|
size: 20,
|
|
1013
1016
|
error: ""
|
|
1014
1017
|
})
|
|
1015
|
-
])) : (r(),
|
|
1018
|
+
])) : (r(), B(g(H), {
|
|
1016
1019
|
key: 1,
|
|
1017
1020
|
error: "",
|
|
1018
1021
|
name: "iksvg_guanbidanchuang",
|
|
@@ -1022,7 +1025,7 @@ const x6 = /* @__PURE__ */ U(b6, [["__scopeId", "data-v-7d95dbf5"]]), H = O(x6),
|
|
|
1022
1025
|
]));
|
|
1023
1026
|
}
|
|
1024
1027
|
});
|
|
1025
|
-
const V6 = /* @__PURE__ */ U(
|
|
1028
|
+
const V6 = /* @__PURE__ */ U(S6, [["__scopeId", "data-v-79f49df8"]]), R6 = { class: "base-header" }, B6 = /* @__PURE__ */ z({
|
|
1026
1029
|
__name: "IkBaseDialog",
|
|
1027
1030
|
props: /* @__PURE__ */ W({
|
|
1028
1031
|
title: { default: "" },
|
|
@@ -1043,64 +1046,64 @@ const V6 = /* @__PURE__ */ U(C6, [["__scopeId", "data-v-79f49df8"]]), R6 = { cla
|
|
|
1043
1046
|
}),
|
|
1044
1047
|
emits: ["update:modelValue"],
|
|
1045
1048
|
setup(t) {
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1048
|
-
}, i =
|
|
1049
|
+
const n = t, o = G(t, "modelValue"), e = R(n.fullscreen), l = () => {
|
|
1050
|
+
e.value = !e.value;
|
|
1051
|
+
}, i = z({
|
|
1049
1052
|
setup() {
|
|
1050
1053
|
return () => Q(V6, {
|
|
1051
|
-
showBg:
|
|
1052
|
-
fullscreen:
|
|
1054
|
+
showBg: n.showCloseBg,
|
|
1055
|
+
fullscreen: n.fullscreen
|
|
1053
1056
|
});
|
|
1054
1057
|
}
|
|
1055
1058
|
});
|
|
1056
|
-
return (
|
|
1057
|
-
const
|
|
1058
|
-
return r(),
|
|
1059
|
+
return (s, h) => {
|
|
1060
|
+
const p = E("el-dialog");
|
|
1061
|
+
return r(), B(p, e3({
|
|
1059
1062
|
modelValue: o.value,
|
|
1060
|
-
"onUpdate:modelValue":
|
|
1061
|
-
},
|
|
1063
|
+
"onUpdate:modelValue": h[0] || (h[0] = (a) => o.value = a)
|
|
1064
|
+
}, s.$attrs, {
|
|
1062
1065
|
"close-icon": g(i),
|
|
1063
|
-
class: `ik-base-dialog ${
|
|
1064
|
-
fullscreen:
|
|
1066
|
+
class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
|
|
1067
|
+
fullscreen: e.value,
|
|
1065
1068
|
"modal-class": "baseDialog"
|
|
1066
1069
|
}), t3({
|
|
1067
|
-
icon:
|
|
1068
|
-
$(
|
|
1070
|
+
icon: C(() => [
|
|
1071
|
+
$(s.$slots, "title", {}, () => [
|
|
1069
1072
|
P(
|
|
1070
|
-
q(
|
|
1073
|
+
q(s.title),
|
|
1071
1074
|
1
|
|
1072
1075
|
/* TEXT */
|
|
1073
1076
|
)
|
|
1074
1077
|
])
|
|
1075
1078
|
]),
|
|
1076
|
-
header:
|
|
1079
|
+
header: C(() => [
|
|
1077
1080
|
c("div", R6, [
|
|
1078
|
-
$(
|
|
1081
|
+
$(s.$slots, "header", {}, () => [
|
|
1079
1082
|
P(
|
|
1080
|
-
q(
|
|
1083
|
+
q(s.title),
|
|
1081
1084
|
1
|
|
1082
1085
|
/* TEXT */
|
|
1083
1086
|
)
|
|
1084
1087
|
])
|
|
1085
1088
|
]),
|
|
1086
|
-
|
|
1089
|
+
s.$attrs.showClose ? (r(), B(g(H), {
|
|
1087
1090
|
key: 0,
|
|
1088
|
-
onClick:
|
|
1089
|
-
name:
|
|
1091
|
+
onClick: l,
|
|
1092
|
+
name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
1090
1093
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
1091
|
-
title:
|
|
1092
|
-
}, null, 8, ["name", "title"])) :
|
|
1094
|
+
title: e.value ? "退出全屏" : "全屏"
|
|
1095
|
+
}, null, 8, ["name", "title"])) : V("v-if", !0)
|
|
1093
1096
|
]),
|
|
1094
|
-
default:
|
|
1095
|
-
$(
|
|
1097
|
+
default: C(() => [
|
|
1098
|
+
$(s.$slots, "default")
|
|
1096
1099
|
]),
|
|
1097
1100
|
_: 2
|
|
1098
1101
|
/* DYNAMIC */
|
|
1099
1102
|
}, [
|
|
1100
|
-
|
|
1103
|
+
s.$slots.footer ? {
|
|
1101
1104
|
name: "footer",
|
|
1102
|
-
fn:
|
|
1103
|
-
$(
|
|
1105
|
+
fn: C(() => [
|
|
1106
|
+
$(s.$slots, "footer")
|
|
1104
1107
|
]),
|
|
1105
1108
|
key: "0"
|
|
1106
1109
|
} : void 0
|
|
@@ -1109,134 +1112,134 @@ const V6 = /* @__PURE__ */ U(C6, [["__scopeId", "data-v-79f49df8"]]), R6 = { cla
|
|
|
1109
1112
|
}
|
|
1110
1113
|
});
|
|
1111
1114
|
const I6 = O(B6);
|
|
1112
|
-
function M6(t,
|
|
1113
|
-
function
|
|
1114
|
-
return i instanceof o ? i : new o(function(
|
|
1115
|
-
|
|
1115
|
+
function M6(t, n, o, e) {
|
|
1116
|
+
function l(i) {
|
|
1117
|
+
return i instanceof o ? i : new o(function(s) {
|
|
1118
|
+
s(i);
|
|
1116
1119
|
});
|
|
1117
1120
|
}
|
|
1118
|
-
return new (o || (o = Promise))(function(i,
|
|
1119
|
-
function
|
|
1121
|
+
return new (o || (o = Promise))(function(i, s) {
|
|
1122
|
+
function h(v) {
|
|
1120
1123
|
try {
|
|
1121
|
-
|
|
1124
|
+
a(e.next(v));
|
|
1122
1125
|
} catch (d) {
|
|
1123
|
-
|
|
1126
|
+
s(d);
|
|
1124
1127
|
}
|
|
1125
1128
|
}
|
|
1126
|
-
function v
|
|
1129
|
+
function p(v) {
|
|
1127
1130
|
try {
|
|
1128
|
-
|
|
1131
|
+
a(e.throw(v));
|
|
1129
1132
|
} catch (d) {
|
|
1130
|
-
|
|
1133
|
+
s(d);
|
|
1131
1134
|
}
|
|
1132
1135
|
}
|
|
1133
|
-
function
|
|
1134
|
-
|
|
1136
|
+
function a(v) {
|
|
1137
|
+
v.done ? i(v.value) : l(v.value).then(h, p);
|
|
1135
1138
|
}
|
|
1136
|
-
|
|
1139
|
+
a((e = e.apply(t, n || [])).next());
|
|
1137
1140
|
});
|
|
1138
1141
|
}
|
|
1139
|
-
function D6(t,
|
|
1142
|
+
function D6(t, n) {
|
|
1140
1143
|
var o = { label: 0, sent: function() {
|
|
1141
1144
|
if (i[0] & 1)
|
|
1142
1145
|
throw i[1];
|
|
1143
1146
|
return i[1];
|
|
1144
|
-
}, trys: [], ops: [] },
|
|
1145
|
-
return
|
|
1147
|
+
}, trys: [], ops: [] }, e, l, i, s;
|
|
1148
|
+
return s = { next: h(0), throw: h(1), return: h(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
1146
1149
|
return this;
|
|
1147
|
-
}),
|
|
1148
|
-
function
|
|
1149
|
-
return function(
|
|
1150
|
-
return
|
|
1150
|
+
}), s;
|
|
1151
|
+
function h(a) {
|
|
1152
|
+
return function(v) {
|
|
1153
|
+
return p([a, v]);
|
|
1151
1154
|
};
|
|
1152
1155
|
}
|
|
1153
|
-
function
|
|
1154
|
-
if (
|
|
1156
|
+
function p(a) {
|
|
1157
|
+
if (e)
|
|
1155
1158
|
throw new TypeError("Generator is already executing.");
|
|
1156
|
-
for (;
|
|
1159
|
+
for (; s && (s = 0, a[0] && (o = 0)), o; )
|
|
1157
1160
|
try {
|
|
1158
|
-
if (
|
|
1161
|
+
if (e = 1, l && (i = a[0] & 2 ? l.return : a[0] ? l.throw || ((i = l.return) && i.call(l), 0) : l.next) && !(i = i.call(l, a[1])).done)
|
|
1159
1162
|
return i;
|
|
1160
|
-
switch (
|
|
1163
|
+
switch (l = 0, i && (a = [a[0] & 2, i.value]), a[0]) {
|
|
1161
1164
|
case 0:
|
|
1162
1165
|
case 1:
|
|
1163
|
-
i =
|
|
1166
|
+
i = a;
|
|
1164
1167
|
break;
|
|
1165
1168
|
case 4:
|
|
1166
|
-
return o.label++, { value:
|
|
1169
|
+
return o.label++, { value: a[1], done: !1 };
|
|
1167
1170
|
case 5:
|
|
1168
|
-
o.label++,
|
|
1171
|
+
o.label++, l = a[1], a = [0];
|
|
1169
1172
|
continue;
|
|
1170
1173
|
case 7:
|
|
1171
|
-
|
|
1174
|
+
a = o.ops.pop(), o.trys.pop();
|
|
1172
1175
|
continue;
|
|
1173
1176
|
default:
|
|
1174
|
-
if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (
|
|
1177
|
+
if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (a[0] === 6 || a[0] === 2)) {
|
|
1175
1178
|
o = 0;
|
|
1176
1179
|
continue;
|
|
1177
1180
|
}
|
|
1178
|
-
if (
|
|
1179
|
-
o.label =
|
|
1181
|
+
if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
|
|
1182
|
+
o.label = a[1];
|
|
1180
1183
|
break;
|
|
1181
1184
|
}
|
|
1182
|
-
if (
|
|
1183
|
-
o.label = i[1], i =
|
|
1185
|
+
if (a[0] === 6 && o.label < i[1]) {
|
|
1186
|
+
o.label = i[1], i = a;
|
|
1184
1187
|
break;
|
|
1185
1188
|
}
|
|
1186
1189
|
if (i && o.label < i[2]) {
|
|
1187
|
-
o.label = i[2], o.ops.push(
|
|
1190
|
+
o.label = i[2], o.ops.push(a);
|
|
1188
1191
|
break;
|
|
1189
1192
|
}
|
|
1190
1193
|
i[2] && o.ops.pop(), o.trys.pop();
|
|
1191
1194
|
continue;
|
|
1192
1195
|
}
|
|
1193
|
-
|
|
1194
|
-
} catch (
|
|
1195
|
-
|
|
1196
|
+
a = n.call(t, o);
|
|
1197
|
+
} catch (v) {
|
|
1198
|
+
a = [6, v], l = 0;
|
|
1196
1199
|
} finally {
|
|
1197
|
-
|
|
1200
|
+
e = i = 0;
|
|
1198
1201
|
}
|
|
1199
|
-
if (
|
|
1200
|
-
throw
|
|
1201
|
-
return { value:
|
|
1202
|
+
if (a[0] & 5)
|
|
1203
|
+
throw a[1];
|
|
1204
|
+
return { value: a[0] ? a[1] : void 0, done: !0 };
|
|
1202
1205
|
}
|
|
1203
1206
|
}
|
|
1204
|
-
var $6 = function(t,
|
|
1207
|
+
var $6 = function(t, n) {
|
|
1205
1208
|
return M6(void 0, void 0, void 0, function() {
|
|
1206
1209
|
return D6(this, function(o) {
|
|
1207
|
-
return [2, new Promise(function(
|
|
1210
|
+
return [2, new Promise(function(e, l) {
|
|
1208
1211
|
try {
|
|
1209
1212
|
if (window.DocsAPI)
|
|
1210
|
-
return
|
|
1211
|
-
var i = document.getElementById(
|
|
1213
|
+
return e(null);
|
|
1214
|
+
var i = document.getElementById(n);
|
|
1212
1215
|
if (i)
|
|
1213
|
-
var
|
|
1214
|
-
var
|
|
1215
|
-
if (!
|
|
1216
|
-
if (clearInterval(
|
|
1217
|
-
return
|
|
1218
|
-
var
|
|
1219
|
-
i.remove(), document.body.appendChild(
|
|
1216
|
+
var s = setInterval(function() {
|
|
1217
|
+
var p = i.getAttribute("loading");
|
|
1218
|
+
if (!p) {
|
|
1219
|
+
if (clearInterval(s), window.DocsAPI)
|
|
1220
|
+
return e(null);
|
|
1221
|
+
var a = N(n, t, e, l);
|
|
1222
|
+
i.remove(), document.body.appendChild(a);
|
|
1220
1223
|
}
|
|
1221
1224
|
}, 500);
|
|
1222
1225
|
else {
|
|
1223
|
-
var
|
|
1224
|
-
document.body.appendChild(
|
|
1226
|
+
var h = N(n, t, e, l);
|
|
1227
|
+
document.body.appendChild(h);
|
|
1225
1228
|
}
|
|
1226
|
-
} catch (
|
|
1227
|
-
console.error(
|
|
1229
|
+
} catch (p) {
|
|
1230
|
+
console.error(p);
|
|
1228
1231
|
}
|
|
1229
1232
|
})];
|
|
1230
1233
|
});
|
|
1231
1234
|
});
|
|
1232
|
-
}, N = function(t,
|
|
1233
|
-
var
|
|
1234
|
-
return
|
|
1235
|
-
|
|
1236
|
-
},
|
|
1237
|
-
|
|
1238
|
-
},
|
|
1239
|
-
}, j =
|
|
1235
|
+
}, N = function(t, n, o, e) {
|
|
1236
|
+
var l = document.createElement("script");
|
|
1237
|
+
return l.id = t, l.type = "text/javascript", l.src = n, l.async = !0, l.onload = function() {
|
|
1238
|
+
l.removeAttribute("loading"), o(null);
|
|
1239
|
+
}, l.onerror = function(i) {
|
|
1240
|
+
l.removeAttribute("loading"), e(i);
|
|
1241
|
+
}, l.setAttribute("loading", ""), l;
|
|
1242
|
+
}, j = z({
|
|
1240
1243
|
name: "DocumentEditor",
|
|
1241
1244
|
props: {
|
|
1242
1245
|
id: {
|
|
@@ -1288,9 +1291,9 @@ var $6 = function(t, e) {
|
|
|
1288
1291
|
events_onRequestSelectDocument: Function
|
|
1289
1292
|
},
|
|
1290
1293
|
mounted: function() {
|
|
1291
|
-
var t = this,
|
|
1292
|
-
|
|
1293
|
-
var o = "".concat(
|
|
1294
|
+
var t = this, n = this.documentServerUrl;
|
|
1295
|
+
n.endsWith("/") || (n += "/");
|
|
1296
|
+
var o = "".concat(n, "web-apps/apps/api/documents/api.js");
|
|
1294
1297
|
$6(o, "onlyoffice-api-script").then(function() {
|
|
1295
1298
|
return t.onLoad();
|
|
1296
1299
|
}).catch(function() {
|
|
@@ -1298,49 +1301,49 @@ var $6 = function(t, e) {
|
|
|
1298
1301
|
});
|
|
1299
1302
|
},
|
|
1300
1303
|
unmounted: function() {
|
|
1301
|
-
var t,
|
|
1302
|
-
!((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[
|
|
1304
|
+
var t, n = this.id || "";
|
|
1305
|
+
!((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0);
|
|
1303
1306
|
},
|
|
1304
1307
|
watch: {
|
|
1305
1308
|
config: {
|
|
1306
|
-
handler: function(t,
|
|
1309
|
+
handler: function(t, n) {
|
|
1307
1310
|
this.onChangeProps();
|
|
1308
1311
|
},
|
|
1309
1312
|
deep: !0
|
|
1310
1313
|
},
|
|
1311
|
-
document_fileType: function(t,
|
|
1314
|
+
document_fileType: function(t, n) {
|
|
1312
1315
|
this.onChangeProps();
|
|
1313
1316
|
},
|
|
1314
|
-
document_title: function(t,
|
|
1317
|
+
document_title: function(t, n) {
|
|
1315
1318
|
this.onChangeProps();
|
|
1316
1319
|
},
|
|
1317
|
-
documentType: function(t,
|
|
1320
|
+
documentType: function(t, n) {
|
|
1318
1321
|
this.onChangeProps();
|
|
1319
1322
|
},
|
|
1320
|
-
editorConfig_lang: function(t,
|
|
1323
|
+
editorConfig_lang: function(t, n) {
|
|
1321
1324
|
this.onChangeProps();
|
|
1322
1325
|
},
|
|
1323
|
-
height: function(t,
|
|
1326
|
+
height: function(t, n) {
|
|
1324
1327
|
this.onChangeProps();
|
|
1325
1328
|
},
|
|
1326
|
-
type: function(t,
|
|
1329
|
+
type: function(t, n) {
|
|
1327
1330
|
this.onChangeProps();
|
|
1328
1331
|
},
|
|
1329
|
-
width: function(t,
|
|
1332
|
+
width: function(t, n) {
|
|
1330
1333
|
this.onChangeProps();
|
|
1331
1334
|
}
|
|
1332
1335
|
},
|
|
1333
1336
|
methods: {
|
|
1334
1337
|
onLoad: function() {
|
|
1335
|
-
var t,
|
|
1338
|
+
var t, n;
|
|
1336
1339
|
try {
|
|
1337
1340
|
var o = this.id || "";
|
|
1338
1341
|
if (window.DocsAPI || this.onError(-3), !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[o]) {
|
|
1339
1342
|
console.log("Skip loading. Instance already exists", o);
|
|
1340
1343
|
return;
|
|
1341
1344
|
}
|
|
1342
|
-
!((
|
|
1343
|
-
var
|
|
1345
|
+
!((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances || (window.DocEditor = { instances: {} });
|
|
1346
|
+
var e = Object.assign({
|
|
1344
1347
|
document: {
|
|
1345
1348
|
fileType: this.document_fileType,
|
|
1346
1349
|
title: this.document_title
|
|
@@ -1375,43 +1378,43 @@ var $6 = function(t, e) {
|
|
|
1375
1378
|
height: this.height,
|
|
1376
1379
|
type: this.type,
|
|
1377
1380
|
width: this.width
|
|
1378
|
-
}, this.config || {}),
|
|
1379
|
-
window.DocEditor.instances[o] =
|
|
1381
|
+
}, this.config || {}), l = window.DocsAPI.DocEditor(o, e);
|
|
1382
|
+
window.DocEditor.instances[o] = l;
|
|
1380
1383
|
} catch (i) {
|
|
1381
1384
|
console.error(i), this.onError(-1);
|
|
1382
1385
|
}
|
|
1383
1386
|
},
|
|
1384
1387
|
onError: function(t) {
|
|
1385
|
-
var
|
|
1388
|
+
var n;
|
|
1386
1389
|
switch (t) {
|
|
1387
1390
|
case -2:
|
|
1388
|
-
|
|
1391
|
+
n = "Error load DocsAPI from " + this.documentServerUrl;
|
|
1389
1392
|
break;
|
|
1390
1393
|
case -3:
|
|
1391
|
-
|
|
1394
|
+
n = "DocsAPI is not defined";
|
|
1392
1395
|
break;
|
|
1393
1396
|
default:
|
|
1394
|
-
|
|
1397
|
+
n = "Unknown error loading component", t = -1;
|
|
1395
1398
|
}
|
|
1396
|
-
typeof this.onLoadComponentError > "u" ? console.error(
|
|
1399
|
+
typeof this.onLoadComponentError > "u" ? console.error(n) : this.onLoadComponentError(t, n);
|
|
1397
1400
|
},
|
|
1398
1401
|
onAppReady: function() {
|
|
1399
1402
|
var t = this.id || "";
|
|
1400
1403
|
this.events_onAppReady(window.DocEditor.instances[t]);
|
|
1401
1404
|
},
|
|
1402
1405
|
onChangeProps: function() {
|
|
1403
|
-
var t,
|
|
1404
|
-
!((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[
|
|
1406
|
+
var t, n = this.id || "";
|
|
1407
|
+
!((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
|
|
1405
1408
|
}
|
|
1406
1409
|
}
|
|
1407
1410
|
});
|
|
1408
1411
|
const q6 = ["id"];
|
|
1409
|
-
function H6(t,
|
|
1412
|
+
function H6(t, n, o, e, l, i) {
|
|
1410
1413
|
return r(), u("div", { id: t.id }, null, 8, q6);
|
|
1411
1414
|
}
|
|
1412
1415
|
j.render = H6;
|
|
1413
1416
|
j.__file = "src/components/DocumentEditor.vue";
|
|
1414
|
-
const O6 = /* @__PURE__ */
|
|
1417
|
+
const O6 = /* @__PURE__ */ z({
|
|
1415
1418
|
__name: "IkOnlyOffice",
|
|
1416
1419
|
props: {
|
|
1417
1420
|
// 文件服务器的服务的地址
|
|
@@ -1432,26 +1435,26 @@ const O6 = /* @__PURE__ */ F({
|
|
|
1432
1435
|
}
|
|
1433
1436
|
},
|
|
1434
1437
|
setup(t) {
|
|
1435
|
-
const
|
|
1438
|
+
const n = t, o = R({
|
|
1436
1439
|
width: "100%",
|
|
1437
1440
|
height: "100%",
|
|
1438
|
-
...
|
|
1439
|
-
...
|
|
1440
|
-
}),
|
|
1441
|
-
console.info("文档加载完成",
|
|
1441
|
+
...n.configOptions || {},
|
|
1442
|
+
...n.configOptions
|
|
1443
|
+
}), e = () => {
|
|
1444
|
+
console.info("文档加载完成", n.configOptions);
|
|
1442
1445
|
};
|
|
1443
|
-
return (
|
|
1446
|
+
return (l, i) => (r(), u(
|
|
1444
1447
|
"div",
|
|
1445
1448
|
{
|
|
1446
|
-
style:
|
|
1449
|
+
style: k({ height: n.officeHeight })
|
|
1447
1450
|
},
|
|
1448
1451
|
[
|
|
1449
|
-
|
|
1452
|
+
b(g(j), {
|
|
1450
1453
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1451
1454
|
ref: "editorRef",
|
|
1452
1455
|
"document-server-url": t.documentServerUrl,
|
|
1453
1456
|
config: o.value,
|
|
1454
|
-
events_onDocumentReady:
|
|
1457
|
+
events_onDocumentReady: e
|
|
1455
1458
|
}, null, 8, ["id", "document-server-url", "config"])
|
|
1456
1459
|
],
|
|
1457
1460
|
4
|
|
@@ -1459,7 +1462,7 @@ const O6 = /* @__PURE__ */ F({
|
|
|
1459
1462
|
));
|
|
1460
1463
|
}
|
|
1461
1464
|
});
|
|
1462
|
-
const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6), T6 = ["onClick"], P6 = { class: "text" }, U6 = { class: "fileName" }, j6 = { class: "size" }, L6 = /* @__PURE__ */
|
|
1465
|
+
const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6), T6 = ["onClick"], P6 = { class: "text" }, U6 = { class: "fileName" }, j6 = { class: "size" }, L6 = /* @__PURE__ */ z({
|
|
1463
1466
|
__name: "IkPreviewFile",
|
|
1464
1467
|
props: {
|
|
1465
1468
|
list: {
|
|
@@ -1529,80 +1532,80 @@ const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6)
|
|
|
1529
1532
|
}
|
|
1530
1533
|
},
|
|
1531
1534
|
setup(t) {
|
|
1532
|
-
const
|
|
1535
|
+
const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = d3(n), l = m(() => ({
|
|
1533
1536
|
name: "name",
|
|
1534
1537
|
url: "url",
|
|
1535
1538
|
suffix: "suffix",
|
|
1536
1539
|
size: "size",
|
|
1537
|
-
...
|
|
1538
|
-
})), i =
|
|
1539
|
-
var w,
|
|
1540
|
+
...n.field
|
|
1541
|
+
})), i = R({}), s = R(!1), h = (d) => {
|
|
1542
|
+
var w, _;
|
|
1540
1543
|
i.value = {
|
|
1541
1544
|
...d,
|
|
1542
1545
|
name: d.name,
|
|
1543
1546
|
url: A(
|
|
1544
1547
|
o.value,
|
|
1545
|
-
d.url || ((
|
|
1548
|
+
d.url || ((_ = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : _.id) || (d == null ? void 0 : d.id)
|
|
1546
1549
|
)
|
|
1547
|
-
},
|
|
1548
|
-
},
|
|
1550
|
+
}, s.value = !0;
|
|
1551
|
+
}, p = (d) => {
|
|
1549
1552
|
a3.downloadFile(
|
|
1550
1553
|
A(
|
|
1551
1554
|
o.value,
|
|
1552
|
-
d[
|
|
1555
|
+
d[l.value.url] || d.attachmentId || d.id
|
|
1553
1556
|
),
|
|
1554
|
-
d[
|
|
1557
|
+
d[l.value.name] || d.attachmentName
|
|
1555
1558
|
);
|
|
1556
|
-
},
|
|
1559
|
+
}, a = m(() => l3.isNumber(n.width) ? `${n.width}px` : n.width), v = m(() => n.list.map((d) => ({
|
|
1557
1560
|
...d,
|
|
1558
|
-
name: d[
|
|
1559
|
-
size: d[
|
|
1560
|
-
suffix: d[
|
|
1561
|
+
name: d[l.value.name] || d.attachmentName,
|
|
1562
|
+
size: d[l.value.size] || d.fileSize || d.attachmentSize,
|
|
1563
|
+
suffix: d[l.value.suffix] || d.attachmentSuffix
|
|
1561
1564
|
})));
|
|
1562
1565
|
return (d, w) => {
|
|
1563
|
-
var
|
|
1566
|
+
var _, y, I;
|
|
1564
1567
|
return r(), u(
|
|
1565
1568
|
T,
|
|
1566
1569
|
null,
|
|
1567
1570
|
[
|
|
1568
|
-
(
|
|
1571
|
+
(_ = t.list) != null && _.length ? (r(!0), u(
|
|
1569
1572
|
T,
|
|
1570
1573
|
{ key: 0 },
|
|
1571
|
-
n3(
|
|
1572
|
-
var
|
|
1574
|
+
n3(v.value, (x, f) => {
|
|
1575
|
+
var M;
|
|
1573
1576
|
return r(), u(
|
|
1574
1577
|
"div",
|
|
1575
1578
|
{
|
|
1576
|
-
class:
|
|
1579
|
+
class: F(["iking-privew-annex", { "is-bg": t.showBg }]),
|
|
1577
1580
|
key: f,
|
|
1578
|
-
style:
|
|
1579
|
-
marginBottom: f == ((
|
|
1580
|
-
width:
|
|
1581
|
+
style: k({
|
|
1582
|
+
marginBottom: f == ((M = t.list) == null ? void 0 : M.length) - 1 ? "0" : "10px",
|
|
1583
|
+
width: a.value
|
|
1581
1584
|
})
|
|
1582
1585
|
},
|
|
1583
1586
|
[
|
|
1584
1587
|
c("div", {
|
|
1585
1588
|
class: "file-card",
|
|
1586
|
-
onClick: (
|
|
1589
|
+
onClick: (D) => h(x)
|
|
1587
1590
|
}, [
|
|
1588
|
-
|
|
1589
|
-
file:
|
|
1590
|
-
style:
|
|
1591
|
+
b(g6, {
|
|
1592
|
+
file: x,
|
|
1593
|
+
style: k({ height: `${t.iconSize}px` }),
|
|
1591
1594
|
class: "ikui-w-auto",
|
|
1592
|
-
fields:
|
|
1595
|
+
fields: l.value
|
|
1593
1596
|
}, null, 8, ["file", "style", "fields"]),
|
|
1594
1597
|
c("div", P6, [
|
|
1595
1598
|
c(
|
|
1596
1599
|
"div",
|
|
1597
1600
|
U6,
|
|
1598
|
-
q(
|
|
1601
|
+
q(x.name),
|
|
1599
1602
|
1
|
|
1600
1603
|
/* TEXT */
|
|
1601
1604
|
),
|
|
1602
1605
|
c(
|
|
1603
1606
|
"div",
|
|
1604
1607
|
j6,
|
|
1605
|
-
q(g(c3)(
|
|
1608
|
+
q(g(c3)(x.size)),
|
|
1606
1609
|
1
|
|
1607
1610
|
/* TEXT */
|
|
1608
1611
|
)
|
|
@@ -1610,22 +1613,22 @@ const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6)
|
|
|
1610
1613
|
c(
|
|
1611
1614
|
"div",
|
|
1612
1615
|
{
|
|
1613
|
-
class:
|
|
1616
|
+
class: F(["flex flex-center", { "hover-show": t.iconHoverShow }])
|
|
1614
1617
|
},
|
|
1615
1618
|
[
|
|
1616
|
-
|
|
1619
|
+
b(g(H), {
|
|
1617
1620
|
name: "iksvg_daochu",
|
|
1618
|
-
onClick: o3((
|
|
1621
|
+
onClick: o3((D) => p(x), ["stop"]),
|
|
1619
1622
|
bg: t.showBg,
|
|
1620
1623
|
size: t.showBg ? "default" : 20
|
|
1621
1624
|
}, null, 8, ["onClick", "bg", "size"]),
|
|
1622
|
-
|
|
1625
|
+
b(g(H), {
|
|
1623
1626
|
name: "iksvg_yulan",
|
|
1624
1627
|
bg: t.showBg,
|
|
1625
1628
|
size: t.showBg ? "default" : 20
|
|
1626
1629
|
}, null, 8, ["bg", "size"]),
|
|
1627
1630
|
$(d.$slots, "operation", {
|
|
1628
|
-
data: { ...
|
|
1631
|
+
data: { ...x, findex: f }
|
|
1629
1632
|
})
|
|
1630
1633
|
],
|
|
1631
1634
|
2
|
|
@@ -1639,15 +1642,15 @@ const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6)
|
|
|
1639
1642
|
}),
|
|
1640
1643
|
128
|
|
1641
1644
|
/* KEYED_FRAGMENT */
|
|
1642
|
-
)) :
|
|
1643
|
-
|
|
1644
|
-
show:
|
|
1645
|
-
"onUpdate:show": w[0] || (w[0] = (
|
|
1645
|
+
)) : V("v-if", !0),
|
|
1646
|
+
b(g(p3), {
|
|
1647
|
+
show: s.value,
|
|
1648
|
+
"onUpdate:show": w[0] || (w[0] = (x) => s.value = x),
|
|
1646
1649
|
loadUrl: g(o),
|
|
1647
1650
|
file: i.value,
|
|
1648
|
-
onlyofficeServer: ((
|
|
1649
|
-
onlyOfficeConfig: g(
|
|
1650
|
-
onlyOfficeAccept: ((
|
|
1651
|
+
onlyofficeServer: ((y = g(e)) == null ? void 0 : y.serverUrl) || t.onlyofficeServer,
|
|
1652
|
+
onlyOfficeConfig: g(e),
|
|
1653
|
+
onlyOfficeAccept: ((I = g(e)) == null ? void 0 : I.accept) || t.onlyOfficeAccept
|
|
1651
1654
|
}, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
|
|
1652
1655
|
],
|
|
1653
1656
|
64
|