@skyfox2000/webui 1.2.1 → 1.2.2
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/.vscode/settings.json +1 -1
- package/lib/assets/modules/download-C3KYmuzo.js +210 -0
- package/lib/assets/modules/file-upload-CMHnVQty.js +179 -0
- package/lib/assets/modules/form-excel-Xre5F1Ez.js +211 -0
- package/lib/assets/modules/hostInfo-DK8lknRe.js +2182 -0
- package/lib/assets/modules/index-htdsukeW.js +109 -0
- package/lib/assets/modules/{index-Civhd8xG.js → index-lc53kVVe.js} +34 -35
- package/lib/assets/modules/{menuTabs-BRYvFWA-.js → menuTabs-CkAkFKU8.js} +50 -49
- package/lib/assets/modules/{index-DmWrkTXX.js → toolIcon-Dpr1pbgl.js} +1 -1
- package/lib/components/common/icon/index.vue.d.ts +1 -1
- package/lib/components/index.d.ts +4 -5
- package/lib/es/AceEditor/index.js +7 -8
- package/lib/es/BasicLayout/index.js +20 -19
- package/lib/es/Error403/index.js +7 -6
- package/lib/es/Error404/index.js +7 -6
- package/lib/es/ExcelForm/index.js +179 -380
- package/lib/es/UploadForm/index.js +24 -25
- package/lib/index.d.ts +1 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +1119 -854
- package/package.json +1 -1
- package/src/components/index.ts +9 -54
- package/src/index.ts +50 -0
- package/vite.config.ts +1 -1
- package/lib/assets/modules/file-upload-CBUcsUnR.js +0 -170
- package/lib/assets/modules/form-validate-CgX7aR7T.js +0 -297
- package/lib/assets/modules/index-DQMdt51R.js +0 -726
- package/lib/assets/modules/settingInfo-BZakNKIN.js +0 -999
- package/lib/assets/modules/uploadList-B7XoxGOh.js +0 -278
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { defineComponent as d, useAttrs as f, createElementBlock as u, openBlock as x, createVNode as e, withCtx as n, unref as o, mergeProps as r, renderSlot as p } from "vue";
|
|
2
|
+
import { Button as _ } from "ant-design-vue";
|
|
3
|
+
import { a as P, _ as k } from "./toolIcon-Dpr1pbgl.js";
|
|
4
|
+
const C = /* @__PURE__ */ d({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* 提示标题
|
|
10
|
+
* @props
|
|
11
|
+
* @name content
|
|
12
|
+
* @type {string}
|
|
13
|
+
*/
|
|
14
|
+
tiptext: String,
|
|
15
|
+
/**
|
|
16
|
+
* 提示显示位置
|
|
17
|
+
* @props
|
|
18
|
+
* @name placement
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @default 'top'
|
|
21
|
+
*/
|
|
22
|
+
placement: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "top"
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* 内置图标属性设置
|
|
28
|
+
* @props
|
|
29
|
+
* @name iconProps
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @summary 内置图标复杂属性设置,仅支持前置图标
|
|
32
|
+
*/
|
|
33
|
+
iconProps: Object,
|
|
34
|
+
/**
|
|
35
|
+
* 默认使用框架图标
|
|
36
|
+
* 其它图标请自定义
|
|
37
|
+
* @props
|
|
38
|
+
* @name icon
|
|
39
|
+
* @type {string}
|
|
40
|
+
*/
|
|
41
|
+
icon: String
|
|
42
|
+
// /**
|
|
43
|
+
// * 点击事件
|
|
44
|
+
// * @props
|
|
45
|
+
// * @name clickEvent
|
|
46
|
+
// * @summary 格式 "空间名#事件名",空间名和事件名用#分隔,事件名用.分隔
|
|
47
|
+
// * @type {string}
|
|
48
|
+
// */
|
|
49
|
+
// clickEvent: {
|
|
50
|
+
// type: String
|
|
51
|
+
// },
|
|
52
|
+
// /**
|
|
53
|
+
// * 点击传输数据
|
|
54
|
+
// * @props
|
|
55
|
+
// * @name data
|
|
56
|
+
// * @summary 点击事件传输的默认数据
|
|
57
|
+
// * @type {object|string}
|
|
58
|
+
// */
|
|
59
|
+
// data: {
|
|
60
|
+
// type: [Object, String]
|
|
61
|
+
// }
|
|
62
|
+
},
|
|
63
|
+
emits: [
|
|
64
|
+
/**
|
|
65
|
+
* 点击事件
|
|
66
|
+
* @emits
|
|
67
|
+
* @name click
|
|
68
|
+
* @summary 图标按钮点击时触发的事件
|
|
69
|
+
*/
|
|
70
|
+
"click"
|
|
71
|
+
],
|
|
72
|
+
setup(i, { emit: l }) {
|
|
73
|
+
const c = f(), t = i, a = l, m = () => {
|
|
74
|
+
t.iconProps && t.iconProps.icons && (t.iconProps.iconIndex = (t.iconProps.iconIndex + 1) % t.iconProps.icons.length), a("click");
|
|
75
|
+
};
|
|
76
|
+
return (s, b) => (x(), u("div", null, [
|
|
77
|
+
e(P, {
|
|
78
|
+
title: t.tiptext,
|
|
79
|
+
disabled: t.tiptext ? void 0 : "disabled",
|
|
80
|
+
placement: i.placement
|
|
81
|
+
}, {
|
|
82
|
+
default: n(() => [
|
|
83
|
+
e(o(_), r({ class: "px-[10px] py-[4px] flex items-center gap-1" }, o(c), { onClick: m }), {
|
|
84
|
+
icon: n(() => [
|
|
85
|
+
p(s.$slots, "icon", {}, () => [
|
|
86
|
+
e(k, r({
|
|
87
|
+
icon: t.icon,
|
|
88
|
+
class: [
|
|
89
|
+
o(c).type === "primary" ? "ant-btn-primary" : "",
|
|
90
|
+
"cursor-pointer w-[17px] h-[17px] mx-auto"
|
|
91
|
+
],
|
|
92
|
+
clickable: ""
|
|
93
|
+
}, t.iconProps), null, 16, ["icon", "class"])
|
|
94
|
+
])
|
|
95
|
+
]),
|
|
96
|
+
default: n(() => [
|
|
97
|
+
p(s.$slots, "default")
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
}, 16)
|
|
101
|
+
]),
|
|
102
|
+
_: 3
|
|
103
|
+
}, 8, ["title", "disabled", "placement"])
|
|
104
|
+
]));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
C as _
|
|
109
|
+
};
|
|
@@ -1,15 +1,14 @@
|
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import { Modal as
|
|
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-htdsukeW.js";
|
|
3
|
+
import { Modal as E, Space as M } from "ant-design-vue";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "./
|
|
6
|
-
import "
|
|
5
|
+
import { P, o as $, b as D, a as K } from "./hostInfo-DK8lknRe.js";
|
|
6
|
+
import "vue-draggable-next";
|
|
7
7
|
import "vue-m-message";
|
|
8
|
-
import "async-validator";
|
|
9
|
-
import { o as $, b as D, a as K } from "./index-DQMdt51R.js";
|
|
10
8
|
import "dayjs";
|
|
11
|
-
import "
|
|
12
|
-
|
|
9
|
+
import "@skyfox2000/microbase";
|
|
10
|
+
import "async-validator";
|
|
11
|
+
const U = { class: "overflow-y-auto w-full h-full" }, R = /* @__PURE__ */ A({
|
|
13
12
|
__name: "index",
|
|
14
13
|
props: {
|
|
15
14
|
saveText: {},
|
|
@@ -23,62 +22,62 @@ const U = { class: "overflow-y-auto w-full h-full" }, W = /* @__PURE__ */ A({
|
|
|
23
22
|
},
|
|
24
23
|
emits: ["update:open"],
|
|
25
24
|
setup(C, { emit: T }) {
|
|
26
|
-
const
|
|
27
|
-
B(
|
|
28
|
-
const
|
|
25
|
+
const s = C, e = s.editorCtrl;
|
|
26
|
+
B(P.EditorControl, e);
|
|
27
|
+
const l = S(s.open ?? !1), h = T, k = S(s.width ?? 430);
|
|
29
28
|
p(
|
|
30
29
|
() => e == null ? void 0 : e.visible.value,
|
|
31
30
|
(o) => {
|
|
32
|
-
|
|
31
|
+
l.value = o ?? !1;
|
|
33
32
|
}
|
|
34
33
|
), p(
|
|
35
|
-
() =>
|
|
34
|
+
() => s.open,
|
|
36
35
|
(o) => {
|
|
37
|
-
|
|
36
|
+
l.value = o;
|
|
38
37
|
}
|
|
39
38
|
), p(
|
|
40
|
-
() =>
|
|
39
|
+
() => l.value,
|
|
41
40
|
(o) => {
|
|
42
41
|
h("update:open", o), o || v();
|
|
43
42
|
}
|
|
44
43
|
), F(() => {
|
|
45
|
-
|
|
44
|
+
l.value = (e == null ? void 0 : e.visible.value) ?? !1;
|
|
46
45
|
});
|
|
47
46
|
const x = () => {
|
|
48
|
-
|
|
47
|
+
s.dialogSave || e && D(e);
|
|
49
48
|
}, _ = () => {
|
|
50
49
|
e && K(e);
|
|
51
50
|
}, v = () => {
|
|
52
|
-
e ? $(e) :
|
|
51
|
+
e ? $(e) : l.value = !1;
|
|
53
52
|
};
|
|
54
|
-
return (o, c) => (r(), n(a(
|
|
55
|
-
open:
|
|
56
|
-
"onUpdate:open": c[0] || (c[0] = (
|
|
53
|
+
return (o, c) => (r(), n(a(E), {
|
|
54
|
+
open: l.value,
|
|
55
|
+
"onUpdate:open": c[0] || (c[0] = (i) => l.value = i),
|
|
57
56
|
wrapClassName: "modal mx-auto min-w-[430px] " + (o.full ? "full-modal w-full" : ""),
|
|
58
57
|
width: k.value
|
|
59
58
|
}, {
|
|
60
|
-
footer:
|
|
61
|
-
V(a(
|
|
62
|
-
default:
|
|
63
|
-
var
|
|
59
|
+
footer: t(() => [
|
|
60
|
+
V(a(M), null, {
|
|
61
|
+
default: t(() => {
|
|
62
|
+
var i, y, g, w;
|
|
64
63
|
return [
|
|
65
64
|
o.cancelText !== "" ? (r(), n(a(f), {
|
|
66
65
|
key: 0,
|
|
67
66
|
onClick: v
|
|
68
67
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
m(
|
|
68
|
+
default: t(() => [
|
|
69
|
+
u(m(o.cancelText ?? "取消"), 1)
|
|
71
70
|
]),
|
|
72
71
|
_: 1
|
|
73
72
|
})) : d("", !0),
|
|
74
|
-
o.saveAsText !== "" && ((
|
|
73
|
+
o.saveAsText !== "" && ((i = a(e)) == null ? void 0 : i.saveAsBtnVisible) !== !1 ? (r(), n(a(f), {
|
|
75
74
|
key: 1,
|
|
76
75
|
onClick: _,
|
|
77
76
|
type: "primary",
|
|
78
77
|
loading: (y = a(e)) == null ? void 0 : y.isFormSaving.value
|
|
79
78
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
m(
|
|
79
|
+
default: t(() => [
|
|
80
|
+
u(m(o.saveAsText ?? "另存为"), 1)
|
|
82
81
|
]),
|
|
83
82
|
_: 1
|
|
84
83
|
}, 8, ["loading"])) : d("", !0),
|
|
@@ -88,8 +87,8 @@ const U = { class: "overflow-y-auto w-full h-full" }, W = /* @__PURE__ */ A({
|
|
|
88
87
|
type: "primary",
|
|
89
88
|
loading: (w = a(e)) == null ? void 0 : w.isFormSaving.value
|
|
90
89
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
m(
|
|
90
|
+
default: t(() => [
|
|
91
|
+
u(m(o.saveText ?? "保存"), 1)
|
|
93
92
|
]),
|
|
94
93
|
_: 1
|
|
95
94
|
}, 8, ["loading"])) : d("", !0)
|
|
@@ -98,7 +97,7 @@ const U = { class: "overflow-y-auto w-full h-full" }, W = /* @__PURE__ */ A({
|
|
|
98
97
|
_: 1
|
|
99
98
|
})
|
|
100
99
|
]),
|
|
101
|
-
default:
|
|
100
|
+
default: t(() => [
|
|
102
101
|
N("div", U, [
|
|
103
102
|
b(o.$slots, "default")
|
|
104
103
|
])
|
|
@@ -108,5 +107,5 @@ const U = { class: "overflow-y-auto w-full h-full" }, W = /* @__PURE__ */ A({
|
|
|
108
107
|
}
|
|
109
108
|
});
|
|
110
109
|
export {
|
|
111
|
-
|
|
110
|
+
R as _
|
|
112
111
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as _, createBlock as y, createCommentVNode as I, openBlock as p, unref as t, mergeProps as C, useAttrs as q, computed as P, ref as h, watch as k, withCtx as
|
|
2
|
-
import { a as w, _ as b } from "./
|
|
3
|
-
import { c as F,
|
|
1
|
+
import { defineComponent as _, createBlock as y, createCommentVNode as I, openBlock as p, unref as t, mergeProps as C, useAttrs as q, computed as P, ref as h, watch as k, withCtx as f, createElementBlock as g, normalizeStyle as T, createElementVNode as x, inject as J, onMounted as R, createVNode as u, toDisplayString as U, Fragment as L, createTextVNode as O, reactive as Q, nextTick as W, renderList as G, withModifiers as X } from "vue";
|
|
2
|
+
import { a as w, _ as b } from "./toolIcon-Dpr1pbgl.js";
|
|
3
|
+
import { c as F, N as j, ab as B, S as K, R as E, z as H, u as V, Q as Y, r as D, a9 as z } from "./hostInfo-DK8lknRe.js";
|
|
4
4
|
import { theme as N, 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 {
|
|
6
|
-
import
|
|
5
|
+
import { SERVER_HOST as A } from "@skyfox2000/fapi";
|
|
6
|
+
import "vue-draggable-next";
|
|
7
7
|
import "vue-m-message";
|
|
8
|
-
import "async-validator";
|
|
9
8
|
import "dayjs";
|
|
9
|
+
import { mainAppApis as M } from "@skyfox2000/microbase";
|
|
10
|
+
import "async-validator";
|
|
10
11
|
const ae = /* @__PURE__ */ _({
|
|
11
12
|
__name: "appicon",
|
|
12
13
|
props: {
|
|
@@ -16,7 +17,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
16
17
|
},
|
|
17
18
|
setup(s) {
|
|
18
19
|
const c = s, e = F({
|
|
19
|
-
iconUrl: `${
|
|
20
|
+
iconUrl: `${A.APP_ICONS}`,
|
|
20
21
|
icon: c.icon
|
|
21
22
|
});
|
|
22
23
|
return (l, a) => s.icon ? (p(), y(t(e), C({
|
|
@@ -303,7 +304,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
303
304
|
v.length === 2 && J("$" + v[0]).$emit(v[1], e.data);
|
|
304
305
|
}
|
|
305
306
|
e.autoSwitch && e.icons.length > 0 && (r.value = (r.value + 1) % e.icons.length, n.value = e.icons[d.value]), l("click");
|
|
306
|
-
},
|
|
307
|
+
}, m = () => {
|
|
307
308
|
let o = "";
|
|
308
309
|
return e.spin && (o += "rotate"), e.flip && (o += " flip"), o;
|
|
309
310
|
};
|
|
@@ -314,7 +315,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
314
315
|
placement: s.placement,
|
|
315
316
|
size: s.tipsize
|
|
316
317
|
}, {
|
|
317
|
-
default:
|
|
318
|
+
default: f(() => {
|
|
318
319
|
var $;
|
|
319
320
|
return [
|
|
320
321
|
n.value ? (p(), g("div", {
|
|
@@ -326,7 +327,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
326
327
|
})
|
|
327
328
|
}, [
|
|
328
329
|
($ = n.value) != null && $.startsWith("sym-") ? (p(), g("svg", C({ key: 1 }, t(i), {
|
|
329
|
-
class: ["re-icon symbol", [e.clickable ? "clickable" : "",
|
|
330
|
+
class: ["re-icon symbol", [e.clickable ? "clickable" : "", m(), e.className]],
|
|
330
331
|
"aria-hidden": "true",
|
|
331
332
|
style: {
|
|
332
333
|
top: e.position ? e.position[1] : 0,
|
|
@@ -341,7 +342,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
341
342
|
"xlink:href": "#icon-" + n.value.replace("sym-", "")
|
|
342
343
|
}, null, 8, le)
|
|
343
344
|
], 16)) : (p(), g("i", C({ key: 0 }, t(i), {
|
|
344
|
-
class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value,
|
|
345
|
+
class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, m(), e.className]],
|
|
345
346
|
style: {
|
|
346
347
|
top: e.position ? e.position[1] : 1,
|
|
347
348
|
left: e.position ? e.position[0] : 0,
|
|
@@ -364,7 +365,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
364
365
|
for (const [e, l] of c)
|
|
365
366
|
i[e] = l;
|
|
366
367
|
return i;
|
|
367
|
-
},
|
|
368
|
+
}, Be = /* @__PURE__ */ ue(re, [["__scopeId", "data-v-0146f00c"]]), pe = /* @__PURE__ */ _({
|
|
368
369
|
__name: "projectIcon",
|
|
369
370
|
props: {
|
|
370
371
|
icon: {
|
|
@@ -383,7 +384,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
383
384
|
},
|
|
384
385
|
setup(s) {
|
|
385
386
|
const c = s, e = F({
|
|
386
|
-
iconUrl: `${c.iconUrl ??
|
|
387
|
+
iconUrl: `${c.iconUrl ?? A.PROJECT_ICONS ?? A.TOOL_ICONS}`,
|
|
387
388
|
monoColor: c.monoColor,
|
|
388
389
|
icon: c.icon,
|
|
389
390
|
icons: c.icons
|
|
@@ -395,17 +396,17 @@ const ae = /* @__PURE__ */ _({
|
|
|
395
396
|
class: ["align-middle"]
|
|
396
397
|
}, l.$attrs), null, 16, ["icon", "icons"])) : I("", !0);
|
|
397
398
|
}
|
|
398
|
-
}), de = { class: "text-xs leading-[3]" },
|
|
399
|
+
}), de = { class: "text-xs leading-[3]" }, me = {
|
|
399
400
|
key: 0,
|
|
400
401
|
class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]"
|
|
401
|
-
},
|
|
402
|
+
}, fe = /* @__PURE__ */ _({
|
|
402
403
|
__name: "index",
|
|
403
404
|
setup(s) {
|
|
404
405
|
const { useToken: c } = N, { token: i } = c(), e = B();
|
|
405
406
|
return k(
|
|
406
407
|
() => e.TabActive,
|
|
407
408
|
() => K()
|
|
408
|
-
),
|
|
409
|
+
), R(() => {
|
|
409
410
|
K();
|
|
410
411
|
}), (l, a) => (p(), g("div", {
|
|
411
412
|
class: "ml-5 h-fit p-0 flex items-center justify-between",
|
|
@@ -422,13 +423,13 @@ const ae = /* @__PURE__ */ _({
|
|
|
422
423
|
routes: t(E),
|
|
423
424
|
separator: ""
|
|
424
425
|
}, {
|
|
425
|
-
itemRender:
|
|
426
|
-
x("span", de,
|
|
426
|
+
itemRender: f(({ route: n }) => [
|
|
427
|
+
x("span", de, U(n.breadcrumbName), 1),
|
|
427
428
|
u(t(b), {
|
|
428
429
|
icon: n.icon,
|
|
429
430
|
fontsize: "15px"
|
|
430
431
|
}, null, 8, ["icon"]),
|
|
431
|
-
n.index < t(E).length - 1 ? (p(), g("span",
|
|
432
|
+
n.index < t(E).length - 1 ? (p(), g("span", me, ">")) : I("", !0)
|
|
432
433
|
]),
|
|
433
434
|
_: 1
|
|
434
435
|
}, 8, ["routes"])
|
|
@@ -457,13 +458,13 @@ const ae = /* @__PURE__ */ _({
|
|
|
457
458
|
width: 380,
|
|
458
459
|
onOk: e
|
|
459
460
|
}, {
|
|
460
|
-
default:
|
|
461
|
+
default: f(() => [
|
|
461
462
|
u(t(te), {
|
|
462
463
|
align: "center",
|
|
463
464
|
justify: "flex-start",
|
|
464
465
|
style: { padding: "0 32px", margin: "20px 0" }
|
|
465
466
|
}, {
|
|
466
|
-
default:
|
|
467
|
+
default: f(() => [
|
|
467
468
|
u(t(b), {
|
|
468
469
|
icon: "icon-question-circle",
|
|
469
470
|
color: "orange",
|
|
@@ -490,13 +491,13 @@ const ae = /* @__PURE__ */ _({
|
|
|
490
491
|
return (i, e) => (p(), y(t(w), {
|
|
491
492
|
title: t(c).Name
|
|
492
493
|
}, {
|
|
493
|
-
default:
|
|
494
|
+
default: f(() => [
|
|
494
495
|
u(t(ae), { icon: "icon-account" })
|
|
495
496
|
]),
|
|
496
497
|
_: 1
|
|
497
498
|
}, 8, ["title"]));
|
|
498
499
|
}
|
|
499
|
-
}), _e = { class: "flex items-center" },
|
|
500
|
+
}), _e = { class: "flex items-center" }, Ne = /* @__PURE__ */ _({
|
|
500
501
|
__name: "index",
|
|
501
502
|
setup(s) {
|
|
502
503
|
const { useToken: c } = N, { token: i } = c(), e = V(), l = () => {
|
|
@@ -512,7 +513,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
512
513
|
backgroundColor: t(i).colorBgContainer
|
|
513
514
|
})
|
|
514
515
|
}, {
|
|
515
|
-
default:
|
|
516
|
+
default: f(() => [
|
|
516
517
|
x("div", _e, [
|
|
517
518
|
u(t(b), {
|
|
518
519
|
icon: "icon-menu",
|
|
@@ -521,14 +522,14 @@ const ae = /* @__PURE__ */ _({
|
|
|
521
522
|
angle: t(e).menuCollapse ? 90 : 0,
|
|
522
523
|
onClick: l
|
|
523
524
|
}, null, 8, ["angle"]),
|
|
524
|
-
u(
|
|
525
|
+
u(fe)
|
|
525
526
|
]),
|
|
526
527
|
x("div", null, [
|
|
527
528
|
u(t(oe), {
|
|
528
529
|
size: "middle",
|
|
529
530
|
class: "flex items-center"
|
|
530
531
|
}, {
|
|
531
|
-
default:
|
|
532
|
+
default: f(() => [
|
|
532
533
|
u(xe, { class: "w-7 h-7" }),
|
|
533
534
|
u(ge)
|
|
534
535
|
]),
|
|
@@ -539,23 +540,23 @@ const ae = /* @__PURE__ */ _({
|
|
|
539
540
|
_: 1
|
|
540
541
|
}, 8, ["style"]));
|
|
541
542
|
}
|
|
542
|
-
}),
|
|
543
|
+
}), Pe = /* @__PURE__ */ _({
|
|
543
544
|
__name: "index",
|
|
544
545
|
props: {
|
|
545
546
|
routes: {}
|
|
546
547
|
},
|
|
547
548
|
setup(s) {
|
|
548
|
-
const c = s, i = h([]), e = h([]), l =
|
|
549
|
-
|
|
549
|
+
const c = s, i = h([]), e = h([]), l = Q([]), a = B(), n = (m) => {
|
|
550
|
+
z().push(m.key.toString());
|
|
550
551
|
}, d = V(), r = h([]), S = () => {
|
|
551
|
-
let
|
|
552
|
-
const o =
|
|
553
|
-
o.pop(), i.value = [o.join("/")], d.menuCollapse || (r.value = [o.join("/")]), e.value = [
|
|
552
|
+
let m = a.TabActive;
|
|
553
|
+
const o = m.split("/");
|
|
554
|
+
o.pop(), i.value = [o.join("/")], d.menuCollapse || (r.value = [o.join("/")]), e.value = [m];
|
|
554
555
|
};
|
|
555
556
|
return k(
|
|
556
557
|
() => d.menuCollapse,
|
|
557
|
-
(
|
|
558
|
-
|
|
558
|
+
(m) => {
|
|
559
|
+
m || (r.value = [], W(() => {
|
|
559
560
|
r.value = [...i.value];
|
|
560
561
|
}));
|
|
561
562
|
}
|
|
@@ -564,9 +565,9 @@ const ae = /* @__PURE__ */ _({
|
|
|
564
565
|
() => {
|
|
565
566
|
S();
|
|
566
567
|
}
|
|
567
|
-
),
|
|
568
|
+
), R(() => {
|
|
568
569
|
Y(c.routes, l, pe, { class: "!w-5 !h-5" }), a.setTabActive(D.currentRoute.value.path), S();
|
|
569
|
-
}), (
|
|
570
|
+
}), (m, o) => (p(), y(t(se), {
|
|
570
571
|
openKeys: r.value,
|
|
571
572
|
"onUpdate:openKeys": o[0] || (o[0] = (v) => r.value = v),
|
|
572
573
|
selectedKeys: e.value,
|
|
@@ -577,7 +578,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
577
578
|
onClick: n
|
|
578
579
|
}, null, 8, ["openKeys", "selectedKeys", "items"]));
|
|
579
580
|
}
|
|
580
|
-
}), ve = { class: "flex items-center" }, ye = { class: "flex" }, he = ["onClick"],
|
|
581
|
+
}), ve = { class: "flex items-center" }, ye = { class: "flex" }, he = ["onClick"], Oe = /* @__PURE__ */ _({
|
|
581
582
|
__name: "menuTabs",
|
|
582
583
|
setup(s) {
|
|
583
584
|
const { useToken: c } = N, { token: i } = c(), e = B();
|
|
@@ -588,9 +589,9 @@ const ae = /* @__PURE__ */ _({
|
|
|
588
589
|
}
|
|
589
590
|
);
|
|
590
591
|
const l = (n) => {
|
|
591
|
-
|
|
592
|
+
z().push(n);
|
|
592
593
|
}, a = (n) => {
|
|
593
|
-
e.removeTabPane(n),
|
|
594
|
+
e.removeTabPane(n), z().push(e.TabActive);
|
|
594
595
|
};
|
|
595
596
|
return (n, d) => (p(), g("div", {
|
|
596
597
|
style: T({ height: "38px", backgroundColor: t(i).colorBgBase })
|
|
@@ -602,19 +603,19 @@ const ae = /* @__PURE__ */ _({
|
|
|
602
603
|
tabBarStyle: { padding: "0 20px" },
|
|
603
604
|
onTabClick: l
|
|
604
605
|
}, {
|
|
605
|
-
default:
|
|
606
|
-
(p(!0), g(L, null,
|
|
606
|
+
default: f(() => [
|
|
607
|
+
(p(!0), g(L, null, G(t(e).TabPanes, (r) => (p(), y(t(ce), {
|
|
607
608
|
key: r.key
|
|
608
609
|
}, {
|
|
609
|
-
tab:
|
|
610
|
+
tab: f(() => [
|
|
610
611
|
x("div", ve, [
|
|
611
|
-
x("span", ye,
|
|
612
|
+
x("span", ye, U(r.title), 1),
|
|
612
613
|
u(t(w), {
|
|
613
614
|
title: "关闭",
|
|
614
615
|
placement: "top",
|
|
615
616
|
size: "small"
|
|
616
617
|
}, {
|
|
617
|
-
default:
|
|
618
|
+
default: f(() => [
|
|
618
619
|
t(e).TabPanes.length > 1 && r.closable ? (p(), g("div", {
|
|
619
620
|
key: 0,
|
|
620
621
|
class: "inline-block mx-auto relative flex items-center",
|
|
@@ -642,13 +643,13 @@ const ae = /* @__PURE__ */ _({
|
|
|
642
643
|
}
|
|
643
644
|
});
|
|
644
645
|
export {
|
|
645
|
-
|
|
646
|
+
Be as I,
|
|
646
647
|
ue as _,
|
|
647
648
|
ae as a,
|
|
648
649
|
pe as b,
|
|
649
|
-
|
|
650
|
-
|
|
650
|
+
fe as c,
|
|
651
|
+
Ne as d,
|
|
651
652
|
ge as e,
|
|
652
|
-
|
|
653
|
-
|
|
653
|
+
Pe as f,
|
|
654
|
+
Oe as g
|
|
654
655
|
};
|
|
@@ -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 "./hostInfo-DK8lknRe.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -236,8 +236,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
236
236
|
clickable: boolean;
|
|
237
237
|
flip: boolean;
|
|
238
238
|
fontsize: string;
|
|
239
|
-
className: string;
|
|
240
239
|
autoSwitch: boolean;
|
|
240
|
+
className: string;
|
|
241
241
|
spin: boolean;
|
|
242
242
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
243
243
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { Button, Tooltip, AppIcon, Fullscreen, Helper, Icon, LayoutIcon, ProjectIcon, ToolIcon, Dialog, Drawer, Form, FormItem, Search, SearchItem, Table, TableOperate, Toolbar, Icontool, Tree, AutoComplete, Cascader, Checkbox, DatePicker, Input, InputIcon, InputPassword, InputNumber, PropEditor, Radio, RadioStatus, RangePicker, Select, Switch, Textarea, Transfer, TransferTable, TreeSelect, UploadList, Breadcrumb, Content, Datetime, Header, HeaderExits, Menu, MenuTabs, };
|
|
1
|
+
export { Button, Tooltip, AppIcon, Fullscreen, Helper, Icon, LayoutIcon, ProjectIcon, ToolIcon } from './common';
|
|
2
|
+
export { Dialog, Drawer, Form, FormItem, Search, SearchItem, Table, TableOperate, Toolbar, Icontool, Tree, } from './content';
|
|
3
|
+
export { AutoComplete, Cascader, Checkbox, DatePicker, Input, InputIcon, InputPassword, InputNumber, PropEditor, Radio, RadioStatus, RangePicker, Select, Switch, Textarea, Transfer, TransferTable, TreeSelect, UploadList, } from './form';
|
|
4
|
+
export { Breadcrumb, Content, Datetime, Header, HeaderExits, Menu, MenuTabs } from './layout';
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { defineComponent as F, defineAsyncComponent as M, ref as m, watch as V, onMounted as J, createElementBlock as x, openBlock as p, Fragment as K, createElementVNode as v, createVNode as _, toDisplayString as W, unref as i, createBlock as P, withKeys as f, normalizeClass as N, withModifiers as w, withCtx as z, createCommentVNode as L } from "vue";
|
|
2
|
-
import { _ as q } from "../../assets/modules/index-Civhd8xG.js";
|
|
3
2
|
import "ant-design-vue";
|
|
4
|
-
import { _ as
|
|
3
|
+
import { _ as q } from "../../assets/modules/toolIcon-Dpr1pbgl.js";
|
|
5
4
|
import "@skyfox2000/fapi";
|
|
6
|
-
import "../../assets/modules/
|
|
5
|
+
import "../../assets/modules/hostInfo-DK8lknRe.js";
|
|
7
6
|
import "@skyfox2000/microbase";
|
|
8
7
|
import "vue-m-message";
|
|
9
8
|
import "async-validator";
|
|
10
9
|
import "dayjs";
|
|
10
|
+
import { _ as D } from "../../assets/modules/index-lc53kVVe.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import "../../assets/modules/index-DQMdt51R.js";
|
|
13
12
|
const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
14
13
|
const o = document.createElement("script");
|
|
15
14
|
o.src = `${s}ace/ace.js`, o.async = !0, o.onload = () => {
|
|
@@ -44,7 +43,7 @@ const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
|
44
43
|
}, T = { class: "w-full overflow-hidden rounded-md border-1 border-solid border-gray-300" }, G = { class: "w-full h-[30px] bg-[#ccc] relative flex items-center justify-between px-2" }, H = { class: "flex-1 overflow-hidden" }, I = {
|
|
45
44
|
key: 1,
|
|
46
45
|
class: "h-[500px] w-[99.3%] flex justify-center items-center border-1 border-solid border-gray-200"
|
|
47
|
-
}, $ = "github",
|
|
46
|
+
}, $ = "github", ie = /* @__PURE__ */ F({
|
|
48
47
|
__name: "index",
|
|
49
48
|
props: {
|
|
50
49
|
value: {},
|
|
@@ -108,7 +107,7 @@ const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
|
108
107
|
v("div", T, [
|
|
109
108
|
v("div", G, [
|
|
110
109
|
v("div", null, W(i(r).toUpperCase()), 1),
|
|
111
|
-
_(i(
|
|
110
|
+
_(i(q), {
|
|
112
111
|
icon: "icon-fullscreen",
|
|
113
112
|
clickable: "",
|
|
114
113
|
class: "w-4 h-4 text-[12px]",
|
|
@@ -135,7 +134,7 @@ const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
|
135
134
|
}, "加载编辑器中...", 2))
|
|
136
135
|
])
|
|
137
136
|
]),
|
|
138
|
-
_(i(
|
|
137
|
+
_(i(D), {
|
|
139
138
|
title: "代码编辑器",
|
|
140
139
|
open: d.value,
|
|
141
140
|
"onUpdate:open": e[6] || (e[6] = (u) => d.value = u),
|
|
@@ -164,5 +163,5 @@ const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
|
164
163
|
}
|
|
165
164
|
});
|
|
166
165
|
export {
|
|
167
|
-
|
|
166
|
+
ie as default
|
|
168
167
|
};
|