@skyfox2000/webui 1.2.6 → 1.2.7
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/README.md +441 -91
- package/lib/assets/modules/{file-upload-Cf9uxE2y.js → file-upload-D4bA7go8.js} +1 -1
- package/lib/assets/modules/{form-excel-DnROEQ0w.js → form-excel-DL2_SNiS.js} +1 -1
- package/lib/assets/modules/{index-BkbOMv2e.js → index-BZvwPKou.js} +1 -1
- package/lib/assets/modules/{index-D4mESG0b.js → index-CKMDsqve.js} +683 -661
- package/lib/assets/modules/{index-DvbJb5Ha.js → index-D16E7UbH.js} +2 -2
- package/lib/assets/modules/{menuTabs-DgX7pUbX.js → menuTabs-izaFx0kk.js} +196 -175
- package/lib/assets/modules/{toolIcon-C0bp66dj.js → toolIcon-66dclHit.js} +1 -1
- package/lib/assets/modules/{uploadList-CWhqNLX9.js → uploadList-Dw6eRrJT.js} +3 -3
- package/lib/components/common/icon/index.vue.d.ts +1 -1
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +3 -3
- 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 +4 -4
- package/lib/stores/userInfo.d.ts +3 -1
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +279 -290
- package/package.json +2 -2
- package/src/components/layout/header/headerExits.vue +5 -4
- package/src/components/layout/header/index.vue +4 -2
- package/src/components/layout/header/user.vue +4 -1
- package/src/directives/permission.ts +6 -2
- package/src/stores/appInfo.ts +64 -26
- package/src/stores/pageInfo.ts +1 -0
- package/src/stores/settingInfo.ts +1 -7
- package/src/stores/userInfo.ts +77 -52
- package/src/utils/main-openapis.ts +1 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as A, provide as B, ref as S, watch as p, onMounted as F, createBlock as n, openBlock as r, unref as a, withCtx as t, createElementVNode as N, renderSlot as b, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as m } from "vue";
|
|
2
|
-
import { _ as f } from "./index-
|
|
2
|
+
import { _ as f } from "./index-BZvwPKou.js";
|
|
3
3
|
import { Modal as E, Space as M } from "ant-design-vue";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { P, o as $, d as D, b as K } from "./index-
|
|
5
|
+
import { P, o as $, d as D, b as K } from "./index-CKMDsqve.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as w, _ as b } from "./toolIcon-
|
|
3
|
-
import { c as
|
|
4
|
-
import { theme as
|
|
5
|
-
import { mainAppApis as
|
|
6
|
-
import { SERVER_HOST as
|
|
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 k, withCtx as d, createElementBlock as g, normalizeStyle as T, createElementVNode as m, inject as J, onMounted as N, createVNode as r, 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 b } from "./toolIcon-66dclHit.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 "./index-CKMDsqve.js";
|
|
4
|
+
import { theme as O, Breadcrumb as Z, Modal as ee, Flex as te, LayoutHeader as ne, Space as oe, Menu as se, Tabs as ie, TabPane as ce } from "ant-design-vue";
|
|
5
|
+
import { mainAppApis as U } from "@skyfox2000/microbase";
|
|
6
|
+
import { SERVER_HOST as B } from "@skyfox2000/fapi";
|
|
7
7
|
import "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
10
|
import "vue-draggable-next";
|
|
11
|
-
const ae = /* @__PURE__ */
|
|
11
|
+
const ae = /* @__PURE__ */ x({
|
|
12
12
|
__name: "appicon",
|
|
13
13
|
props: {
|
|
14
14
|
icon: {
|
|
15
15
|
type: String
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
iconUrl: `${
|
|
21
|
-
icon:
|
|
18
|
+
setup(i) {
|
|
19
|
+
const s = i, e = D({
|
|
20
|
+
iconUrl: `${B.APP_ICONS}`,
|
|
21
|
+
icon: s.icon
|
|
22
22
|
});
|
|
23
|
-
return (l, a) =>
|
|
23
|
+
return (l, a) => i.icon ? (u(), h(t(e), C({
|
|
24
24
|
key: 0,
|
|
25
|
-
icon:
|
|
25
|
+
icon: i.icon,
|
|
26
26
|
class: ["text-2xl", "align-middle", "w-6", "h-6"]
|
|
27
27
|
}, l.$attrs), null, 16, ["icon"])) : I("", !0);
|
|
28
28
|
}
|
|
29
|
-
}), le = ["xlink:href"], re = /* @__PURE__ */
|
|
29
|
+
}), le = ["xlink:href"], re = /* @__PURE__ */ x({
|
|
30
30
|
inheritAttrs: !1,
|
|
31
31
|
__name: "index",
|
|
32
32
|
props: {
|
|
@@ -270,55 +270,55 @@ const ae = /* @__PURE__ */ _({
|
|
|
270
270
|
*/
|
|
271
271
|
"update:iconIndex"
|
|
272
272
|
],
|
|
273
|
-
setup(
|
|
274
|
-
const
|
|
273
|
+
setup(i, { emit: s }) {
|
|
274
|
+
const n = q(), e = i, l = s, a = j(() => {
|
|
275
275
|
if (Array.isArray(e.size)) return e.size;
|
|
276
276
|
{
|
|
277
|
-
let
|
|
278
|
-
return [
|
|
277
|
+
let c = e.size;
|
|
278
|
+
return [c, c];
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), o = y(e.icon), f = y(e.iconIndex);
|
|
281
281
|
k(
|
|
282
282
|
() => e.icon,
|
|
283
|
-
(
|
|
284
|
-
|
|
283
|
+
(c) => {
|
|
284
|
+
o.value = c;
|
|
285
285
|
}
|
|
286
286
|
), k(
|
|
287
287
|
() => e.iconIndex,
|
|
288
|
-
(
|
|
289
|
-
|
|
288
|
+
(c) => {
|
|
289
|
+
f.value = c, o.value = e.icons[c];
|
|
290
290
|
}
|
|
291
291
|
);
|
|
292
|
-
const
|
|
292
|
+
const p = j({
|
|
293
293
|
get() {
|
|
294
|
-
return
|
|
294
|
+
return f.value;
|
|
295
295
|
},
|
|
296
|
-
set(
|
|
297
|
-
|
|
296
|
+
set(c) {
|
|
297
|
+
f.value = c, l("update:iconIndex", f.value);
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
|
-
e.icons.length > 0 ? (
|
|
301
|
-
const S = (
|
|
302
|
-
if (
|
|
300
|
+
e.icons.length > 0 ? (p.value = p.value >= e.icons.length ? 0 : p.value, o.value = e.icons[f.value]) : o.value = e.icon;
|
|
301
|
+
const S = (c) => {
|
|
302
|
+
if (c.stopPropagation(), e.clickEvent) {
|
|
303
303
|
const v = e.clickEvent.split("#");
|
|
304
304
|
v.length === 2 && J("$" + v[0]).$emit(v[1], e.data);
|
|
305
305
|
}
|
|
306
|
-
e.autoSwitch && e.icons.length > 0 && (
|
|
307
|
-
},
|
|
308
|
-
let
|
|
309
|
-
return e.spin && (
|
|
306
|
+
e.autoSwitch && e.icons.length > 0 && (p.value = (p.value + 1) % e.icons.length, o.value = e.icons[f.value]), l("click");
|
|
307
|
+
}, _ = () => {
|
|
308
|
+
let c = "";
|
|
309
|
+
return e.spin && (c += "rotate"), e.flip && (c += " flip"), c;
|
|
310
310
|
};
|
|
311
|
-
return (
|
|
311
|
+
return (c, v) => (u(), h(w, {
|
|
312
312
|
title: e.tiptext,
|
|
313
313
|
disabled: e.tiptext ? void 0 : "disabled",
|
|
314
|
-
color:
|
|
315
|
-
placement:
|
|
316
|
-
size:
|
|
314
|
+
color: i.tipcolor,
|
|
315
|
+
placement: i.placement,
|
|
316
|
+
size: i.tipsize
|
|
317
317
|
}, {
|
|
318
|
-
default:
|
|
319
|
-
var
|
|
318
|
+
default: d(() => {
|
|
319
|
+
var A;
|
|
320
320
|
return [
|
|
321
|
-
|
|
321
|
+
o.value ? (u(), g("div", {
|
|
322
322
|
key: 0,
|
|
323
323
|
class: "re-icon-container",
|
|
324
324
|
style: T({
|
|
@@ -326,29 +326,29 @@ const ae = /* @__PURE__ */ _({
|
|
|
326
326
|
height: a.value[1].toString()
|
|
327
327
|
})
|
|
328
328
|
}, [
|
|
329
|
-
(
|
|
330
|
-
class: ["re-icon symbol", [e.clickable ? "clickable" : "",
|
|
329
|
+
(A = o.value) != null && A.startsWith("sym-") ? (u(), g("svg", C({ key: 1 }, t(n), {
|
|
330
|
+
class: ["re-icon symbol", [e.clickable ? "clickable" : "", _(), e.className]],
|
|
331
331
|
"aria-hidden": "true",
|
|
332
332
|
style: {
|
|
333
333
|
top: e.position ? e.position[1] : 0,
|
|
334
334
|
left: e.position ? e.position[0] : 0,
|
|
335
335
|
fontSize: e.fontsize,
|
|
336
336
|
transformOrigin: e.center ?? "center center",
|
|
337
|
-
transform: t(
|
|
337
|
+
transform: t(E)(),
|
|
338
338
|
color: e.color
|
|
339
339
|
}
|
|
340
340
|
}), [
|
|
341
|
-
|
|
342
|
-
"xlink:href": "#icon-" +
|
|
341
|
+
m("use", {
|
|
342
|
+
"xlink:href": "#icon-" + o.value.replace("sym-", "")
|
|
343
343
|
}, null, 8, le)
|
|
344
|
-
], 16)) : (
|
|
345
|
-
class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" +
|
|
344
|
+
], 16)) : (u(), g("i", C({ key: 0 }, t(n), {
|
|
345
|
+
class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + o.value, _(), e.className]],
|
|
346
346
|
style: {
|
|
347
347
|
top: e.position ? e.position[1] : 1,
|
|
348
348
|
left: e.position ? e.position[0] : 0,
|
|
349
349
|
fontSize: e.fontsize,
|
|
350
350
|
transformOrigin: e.center ?? "center center",
|
|
351
|
-
transform: t(
|
|
351
|
+
transform: t(E)(e.angle, e.flip),
|
|
352
352
|
color: e.color
|
|
353
353
|
},
|
|
354
354
|
"aria-hidden": "true",
|
|
@@ -360,12 +360,12 @@ const ae = /* @__PURE__ */ _({
|
|
|
360
360
|
_: 1
|
|
361
361
|
}, 8, ["title", "disabled", "color", "placement", "size"]));
|
|
362
362
|
}
|
|
363
|
-
}), ue = (
|
|
364
|
-
const
|
|
365
|
-
for (const [e, l] of
|
|
366
|
-
|
|
367
|
-
return
|
|
368
|
-
},
|
|
363
|
+
}), ue = (i, s) => {
|
|
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({
|
|
369
369
|
__name: "projectIcon",
|
|
370
370
|
props: {
|
|
371
371
|
icon: {
|
|
@@ -382,98 +382,114 @@ const ae = /* @__PURE__ */ _({
|
|
|
382
382
|
default: !0
|
|
383
383
|
}
|
|
384
384
|
},
|
|
385
|
-
setup(
|
|
386
|
-
const
|
|
387
|
-
iconUrl: `${
|
|
388
|
-
monoColor:
|
|
389
|
-
icon:
|
|
390
|
-
icons:
|
|
385
|
+
setup(i) {
|
|
386
|
+
const s = i, e = D({
|
|
387
|
+
iconUrl: `${s.iconUrl ?? B.PROJECT_ICONS ?? B.TOOL_ICONS}`,
|
|
388
|
+
monoColor: s.monoColor,
|
|
389
|
+
icon: s.icon,
|
|
390
|
+
icons: s.icons
|
|
391
391
|
});
|
|
392
|
-
return (l, a) =>
|
|
392
|
+
return (l, a) => i.icon || i.icons ? (u(), h(t(e), C({
|
|
393
393
|
key: 0,
|
|
394
|
-
icon:
|
|
395
|
-
icons:
|
|
394
|
+
icon: i.icon,
|
|
395
|
+
icons: i.icons,
|
|
396
396
|
class: ["align-middle"]
|
|
397
397
|
}, l.$attrs), null, 16, ["icon", "icons"])) : I("", !0);
|
|
398
398
|
}
|
|
399
399
|
}), de = { class: "text-xs leading-[3]" }, me = {
|
|
400
400
|
key: 0,
|
|
401
401
|
class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]"
|
|
402
|
-
}, fe = /* @__PURE__ */
|
|
402
|
+
}, fe = /* @__PURE__ */ x({
|
|
403
403
|
__name: "index",
|
|
404
|
-
setup(
|
|
405
|
-
const { useToken:
|
|
404
|
+
setup(i) {
|
|
405
|
+
const { useToken: s } = O, { token: n } = s(), e = P();
|
|
406
406
|
return k(
|
|
407
407
|
() => e.TabActive,
|
|
408
|
-
() =>
|
|
409
|
-
),
|
|
410
|
-
|
|
411
|
-
}), (l, a) => (
|
|
408
|
+
() => M()
|
|
409
|
+
), N(() => {
|
|
410
|
+
M();
|
|
411
|
+
}), (l, a) => (u(), g("div", {
|
|
412
412
|
class: "ml-5 h-fit p-0 flex items-center justify-between",
|
|
413
413
|
style: T({
|
|
414
|
-
backgroundColor: t(
|
|
414
|
+
backgroundColor: t(n).colorBgContainer
|
|
415
415
|
})
|
|
416
416
|
}, [
|
|
417
|
-
|
|
417
|
+
r(t(b), {
|
|
418
418
|
icon: "icon-home",
|
|
419
419
|
class: "w-[15px] h-[15px]"
|
|
420
420
|
}),
|
|
421
|
-
a[0] || (a[0] =
|
|
422
|
-
|
|
423
|
-
routes: t(
|
|
421
|
+
a[0] || (a[0] = m("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
|
|
422
|
+
r(t(Z), {
|
|
423
|
+
routes: t(R),
|
|
424
424
|
separator: ""
|
|
425
425
|
}, {
|
|
426
|
-
itemRender:
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
icon:
|
|
426
|
+
itemRender: d(({ route: o }) => [
|
|
427
|
+
m("span", de, $(o.breadcrumbName), 1),
|
|
428
|
+
r(t(b), {
|
|
429
|
+
icon: o.icon,
|
|
430
430
|
fontsize: "15px"
|
|
431
431
|
}, null, 8, ["icon"]),
|
|
432
|
-
|
|
432
|
+
o.index < t(R).length - 1 ? (u(), g("span", me, ">")) : I("", !0)
|
|
433
433
|
]),
|
|
434
434
|
_: 1
|
|
435
435
|
}, 8, ["routes"])
|
|
436
436
|
], 4));
|
|
437
437
|
}
|
|
438
|
-
}), ge = /* @__PURE__ */
|
|
438
|
+
}), _e = { class: "font-['Courier'] text-[#666]" }, ge = /* @__PURE__ */ x({
|
|
439
|
+
__name: "index",
|
|
440
|
+
setup(i) {
|
|
441
|
+
const s = y("");
|
|
442
|
+
return N(() => {
|
|
443
|
+
setInterval(() => {
|
|
444
|
+
const n = /* @__PURE__ */ new Date(), e = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, l = n.toLocaleString(void 0, e).replace(/\//g, "-").replace(",", "");
|
|
445
|
+
s.value = n.getFullYear() + "-" + l;
|
|
446
|
+
}, 1e3);
|
|
447
|
+
}), (n, e) => (u(), g("div", _e, $(s.value), 1));
|
|
448
|
+
}
|
|
449
|
+
}), xe = /* @__PURE__ */ x({
|
|
439
450
|
__name: "headerExits",
|
|
440
|
-
setup(
|
|
441
|
-
const
|
|
442
|
-
|
|
451
|
+
setup(i) {
|
|
452
|
+
const s = F(), n = y(!1), e = () => {
|
|
453
|
+
n.value = !1, U.value ? U.value.userLogout() : s.logout();
|
|
443
454
|
};
|
|
444
|
-
return (l, a) => (
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
455
|
+
return (l, a) => (u(), g(L, null, [
|
|
456
|
+
r(t(w), { title: "退出平台" }, {
|
|
457
|
+
default: d(() => [
|
|
458
|
+
r(t(b), {
|
|
459
|
+
icon: "icon-logout",
|
|
460
|
+
onClick: a[0] || (a[0] = (o) => n.value = !0),
|
|
461
|
+
clickable: "",
|
|
462
|
+
class: "w-5 h-5",
|
|
463
|
+
title: "退出系统"
|
|
464
|
+
})
|
|
465
|
+
]),
|
|
466
|
+
_: 1
|
|
451
467
|
}),
|
|
452
|
-
|
|
453
|
-
open:
|
|
454
|
-
"onUpdate:open": a[1] || (a[1] = (
|
|
468
|
+
r(t(ee), {
|
|
469
|
+
open: n.value,
|
|
470
|
+
"onUpdate:open": a[1] || (a[1] = (o) => n.value = o),
|
|
455
471
|
title: "确定退出?",
|
|
456
472
|
"ok-text": "确定",
|
|
457
473
|
"cancel-text": "取消",
|
|
458
474
|
width: 380,
|
|
459
475
|
onOk: e
|
|
460
476
|
}, {
|
|
461
|
-
default:
|
|
462
|
-
|
|
477
|
+
default: d(() => [
|
|
478
|
+
r(t(te), {
|
|
463
479
|
align: "center",
|
|
464
480
|
justify: "flex-start",
|
|
465
481
|
style: { padding: "0 32px", margin: "20px 0" }
|
|
466
482
|
}, {
|
|
467
|
-
default:
|
|
468
|
-
|
|
483
|
+
default: d(() => [
|
|
484
|
+
r(t(b), {
|
|
469
485
|
icon: "icon-question-circle",
|
|
470
486
|
color: "orange",
|
|
471
487
|
class: "w-[60px] h-[60px]"
|
|
472
488
|
}),
|
|
473
|
-
a[2] || (a[2] =
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
489
|
+
a[2] || (a[2] = m("div", { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, [
|
|
490
|
+
K("是否退出平台,"),
|
|
491
|
+
m("br"),
|
|
492
|
+
K("清除用户缓存信息?")
|
|
477
493
|
], -1))
|
|
478
494
|
]),
|
|
479
495
|
_: 1,
|
|
@@ -484,54 +500,58 @@ const ae = /* @__PURE__ */ _({
|
|
|
484
500
|
}, 8, ["open"])
|
|
485
501
|
], 64));
|
|
486
502
|
}
|
|
487
|
-
}),
|
|
503
|
+
}), ve = { class: "flex items-center flex-nowrap" }, ye = { class: "mr-2 text-sm whitespace-nowrap" }, he = /* @__PURE__ */ x({
|
|
488
504
|
__name: "user",
|
|
489
|
-
setup(
|
|
490
|
-
const
|
|
491
|
-
return (
|
|
492
|
-
title: t(
|
|
505
|
+
setup(i) {
|
|
506
|
+
const s = F().userInfo;
|
|
507
|
+
return (n, e) => (u(), h(t(w), {
|
|
508
|
+
title: t(s).Name
|
|
493
509
|
}, {
|
|
494
|
-
default:
|
|
495
|
-
|
|
510
|
+
default: d(() => [
|
|
511
|
+
m("div", ve, [
|
|
512
|
+
m("span", ye, $(t(s).Name), 1),
|
|
513
|
+
r(t(ae), { icon: "icon-account" })
|
|
514
|
+
])
|
|
496
515
|
]),
|
|
497
516
|
_: 1
|
|
498
517
|
}, 8, ["title"]));
|
|
499
518
|
}
|
|
500
|
-
}),
|
|
519
|
+
}), ke = { class: "flex items-center" }, Ke = /* @__PURE__ */ x({
|
|
501
520
|
__name: "index",
|
|
502
|
-
setup(
|
|
503
|
-
const { useToken:
|
|
521
|
+
setup(i) {
|
|
522
|
+
const { useToken: s } = O, { token: n } = s(), e = H(), l = () => {
|
|
504
523
|
e.setMenuCollapse(!e.menuCollapse);
|
|
505
524
|
};
|
|
506
|
-
return (a,
|
|
525
|
+
return (a, o) => (u(), h(t(ne), {
|
|
507
526
|
class: "w-full relative z-[1] shadow-[0_-3px_6px_#000] py-0 flex items-center justify-between",
|
|
508
527
|
style: T({
|
|
509
528
|
height: "40px",
|
|
510
529
|
lineHeight: "1",
|
|
511
530
|
paddingLeft: "10px",
|
|
512
|
-
paddingRight: "
|
|
513
|
-
backgroundColor: t(
|
|
531
|
+
paddingRight: "20px",
|
|
532
|
+
backgroundColor: t(n).colorBgContainer
|
|
514
533
|
})
|
|
515
534
|
}, {
|
|
516
|
-
default:
|
|
517
|
-
|
|
518
|
-
|
|
535
|
+
default: d(() => [
|
|
536
|
+
m("div", ke, [
|
|
537
|
+
r(t(b), {
|
|
519
538
|
icon: "icon-menu",
|
|
520
539
|
clickable: "",
|
|
521
540
|
class: "w-[18px] h-[18px]",
|
|
522
541
|
angle: t(e).menuCollapse ? 90 : 0,
|
|
523
542
|
onClick: l
|
|
524
543
|
}, null, 8, ["angle"]),
|
|
525
|
-
|
|
544
|
+
r(fe)
|
|
526
545
|
]),
|
|
527
|
-
|
|
528
|
-
|
|
546
|
+
m("div", null, [
|
|
547
|
+
r(t(oe), {
|
|
529
548
|
size: "middle",
|
|
530
549
|
class: "flex items-center"
|
|
531
550
|
}, {
|
|
532
|
-
default:
|
|
533
|
-
|
|
534
|
-
|
|
551
|
+
default: d(() => [
|
|
552
|
+
r(ge),
|
|
553
|
+
r(he),
|
|
554
|
+
r(xe)
|
|
535
555
|
]),
|
|
536
556
|
_: 1
|
|
537
557
|
})
|
|
@@ -540,24 +560,24 @@ const ae = /* @__PURE__ */ _({
|
|
|
540
560
|
_: 1
|
|
541
561
|
}, 8, ["style"]));
|
|
542
562
|
}
|
|
543
|
-
}),
|
|
563
|
+
}), Ee = /* @__PURE__ */ x({
|
|
544
564
|
__name: "index",
|
|
545
565
|
props: {
|
|
546
566
|
routes: {}
|
|
547
567
|
},
|
|
548
|
-
setup(
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
},
|
|
552
|
-
let
|
|
553
|
-
const
|
|
554
|
-
|
|
568
|
+
setup(i) {
|
|
569
|
+
const s = i, n = y([]), e = y([]), l = Q([]), a = P(), o = (_) => {
|
|
570
|
+
z().push(_.key.toString());
|
|
571
|
+
}, f = H(), p = y([]), S = () => {
|
|
572
|
+
let _ = a.TabActive;
|
|
573
|
+
const c = _.split("/");
|
|
574
|
+
c.pop(), n.value = [c.join("/")], f.menuCollapse || (p.value = [c.join("/")]), e.value = [_];
|
|
555
575
|
};
|
|
556
576
|
return k(
|
|
557
|
-
() =>
|
|
558
|
-
(
|
|
559
|
-
|
|
560
|
-
|
|
577
|
+
() => f.menuCollapse,
|
|
578
|
+
(_) => {
|
|
579
|
+
_ || (p.value = [], W(() => {
|
|
580
|
+
p.value = [...n.value];
|
|
561
581
|
}));
|
|
562
582
|
}
|
|
563
583
|
), k(
|
|
@@ -565,70 +585,70 @@ const ae = /* @__PURE__ */ _({
|
|
|
565
585
|
() => {
|
|
566
586
|
S();
|
|
567
587
|
}
|
|
568
|
-
),
|
|
569
|
-
|
|
570
|
-
}), (
|
|
571
|
-
openKeys:
|
|
572
|
-
"onUpdate:openKeys":
|
|
588
|
+
), N(() => {
|
|
589
|
+
X(s.routes, l, pe, { class: "!w-5 !h-5" }), a.setTabActive(V.currentRoute.value.path), S();
|
|
590
|
+
}), (_, c) => (u(), h(t(se), {
|
|
591
|
+
openKeys: p.value,
|
|
592
|
+
"onUpdate:openKeys": c[0] || (c[0] = (v) => p.value = v),
|
|
573
593
|
selectedKeys: e.value,
|
|
574
|
-
"onUpdate:selectedKeys":
|
|
594
|
+
"onUpdate:selectedKeys": c[1] || (c[1] = (v) => e.value = v),
|
|
575
595
|
mode: "inline",
|
|
576
596
|
theme: "dark",
|
|
577
597
|
items: l,
|
|
578
|
-
onClick:
|
|
598
|
+
onClick: o
|
|
579
599
|
}, null, 8, ["openKeys", "selectedKeys", "items"]));
|
|
580
600
|
}
|
|
581
|
-
}),
|
|
601
|
+
}), be = { class: "flex items-center" }, Se = { class: "flex" }, Ie = ["onClick"], Me = /* @__PURE__ */ x({
|
|
582
602
|
__name: "menuTabs",
|
|
583
|
-
setup(
|
|
584
|
-
const { useToken:
|
|
603
|
+
setup(i) {
|
|
604
|
+
const { useToken: s } = O, { token: n } = s(), e = P();
|
|
585
605
|
k(
|
|
586
|
-
() =>
|
|
587
|
-
(
|
|
588
|
-
|
|
606
|
+
() => V.currentRoute.value.path,
|
|
607
|
+
(o) => {
|
|
608
|
+
o !== e.TabActive && e.setTabActive(o);
|
|
589
609
|
}
|
|
590
610
|
);
|
|
591
|
-
const l = (
|
|
592
|
-
|
|
593
|
-
}, a = (
|
|
594
|
-
e.removeTabPane(
|
|
611
|
+
const l = (o) => {
|
|
612
|
+
z().push(o);
|
|
613
|
+
}, a = (o) => {
|
|
614
|
+
e.removeTabPane(o), z().push(e.TabActive);
|
|
595
615
|
};
|
|
596
|
-
return (
|
|
597
|
-
style: T({ height: "38px", backgroundColor: t(
|
|
616
|
+
return (o, f) => (u(), g("div", {
|
|
617
|
+
style: T({ height: "38px", backgroundColor: t(n).colorBgBase })
|
|
598
618
|
}, [
|
|
599
|
-
|
|
619
|
+
r(t(ie), {
|
|
600
620
|
activeKey: t(e).TabActive,
|
|
601
621
|
"hide-add": "",
|
|
602
622
|
size: "small",
|
|
603
623
|
tabBarStyle: { padding: "0 20px" },
|
|
604
624
|
onTabClick: l
|
|
605
625
|
}, {
|
|
606
|
-
default:
|
|
607
|
-
(
|
|
608
|
-
key:
|
|
626
|
+
default: d(() => [
|
|
627
|
+
(u(!0), g(L, null, Y(t(e).TabPanes, (p) => (u(), h(t(ce), {
|
|
628
|
+
key: p.key
|
|
609
629
|
}, {
|
|
610
|
-
tab:
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
630
|
+
tab: d(() => [
|
|
631
|
+
m("div", be, [
|
|
632
|
+
m("span", Se, $(p.title), 1),
|
|
633
|
+
r(t(w), {
|
|
614
634
|
title: "关闭",
|
|
615
635
|
placement: "top",
|
|
616
636
|
size: "small"
|
|
617
637
|
}, {
|
|
618
|
-
default:
|
|
619
|
-
t(e).TabPanes.length > 1 &&
|
|
638
|
+
default: d(() => [
|
|
639
|
+
t(e).TabPanes.length > 1 && p.closable ? (u(), g("div", {
|
|
620
640
|
key: 0,
|
|
621
641
|
class: "inline-block mx-auto relative flex items-center",
|
|
622
|
-
onClick:
|
|
642
|
+
onClick: G((S) => a(p.key), ["stop"])
|
|
623
643
|
}, [
|
|
624
|
-
|
|
644
|
+
r(t(b), {
|
|
625
645
|
icon: "icon-new",
|
|
626
646
|
angle: 45,
|
|
627
647
|
clickable: "",
|
|
628
648
|
class: "w-[15px] h-[15px] ml-1",
|
|
629
|
-
tipcolor: t(
|
|
649
|
+
tipcolor: t(n).colorBgSpotlight
|
|
630
650
|
}, null, 8, ["tipcolor"])
|
|
631
|
-
], 8,
|
|
651
|
+
], 8, Ie)) : I("", !0)
|
|
632
652
|
]),
|
|
633
653
|
_: 2
|
|
634
654
|
}, 1024)
|
|
@@ -643,13 +663,14 @@ const ae = /* @__PURE__ */ _({
|
|
|
643
663
|
}
|
|
644
664
|
});
|
|
645
665
|
export {
|
|
646
|
-
|
|
666
|
+
je as I,
|
|
647
667
|
ue as _,
|
|
648
668
|
ae as a,
|
|
649
669
|
pe as b,
|
|
650
670
|
fe as c,
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
671
|
+
ge as d,
|
|
672
|
+
Ke as e,
|
|
673
|
+
xe as f,
|
|
674
|
+
Ee as g,
|
|
675
|
+
Me as h
|
|
655
676
|
};
|
|
@@ -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 "./index-
|
|
4
|
+
import { c as S } from "./index-CKMDsqve.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as $, ref as k, computed as O, watch as j, createElementBlock as p, openBlock as f, createElementVNode as r, createVNode as v, unref as l, mergeProps as B, withCtx as U, createTextVNode as E, toDisplayString as y, Fragment as M, renderList as R, normalizeClass as T, createCommentVNode as F } from "vue";
|
|
2
|
-
import { _ as V } from "./index-
|
|
2
|
+
import { _ as V } from "./index-BZvwPKou.js";
|
|
3
3
|
import { Upload as A, Tag as K, Progress as D } from "ant-design-vue";
|
|
4
4
|
import { httpPost as I, ResStatus as Q } from "@skyfox2000/fapi";
|
|
5
|
-
import "./index-
|
|
6
|
-
import { U as o, p as q } from "./file-upload-
|
|
5
|
+
import "./index-CKMDsqve.js";
|
|
6
|
+
import { U as o, p as q } from "./file-upload-D4bA7go8.js";
|
|
7
7
|
import { combineParams as G } from "@skyfox2000/microbase";
|
|
8
8
|
import h from "vue-m-message";
|
|
9
9
|
import "async-validator";
|
|
@@ -228,9 +228,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
228
228
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
229
229
|
"onUpdate:iconIndex"?: ((...args: any[]) => any) | undefined;
|
|
230
230
|
}>, {
|
|
231
|
-
fontsize: string;
|
|
232
231
|
icons: string[];
|
|
233
232
|
size: string | String[];
|
|
233
|
+
fontsize: string;
|
|
234
234
|
className: string;
|
|
235
235
|
iconIndex: number;
|
|
236
236
|
clickable: boolean;
|