@skyfox2000/webui 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/modules/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/lib/assets/modules/file-upload-BYIvmkmy.js +204 -0
- package/lib/assets/modules/form-excel-BUX2QW11.js +235 -0
- package/lib/assets/modules/{index-CTVMLeDF.js → index-DcRkhkn2.js} +1 -1
- package/lib/assets/modules/index-jl5Ie2tZ.js +112 -0
- package/lib/assets/modules/{menuTabs-BtOiocOC.js → menuTabs-DY1XBq16.js} +134 -139
- package/lib/assets/modules/{toolIcon-B9Mw9Ktm.js → toolIcon-BDIOj_3l.js} +1 -1
- package/lib/assets/modules/uploadList-BPG5whz7.js +369 -0
- package/lib/assets/modules/{index-D9kzQ23e.js → uploadList-D2Ux4h1N.js} +553 -513
- package/lib/components/common/index.d.ts +2 -0
- package/lib/components/common/loading/index.vue.d.ts +3 -0
- package/lib/components/content/dialog/index.vue.d.ts +1 -0
- package/lib/components/content/drawer/index.vue.d.ts +2 -0
- package/lib/components/content/form/formItem.vue.d.ts +2 -0
- package/lib/components/form/autoComplete/index.vue.d.ts +41 -4
- package/lib/components/form/cascader/index.vue.d.ts +13 -2
- package/lib/components/form/checkbox/index.vue.d.ts +13 -2
- package/lib/components/form/index.d.ts +1 -0
- package/lib/components/form/propEditor/index.vue.d.ts +10 -1
- package/lib/components/form/radio/index.vue.d.ts +13 -2
- package/lib/components/form/select/index.vue.d.ts +13 -2
- package/lib/components/form/upload/uploadList.vue.d.ts +14 -3
- package/lib/components/index.d.ts +2 -2
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +15 -15
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/UploadForm/index.js +60 -87
- package/lib/index.d.ts +2 -2
- package/lib/typings/form.d.ts +18 -2
- package/lib/typings/option.d.ts +16 -2
- package/lib/typings/page.d.ts +1 -0
- package/lib/utils/file-upload.d.ts +4 -2
- package/lib/utils/form-excel.d.ts +3 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +1085 -1063
- package/package.json +1 -1
- package/scripts/userInput.py +2 -0
- package/src/components/common/index.ts +3 -0
- package/src/components/common/loading/index.vue +11 -0
- package/src/components/content/dialog/index.vue +15 -8
- package/src/components/content/dialog/uploadForm.vue +38 -79
- package/src/components/content/drawer/index.vue +26 -6
- package/src/components/content/form/formItem.vue +21 -5
- package/src/components/content/form/index.vue +4 -2
- package/src/components/content/search/searchItem.vue +1 -1
- package/src/components/form/autoComplete/index.vue +12 -4
- package/src/components/form/cascader/index.vue +1 -1
- package/src/components/form/datePicker/index.vue +1 -1
- package/src/components/form/index.ts +1 -0
- package/src/components/form/input/inputIcon.vue +1 -1
- package/src/components/form/propEditor/index.vue +113 -33
- package/src/components/form/select/index.vue +27 -17
- package/src/components/form/upload/uploadList.vue +174 -34
- package/src/components/index.ts +13 -1
- package/src/directives/permission.ts +2 -2
- package/src/index.ts +3 -1
- package/src/typings/form.d.ts +18 -2
- package/src/typings/option.d.ts +16 -2
- package/src/typings/page.d.ts +1 -0
- package/src/utils/download.ts +1 -1
- package/src/utils/eventbus.ts +1 -1
- package/src/utils/file-upload.ts +75 -14
- package/src/utils/form-excel.ts +50 -1
- package/src/utils/form-validate.ts +18 -1
- package/src/utils/form.ts +3 -1
- package/src/utils/options.ts +38 -12
- package/lib/assets/modules/file-upload-CZO-pMJd.js +0 -176
- package/lib/assets/modules/form-excel-N-2OYqKv.js +0 -211
- package/lib/assets/modules/index-BnHnS9ug.js +0 -111
- package/lib/assets/modules/uploadList-B4LxzsC6.js +0 -210
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as q, computed as j, ref as y, watch as
|
|
2
|
-
import { a as w, _ as
|
|
3
|
-
import { c as D, Q as E, ad as P, T as M, S as R, u as F, a as H, R as X, r as V, ab as z } from "./
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as q, computed as j, ref as y, watch as b, withCtx as d, createElementBlock as g, normalizeStyle as T, createElementVNode as m, inject as J, onMounted as N, createVNode as l, toDisplayString as $, Fragment as L, createTextVNode as K, reactive as Q, nextTick as W, renderList as Y, withModifiers as G } from "vue";
|
|
2
|
+
import { a as w, _ as k } from "./toolIcon-BDIOj_3l.js";
|
|
3
|
+
import { c as D, Q as E, ad as P, T as M, S as R, u as F, a as H, R as X, r as V, ab as z } from "./uploadList-D2Ux4h1N.js";
|
|
4
|
+
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import { theme as O, Breadcrumb as ee, Modal as te, Flex as ne, LayoutHeader as oe, Space as se, Menu as ie, Tabs as ce, TabPane as ae } from "ant-design-vue";
|
|
5
6
|
import { mainAppApis as U } from "@skyfox2000/microbase";
|
|
6
7
|
import { SERVER_HOST as B } from "@skyfox2000/fapi";
|
|
7
8
|
import "vue-m-message";
|
|
8
9
|
import "async-validator";
|
|
9
10
|
import "dayjs";
|
|
10
11
|
import "vue-draggable-next";
|
|
11
|
-
const
|
|
12
|
+
const le = /* @__PURE__ */ x({
|
|
12
13
|
__name: "appicon",
|
|
13
14
|
props: {
|
|
14
15
|
icon: {
|
|
15
16
|
type: String
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const s =
|
|
19
|
+
setup(c) {
|
|
20
|
+
const s = c, e = D({
|
|
20
21
|
iconUrl: `${B.APP_ICONS}`,
|
|
21
22
|
icon: s.icon
|
|
22
23
|
});
|
|
23
|
-
return (
|
|
24
|
+
return (r, a) => c.icon ? (u(), h(t(e), C({
|
|
24
25
|
key: 0,
|
|
25
|
-
icon:
|
|
26
|
+
icon: c.icon,
|
|
26
27
|
class: ["text-2xl", "align-middle", "w-6", "h-6"]
|
|
27
|
-
},
|
|
28
|
+
}, r.$attrs), null, 16, ["icon"])) : I("", !0);
|
|
28
29
|
}
|
|
29
|
-
}),
|
|
30
|
+
}), re = ["xlink:href"], ue = /* @__PURE__ */ x({
|
|
30
31
|
inheritAttrs: !1,
|
|
31
32
|
__name: "index",
|
|
32
33
|
props: {
|
|
@@ -270,55 +271,55 @@ const ae = /* @__PURE__ */ x({
|
|
|
270
271
|
*/
|
|
271
272
|
"update:iconIndex"
|
|
272
273
|
],
|
|
273
|
-
setup(
|
|
274
|
-
const
|
|
274
|
+
setup(c, { emit: s }) {
|
|
275
|
+
const i = q(), e = c, r = s, a = j(() => {
|
|
275
276
|
if (Array.isArray(e.size)) return e.size;
|
|
276
277
|
{
|
|
277
|
-
let
|
|
278
|
-
return [
|
|
278
|
+
let o = e.size;
|
|
279
|
+
return [o, o];
|
|
279
280
|
}
|
|
280
|
-
}),
|
|
281
|
-
|
|
281
|
+
}), n = y(e.icon), f = y(e.iconIndex);
|
|
282
|
+
b(
|
|
282
283
|
() => e.icon,
|
|
283
|
-
(
|
|
284
|
-
|
|
284
|
+
(o) => {
|
|
285
|
+
n.value = o;
|
|
285
286
|
}
|
|
286
|
-
),
|
|
287
|
+
), b(
|
|
287
288
|
() => e.iconIndex,
|
|
288
|
-
(
|
|
289
|
-
f.value =
|
|
289
|
+
(o) => {
|
|
290
|
+
f.value = o, n.value = e.icons[o];
|
|
290
291
|
}
|
|
291
292
|
);
|
|
292
293
|
const p = j({
|
|
293
294
|
get() {
|
|
294
295
|
return f.value;
|
|
295
296
|
},
|
|
296
|
-
set(
|
|
297
|
-
f.value =
|
|
297
|
+
set(o) {
|
|
298
|
+
f.value = o, r("update:iconIndex", f.value);
|
|
298
299
|
}
|
|
299
300
|
});
|
|
300
|
-
e.icons.length > 0 ? (p.value = p.value >= e.icons.length ? 0 : p.value,
|
|
301
|
-
const S = (
|
|
302
|
-
if (
|
|
301
|
+
e.icons.length > 0 ? (p.value = p.value >= e.icons.length ? 0 : p.value, n.value = e.icons[f.value]) : n.value = e.icon;
|
|
302
|
+
const S = (o) => {
|
|
303
|
+
if (o.stopPropagation(), e.clickEvent) {
|
|
303
304
|
const v = e.clickEvent.split("#");
|
|
304
305
|
v.length === 2 && J("$" + v[0]).$emit(v[1], e.data);
|
|
305
306
|
}
|
|
306
|
-
e.autoSwitch && e.icons.length > 0 && (p.value = (p.value + 1) % e.icons.length,
|
|
307
|
+
e.autoSwitch && e.icons.length > 0 && (p.value = (p.value + 1) % e.icons.length, n.value = e.icons[f.value]), r("click");
|
|
307
308
|
}, _ = () => {
|
|
308
|
-
let
|
|
309
|
-
return e.spin && (
|
|
309
|
+
let o = "";
|
|
310
|
+
return e.spin && (o += "rotate"), e.flip && (o += " flip"), o;
|
|
310
311
|
};
|
|
311
|
-
return (
|
|
312
|
+
return (o, v) => (u(), h(w, {
|
|
312
313
|
title: e.tiptext,
|
|
313
314
|
disabled: e.tiptext ? void 0 : "disabled",
|
|
314
|
-
color:
|
|
315
|
-
placement:
|
|
316
|
-
size:
|
|
315
|
+
color: c.tipcolor,
|
|
316
|
+
placement: c.placement,
|
|
317
|
+
size: c.tipsize
|
|
317
318
|
}, {
|
|
318
319
|
default: d(() => {
|
|
319
320
|
var A;
|
|
320
321
|
return [
|
|
321
|
-
|
|
322
|
+
n.value ? (u(), g("div", {
|
|
322
323
|
key: 0,
|
|
323
324
|
class: "re-icon-container",
|
|
324
325
|
style: T({
|
|
@@ -326,7 +327,7 @@ const ae = /* @__PURE__ */ x({
|
|
|
326
327
|
height: a.value[1].toString()
|
|
327
328
|
})
|
|
328
329
|
}, [
|
|
329
|
-
(A =
|
|
330
|
+
(A = n.value) != null && A.startsWith("sym-") ? (u(), g("svg", C({ key: 1 }, t(i), {
|
|
330
331
|
class: ["re-icon symbol", [e.clickable ? "clickable" : "", _(), e.className]],
|
|
331
332
|
"aria-hidden": "true",
|
|
332
333
|
style: {
|
|
@@ -339,10 +340,10 @@ const ae = /* @__PURE__ */ x({
|
|
|
339
340
|
}
|
|
340
341
|
}), [
|
|
341
342
|
m("use", {
|
|
342
|
-
"xlink:href": "#icon-" +
|
|
343
|
-
}, null, 8,
|
|
344
|
-
], 16)) : (u(), g("i", C({ key: 0 }, t(
|
|
345
|
-
class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" +
|
|
343
|
+
"xlink:href": "#icon-" + n.value.replace("sym-", "")
|
|
344
|
+
}, null, 8, re)
|
|
345
|
+
], 16)) : (u(), g("i", C({ key: 0 }, t(i), {
|
|
346
|
+
class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, _(), e.className]],
|
|
346
347
|
style: {
|
|
347
348
|
top: e.position ? e.position[1] : 1,
|
|
348
349
|
left: e.position ? e.position[0] : 0,
|
|
@@ -360,12 +361,7 @@ const ae = /* @__PURE__ */ x({
|
|
|
360
361
|
_: 1
|
|
361
362
|
}, 8, ["title", "disabled", "color", "placement", "size"]));
|
|
362
363
|
}
|
|
363
|
-
}),
|
|
364
|
-
const n = i.__vccOpts || i;
|
|
365
|
-
for (const [e, l] of s)
|
|
366
|
-
n[e] = l;
|
|
367
|
-
return n;
|
|
368
|
-
}, je = /* @__PURE__ */ ue(re, [["__scopeId", "data-v-0146f00c"]]), pe = /* @__PURE__ */ x({
|
|
364
|
+
}), Ke = /* @__PURE__ */ Z(ue, [["__scopeId", "data-v-0146f00c"]]), pe = /* @__PURE__ */ x({
|
|
369
365
|
__name: "projectIcon",
|
|
370
366
|
props: {
|
|
371
367
|
icon: {
|
|
@@ -382,54 +378,54 @@ const ae = /* @__PURE__ */ x({
|
|
|
382
378
|
default: !0
|
|
383
379
|
}
|
|
384
380
|
},
|
|
385
|
-
setup(
|
|
386
|
-
const s =
|
|
381
|
+
setup(c) {
|
|
382
|
+
const s = c, e = D({
|
|
387
383
|
iconUrl: `${s.iconUrl ?? B.PROJECT_ICONS ?? B.TOOL_ICONS}`,
|
|
388
384
|
monoColor: s.monoColor,
|
|
389
385
|
icon: s.icon,
|
|
390
386
|
icons: s.icons
|
|
391
387
|
});
|
|
392
|
-
return (
|
|
388
|
+
return (r, a) => c.icon || c.icons ? (u(), h(t(e), C({
|
|
393
389
|
key: 0,
|
|
394
|
-
icon:
|
|
395
|
-
icons:
|
|
390
|
+
icon: c.icon,
|
|
391
|
+
icons: c.icons,
|
|
396
392
|
class: ["align-middle"]
|
|
397
|
-
},
|
|
393
|
+
}, r.$attrs), null, 16, ["icon", "icons"])) : I("", !0);
|
|
398
394
|
}
|
|
399
395
|
}), de = { class: "text-xs leading-[3]" }, me = {
|
|
400
396
|
key: 0,
|
|
401
397
|
class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]"
|
|
402
398
|
}, fe = /* @__PURE__ */ x({
|
|
403
399
|
__name: "index",
|
|
404
|
-
setup(
|
|
405
|
-
const { useToken: s } = O, { token:
|
|
406
|
-
return
|
|
400
|
+
setup(c) {
|
|
401
|
+
const { useToken: s } = O, { token: i } = s(), e = P();
|
|
402
|
+
return b(
|
|
407
403
|
() => e.TabActive,
|
|
408
404
|
() => M()
|
|
409
405
|
), N(() => {
|
|
410
406
|
M();
|
|
411
|
-
}), (
|
|
407
|
+
}), (r, a) => (u(), g("div", {
|
|
412
408
|
class: "ml-5 h-fit p-0 flex items-center justify-between",
|
|
413
409
|
style: T({
|
|
414
|
-
backgroundColor: t(
|
|
410
|
+
backgroundColor: t(i).colorBgContainer
|
|
415
411
|
})
|
|
416
412
|
}, [
|
|
417
|
-
|
|
413
|
+
l(t(k), {
|
|
418
414
|
icon: "icon-home",
|
|
419
415
|
class: "w-[15px] h-[15px]"
|
|
420
416
|
}),
|
|
421
417
|
a[0] || (a[0] = m("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
|
|
422
|
-
|
|
418
|
+
l(t(ee), {
|
|
423
419
|
routes: t(R),
|
|
424
420
|
separator: ""
|
|
425
421
|
}, {
|
|
426
|
-
itemRender: d(({ route:
|
|
427
|
-
m("span", de, $(
|
|
428
|
-
|
|
429
|
-
icon:
|
|
422
|
+
itemRender: d(({ route: n }) => [
|
|
423
|
+
m("span", de, $(n.breadcrumbName), 1),
|
|
424
|
+
l(t(k), {
|
|
425
|
+
icon: n.icon,
|
|
430
426
|
fontsize: "15px"
|
|
431
427
|
}, null, 8, ["icon"]),
|
|
432
|
-
|
|
428
|
+
n.index < t(R).length - 1 ? (u(), g("span", me, ">")) : I("", !0)
|
|
433
429
|
]),
|
|
434
430
|
_: 1
|
|
435
431
|
}, 8, ["routes"])
|
|
@@ -437,27 +433,27 @@ const ae = /* @__PURE__ */ x({
|
|
|
437
433
|
}
|
|
438
434
|
}), _e = { class: "font-['Courier'] text-[#666]" }, ge = /* @__PURE__ */ x({
|
|
439
435
|
__name: "index",
|
|
440
|
-
setup(
|
|
436
|
+
setup(c) {
|
|
441
437
|
const s = y("");
|
|
442
438
|
return N(() => {
|
|
443
439
|
setInterval(() => {
|
|
444
|
-
const
|
|
445
|
-
s.value =
|
|
440
|
+
const i = /* @__PURE__ */ new Date(), e = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, r = i.toLocaleString(void 0, e).replace(/\//g, "-").replace(",", "");
|
|
441
|
+
s.value = i.getFullYear() + "-" + r;
|
|
446
442
|
}, 1e3);
|
|
447
|
-
}), (
|
|
443
|
+
}), (i, e) => (u(), g("div", _e, $(s.value), 1));
|
|
448
444
|
}
|
|
449
445
|
}), xe = /* @__PURE__ */ x({
|
|
450
446
|
__name: "headerExits",
|
|
451
|
-
setup(
|
|
452
|
-
const s = F(),
|
|
453
|
-
|
|
447
|
+
setup(c) {
|
|
448
|
+
const s = F(), i = y(!1), e = () => {
|
|
449
|
+
i.value = !1, U.value ? U.value.userLogout() : s.logout();
|
|
454
450
|
};
|
|
455
|
-
return (
|
|
456
|
-
|
|
451
|
+
return (r, a) => (u(), g(L, null, [
|
|
452
|
+
l(t(w), { title: "退出平台" }, {
|
|
457
453
|
default: d(() => [
|
|
458
|
-
|
|
454
|
+
l(t(k), {
|
|
459
455
|
icon: "icon-logout",
|
|
460
|
-
onClick: a[0] || (a[0] = (
|
|
456
|
+
onClick: a[0] || (a[0] = (n) => i.value = !0),
|
|
461
457
|
clickable: "",
|
|
462
458
|
class: "w-5 h-5",
|
|
463
459
|
title: "退出系统"
|
|
@@ -465,9 +461,9 @@ const ae = /* @__PURE__ */ x({
|
|
|
465
461
|
]),
|
|
466
462
|
_: 1
|
|
467
463
|
}),
|
|
468
|
-
|
|
469
|
-
open:
|
|
470
|
-
"onUpdate:open": a[1] || (a[1] = (
|
|
464
|
+
l(t(te), {
|
|
465
|
+
open: i.value,
|
|
466
|
+
"onUpdate:open": a[1] || (a[1] = (n) => i.value = n),
|
|
471
467
|
title: "确定退出?",
|
|
472
468
|
"ok-text": "确定",
|
|
473
469
|
"cancel-text": "取消",
|
|
@@ -475,13 +471,13 @@ const ae = /* @__PURE__ */ x({
|
|
|
475
471
|
onOk: e
|
|
476
472
|
}, {
|
|
477
473
|
default: d(() => [
|
|
478
|
-
|
|
474
|
+
l(t(ne), {
|
|
479
475
|
align: "center",
|
|
480
476
|
justify: "flex-start",
|
|
481
477
|
style: { padding: "0 32px", margin: "20px 0" }
|
|
482
478
|
}, {
|
|
483
479
|
default: d(() => [
|
|
484
|
-
|
|
480
|
+
l(t(k), {
|
|
485
481
|
icon: "icon-question-circle",
|
|
486
482
|
color: "orange",
|
|
487
483
|
class: "w-[60px] h-[60px]"
|
|
@@ -502,56 +498,56 @@ const ae = /* @__PURE__ */ x({
|
|
|
502
498
|
}
|
|
503
499
|
}), ve = { class: "flex items-center flex-nowrap" }, ye = { class: "mr-2 text-sm whitespace-nowrap" }, he = /* @__PURE__ */ x({
|
|
504
500
|
__name: "user",
|
|
505
|
-
setup(
|
|
501
|
+
setup(c) {
|
|
506
502
|
const s = F().userInfo;
|
|
507
|
-
return (
|
|
503
|
+
return (i, e) => (u(), h(t(w), {
|
|
508
504
|
title: t(s).Name
|
|
509
505
|
}, {
|
|
510
506
|
default: d(() => [
|
|
511
507
|
m("div", ve, [
|
|
512
508
|
m("span", ye, $(t(s).Name), 1),
|
|
513
|
-
|
|
509
|
+
l(t(le), { icon: "icon-account" })
|
|
514
510
|
])
|
|
515
511
|
]),
|
|
516
512
|
_: 1
|
|
517
513
|
}, 8, ["title"]));
|
|
518
514
|
}
|
|
519
|
-
}),
|
|
515
|
+
}), be = { class: "flex items-center" }, Ee = /* @__PURE__ */ x({
|
|
520
516
|
__name: "index",
|
|
521
|
-
setup(
|
|
522
|
-
const { useToken: s } = O, { token:
|
|
517
|
+
setup(c) {
|
|
518
|
+
const { useToken: s } = O, { token: i } = s(), e = H(), r = () => {
|
|
523
519
|
e.setMenuCollapse(!e.menuCollapse);
|
|
524
520
|
};
|
|
525
|
-
return (a,
|
|
521
|
+
return (a, n) => (u(), h(t(oe), {
|
|
526
522
|
class: "w-full relative z-[1] shadow-[0_-3px_6px_#000] py-0 flex items-center justify-between",
|
|
527
523
|
style: T({
|
|
528
524
|
height: "40px",
|
|
529
525
|
lineHeight: "1",
|
|
530
526
|
paddingLeft: "10px",
|
|
531
527
|
paddingRight: "20px",
|
|
532
|
-
backgroundColor: t(
|
|
528
|
+
backgroundColor: t(i).colorBgContainer
|
|
533
529
|
})
|
|
534
530
|
}, {
|
|
535
531
|
default: d(() => [
|
|
536
|
-
m("div",
|
|
537
|
-
|
|
532
|
+
m("div", be, [
|
|
533
|
+
l(t(k), {
|
|
538
534
|
icon: "icon-menu",
|
|
539
535
|
clickable: "",
|
|
540
536
|
class: "w-[18px] h-[18px]",
|
|
541
537
|
angle: t(e).menuCollapse ? 90 : 0,
|
|
542
|
-
onClick:
|
|
538
|
+
onClick: r
|
|
543
539
|
}, null, 8, ["angle"]),
|
|
544
|
-
|
|
540
|
+
l(fe)
|
|
545
541
|
]),
|
|
546
542
|
m("div", null, [
|
|
547
|
-
|
|
543
|
+
l(t(se), {
|
|
548
544
|
size: "middle",
|
|
549
545
|
class: "flex items-center"
|
|
550
546
|
}, {
|
|
551
547
|
default: d(() => [
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
548
|
+
l(ge),
|
|
549
|
+
l(he),
|
|
550
|
+
l(xe)
|
|
555
551
|
]),
|
|
556
552
|
_: 1
|
|
557
553
|
})
|
|
@@ -560,77 +556,77 @@ const ae = /* @__PURE__ */ x({
|
|
|
560
556
|
_: 1
|
|
561
557
|
}, 8, ["style"]));
|
|
562
558
|
}
|
|
563
|
-
}),
|
|
559
|
+
}), Me = /* @__PURE__ */ x({
|
|
564
560
|
__name: "index",
|
|
565
561
|
props: {
|
|
566
562
|
routes: {}
|
|
567
563
|
},
|
|
568
|
-
setup(
|
|
569
|
-
const s =
|
|
564
|
+
setup(c) {
|
|
565
|
+
const s = c, i = y([]), e = y([]), r = Q([]), a = P(), n = (_) => {
|
|
570
566
|
z().push(_.key.toString());
|
|
571
567
|
}, f = H(), p = y([]), S = () => {
|
|
572
568
|
let _ = a.TabActive;
|
|
573
|
-
const
|
|
574
|
-
|
|
569
|
+
const o = _.split("/");
|
|
570
|
+
o.pop(), i.value = [o.join("/")], f.menuCollapse || (p.value = [o.join("/")]), e.value = [_];
|
|
575
571
|
};
|
|
576
|
-
return
|
|
572
|
+
return b(
|
|
577
573
|
() => f.menuCollapse,
|
|
578
574
|
(_) => {
|
|
579
575
|
_ || (p.value = [], W(() => {
|
|
580
|
-
p.value = [...
|
|
576
|
+
p.value = [...i.value];
|
|
581
577
|
}));
|
|
582
578
|
}
|
|
583
|
-
),
|
|
579
|
+
), b(
|
|
584
580
|
() => a.TabActive,
|
|
585
581
|
() => {
|
|
586
582
|
S();
|
|
587
583
|
}
|
|
588
584
|
), N(() => {
|
|
589
|
-
X(s.routes,
|
|
590
|
-
}), (_,
|
|
585
|
+
X(s.routes, r, pe, { class: "!w-5 !h-5" }), a.setTabActive(V.currentRoute.value.path), S();
|
|
586
|
+
}), (_, o) => (u(), h(t(ie), {
|
|
591
587
|
openKeys: p.value,
|
|
592
|
-
"onUpdate:openKeys":
|
|
588
|
+
"onUpdate:openKeys": o[0] || (o[0] = (v) => p.value = v),
|
|
593
589
|
selectedKeys: e.value,
|
|
594
|
-
"onUpdate:selectedKeys":
|
|
590
|
+
"onUpdate:selectedKeys": o[1] || (o[1] = (v) => e.value = v),
|
|
595
591
|
mode: "inline",
|
|
596
592
|
theme: "dark",
|
|
597
|
-
items:
|
|
598
|
-
onClick:
|
|
593
|
+
items: r,
|
|
594
|
+
onClick: n
|
|
599
595
|
}, null, 8, ["openKeys", "selectedKeys", "items"]));
|
|
600
596
|
}
|
|
601
|
-
}),
|
|
597
|
+
}), ke = { class: "flex items-center" }, Se = { class: "flex" }, Ie = ["onClick"], Re = /* @__PURE__ */ x({
|
|
602
598
|
__name: "menuTabs",
|
|
603
|
-
setup(
|
|
604
|
-
const { useToken: s } = O, { token:
|
|
605
|
-
|
|
599
|
+
setup(c) {
|
|
600
|
+
const { useToken: s } = O, { token: i } = s(), e = P();
|
|
601
|
+
b(
|
|
606
602
|
() => V.currentRoute.value.path,
|
|
607
|
-
(
|
|
608
|
-
|
|
603
|
+
(n) => {
|
|
604
|
+
n !== e.TabActive && e.setTabActive(n);
|
|
609
605
|
}
|
|
610
606
|
);
|
|
611
|
-
const
|
|
612
|
-
z().push(
|
|
613
|
-
}, a = (
|
|
614
|
-
e.removeTabPane(
|
|
607
|
+
const r = (n) => {
|
|
608
|
+
z().push(n);
|
|
609
|
+
}, a = (n) => {
|
|
610
|
+
e.removeTabPane(n), z().push(e.TabActive);
|
|
615
611
|
};
|
|
616
|
-
return (
|
|
617
|
-
style: T({ height: "38px", backgroundColor: t(
|
|
612
|
+
return (n, f) => (u(), g("div", {
|
|
613
|
+
style: T({ height: "38px", backgroundColor: t(i).colorBgBase })
|
|
618
614
|
}, [
|
|
619
|
-
|
|
615
|
+
l(t(ce), {
|
|
620
616
|
activeKey: t(e).TabActive,
|
|
621
617
|
"hide-add": "",
|
|
622
618
|
size: "small",
|
|
623
619
|
tabBarStyle: { padding: "0 20px" },
|
|
624
|
-
onTabClick:
|
|
620
|
+
onTabClick: r
|
|
625
621
|
}, {
|
|
626
622
|
default: d(() => [
|
|
627
|
-
(u(!0), g(L, null, Y(t(e).TabPanes, (p) => (u(), h(t(
|
|
623
|
+
(u(!0), g(L, null, Y(t(e).TabPanes, (p) => (u(), h(t(ae), {
|
|
628
624
|
key: p.key
|
|
629
625
|
}, {
|
|
630
626
|
tab: d(() => [
|
|
631
|
-
m("div",
|
|
627
|
+
m("div", ke, [
|
|
632
628
|
m("span", Se, $(p.title), 1),
|
|
633
|
-
|
|
629
|
+
l(t(w), {
|
|
634
630
|
title: "关闭",
|
|
635
631
|
placement: "top",
|
|
636
632
|
size: "small"
|
|
@@ -641,12 +637,12 @@ const ae = /* @__PURE__ */ x({
|
|
|
641
637
|
class: "inline-block mx-auto relative flex items-center",
|
|
642
638
|
onClick: G((S) => a(p.key), ["stop"])
|
|
643
639
|
}, [
|
|
644
|
-
|
|
640
|
+
l(t(k), {
|
|
645
641
|
icon: "icon-new",
|
|
646
642
|
angle: 45,
|
|
647
643
|
clickable: "",
|
|
648
644
|
class: "w-[15px] h-[15px] ml-1",
|
|
649
|
-
tipcolor: t(
|
|
645
|
+
tipcolor: t(i).colorBgSpotlight
|
|
650
646
|
}, null, 8, ["tipcolor"])
|
|
651
647
|
], 8, Ie)) : I("", !0)
|
|
652
648
|
]),
|
|
@@ -663,14 +659,13 @@ const ae = /* @__PURE__ */ x({
|
|
|
663
659
|
}
|
|
664
660
|
});
|
|
665
661
|
export {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
Me as h
|
|
662
|
+
Ke as I,
|
|
663
|
+
le as _,
|
|
664
|
+
pe as a,
|
|
665
|
+
fe as b,
|
|
666
|
+
ge as c,
|
|
667
|
+
Ee as d,
|
|
668
|
+
xe as e,
|
|
669
|
+
Me as f,
|
|
670
|
+
Re as g
|
|
676
671
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as s, openBlock as l, unref as a, withCtx as p, renderSlot as f, createCommentVNode as u, mergeProps as d } from "vue";
|
|
2
2
|
import { Tooltip as I } from "ant-design-vue";
|
|
3
3
|
import { SERVER_HOST as r } from "@skyfox2000/fapi";
|
|
4
|
-
import { c as S } from "./
|
|
4
|
+
import { c as S } from "./uploadList-D2Ux4h1N.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|