@robot-admin/layout 2.2.0 → 2.3.0
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 +5 -2
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -1
- package/dist/index.d.ts +21 -3
- package/dist/index.js +1969 -2633
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/styles/settings.scss +5 -5
package/dist/index.js
CHANGED
|
@@ -1,1685 +1,1322 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import {
|
|
4
|
-
import { useRoute as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
1
|
+
import { Fragment as e, KeepAlive as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, h as f, inject as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onMounted as _, onUnmounted as v, openBlock as y, provide as b, ref as x, renderList as S, renderSlot as C, resolveComponent as w, resolveDynamicComponent as T, toDisplayString as E, toValue as D, unref as O, useModel as k, watch as A, withCtx as j, withModifiers as M } from "vue";
|
|
2
|
+
import { defineStore as N } from "pinia";
|
|
3
|
+
import { NButton as P, NColorPicker as F, NDrawer as I, NDrawerContent as L, NDropdown as R, NInput as z, NLayout as B, NLayoutContent as V, NLayoutSider as H, NMenu as ee, NRadioButton as U, NRadioGroup as W, NSlider as te, NSwitch as G, NTabPane as ne, NTabs as re, useDialog as ie, useMessage as ae } from "naive-ui";
|
|
4
|
+
import { useRoute as K, useRouter as q } from "vue-router";
|
|
5
|
+
//#region src/constants/index.ts
|
|
6
|
+
var oe = [
|
|
7
|
+
{
|
|
8
|
+
name: "拂晓蓝",
|
|
9
|
+
value: "#409eff"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: "薄暮红",
|
|
13
|
+
value: "#f5222d"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "火山橙",
|
|
17
|
+
value: "#fa541c"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "日暮黄",
|
|
21
|
+
value: "#faad14"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "极光绿",
|
|
25
|
+
value: "#52c41a"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "明青",
|
|
29
|
+
value: "#13c2c2"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "极客蓝",
|
|
33
|
+
value: "#2f54eb"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "酱紫",
|
|
37
|
+
value: "#722ed1"
|
|
38
|
+
}
|
|
39
|
+
], se = [
|
|
40
|
+
{
|
|
41
|
+
name: "科技蓝",
|
|
42
|
+
icon: "💙",
|
|
43
|
+
primaryColor: "#409eff"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "清新绿",
|
|
47
|
+
icon: "💚",
|
|
48
|
+
primaryColor: "#52c41a"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "商务灰",
|
|
52
|
+
icon: "🖤",
|
|
53
|
+
primaryColor: "#595959"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "活力橙",
|
|
57
|
+
icon: "🧡",
|
|
58
|
+
primaryColor: "#fa8c16"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "优雅紫",
|
|
62
|
+
icon: "💜",
|
|
63
|
+
primaryColor: "#722ed1"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "经典红",
|
|
67
|
+
icon: "❤️",
|
|
68
|
+
primaryColor: "#f5222d"
|
|
69
|
+
}
|
|
70
|
+
], ce = [
|
|
71
|
+
{
|
|
72
|
+
mode: "side",
|
|
73
|
+
label: "左侧菜单",
|
|
74
|
+
description: "经典的左侧导航布局",
|
|
75
|
+
icon: "i-mdi:page-layout-sidebar-left"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
mode: "top",
|
|
79
|
+
label: "顶部菜单",
|
|
80
|
+
description: "顶部水平导航布局",
|
|
81
|
+
icon: "i-mdi:page-layout-header"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
mode: "mix",
|
|
85
|
+
label: "混合菜单",
|
|
86
|
+
description: "顶部 + 侧边混合布局",
|
|
87
|
+
icon: "i-mdi:view-dashboard-outline"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
mode: "mix-top",
|
|
91
|
+
label: "顶部混合",
|
|
92
|
+
description: "侧边优先的混合布局",
|
|
93
|
+
icon: "i-mdi:view-dashboard-variant-outline"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
mode: "reverse-horizontal-mix",
|
|
97
|
+
label: "反转混合",
|
|
98
|
+
description: "反转的水平混合布局",
|
|
99
|
+
icon: "i-mdi:page-layout-header-footer"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
mode: "card-layout",
|
|
103
|
+
label: "卡片布局",
|
|
104
|
+
description: "卡片式布局风格",
|
|
105
|
+
icon: "i-mdi:card-outline"
|
|
106
|
+
}
|
|
107
|
+
], le = {
|
|
108
|
+
small: "4px",
|
|
109
|
+
medium: "6px",
|
|
110
|
+
large: "8px"
|
|
111
|
+
}, ue = {
|
|
112
|
+
fade: "fade-transform",
|
|
113
|
+
slide: "fade-slide",
|
|
114
|
+
zoom: "fade-zoom",
|
|
115
|
+
none: ""
|
|
116
|
+
}, J = {
|
|
117
|
+
themeMode: "light",
|
|
118
|
+
primaryColor: "#409eff",
|
|
119
|
+
borderRadius: "medium",
|
|
120
|
+
transitionType: "slide",
|
|
121
|
+
enableTransition: !0,
|
|
122
|
+
layoutMode: "side",
|
|
123
|
+
menuExpandMode: "inline",
|
|
124
|
+
collapsed: !1,
|
|
125
|
+
fixedHeader: !0,
|
|
126
|
+
showBreadcrumb: !0,
|
|
127
|
+
showBreadcrumbIcon: !0,
|
|
128
|
+
showTagsView: !0,
|
|
129
|
+
tagsViewHeight: 44,
|
|
130
|
+
tagsViewStyle: "default",
|
|
131
|
+
showFooter: !0,
|
|
132
|
+
sidebarWidth: 220,
|
|
133
|
+
sidebarCollapsedWidth: 64,
|
|
134
|
+
headerHeight: 56,
|
|
135
|
+
enableHotkeys: !0,
|
|
136
|
+
version: "2.0.2"
|
|
137
|
+
}, de = oe.map((e) => e.value);
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/stores/settings.ts
|
|
140
|
+
function fe(e, t) {
|
|
141
|
+
let n = parseInt(e.replace("#", ""), 16), r = Math.min(255, Math.max(0, (n >> 16) + t)), i = Math.min(255, Math.max(0, (n >> 8 & 255) + t)), a = Math.min(255, Math.max(0, (n & 255) + t));
|
|
142
|
+
return `#${(r << 16 | i << 8 | a).toString(16).padStart(6, "0")}`;
|
|
118
143
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
tagsViewStyle: H,
|
|
201
|
-
showFooter: b,
|
|
202
|
-
sidebarWidth: k,
|
|
203
|
-
sidebarCollapsedWidth: L,
|
|
204
|
-
headerHeight: j,
|
|
205
|
-
enableHotkeys: F,
|
|
206
|
-
version: B,
|
|
207
|
-
// 计算属性
|
|
208
|
-
borderRadiusValue: G,
|
|
209
|
-
transitionName: I,
|
|
210
|
-
shouldEnableTransition: t,
|
|
211
|
-
settingsState: d,
|
|
212
|
-
// 方法
|
|
213
|
-
syncCSSVariables: K,
|
|
214
|
-
applyPreset: Y,
|
|
215
|
-
resetSettings: ve,
|
|
216
|
-
updateThemeMode: ie,
|
|
217
|
-
toggleCollapse: se
|
|
218
|
-
};
|
|
219
|
-
});
|
|
144
|
+
function pe(e = {}) {
|
|
145
|
+
let { defaults: t = {}, onThemeModeChange: n } = e, i = {
|
|
146
|
+
...J,
|
|
147
|
+
...t
|
|
148
|
+
};
|
|
149
|
+
return N("settings", () => {
|
|
150
|
+
let e = x(i.themeMode), t = x(i.primaryColor), a = x(i.borderRadius), o = x(i.transitionType), s = x(i.enableTransition), c = x(i.layoutMode), l = x(i.menuExpandMode), u = x(i.collapsed), d = x(i.fixedHeader), f = x(i.showBreadcrumb), p = x(i.showBreadcrumbIcon), m = x(i.showTagsView), h = x(i.tagsViewHeight), g = x(i.tagsViewStyle), _ = x(i.showFooter), v = x(i.sidebarWidth), y = x(i.sidebarCollapsedWidth), b = x(i.headerHeight), S = x(i.enableHotkeys), C = x(i.version), w = r(() => le[a.value]), T = r(() => ue[o.value]), E = r(() => s.value && o.value !== "none"), D = r(() => ({
|
|
151
|
+
themeMode: e.value,
|
|
152
|
+
primaryColor: t.value,
|
|
153
|
+
borderRadius: a.value,
|
|
154
|
+
transitionType: o.value,
|
|
155
|
+
enableTransition: s.value,
|
|
156
|
+
layoutMode: c.value,
|
|
157
|
+
menuExpandMode: l.value,
|
|
158
|
+
collapsed: u.value,
|
|
159
|
+
fixedHeader: d.value,
|
|
160
|
+
showBreadcrumb: f.value,
|
|
161
|
+
showBreadcrumbIcon: p.value,
|
|
162
|
+
showTagsView: m.value,
|
|
163
|
+
tagsViewHeight: h.value,
|
|
164
|
+
tagsViewStyle: g.value,
|
|
165
|
+
showFooter: _.value,
|
|
166
|
+
sidebarWidth: v.value,
|
|
167
|
+
sidebarCollapsedWidth: y.value,
|
|
168
|
+
headerHeight: b.value,
|
|
169
|
+
enableHotkeys: S.value,
|
|
170
|
+
version: C.value
|
|
171
|
+
})), O = () => {
|
|
172
|
+
if (typeof document > "u") return;
|
|
173
|
+
let e = document.documentElement;
|
|
174
|
+
e.style.setProperty("--primary-color", t.value), e.style.setProperty("--primary-color-hover", fe(t.value, 10)), e.style.setProperty("--primary-color-pressed", fe(t.value, -10)), e.style.setProperty("--border-radius", w.value), e.style.setProperty("--sidebar-width", `${v.value}px`), e.style.setProperty("--sidebar-collapsed-width", `${y.value}px`), e.style.setProperty("--header-height", `${b.value}px`), e.style.setProperty("--tags-view-height", `${h.value}px`);
|
|
175
|
+
};
|
|
176
|
+
return A([
|
|
177
|
+
t,
|
|
178
|
+
w,
|
|
179
|
+
v,
|
|
180
|
+
y,
|
|
181
|
+
b,
|
|
182
|
+
h
|
|
183
|
+
], () => {
|
|
184
|
+
O();
|
|
185
|
+
}, { immediate: !0 }), {
|
|
186
|
+
themeMode: e,
|
|
187
|
+
primaryColor: t,
|
|
188
|
+
borderRadius: a,
|
|
189
|
+
transitionType: o,
|
|
190
|
+
enableTransition: s,
|
|
191
|
+
layoutMode: c,
|
|
192
|
+
menuExpandMode: l,
|
|
193
|
+
collapsed: u,
|
|
194
|
+
fixedHeader: d,
|
|
195
|
+
showBreadcrumb: f,
|
|
196
|
+
showBreadcrumbIcon: p,
|
|
197
|
+
showTagsView: m,
|
|
198
|
+
tagsViewHeight: h,
|
|
199
|
+
tagsViewStyle: g,
|
|
200
|
+
showFooter: _,
|
|
201
|
+
sidebarWidth: v,
|
|
202
|
+
sidebarCollapsedWidth: y,
|
|
203
|
+
headerHeight: b,
|
|
204
|
+
enableHotkeys: S,
|
|
205
|
+
version: C,
|
|
206
|
+
borderRadiusValue: w,
|
|
207
|
+
transitionName: T,
|
|
208
|
+
shouldEnableTransition: E,
|
|
209
|
+
settingsState: D,
|
|
210
|
+
syncCSSVariables: O,
|
|
211
|
+
applyPreset: async (e) => {
|
|
212
|
+
t.value = e.primaryColor, e.settings && (e.settings.borderRadius && (a.value = e.settings.borderRadius), e.settings.transitionType && (o.value = e.settings.transitionType), e.settings.showBreadcrumb !== void 0 && (f.value = e.settings.showBreadcrumb), e.settings.showTagsView !== void 0 && (m.value = e.settings.showTagsView), e.settings.tagsViewStyle && (g.value = e.settings.tagsViewStyle));
|
|
213
|
+
},
|
|
214
|
+
resetSettings: () => {
|
|
215
|
+
e.value = i.themeMode, t.value = i.primaryColor, a.value = i.borderRadius, o.value = i.transitionType, s.value = i.enableTransition, c.value = i.layoutMode, l.value = i.menuExpandMode, u.value = i.collapsed, d.value = i.fixedHeader, f.value = i.showBreadcrumb, p.value = i.showBreadcrumbIcon, m.value = i.showTagsView, h.value = i.tagsViewHeight, g.value = i.tagsViewStyle, _.value = i.showFooter, v.value = i.sidebarWidth, y.value = i.sidebarCollapsedWidth, b.value = i.headerHeight, S.value = i.enableHotkeys;
|
|
216
|
+
},
|
|
217
|
+
updateThemeMode: async (t) => {
|
|
218
|
+
e.value = t, n && await n(t);
|
|
219
|
+
},
|
|
220
|
+
toggleCollapse: () => {
|
|
221
|
+
u.value = !u.value;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
});
|
|
220
225
|
}
|
|
221
|
-
|
|
222
|
-
function
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
"[Layout] LayoutContext not provided. 请在上层组件中使用 provide(LAYOUT_CONTEXT_KEY, ...) 注入布局数据。"
|
|
227
|
-
);
|
|
228
|
-
return f;
|
|
226
|
+
var me = pe(), he = Symbol("layout-context"), ge = Symbol("drawer-handlers");
|
|
227
|
+
function Y() {
|
|
228
|
+
let e = p(he);
|
|
229
|
+
if (!e) throw Error("[Layout] LayoutContext not provided. 请在上层组件中使用 provide(LAYOUT_CONTEXT_KEY, ...) 注入布局数据。");
|
|
230
|
+
return e;
|
|
229
231
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
232
|
+
var X = {
|
|
233
|
+
name: "Admin",
|
|
234
|
+
subtitle: "",
|
|
235
|
+
logoSrc: "",
|
|
236
|
+
logoType: "image",
|
|
237
|
+
logoSize: 36,
|
|
238
|
+
homePath: "/home",
|
|
239
|
+
copyright: ""
|
|
238
240
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
cachedViews: m,
|
|
260
|
-
maxCacheCount: a,
|
|
261
|
-
addCache: c,
|
|
262
|
-
removeCache: C,
|
|
263
|
-
clearAllCache: g
|
|
264
|
-
};
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/composables/useLayoutCache.ts
|
|
243
|
+
function Z(e = {}) {
|
|
244
|
+
let { maxCacheCount: t = 20, enableDevLog: n = !0, exposeToWindow: r = !0 } = e, i = K(), a = x([]), o = x(t), s = (e) => !e || typeof e != "string" ? !1 : i.meta?.keepAlive === !0, c = (e) => {
|
|
245
|
+
!a.value.includes(e) && s(e) && (a.value.push(e), a.value.length > o.value && a.value.shift());
|
|
246
|
+
};
|
|
247
|
+
return A(() => i.name, (e) => {
|
|
248
|
+
e && typeof e == "string" && c(e);
|
|
249
|
+
}, { immediate: !0 }), {
|
|
250
|
+
cachedViews: a,
|
|
251
|
+
maxCacheCount: o,
|
|
252
|
+
addCache: c,
|
|
253
|
+
removeCache: (e) => {
|
|
254
|
+
let t = a.value.indexOf(e);
|
|
255
|
+
t > -1 && a.value.splice(t, 1);
|
|
256
|
+
},
|
|
257
|
+
clearAllCache: () => {
|
|
258
|
+
a.value = [];
|
|
259
|
+
}
|
|
260
|
+
};
|
|
265
261
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
src: g.logoSrc,
|
|
569
|
-
width: g.logoSize || 36,
|
|
570
|
-
height: g.logoSize || 36,
|
|
571
|
-
class: "logo-video"
|
|
572
|
-
}, null, 8, it))
|
|
573
|
-
]),
|
|
574
|
-
e("div", lt, [
|
|
575
|
-
e("span", rt, $(g.name), 1),
|
|
576
|
-
e("span", dt, $(g.subtitle), 1)
|
|
577
|
-
]),
|
|
578
|
-
w[1] || (w[1] = e("div", { class: "navbar-divider" }, null, -1))
|
|
579
|
-
])
|
|
580
|
-
]),
|
|
581
|
-
e("div", ut, [
|
|
582
|
-
_(h.$slots, "menu", {}, () => [
|
|
583
|
-
v($e, { data: m.value }, null, 8, ["data"])
|
|
584
|
-
])
|
|
585
|
-
]),
|
|
586
|
-
_(h.$slots, "header-extra")
|
|
587
|
-
], 2),
|
|
588
|
-
a.value ? (n(), r("div", {
|
|
589
|
-
key: 0,
|
|
590
|
-
class: "tags-view-container",
|
|
591
|
-
style: he({ height: `${u.value}px` })
|
|
592
|
-
}, [
|
|
593
|
-
_(h.$slots, "tags-view")
|
|
594
|
-
], 4)) : x("", !0),
|
|
595
|
-
v(o(ne), null, {
|
|
596
|
-
default: l(() => [
|
|
597
|
-
v(o(ce), { class: "main-content" }, {
|
|
598
|
-
default: l(() => [
|
|
599
|
-
e("div", ct, [
|
|
600
|
-
v(M, null, {
|
|
601
|
-
default: l(({ Component: T, route: R }) => [
|
|
602
|
-
v(Q, {
|
|
603
|
-
name: C.value,
|
|
604
|
-
mode: "out-in"
|
|
605
|
-
}, {
|
|
606
|
-
default: l(() => [
|
|
607
|
-
(n(), S(ue, {
|
|
608
|
-
include: o(y),
|
|
609
|
-
max: o(s)
|
|
610
|
-
}, [
|
|
611
|
-
(n(), S(N(T), {
|
|
612
|
-
key: R.path
|
|
613
|
-
}))
|
|
614
|
-
], 1032, ["include", "max"]))
|
|
615
|
-
]),
|
|
616
|
-
_: 2
|
|
617
|
-
}, 1032, ["name"])
|
|
618
|
-
]),
|
|
619
|
-
_: 1
|
|
620
|
-
})
|
|
621
|
-
])
|
|
622
|
-
]),
|
|
623
|
-
_: 1
|
|
624
|
-
}),
|
|
625
|
-
c.value ? _(h.$slots, "footer", { key: 0 }) : x("", !0)
|
|
626
|
-
]),
|
|
627
|
-
_: 3
|
|
628
|
-
})
|
|
629
|
-
]);
|
|
630
|
-
};
|
|
631
|
-
}
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/components/layouts/SideLayout/index.vue
|
|
264
|
+
var _e = /* @__PURE__ */ d({
|
|
265
|
+
name: "SideLayout",
|
|
266
|
+
__name: "index",
|
|
267
|
+
props: { collapsed: {
|
|
268
|
+
type: Boolean,
|
|
269
|
+
default: !1
|
|
270
|
+
} },
|
|
271
|
+
emits: ["update:collapsed"],
|
|
272
|
+
setup(e, { expose: a, emit: o }) {
|
|
273
|
+
let s = e, c = o, l = Y(), { cachedViews: d, maxCacheCount: f } = Z(), p = x(s.collapsed);
|
|
274
|
+
A(() => s.collapsed, (e) => {
|
|
275
|
+
p.value = e;
|
|
276
|
+
});
|
|
277
|
+
let m = r(() => p.value), g = (e) => {
|
|
278
|
+
p.value = e, c("update:collapsed", e);
|
|
279
|
+
};
|
|
280
|
+
return a({
|
|
281
|
+
collapsed: m,
|
|
282
|
+
toggleCollapse: () => {
|
|
283
|
+
let e = !p.value;
|
|
284
|
+
p.value = e, c("update:collapsed", e);
|
|
285
|
+
}
|
|
286
|
+
}), (e, r) => {
|
|
287
|
+
let a = w("RouterView");
|
|
288
|
+
return y(), i(O(B), { "has-sider": "" }, {
|
|
289
|
+
default: j(() => [u(O(H), {
|
|
290
|
+
bordered: "",
|
|
291
|
+
"collapse-mode": "width",
|
|
292
|
+
"collapsed-width": O(l).sidebarCollapsedWidth.value,
|
|
293
|
+
width: O(l).sidebarWidth.value,
|
|
294
|
+
"native-scrollbar": !1,
|
|
295
|
+
collapsed: m.value,
|
|
296
|
+
"onUpdate:collapsed": g,
|
|
297
|
+
class: h([
|
|
298
|
+
"layout-sider",
|
|
299
|
+
"no-horizontal-scroll",
|
|
300
|
+
O(l).isDark.value ? "dark-theme" : "light-theme"
|
|
301
|
+
])
|
|
302
|
+
}, {
|
|
303
|
+
default: j(() => [C(e.$slots, "logo"), C(e.$slots, "menu", { collapsed: m.value })]),
|
|
304
|
+
_: 3
|
|
305
|
+
}, 8, [
|
|
306
|
+
"collapsed-width",
|
|
307
|
+
"width",
|
|
308
|
+
"collapsed",
|
|
309
|
+
"class"
|
|
310
|
+
]), u(O(B), null, {
|
|
311
|
+
default: j(() => [
|
|
312
|
+
C(e.$slots, "header"),
|
|
313
|
+
u(O(V), { class: "content-with-header p16px app-content" }, {
|
|
314
|
+
default: j(() => [u(a, null, {
|
|
315
|
+
default: j(({ Component: e, route: r }) => [u(n, {
|
|
316
|
+
name: O(l).transitionName.value,
|
|
317
|
+
mode: "out-in"
|
|
318
|
+
}, {
|
|
319
|
+
default: j(() => [(y(), i(t, {
|
|
320
|
+
include: O(d),
|
|
321
|
+
max: O(f)
|
|
322
|
+
}, [(y(), i(T(e), { key: r.path }))], 1032, ["include", "max"]))]),
|
|
323
|
+
_: 2
|
|
324
|
+
}, 1032, ["name"])]),
|
|
325
|
+
_: 1
|
|
326
|
+
})]),
|
|
327
|
+
_: 1
|
|
328
|
+
}),
|
|
329
|
+
C(e.$slots, "footer")
|
|
330
|
+
]),
|
|
331
|
+
_: 3
|
|
332
|
+
})]),
|
|
333
|
+
_: 3
|
|
334
|
+
});
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
}), ve = {
|
|
338
|
+
ref: "visibleRef",
|
|
339
|
+
class: "responsive-menu__visible"
|
|
340
|
+
}, ye = { class: "responsive-menu__more" }, be = /* @__PURE__ */ d({
|
|
341
|
+
name: "ResponsiveMenu",
|
|
342
|
+
__name: "index",
|
|
343
|
+
props: { data: {} },
|
|
344
|
+
setup(e) {
|
|
345
|
+
let t = e, n = K(), c = q(), l = Y(), d = r(() => t.data || []), p = r(() => n.path), h = l.isDark, g = {
|
|
346
|
+
itemTextColor: "rgba(51, 65, 85, 0.85)",
|
|
347
|
+
itemTextColorHover: "rgba(30, 64, 175, 0.95)",
|
|
348
|
+
itemTextColorActive: "rgba(30, 64, 175, 1)",
|
|
349
|
+
itemTextColorActiveHover: "rgba(30, 64, 175, 1)",
|
|
350
|
+
itemTextColorChildActive: "rgba(30, 64, 175, 1)",
|
|
351
|
+
itemIconColor: "rgba(51, 65, 85, 0.7)",
|
|
352
|
+
itemIconColorHover: "rgba(30, 64, 175, 0.85)",
|
|
353
|
+
itemIconColorActive: "rgba(30, 64, 175, 1)",
|
|
354
|
+
itemIconColorActiveHover: "rgba(30, 64, 175, 1)",
|
|
355
|
+
itemIconColorChildActive: "rgba(30, 64, 175, 1)",
|
|
356
|
+
itemColorHover: "rgba(30, 64, 175, 0.06)",
|
|
357
|
+
itemColorActive: "rgba(30, 64, 175, 0.1)",
|
|
358
|
+
itemColorActiveHover: "rgba(30, 64, 175, 0.12)",
|
|
359
|
+
itemColorActiveCollapsed: "rgba(30, 64, 175, 0.1)",
|
|
360
|
+
arrowColor: "rgba(51, 65, 85, 0.6)",
|
|
361
|
+
arrowColorHover: "rgba(30, 64, 175, 0.8)",
|
|
362
|
+
arrowColorActive: "rgba(30, 64, 175, 1)",
|
|
363
|
+
arrowColorChildActive: "rgba(30, 64, 175, 1)",
|
|
364
|
+
itemHeight: "42px",
|
|
365
|
+
itemPadding: "0 18px",
|
|
366
|
+
itemBorderRadius: "10px",
|
|
367
|
+
groupTextColor: "rgba(51, 65, 85, 0.65)"
|
|
368
|
+
}, b = {
|
|
369
|
+
itemTextColor: "rgba(226, 232, 240, 0.85)",
|
|
370
|
+
itemTextColorHover: "rgba(255, 255, 255, 0.95)",
|
|
371
|
+
itemTextColorActive: "rgba(147, 197, 253, 1)",
|
|
372
|
+
itemTextColorActiveHover: "rgba(147, 197, 253, 1)",
|
|
373
|
+
itemTextColorChildActive: "rgba(147, 197, 253, 1)",
|
|
374
|
+
itemIconColor: "rgba(226, 232, 240, 0.7)",
|
|
375
|
+
itemIconColorHover: "rgba(255, 255, 255, 0.85)",
|
|
376
|
+
itemIconColorActive: "rgba(147, 197, 253, 1)",
|
|
377
|
+
itemIconColorActiveHover: "rgba(147, 197, 253, 1)",
|
|
378
|
+
itemIconColorChildActive: "rgba(147, 197, 253, 1)",
|
|
379
|
+
itemColorHover: "rgba(59, 130, 246, 0.1)",
|
|
380
|
+
itemColorActive: "rgba(59, 130, 246, 0.15)",
|
|
381
|
+
itemColorActiveHover: "rgba(59, 130, 246, 0.18)",
|
|
382
|
+
itemColorActiveCollapsed: "rgba(59, 130, 246, 0.15)",
|
|
383
|
+
arrowColor: "rgba(226, 232, 240, 0.5)",
|
|
384
|
+
arrowColorHover: "rgba(255, 255, 255, 0.7)",
|
|
385
|
+
arrowColorActive: "rgba(147, 197, 253, 1)",
|
|
386
|
+
arrowColorChildActive: "rgba(147, 197, 253, 1)",
|
|
387
|
+
itemHeight: "42px",
|
|
388
|
+
itemPadding: "0 18px",
|
|
389
|
+
itemBorderRadius: "10px",
|
|
390
|
+
groupTextColor: "rgba(226, 232, 240, 0.6)"
|
|
391
|
+
}, S = r(() => h.value ? b : g), C = (e, t = 18) => l.iconComponent ? () => f(l.iconComponent, {
|
|
392
|
+
name: e,
|
|
393
|
+
size: t
|
|
394
|
+
}) : () => f("i", {
|
|
395
|
+
class: e,
|
|
396
|
+
style: {
|
|
397
|
+
fontSize: `${t}px`,
|
|
398
|
+
display: "inline-flex",
|
|
399
|
+
alignItems: "center"
|
|
400
|
+
}
|
|
401
|
+
}), w = (e) => ({
|
|
402
|
+
key: e.path || "",
|
|
403
|
+
label: e.meta?.title || e.name || "",
|
|
404
|
+
icon: e.meta?.icon ? C(e.meta.icon, 18) : void 0,
|
|
405
|
+
children: e.children?.length ? e.children.map(w) : void 0
|
|
406
|
+
}), T = x(), E = x([]), D = x([]), k = r(() => E.value.map(w)), M = r(() => D.value.map((e) => ({
|
|
407
|
+
key: e.path || "",
|
|
408
|
+
label: e.meta?.title || e.name || "",
|
|
409
|
+
icon: e.meta?.icon ? C(e.meta.icon, 16) : void 0,
|
|
410
|
+
children: e.children?.length ? e.children.map((e) => ({
|
|
411
|
+
key: e.path || "",
|
|
412
|
+
label: e.meta?.title || e.name || "",
|
|
413
|
+
icon: e.meta?.icon ? C(e.meta.icon, 16) : void 0
|
|
414
|
+
})) : void 0
|
|
415
|
+
}))), N = (e) => {
|
|
416
|
+
e && c.push(e);
|
|
417
|
+
}, F = (e) => {
|
|
418
|
+
let t = e.meta?.title || e.name || "", n = 0;
|
|
419
|
+
for (let e of t) {
|
|
420
|
+
let t = e.charCodeAt(0);
|
|
421
|
+
t >= 19968 && t <= 40959 || t >= 13312 && t <= 19903 || t >= 12288 && t <= 12351 || t >= 65280 && t <= 65519 || t >= 12352 && t <= 12447 || t >= 12448 && t <= 12543 ? n += 15 : n += 8;
|
|
422
|
+
}
|
|
423
|
+
let r = e.meta?.icon ? 26 : 0;
|
|
424
|
+
return n + r + 36 + 8 + 8;
|
|
425
|
+
}, I = (e) => {
|
|
426
|
+
if (!d.value.length) return 0;
|
|
427
|
+
let t = 0;
|
|
428
|
+
for (let e of d.value) t += F(e);
|
|
429
|
+
if (t + 15 <= e) return d.value.length;
|
|
430
|
+
let n = 0, r = 0, i = e - 80 - 15;
|
|
431
|
+
for (let e of d.value) {
|
|
432
|
+
let t = F(e);
|
|
433
|
+
if (n + t <= i) n += t, r++;
|
|
434
|
+
else break;
|
|
435
|
+
}
|
|
436
|
+
return Math.max(r, 1);
|
|
437
|
+
}, L = () => {
|
|
438
|
+
if (!T.value || !d.value.length) return;
|
|
439
|
+
let e = T.value.offsetWidth;
|
|
440
|
+
if (e === 0) {
|
|
441
|
+
m(() => L());
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
let t = I(e);
|
|
445
|
+
E.value = d.value.slice(0, t), D.value = d.value.slice(t);
|
|
446
|
+
}, z = null, B = () => {
|
|
447
|
+
z && clearTimeout(z), z = window.setTimeout(() => L(), 100);
|
|
448
|
+
}, V = null;
|
|
449
|
+
return _(() => {
|
|
450
|
+
m(() => L()), T.value && (V = new ResizeObserver(() => B()), V.observe(T.value));
|
|
451
|
+
}), v(() => {
|
|
452
|
+
V?.disconnect(), z && clearTimeout(z);
|
|
453
|
+
}), A(() => t.data, () => m(() => L()), { deep: !0 }), (e, t) => (y(), o("div", {
|
|
454
|
+
ref_key: "containerRef",
|
|
455
|
+
ref: T,
|
|
456
|
+
class: "responsive-menu"
|
|
457
|
+
}, [s("div", ve, [k.value.length > 0 ? (y(), i(O(ee), {
|
|
458
|
+
key: 0,
|
|
459
|
+
mode: "horizontal",
|
|
460
|
+
value: p.value,
|
|
461
|
+
options: k.value,
|
|
462
|
+
"theme-overrides": S.value,
|
|
463
|
+
"onUpdate:value": N
|
|
464
|
+
}, null, 8, [
|
|
465
|
+
"value",
|
|
466
|
+
"options",
|
|
467
|
+
"theme-overrides"
|
|
468
|
+
])) : a("", !0)], 512), D.value.length > 0 ? (y(), i(O(R), {
|
|
469
|
+
key: 0,
|
|
470
|
+
options: M.value,
|
|
471
|
+
placement: "bottom-end",
|
|
472
|
+
trigger: "hover",
|
|
473
|
+
onSelect: N
|
|
474
|
+
}, {
|
|
475
|
+
default: j(() => [s("div", ye, [u(O(P), {
|
|
476
|
+
text: "",
|
|
477
|
+
class: "responsive-menu__more-btn"
|
|
478
|
+
}, {
|
|
479
|
+
default: j(() => [...t[0] ||= [s("span", { class: "dots-icon" }, [
|
|
480
|
+
s("span"),
|
|
481
|
+
s("span"),
|
|
482
|
+
s("span")
|
|
483
|
+
], -1)]]),
|
|
484
|
+
_: 1
|
|
485
|
+
})])]),
|
|
486
|
+
_: 1
|
|
487
|
+
}, 8, ["options"])) : a("", !0)], 512));
|
|
488
|
+
}
|
|
489
|
+
}), Q = (e, t) => {
|
|
490
|
+
let n = e.__vccOpts || e;
|
|
491
|
+
for (let [e, r] of t) n[e] = r;
|
|
492
|
+
return n;
|
|
493
|
+
}, $ = /* @__PURE__ */ Q(be, [["__scopeId", "data-v-d329131b"]]), xe = { class: "top-layout-container" }, Se = { class: "navbar-left" }, Ce = { class: "logo-container" }, we = [
|
|
494
|
+
"src",
|
|
495
|
+
"width",
|
|
496
|
+
"height"
|
|
497
|
+
], Te = [
|
|
498
|
+
"src",
|
|
499
|
+
"width",
|
|
500
|
+
"height"
|
|
501
|
+
], Ee = { class: "brand-name" }, De = { class: "brand-title" }, Oe = { class: "brand-subtitle" }, ke = { class: "navbar-center" }, Ae = { class: "page-content" }, je = /* @__PURE__ */ d({
|
|
502
|
+
name: "TopLayout",
|
|
503
|
+
__name: "index",
|
|
504
|
+
setup(e) {
|
|
505
|
+
let c = Y(), { cachedViews: l, maxCacheCount: d } = Z(), f = c.isDark, p = r(() => c.menus.value), m = r(() => c.showTagsView.value), _ = r(() => c.tagsViewHeight.value), v = r(() => c.showFooter.value), b = r(() => c.transitionName.value), x = {
|
|
506
|
+
...X,
|
|
507
|
+
...c.brand
|
|
508
|
+
};
|
|
509
|
+
return (e, r) => {
|
|
510
|
+
let c = w("RouterView");
|
|
511
|
+
return y(), o("div", xe, [
|
|
512
|
+
s("div", { class: h(["top-navbar", [O(f) ? "dark-theme" : "light-theme"]]) }, [
|
|
513
|
+
s("div", Se, [C(e.$slots, "logo", {}, () => [
|
|
514
|
+
s("div", Ce, [r[0] ||= s("div", { class: "logo-glow" }, null, -1), x.logoType === "video" ? (y(), o("video", {
|
|
515
|
+
key: 0,
|
|
516
|
+
src: x.logoSrc,
|
|
517
|
+
width: x.logoSize || 36,
|
|
518
|
+
height: x.logoSize || 36,
|
|
519
|
+
autoplay: "",
|
|
520
|
+
loop: "",
|
|
521
|
+
muted: "",
|
|
522
|
+
playsinline: "",
|
|
523
|
+
class: "logo-video"
|
|
524
|
+
}, " 您的浏览器不支持 video 标签。 ", 8, we)) : (y(), o("img", {
|
|
525
|
+
key: 1,
|
|
526
|
+
src: x.logoSrc,
|
|
527
|
+
width: x.logoSize || 36,
|
|
528
|
+
height: x.logoSize || 36,
|
|
529
|
+
class: "logo-video"
|
|
530
|
+
}, null, 8, Te))]),
|
|
531
|
+
s("div", Ee, [s("span", De, E(x.name), 1), s("span", Oe, E(x.subtitle), 1)]),
|
|
532
|
+
r[1] ||= s("div", { class: "navbar-divider" }, null, -1)
|
|
533
|
+
])]),
|
|
534
|
+
s("div", ke, [C(e.$slots, "menu", {}, () => [u($, { data: p.value }, null, 8, ["data"])])]),
|
|
535
|
+
C(e.$slots, "header-extra")
|
|
536
|
+
], 2),
|
|
537
|
+
m.value ? (y(), o("div", {
|
|
538
|
+
key: 0,
|
|
539
|
+
class: "tags-view-container",
|
|
540
|
+
style: g({ height: `${_.value}px` })
|
|
541
|
+
}, [C(e.$slots, "tags-view")], 4)) : a("", !0),
|
|
542
|
+
u(O(B), null, {
|
|
543
|
+
default: j(() => [u(O(V), { class: "main-content" }, {
|
|
544
|
+
default: j(() => [s("div", Ae, [u(c, null, {
|
|
545
|
+
default: j(({ Component: e, route: r }) => [u(n, {
|
|
546
|
+
name: b.value,
|
|
547
|
+
mode: "out-in"
|
|
548
|
+
}, {
|
|
549
|
+
default: j(() => [(y(), i(t, {
|
|
550
|
+
include: O(l),
|
|
551
|
+
max: O(d)
|
|
552
|
+
}, [(y(), i(T(e), { key: r.path }))], 1032, ["include", "max"]))]),
|
|
553
|
+
_: 2
|
|
554
|
+
}, 1032, ["name"])]),
|
|
555
|
+
_: 1
|
|
556
|
+
})])]),
|
|
557
|
+
_: 1
|
|
558
|
+
}), v.value ? C(e.$slots, "footer", { key: 0 }) : a("", !0)]),
|
|
559
|
+
_: 3
|
|
560
|
+
})
|
|
561
|
+
]);
|
|
562
|
+
};
|
|
563
|
+
}
|
|
632
564
|
});
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
b && b.length > 0 && H();
|
|
667
|
-
},
|
|
668
|
-
{ immediate: !0 }
|
|
669
|
-
), Me(() => H()), {
|
|
670
|
-
activeFirstMenu: m,
|
|
671
|
-
activeFirstMenuItem: w,
|
|
672
|
-
currentSecondMenus: M,
|
|
673
|
-
hoveredMenuItem: a,
|
|
674
|
-
/** 实际在悬浮面板上展示的菜单项(hovered 优先,fallback 到 active) */
|
|
675
|
-
displayMenuItem: c,
|
|
676
|
-
showSecondMenu: u,
|
|
677
|
-
handleFirstMenuClick: T,
|
|
678
|
-
handleSecondMenuClick: R,
|
|
679
|
-
isMenuItemActive: g
|
|
680
|
-
};
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region src/composables/useMenuSplit.ts
|
|
567
|
+
function Me(e) {
|
|
568
|
+
let { menus: t, floatingSecondMenu: n = !1 } = e, i = K(), a = q(), o = x(""), s = x(null), c = x(!1), l = r(() => s.value || p.value || null), u = (e) => e.startsWith("/") ? e : `/${e}`, d = (e) => {
|
|
569
|
+
if (!e) return !1;
|
|
570
|
+
let t = i.path;
|
|
571
|
+
if (t === e) return !0;
|
|
572
|
+
let n = u(e), r = u(t);
|
|
573
|
+
return r === n ? !0 : r.includes(`/${e}`);
|
|
574
|
+
}, f = (e) => {
|
|
575
|
+
for (let t of e) if (d(t.path) || t.children?.length && f(t.children)) return t;
|
|
576
|
+
return null;
|
|
577
|
+
}, p = r(() => t.value.find((e) => e.path === o.value)), m = r(() => p.value?.children || []), h = (e) => {
|
|
578
|
+
D(n) ? e.children && e.children.length > 0 ? c.value && o.value === e.path ? c.value = !1 : (o.value = e.path || "", c.value = !0) : (o.value = e.path || "", c.value = !1, e.path && a.push(e.path)) : (!e.children || e.children.length === 0) && e.path && a.push(e.path);
|
|
579
|
+
}, g = (e) => {
|
|
580
|
+
e.path && a.push(e.path);
|
|
581
|
+
}, v = () => {
|
|
582
|
+
let e = t.value, r = f(e);
|
|
583
|
+
r ? (o.value = r.path || "", D(n) && r.children?.length && (c.value = !0)) : e.length > 0 && !o.value && (o.value = e[0].path || "");
|
|
584
|
+
};
|
|
585
|
+
return A(() => i.path, () => v(), { immediate: !0 }), A(t, (e) => {
|
|
586
|
+
e && e.length > 0 && v();
|
|
587
|
+
}, { immediate: !0 }), _(() => v()), {
|
|
588
|
+
activeFirstMenu: o,
|
|
589
|
+
activeFirstMenuItem: p,
|
|
590
|
+
currentSecondMenus: m,
|
|
591
|
+
hoveredMenuItem: s,
|
|
592
|
+
displayMenuItem: l,
|
|
593
|
+
showSecondMenu: c,
|
|
594
|
+
handleFirstMenuClick: h,
|
|
595
|
+
handleSecondMenuClick: g,
|
|
596
|
+
isMenuItemActive: d
|
|
597
|
+
};
|
|
681
598
|
}
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
},
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
name: "logo",
|
|
1404
|
-
fn: l(() => [
|
|
1405
|
-
_(a.$slots, "logo")
|
|
1406
|
-
]),
|
|
1407
|
-
key: "0"
|
|
1408
|
-
} : void 0
|
|
1409
|
-
]), 1032, ["collapsed"])) : s.value === "top" ? (n(), S(mt, { key: 1 }, le({ _: 2 }, [
|
|
1410
|
-
a.$slots.logo ? {
|
|
1411
|
-
name: "logo",
|
|
1412
|
-
fn: l(() => [
|
|
1413
|
-
_(a.$slots, "logo")
|
|
1414
|
-
]),
|
|
1415
|
-
key: "0"
|
|
1416
|
-
} : void 0,
|
|
1417
|
-
a.$slots["top-menu"] ? {
|
|
1418
|
-
name: "menu",
|
|
1419
|
-
fn: l(() => [
|
|
1420
|
-
_(a.$slots, "top-menu")
|
|
1421
|
-
]),
|
|
1422
|
-
key: "1"
|
|
1423
|
-
} : void 0,
|
|
1424
|
-
a.$slots["header-extra"] ? {
|
|
1425
|
-
name: "header-extra",
|
|
1426
|
-
fn: l(() => [
|
|
1427
|
-
_(a.$slots, "header-extra")
|
|
1428
|
-
]),
|
|
1429
|
-
key: "2"
|
|
1430
|
-
} : void 0,
|
|
1431
|
-
a.$slots["tags-view"] ? {
|
|
1432
|
-
name: "tags-view",
|
|
1433
|
-
fn: l(() => [
|
|
1434
|
-
_(a.$slots, "tags-view")
|
|
1435
|
-
]),
|
|
1436
|
-
key: "3"
|
|
1437
|
-
} : void 0,
|
|
1438
|
-
a.$slots.footer ? {
|
|
1439
|
-
name: "footer",
|
|
1440
|
-
fn: l(() => [
|
|
1441
|
-
_(a.$slots, "footer")
|
|
1442
|
-
]),
|
|
1443
|
-
key: "4"
|
|
1444
|
-
} : void 0
|
|
1445
|
-
]), 1024)) : s.value === "mix" ? (n(), S(Mt, { key: 2 }, le({
|
|
1446
|
-
header: l(() => [
|
|
1447
|
-
_(a.$slots, "header")
|
|
1448
|
-
]),
|
|
1449
|
-
_: 2
|
|
1450
|
-
}, [
|
|
1451
|
-
a.$slots.logo ? {
|
|
1452
|
-
name: "logo",
|
|
1453
|
-
fn: l(() => [
|
|
1454
|
-
_(a.$slots, "logo")
|
|
1455
|
-
]),
|
|
1456
|
-
key: "0"
|
|
1457
|
-
} : void 0,
|
|
1458
|
-
a.$slots.footer ? {
|
|
1459
|
-
name: "footer",
|
|
1460
|
-
fn: l(() => [
|
|
1461
|
-
_(a.$slots, "footer")
|
|
1462
|
-
]),
|
|
1463
|
-
key: "1"
|
|
1464
|
-
} : void 0
|
|
1465
|
-
]), 1024)) : s.value === "mix-top" ? (n(), S(jt, { key: 3 }, le({ _: 2 }, [
|
|
1466
|
-
a.$slots.logo ? {
|
|
1467
|
-
name: "logo",
|
|
1468
|
-
fn: l(() => [
|
|
1469
|
-
_(a.$slots, "logo")
|
|
1470
|
-
]),
|
|
1471
|
-
key: "0"
|
|
1472
|
-
} : void 0,
|
|
1473
|
-
a.$slots.brand ? {
|
|
1474
|
-
name: "brand",
|
|
1475
|
-
fn: l(() => [
|
|
1476
|
-
_(a.$slots, "brand")
|
|
1477
|
-
]),
|
|
1478
|
-
key: "1"
|
|
1479
|
-
} : void 0,
|
|
1480
|
-
a.$slots["top-menu"] ? {
|
|
1481
|
-
name: "top-menu",
|
|
1482
|
-
fn: l(() => [
|
|
1483
|
-
_(a.$slots, "top-menu")
|
|
1484
|
-
]),
|
|
1485
|
-
key: "2"
|
|
1486
|
-
} : void 0,
|
|
1487
|
-
a.$slots["header-extra"] ? {
|
|
1488
|
-
name: "header-extra",
|
|
1489
|
-
fn: l(() => [
|
|
1490
|
-
_(a.$slots, "header-extra")
|
|
1491
|
-
]),
|
|
1492
|
-
key: "3"
|
|
1493
|
-
} : void 0,
|
|
1494
|
-
a.$slots["tags-view"] ? {
|
|
1495
|
-
name: "tags-view",
|
|
1496
|
-
fn: l(() => [
|
|
1497
|
-
_(a.$slots, "tags-view")
|
|
1498
|
-
]),
|
|
1499
|
-
key: "4"
|
|
1500
|
-
} : void 0,
|
|
1501
|
-
a.$slots.footer ? {
|
|
1502
|
-
name: "footer",
|
|
1503
|
-
fn: l(() => [
|
|
1504
|
-
_(a.$slots, "footer")
|
|
1505
|
-
]),
|
|
1506
|
-
key: "5"
|
|
1507
|
-
} : void 0
|
|
1508
|
-
]), 1024)) : s.value === "reverse-horizontal-mix" ? (n(), S(vo, { key: 4 }, le({ _: 2 }, [
|
|
1509
|
-
a.$slots.logo ? {
|
|
1510
|
-
name: "logo",
|
|
1511
|
-
fn: l(() => [
|
|
1512
|
-
_(a.$slots, "logo")
|
|
1513
|
-
]),
|
|
1514
|
-
key: "0"
|
|
1515
|
-
} : void 0,
|
|
1516
|
-
a.$slots["top-menu"] ? {
|
|
1517
|
-
name: "top-menu",
|
|
1518
|
-
fn: l(() => [
|
|
1519
|
-
_(a.$slots, "top-menu")
|
|
1520
|
-
]),
|
|
1521
|
-
key: "1"
|
|
1522
|
-
} : void 0,
|
|
1523
|
-
a.$slots["header-extra"] ? {
|
|
1524
|
-
name: "header-extra",
|
|
1525
|
-
fn: l(() => [
|
|
1526
|
-
_(a.$slots, "header-extra")
|
|
1527
|
-
]),
|
|
1528
|
-
key: "2"
|
|
1529
|
-
} : void 0,
|
|
1530
|
-
a.$slots["tags-view"] ? {
|
|
1531
|
-
name: "tags-view",
|
|
1532
|
-
fn: l(() => [
|
|
1533
|
-
_(a.$slots, "tags-view")
|
|
1534
|
-
]),
|
|
1535
|
-
key: "3"
|
|
1536
|
-
} : void 0,
|
|
1537
|
-
a.$slots.footer ? {
|
|
1538
|
-
name: "footer",
|
|
1539
|
-
fn: l(() => [
|
|
1540
|
-
_(a.$slots, "footer")
|
|
1541
|
-
]),
|
|
1542
|
-
key: "4"
|
|
1543
|
-
} : void 0
|
|
1544
|
-
]), 1024)) : s.value === "card-layout" ? (n(), S(Lo, { key: 5 }, le({ _: 2 }, [
|
|
1545
|
-
a.$slots["menu-trigger"] ? {
|
|
1546
|
-
name: "menu-trigger",
|
|
1547
|
-
fn: l(() => [
|
|
1548
|
-
_(a.$slots, "menu-trigger")
|
|
1549
|
-
]),
|
|
1550
|
-
key: "0"
|
|
1551
|
-
} : void 0,
|
|
1552
|
-
a.$slots.logo ? {
|
|
1553
|
-
name: "logo",
|
|
1554
|
-
fn: l(() => [
|
|
1555
|
-
_(a.$slots, "logo")
|
|
1556
|
-
]),
|
|
1557
|
-
key: "1"
|
|
1558
|
-
} : void 0,
|
|
1559
|
-
a.$slots["header-extra"] ? {
|
|
1560
|
-
name: "header-extra",
|
|
1561
|
-
fn: l(() => [
|
|
1562
|
-
_(a.$slots, "header-extra")
|
|
1563
|
-
]),
|
|
1564
|
-
key: "2"
|
|
1565
|
-
} : void 0,
|
|
1566
|
-
a.$slots["tags-view"] ? {
|
|
1567
|
-
name: "tags-view",
|
|
1568
|
-
fn: l(() => [
|
|
1569
|
-
_(a.$slots, "tags-view")
|
|
1570
|
-
]),
|
|
1571
|
-
key: "3"
|
|
1572
|
-
} : void 0,
|
|
1573
|
-
a.$slots["drawer-menu"] ? {
|
|
1574
|
-
name: "drawer-menu",
|
|
1575
|
-
fn: l(() => [
|
|
1576
|
-
_(a.$slots, "drawer-menu")
|
|
1577
|
-
]),
|
|
1578
|
-
key: "4"
|
|
1579
|
-
} : void 0,
|
|
1580
|
-
a.$slots.footer ? {
|
|
1581
|
-
name: "footer",
|
|
1582
|
-
fn: l(() => [
|
|
1583
|
-
_(a.$slots, "footer")
|
|
1584
|
-
]),
|
|
1585
|
-
key: "5"
|
|
1586
|
-
} : void 0
|
|
1587
|
-
]), 1024)) : (n(), r("div", Do, [...u[1] || (u[1] = [
|
|
1588
|
-
e("div", { class: "coming-soon-content" }, [
|
|
1589
|
-
e("div", { class: "coming-soon-icon" }, "🚧"),
|
|
1590
|
-
e("div", { class: "coming-soon-title" }, "布局开发中")
|
|
1591
|
-
], -1)
|
|
1592
|
-
])]))
|
|
1593
|
-
], 2));
|
|
1594
|
-
}
|
|
1595
|
-
}), No = [
|
|
1596
|
-
{
|
|
1597
|
-
label: "左侧菜单(默认)",
|
|
1598
|
-
value: "side",
|
|
1599
|
-
disabled: !1,
|
|
1600
|
-
svg: `
|
|
1601
|
-
<rect x="0" y="0" width="16" height="48" rx="1" fill="currentColor" fill-opacity="0.9"/>
|
|
1602
|
-
<rect x="18" y="0" width="38" height="10" rx="1" fill="currentColor" fill-opacity="0.7"/>
|
|
1603
|
-
<rect x="18" y="12" width="38" height="34" rx="1" fill="currentColor" fill-opacity="0.4"/>
|
|
1604
|
-
`
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
label: "顶部菜单(清爽)",
|
|
1608
|
-
value: "top",
|
|
1609
|
-
disabled: !1,
|
|
1610
|
-
svg: `
|
|
1611
|
-
<rect x="0" y="0" width="56" height="10" rx="1" fill="currentColor" fill-opacity="0.9"/>
|
|
1612
|
-
<rect x="0" y="12" width="56" height="8" rx="1" fill="currentColor" fill-opacity="0.7"/>
|
|
1613
|
-
<rect x="0" y="22" width="56" height="24" rx="1" fill="currentColor" fill-opacity="0.4"/>
|
|
1614
|
-
`
|
|
1615
|
-
},
|
|
1616
|
-
{
|
|
1617
|
-
label: "左侧混合(灵巧)",
|
|
1618
|
-
value: "mix",
|
|
1619
|
-
disabled: !1,
|
|
1620
|
-
svg: `
|
|
1621
|
-
<rect x="0" y="0" width="8" height="48" rx="1" fill="currentColor" fill-opacity="0.9"/>
|
|
1622
|
-
<rect x="10" y="0" width="14" height="48" rx="1" fill="currentColor" fill-opacity="0.7"/>
|
|
1623
|
-
<rect x="26" y="0" width="30" height="10" rx="1" fill="currentColor" fill-opacity="0.6"/>
|
|
1624
|
-
<rect x="26" y="12" width="30" height="34" rx="1" fill="currentColor" fill-opacity="0.4"/>
|
|
1625
|
-
`
|
|
1626
|
-
},
|
|
1627
|
-
{
|
|
1628
|
-
label: "顶部混合(侧优)",
|
|
1629
|
-
value: "mix-top",
|
|
1630
|
-
disabled: !1,
|
|
1631
|
-
svg: `
|
|
1632
|
-
<rect x="0" y="0" width="8" height="48" rx="1" fill="currentColor" fill-opacity="0.9"/>
|
|
1633
|
-
<rect x="10" y="0" width="46" height="10" rx="1" fill="currentColor" fill-opacity="0.7"/>
|
|
1634
|
-
<rect x="10" y="12" width="46" height="34" rx="1" fill="currentColor" fill-opacity="0.4"/>
|
|
1635
|
-
`
|
|
1636
|
-
},
|
|
1637
|
-
{
|
|
1638
|
-
label: "反转混合(另类)",
|
|
1639
|
-
value: "reverse-horizontal-mix",
|
|
1640
|
-
disabled: !1,
|
|
1641
|
-
svg: `
|
|
1642
|
-
<rect x="0" y="0" width="56" height="10" rx="1" fill="currentColor" fill-opacity="0.9"/>
|
|
1643
|
-
<rect x="44" y="12" width="12" height="34" rx="1" fill="currentColor" fill-opacity="0.7"/>
|
|
1644
|
-
<rect x="0" y="12" width="42" height="34" rx="1" fill="currentColor" fill-opacity="0.4"/>
|
|
1645
|
-
`
|
|
1646
|
-
},
|
|
1647
|
-
{
|
|
1648
|
-
label: "卡片网格(新颖)",
|
|
1649
|
-
value: "card-layout",
|
|
1650
|
-
disabled: !1,
|
|
1651
|
-
svg: `
|
|
1652
|
-
<rect x="0" y="0" width="24" height="20" rx="2" fill="currentColor" fill-opacity="0.9"/>
|
|
1653
|
-
<rect x="32" y="0" width="24" height="20" rx="2" fill="currentColor" fill-opacity="0.7"/>
|
|
1654
|
-
<rect x="0" y="24" width="24" height="20" rx="2" fill="currentColor" fill-opacity="0.6"/>
|
|
1655
|
-
<rect x="32" y="24" width="24" height="20" rx="2" fill="currentColor" fill-opacity="0.4"/>
|
|
1656
|
-
`
|
|
1657
|
-
}
|
|
1658
|
-
], Eo = { class: "settings-section" }, Bo = { class: "preset-grid" }, Fo = ["onClick"], Wo = { class: "preset-icon" }, Oo = { class: "preset-name" }, Uo = { class: "preset-color" }, Po = { class: "settings-section" }, jo = { class: "settings-section" }, Ko = { class: "color-picker-wrapper" }, Yo = { class: "color-value" }, Go = { class: "settings-section" }, Xo = { class: "settings-section" }, Jo = { class: "flex items-center justify-between mb-2" }, Zo = { class: "settings-section" }, qo = { class: "settings-section" }, Qo = { class: "layout-grid" }, es = ["onClick"], ts = { class: "layout-screenshot" }, os = {
|
|
1659
|
-
class: "layout-svg",
|
|
1660
|
-
viewBox: "0 0 56 48",
|
|
1661
|
-
fill: "none",
|
|
1662
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1663
|
-
}, ss = ["innerHTML"], ns = { class: "layout-label" }, as = {
|
|
1664
|
-
key: 0,
|
|
1665
|
-
class: "badge-soon"
|
|
1666
|
-
}, is = { class: "settings-section" }, ls = { class: "setting-item" }, rs = { class: "setting-item" }, ds = { class: "setting-item" }, us = { class: "setting-item" }, cs = { class: "settings-section" }, ms = { class: "slider-item" }, vs = { class: "slider-label" }, hs = { class: "slider-value" }, ps = { class: "slider-item" }, gs = { class: "slider-label" }, fs = { class: "slider-value" }, _s = { class: "settings-section" }, ys = { class: "settings-section" }, ws = { class: "action-buttons-grid" }, bs = { class: "settings-section" }, ks = { class: "action-buttons-grid" }, $s = { class: "settings-section" }, Cs = { class: "setting-item" }, xs = { class: "setting-item" }, Ss = { class: "settings-section" }, Ts = { class: "setting-item" }, Ms = {
|
|
1667
|
-
key: 0,
|
|
1668
|
-
class: "mt-2"
|
|
1669
|
-
}, Is = { class: "settings-section" }, zs = { class: "system-info" }, Vs = { class: "info-item" }, Hs = { class: "info-value" }, Rs = { class: "info-item" }, As = { class: "info-value" }, Ls = { class: "info-item" }, Ds = { class: "info-value" }, Ns = { class: "info-item" }, Es = { class: "info-value" }, Bs = { class: "info-item" }, Fs = { class: "info-value" }, Ws = { class: "info-item" }, Os = { class: "info-value" }, Us = /* @__PURE__ */ O({
|
|
1670
|
-
__name: "index",
|
|
1671
|
-
props: {
|
|
1672
|
-
show: { type: Boolean, default: !1 },
|
|
1673
|
-
showModifiers: {}
|
|
1674
|
-
},
|
|
1675
|
-
emits: ["update:show"],
|
|
1676
|
-
setup(f) {
|
|
1677
|
-
const i = Be(), y = Fe(), s = ze(), p = Re(f, "show"), m = V("appearance"), a = V(!1), u = V(!1), c = V(!1), C = V("Robot Admin");
|
|
1678
|
-
let g = null;
|
|
1679
|
-
const h = (I) => {
|
|
1680
|
-
g && (document.body.removeChild(g), g = null);
|
|
1681
|
-
const t = document.createElement("canvas"), d = t.getContext("2d");
|
|
1682
|
-
t.width = 200, t.height = 150, d.font = "14px Microsoft JhengHei", d.fillStyle = "rgba(120, 120, 120, 0.15)", d.rotate(-20 * Math.PI / 180), d.fillText(I, 0, 80), g = document.createElement("div"), g.style.cssText = `
|
|
599
|
+
//#endregion
|
|
600
|
+
//#region src/components/layouts/MixLayout/index.vue?vue&type=script&setup=true&lang.ts
|
|
601
|
+
var Ne = { class: "mix-layout-container" }, Pe = { class: "logo-container" }, Fe = [
|
|
602
|
+
"src",
|
|
603
|
+
"width",
|
|
604
|
+
"height"
|
|
605
|
+
], Ie = [
|
|
606
|
+
"src",
|
|
607
|
+
"width",
|
|
608
|
+
"height"
|
|
609
|
+
], Le = { class: "first-menu-list" }, Re = ["onClick"], ze = { class: "menu-item-content" }, Be = {
|
|
610
|
+
key: 1,
|
|
611
|
+
class: "menu-item-text"
|
|
612
|
+
}, Ve = { class: "menu-item-label" }, He = { class: "second-menu-header" }, Ue = { class: "menu-title" }, We = { class: "second-menu-list" }, Ge = ["onClick"], Ke = { class: "menu-item-label" }, qe = { class: "main-layout" }, Je = /* @__PURE__ */ d({
|
|
613
|
+
name: "MixLayout",
|
|
614
|
+
__name: "index",
|
|
615
|
+
setup(c) {
|
|
616
|
+
let l = Y(), { cachedViews: p, maxCacheCount: m } = Z(), g = l.isDark, _ = r(() => l.menus.value), v = r(() => l.showFooter.value), b = r(() => l.transitionName.value), x = {
|
|
617
|
+
...X,
|
|
618
|
+
...l.brand
|
|
619
|
+
}, D = Me({
|
|
620
|
+
menus: l.menus,
|
|
621
|
+
floatingSecondMenu: r(() => !0)
|
|
622
|
+
}), k = l.iconComponent ?? d({
|
|
623
|
+
name: "LayoutIcon",
|
|
624
|
+
props: {
|
|
625
|
+
name: String,
|
|
626
|
+
size: {
|
|
627
|
+
type: Number,
|
|
628
|
+
default: 18
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
setup(e) {
|
|
632
|
+
return () => f("i", {
|
|
633
|
+
class: e.name,
|
|
634
|
+
style: {
|
|
635
|
+
fontSize: `${e.size}px`,
|
|
636
|
+
display: "inline-flex",
|
|
637
|
+
alignItems: "center",
|
|
638
|
+
justifyContent: "center"
|
|
639
|
+
}
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
});
|
|
643
|
+
return (r, c) => {
|
|
644
|
+
let l = w("RouterView");
|
|
645
|
+
return y(), o("div", Ne, [
|
|
646
|
+
s("div", { class: h(["first-level-menu", [O(g) ? "dark-theme" : "light-theme"]]) }, [s("div", Pe, [C(r.$slots, "logo", {}, () => [c[0] ||= s("div", { class: "logo-glow" }, null, -1), x.logoType === "video" ? (y(), o("video", {
|
|
647
|
+
key: 0,
|
|
648
|
+
src: x.logoSrc,
|
|
649
|
+
width: x.logoSize || 40,
|
|
650
|
+
height: x.logoSize || 40,
|
|
651
|
+
autoplay: "",
|
|
652
|
+
loop: "",
|
|
653
|
+
muted: "",
|
|
654
|
+
playsinline: "",
|
|
655
|
+
class: "logo-video"
|
|
656
|
+
}, " 您的浏览器不支持 video 标签。 ", 8, Fe)) : (y(), o("img", {
|
|
657
|
+
key: 1,
|
|
658
|
+
src: x.logoSrc,
|
|
659
|
+
width: x.logoSize || 40,
|
|
660
|
+
height: x.logoSize || 40,
|
|
661
|
+
class: "logo-video"
|
|
662
|
+
}, null, 8, Ie))])]), s("div", Le, [(y(!0), o(e, null, S(_.value, (e) => (y(), o("div", {
|
|
663
|
+
key: e.path,
|
|
664
|
+
class: h(["first-menu-item", { active: O(D).activeFirstMenu.value === e.path }]),
|
|
665
|
+
onClick: (t) => O(D).handleFirstMenuClick(e)
|
|
666
|
+
}, [s("div", ze, [e.meta?.icon ? (y(), i(T(O(k)), {
|
|
667
|
+
key: 0,
|
|
668
|
+
name: e.meta.icon,
|
|
669
|
+
size: 22
|
|
670
|
+
}, null, 8, ["name"])) : (y(), o("span", Be, E((e.meta?.title || "")[0]), 1))]), s("span", Ve, E(e.meta?.title), 1)], 10, Re))), 128))])], 2),
|
|
671
|
+
u(n, { name: "slide-fade" }, {
|
|
672
|
+
default: j(() => [O(D).showSecondMenu.value ? (y(), o("div", {
|
|
673
|
+
key: 0,
|
|
674
|
+
class: h(["second-level-menu-popup", [O(g) ? "dark-theme" : "light-theme"]])
|
|
675
|
+
}, [s("div", He, [O(D).displayMenuItem.value?.meta?.icon ? (y(), i(T(O(k)), {
|
|
676
|
+
key: 0,
|
|
677
|
+
name: O(D).displayMenuItem.value.meta.icon,
|
|
678
|
+
size: 20
|
|
679
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Ue, E(O(D).displayMenuItem.value?.meta?.title), 1)]), s("div", We, [(y(!0), o(e, null, S(O(D).displayMenuItem.value?.children || [], (e) => (y(), o("div", {
|
|
680
|
+
key: e.path,
|
|
681
|
+
class: h(["second-menu-item", { active: O(D).isMenuItemActive(e.path) }]),
|
|
682
|
+
onClick: (t) => O(D).handleSecondMenuClick(e)
|
|
683
|
+
}, [e.meta?.icon ? (y(), i(T(O(k)), {
|
|
684
|
+
key: 0,
|
|
685
|
+
name: e.meta.icon,
|
|
686
|
+
size: 16
|
|
687
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Ke, E(e.meta?.title), 1)], 10, Ge))), 128))])], 2)) : a("", !0)]),
|
|
688
|
+
_: 1
|
|
689
|
+
}),
|
|
690
|
+
s("div", qe, [C(r.$slots, "header"), u(O(B), null, {
|
|
691
|
+
default: j(() => [u(O(V), { class: "content-with-header p16px app-content" }, {
|
|
692
|
+
default: j(() => [u(l, null, {
|
|
693
|
+
default: j(({ Component: e, route: r }) => [u(n, {
|
|
694
|
+
name: b.value,
|
|
695
|
+
mode: "out-in"
|
|
696
|
+
}, {
|
|
697
|
+
default: j(() => [(y(), i(t, {
|
|
698
|
+
include: O(p),
|
|
699
|
+
max: O(m)
|
|
700
|
+
}, [(y(), i(T(e), { key: r.path }))], 1032, ["include", "max"]))]),
|
|
701
|
+
_: 2
|
|
702
|
+
}, 1032, ["name"])]),
|
|
703
|
+
_: 1
|
|
704
|
+
})]),
|
|
705
|
+
_: 1
|
|
706
|
+
}), v.value ? C(r.$slots, "footer", { key: 0 }) : a("", !0)]),
|
|
707
|
+
_: 3
|
|
708
|
+
})])
|
|
709
|
+
]);
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
}), Ye = { class: "mix-top-layout-container" }, Xe = { class: "logo-container" }, Ze = [
|
|
713
|
+
"src",
|
|
714
|
+
"width",
|
|
715
|
+
"height"
|
|
716
|
+
], Qe = [
|
|
717
|
+
"src",
|
|
718
|
+
"width",
|
|
719
|
+
"height"
|
|
720
|
+
], $e = { class: "first-menu-list" }, et = ["onClick"], tt = { class: "menu-item-content" }, nt = {
|
|
721
|
+
key: 1,
|
|
722
|
+
class: "menu-item-text"
|
|
723
|
+
}, rt = { class: "menu-item-label" }, it = { class: "main-area" }, at = { class: "navbar-left" }, ot = { class: "brand-name" }, st = { class: "brand-title" }, ct = { class: "brand-subtitle" }, lt = { class: "navbar-center" }, ut = { class: "page-content" }, dt = /* @__PURE__ */ d({
|
|
724
|
+
name: "MixTopLayout",
|
|
725
|
+
__name: "index",
|
|
726
|
+
setup(c) {
|
|
727
|
+
let l = Y(), { cachedViews: p, maxCacheCount: m } = Z(), _ = l.isDark, v = r(() => l.menus.value), b = r(() => l.showTagsView.value), x = r(() => l.tagsViewHeight.value), D = r(() => l.showFooter.value), k = r(() => l.transitionName.value), A = {
|
|
728
|
+
...X,
|
|
729
|
+
...l.brand
|
|
730
|
+
}, M = Me({
|
|
731
|
+
menus: l.menus,
|
|
732
|
+
floatingSecondMenu: r(() => !1)
|
|
733
|
+
}), N = l.iconComponent ?? d({
|
|
734
|
+
name: "LayoutIcon",
|
|
735
|
+
props: {
|
|
736
|
+
name: String,
|
|
737
|
+
size: {
|
|
738
|
+
type: Number,
|
|
739
|
+
default: 18
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
setup(e) {
|
|
743
|
+
return () => f("i", {
|
|
744
|
+
class: e.name,
|
|
745
|
+
style: {
|
|
746
|
+
fontSize: `${e.size}px`,
|
|
747
|
+
display: "inline-flex",
|
|
748
|
+
alignItems: "center",
|
|
749
|
+
justifyContent: "center"
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
});
|
|
754
|
+
return (r, c) => {
|
|
755
|
+
let l = w("RouterView");
|
|
756
|
+
return y(), o("div", Ye, [s("div", { class: h(["first-level-sidebar", [O(_) ? "dark-theme" : "light-theme"]]) }, [s("div", Xe, [C(r.$slots, "logo", {}, () => [c[0] ||= s("div", { class: "logo-glow" }, null, -1), A.logoType === "video" ? (y(), o("video", {
|
|
757
|
+
key: 0,
|
|
758
|
+
src: A.logoSrc,
|
|
759
|
+
width: A.logoSize || 40,
|
|
760
|
+
height: A.logoSize || 40,
|
|
761
|
+
autoplay: "",
|
|
762
|
+
loop: "",
|
|
763
|
+
muted: "",
|
|
764
|
+
playsinline: "",
|
|
765
|
+
class: "logo-video"
|
|
766
|
+
}, " 您的浏览器不支持 video 标签。 ", 8, Ze)) : (y(), o("img", {
|
|
767
|
+
key: 1,
|
|
768
|
+
src: A.logoSrc,
|
|
769
|
+
width: A.logoSize || 40,
|
|
770
|
+
height: A.logoSize || 40,
|
|
771
|
+
class: "logo-video"
|
|
772
|
+
}, null, 8, Qe))])]), s("div", $e, [(y(!0), o(e, null, S(v.value, (e) => (y(), o("div", {
|
|
773
|
+
key: e.path,
|
|
774
|
+
class: h(["first-menu-item", { active: O(M).activeFirstMenu.value === e.path }]),
|
|
775
|
+
onClick: (t) => O(M).handleFirstMenuClick(e)
|
|
776
|
+
}, [s("div", tt, [e.meta?.icon ? (y(), i(T(O(N)), {
|
|
777
|
+
key: 0,
|
|
778
|
+
name: e.meta.icon,
|
|
779
|
+
size: 22
|
|
780
|
+
}, null, 8, ["name"])) : (y(), o("span", nt, E((e.meta?.title || "")[0]), 1))]), s("span", rt, E(e.meta?.title), 1)], 10, et))), 128))])], 2), s("div", it, [
|
|
781
|
+
s("div", { class: h(["top-navbar", [O(_) ? "dark-theme" : "light-theme"]]) }, [
|
|
782
|
+
s("div", at, [C(r.$slots, "brand", {}, () => [s("div", ot, [s("span", st, E(A.name), 1), s("span", ct, E(A.subtitle), 1)]), c[1] ||= s("div", { class: "navbar-divider" }, null, -1)])]),
|
|
783
|
+
s("div", lt, [C(r.$slots, "top-menu", {}, () => [O(M).currentSecondMenus.value.length > 0 ? (y(), i($, {
|
|
784
|
+
key: 0,
|
|
785
|
+
data: O(M).currentSecondMenus.value
|
|
786
|
+
}, null, 8, ["data"])) : a("", !0)])]),
|
|
787
|
+
C(r.$slots, "header-extra")
|
|
788
|
+
], 2),
|
|
789
|
+
b.value ? (y(), o("div", {
|
|
790
|
+
key: 0,
|
|
791
|
+
class: "tags-view-container",
|
|
792
|
+
style: g({ height: `${x.value}px` })
|
|
793
|
+
}, [C(r.$slots, "tags-view")], 4)) : a("", !0),
|
|
794
|
+
u(O(B), { class: "content-layout" }, {
|
|
795
|
+
default: j(() => [u(O(V), { class: "main-content" }, {
|
|
796
|
+
default: j(() => [s("div", ut, [u(l, null, {
|
|
797
|
+
default: j(({ Component: e, route: r }) => [u(n, {
|
|
798
|
+
name: k.value,
|
|
799
|
+
mode: "out-in"
|
|
800
|
+
}, {
|
|
801
|
+
default: j(() => [(y(), i(t, {
|
|
802
|
+
include: O(p),
|
|
803
|
+
max: O(m)
|
|
804
|
+
}, [(y(), i(T(e), { key: r.path }))], 1032, ["include", "max"]))]),
|
|
805
|
+
_: 2
|
|
806
|
+
}, 1032, ["name"])]),
|
|
807
|
+
_: 1
|
|
808
|
+
})])]),
|
|
809
|
+
_: 1
|
|
810
|
+
}), D.value ? C(r.$slots, "footer", { key: 0 }) : a("", !0)]),
|
|
811
|
+
_: 3
|
|
812
|
+
})
|
|
813
|
+
])]);
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
}), ft = { class: "reverse-horizontal-mix-layout-container" }, pt = { class: "navbar-left" }, mt = { class: "logo-container" }, ht = [
|
|
817
|
+
"src",
|
|
818
|
+
"width",
|
|
819
|
+
"height"
|
|
820
|
+
], gt = [
|
|
821
|
+
"src",
|
|
822
|
+
"width",
|
|
823
|
+
"height"
|
|
824
|
+
], _t = { class: "brand-name" }, vt = { class: "brand-title" }, yt = { class: "brand-subtitle" }, bt = { class: "navbar-center" }, xt = { class: "main-area" }, St = { class: "page-content" }, Ct = { class: "header-icon" }, wt = { class: "header-title" }, Tt = { class: "sidebar-menu-list" }, Et = {
|
|
825
|
+
key: 0,
|
|
826
|
+
class: "menu-group"
|
|
827
|
+
}, Dt = { class: "group-title" }, Ot = ["onClick"], kt = { class: "item-title" }, At = ["onClick"], jt = { class: "item-title" }, Mt = /* @__PURE__ */ d({
|
|
828
|
+
name: "ReverseHorizontalMixLayout",
|
|
829
|
+
__name: "index",
|
|
830
|
+
setup(c) {
|
|
831
|
+
let l = Y(), { cachedViews: p, maxCacheCount: m } = Z(), _ = l.isDark, v = r(() => l.menus.value), b = r(() => l.showTagsView.value), D = r(() => l.tagsViewHeight.value), k = r(() => l.showFooter.value), A = r(() => l.transitionName.value), M = {
|
|
832
|
+
...X,
|
|
833
|
+
...l.brand
|
|
834
|
+
}, N = Me({
|
|
835
|
+
menus: l.menus,
|
|
836
|
+
floatingSecondMenu: r(() => !1)
|
|
837
|
+
}), P = x(!1), F = () => {
|
|
838
|
+
P.value = !P.value;
|
|
839
|
+
}, I = l.iconComponent ?? d({
|
|
840
|
+
name: "LayoutIcon",
|
|
841
|
+
props: {
|
|
842
|
+
name: String,
|
|
843
|
+
size: {
|
|
844
|
+
type: Number,
|
|
845
|
+
default: 18
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
setup(e) {
|
|
849
|
+
return () => f("i", {
|
|
850
|
+
class: e.name,
|
|
851
|
+
style: {
|
|
852
|
+
fontSize: `${e.size}px`,
|
|
853
|
+
display: "inline-flex",
|
|
854
|
+
alignItems: "center",
|
|
855
|
+
justifyContent: "center"
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
});
|
|
860
|
+
return (r, c) => {
|
|
861
|
+
let l = w("RouterView");
|
|
862
|
+
return y(), o("div", ft, [
|
|
863
|
+
s("div", { class: h(["top-navbar", [O(_) ? "dark-theme" : "light-theme"]]) }, [
|
|
864
|
+
s("div", pt, [C(r.$slots, "logo", {}, () => [
|
|
865
|
+
s("div", mt, [c[0] ||= s("div", { class: "logo-glow" }, null, -1), M.logoType === "video" ? (y(), o("video", {
|
|
866
|
+
key: 0,
|
|
867
|
+
src: M.logoSrc,
|
|
868
|
+
width: M.logoSize || 36,
|
|
869
|
+
height: M.logoSize || 36,
|
|
870
|
+
autoplay: "",
|
|
871
|
+
loop: "",
|
|
872
|
+
muted: "",
|
|
873
|
+
playsinline: "",
|
|
874
|
+
class: "logo-video"
|
|
875
|
+
}, " 您的浏览器不支持 video 标签。 ", 8, ht)) : (y(), o("img", {
|
|
876
|
+
key: 1,
|
|
877
|
+
src: M.logoSrc,
|
|
878
|
+
width: M.logoSize || 36,
|
|
879
|
+
height: M.logoSize || 36,
|
|
880
|
+
class: "logo-video"
|
|
881
|
+
}, null, 8, gt))]),
|
|
882
|
+
s("div", _t, [s("span", vt, E(M.name), 1), s("span", yt, E(M.subtitle), 1)]),
|
|
883
|
+
c[1] ||= s("div", { class: "navbar-divider" }, null, -1)
|
|
884
|
+
])]),
|
|
885
|
+
s("div", bt, [C(r.$slots, "top-menu", {}, () => [u($, { data: v.value }, null, 8, ["data"])])]),
|
|
886
|
+
C(r.$slots, "header-extra")
|
|
887
|
+
], 2),
|
|
888
|
+
b.value ? (y(), o("div", {
|
|
889
|
+
key: 0,
|
|
890
|
+
class: "tags-view-container",
|
|
891
|
+
style: g({ height: `${D.value}px` })
|
|
892
|
+
}, [C(r.$slots, "tags-view")], 4)) : a("", !0),
|
|
893
|
+
s("div", xt, [
|
|
894
|
+
u(O(B), { class: "content-layout" }, {
|
|
895
|
+
default: j(() => [u(O(V), { class: "main-content" }, {
|
|
896
|
+
default: j(() => [s("div", St, [u(l, null, {
|
|
897
|
+
default: j(({ Component: e, route: r }) => [u(n, {
|
|
898
|
+
name: A.value,
|
|
899
|
+
mode: "out-in"
|
|
900
|
+
}, {
|
|
901
|
+
default: j(() => [(y(), i(t, {
|
|
902
|
+
include: O(p),
|
|
903
|
+
max: O(m)
|
|
904
|
+
}, [(y(), i(T(e), { key: r.path }))], 1032, ["include", "max"]))]),
|
|
905
|
+
_: 2
|
|
906
|
+
}, 1032, ["name"])]),
|
|
907
|
+
_: 1
|
|
908
|
+
})])]),
|
|
909
|
+
_: 1
|
|
910
|
+
}), k.value ? C(r.$slots, "footer", { key: 0 }) : a("", !0)]),
|
|
911
|
+
_: 3
|
|
912
|
+
}),
|
|
913
|
+
O(N).currentSecondMenus.value.length > 0 ? (y(), o("div", {
|
|
914
|
+
key: 0,
|
|
915
|
+
class: h(["sidebar-toggle", [O(_) ? "dark-theme" : "light-theme", { active: !P.value }]]),
|
|
916
|
+
onClick: F
|
|
917
|
+
}, [s("span", { class: h([
|
|
918
|
+
"collapse-arrow",
|
|
919
|
+
"toggle-icon",
|
|
920
|
+
P.value ? "collapsed" : "expanded"
|
|
921
|
+
]) }, [...c[2] ||= [s("span", { class: "arrow-line" }, null, -1), s("span", { class: "arrow-line" }, null, -1)]], 2)], 2)) : a("", !0),
|
|
922
|
+
O(N).currentSecondMenus.value.length > 0 ? (y(), o("div", {
|
|
923
|
+
key: 1,
|
|
924
|
+
class: h(["right-sidebar-wrapper", { collapsed: P.value }])
|
|
925
|
+
}, [s("div", { class: h(["right-sidebar", [O(_) ? "dark-theme" : "light-theme"]]) }, [s("div", { class: h(["sidebar-header", [O(_) ? "dark-theme" : "light-theme"]]) }, [s("div", Ct, [O(N).activeFirstMenuItem.value?.meta?.icon ? (y(), i(T(O(I)), {
|
|
926
|
+
key: 0,
|
|
927
|
+
name: O(N).activeFirstMenuItem.value.meta.icon,
|
|
928
|
+
size: 20
|
|
929
|
+
}, null, 8, ["name"])) : a("", !0)]), s("span", wt, E(O(N).activeFirstMenuItem.value?.meta?.title || "菜单"), 1)], 2), s("div", Tt, [(y(!0), o(e, null, S(O(N).currentSecondMenus.value, (t) => (y(), o(e, { key: t.path }, [t.children && t.children.length > 0 ? (y(), o("div", Et, [s("div", Dt, [t.meta?.icon ? (y(), i(T(O(I)), {
|
|
930
|
+
key: 0,
|
|
931
|
+
name: t.meta.icon,
|
|
932
|
+
size: 16
|
|
933
|
+
}, null, 8, ["name"])) : a("", !0), s("span", null, E(t.meta?.title), 1)]), (y(!0), o(e, null, S(t.children, (e) => (y(), o("div", {
|
|
934
|
+
key: e.path,
|
|
935
|
+
class: h(["menu-item sub-item", { active: O(N).isMenuItemActive(e.path) }]),
|
|
936
|
+
onClick: (t) => O(N).handleSecondMenuClick(e)
|
|
937
|
+
}, [e.meta?.icon ? (y(), i(T(O(I)), {
|
|
938
|
+
key: 0,
|
|
939
|
+
name: e.meta.icon,
|
|
940
|
+
size: 16
|
|
941
|
+
}, null, 8, ["name"])) : a("", !0), s("span", kt, E(e.meta?.title), 1)], 10, Ot))), 128))])) : (y(), o("div", {
|
|
942
|
+
key: 1,
|
|
943
|
+
class: h(["menu-item", { active: O(N).isMenuItemActive(t.path) }]),
|
|
944
|
+
onClick: (e) => O(N).handleSecondMenuClick(t)
|
|
945
|
+
}, [t.meta?.icon ? (y(), i(T(O(I)), {
|
|
946
|
+
key: 0,
|
|
947
|
+
name: t.meta.icon,
|
|
948
|
+
size: 18
|
|
949
|
+
}, null, 8, ["name"])) : a("", !0), s("span", jt, E(t.meta?.title), 1)], 10, At))], 64))), 128))])], 2)], 2)) : a("", !0)
|
|
950
|
+
])
|
|
951
|
+
]);
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
}), Nt = { class: "card-layout-container" }, Pt = { class: "navbar-left" }, Ft = { class: "logo-container" }, It = [
|
|
955
|
+
"src",
|
|
956
|
+
"width",
|
|
957
|
+
"height"
|
|
958
|
+
], Lt = [
|
|
959
|
+
"src",
|
|
960
|
+
"width",
|
|
961
|
+
"height"
|
|
962
|
+
], Rt = { class: "brand-name" }, zt = { class: "brand-title" }, Bt = { class: "brand-subtitle" }, Vt = { class: "drawer-content" }, Ht = { class: "menu-grid" }, Ut = ["onClick"], Wt = {
|
|
963
|
+
key: 0,
|
|
964
|
+
class: "category-items"
|
|
965
|
+
}, Gt = ["onClick"], Kt = { class: "item-title" }, qt = {
|
|
966
|
+
key: 0,
|
|
967
|
+
class: "submenu-items"
|
|
968
|
+
}, Jt = { class: "submenu-title" }, Yt = ["onClick"], Xt = { class: "item-title" }, Zt = { class: "main-content-area" }, Qt = { class: "page-content" }, $t = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
969
|
+
name: "CardLayout",
|
|
970
|
+
__name: "index",
|
|
971
|
+
setup(c) {
|
|
972
|
+
let l = Y(), { cachedViews: p, maxCacheCount: m } = Z(), _ = q(), b = l.isDark, D = r(() => l.menus.value), k = r(() => l.showTagsView.value), A = r(() => l.tagsViewHeight.value), M = r(() => l.showFooter.value), N = r(() => l.transitionName.value), P = {
|
|
973
|
+
...X,
|
|
974
|
+
...l.brand
|
|
975
|
+
}, F = x(!1), I = x(null), L = () => {
|
|
976
|
+
I.value && clearTimeout(I.value), I.value = setTimeout(() => {
|
|
977
|
+
F.value = !1;
|
|
978
|
+
}, 300);
|
|
979
|
+
}, R = () => {
|
|
980
|
+
I.value &&= (clearTimeout(I.value), null), F.value = !0;
|
|
981
|
+
}, z = (e) => {
|
|
982
|
+
e.path && (_.push(e.path), F.value = !1);
|
|
983
|
+
}, H = l.iconComponent ?? d({
|
|
984
|
+
name: "LayoutIcon",
|
|
985
|
+
props: {
|
|
986
|
+
name: String,
|
|
987
|
+
size: {
|
|
988
|
+
type: Number,
|
|
989
|
+
default: 18
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
setup(e) {
|
|
993
|
+
return () => f("i", {
|
|
994
|
+
class: e.name,
|
|
995
|
+
style: {
|
|
996
|
+
fontSize: `${e.size}px`,
|
|
997
|
+
display: "inline-flex",
|
|
998
|
+
alignItems: "center",
|
|
999
|
+
justifyContent: "center"
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
return v(() => {
|
|
1005
|
+
I.value && clearTimeout(I.value);
|
|
1006
|
+
}), (r, c) => {
|
|
1007
|
+
let l = w("RouterView");
|
|
1008
|
+
return y(), o("div", Nt, [
|
|
1009
|
+
s("div", { class: h(["top-navbar", [O(b) ? "dark-theme" : "light-theme"]]) }, [s("div", Pt, [s("div", {
|
|
1010
|
+
class: "hover-trigger-area",
|
|
1011
|
+
onMouseenter: R,
|
|
1012
|
+
onMouseleave: L
|
|
1013
|
+
}, [C(r.$slots, "menu-trigger", {}, () => [c[0] ||= s("div", { class: "menu-indicator" }, [s("span", { class: "hamburger-icon" }, [
|
|
1014
|
+
s("span"),
|
|
1015
|
+
s("span"),
|
|
1016
|
+
s("span")
|
|
1017
|
+
])], -1)], !0)], 32), C(r.$slots, "logo", {}, () => [
|
|
1018
|
+
s("div", Ft, [c[1] ||= s("div", { class: "logo-glow" }, null, -1), P.logoType === "video" ? (y(), o("video", {
|
|
1019
|
+
key: 0,
|
|
1020
|
+
src: P.logoSrc,
|
|
1021
|
+
width: P.logoSize || 36,
|
|
1022
|
+
height: P.logoSize || 36,
|
|
1023
|
+
autoplay: "",
|
|
1024
|
+
loop: "",
|
|
1025
|
+
muted: "",
|
|
1026
|
+
playsinline: "",
|
|
1027
|
+
class: "logo-video"
|
|
1028
|
+
}, " 您的浏览器不支持 video 标签。 ", 8, It)) : (y(), o("img", {
|
|
1029
|
+
key: 1,
|
|
1030
|
+
src: P.logoSrc,
|
|
1031
|
+
width: P.logoSize || 36,
|
|
1032
|
+
height: P.logoSize || 36,
|
|
1033
|
+
class: "logo-video"
|
|
1034
|
+
}, null, 8, Lt))]),
|
|
1035
|
+
s("div", Rt, [s("span", zt, E(P.name), 1), s("span", Bt, E(P.subtitle), 1)]),
|
|
1036
|
+
c[2] ||= s("div", { class: "navbar-divider" }, null, -1)
|
|
1037
|
+
], !0)]), C(r.$slots, "header-extra", {}, void 0, !0)], 2),
|
|
1038
|
+
k.value ? (y(), o("div", {
|
|
1039
|
+
key: 0,
|
|
1040
|
+
class: "tags-view-container",
|
|
1041
|
+
style: g({ height: `${A.value}px` })
|
|
1042
|
+
}, [C(r.$slots, "tags-view", {}, void 0, !0)], 4)) : a("", !0),
|
|
1043
|
+
s("div", {
|
|
1044
|
+
class: h(["drawer-menu", [O(b) ? "dark-theme" : "light-theme", { visible: F.value }]]),
|
|
1045
|
+
onMouseenter: R,
|
|
1046
|
+
onMouseleave: L
|
|
1047
|
+
}, [C(r.$slots, "drawer-menu", {}, () => [c[3] ||= s("div", { class: "drawer-header" }, [s("div", { class: "drawer-title" }, [s("span", { class: "grid-icon" }, [
|
|
1048
|
+
s("span"),
|
|
1049
|
+
s("span"),
|
|
1050
|
+
s("span"),
|
|
1051
|
+
s("span")
|
|
1052
|
+
]), s("span", null, "功能导航")])], -1), s("div", Vt, [s("div", Ht, [(y(!0), o(e, null, S(D.value, (t) => (y(), o("div", {
|
|
1053
|
+
key: t.path,
|
|
1054
|
+
class: "menu-category"
|
|
1055
|
+
}, [s("div", {
|
|
1056
|
+
class: "category-header",
|
|
1057
|
+
onClick: (e) => z(t)
|
|
1058
|
+
}, [t.meta?.icon ? (y(), i(T(O(H)), {
|
|
1059
|
+
key: 0,
|
|
1060
|
+
name: t.meta.icon,
|
|
1061
|
+
size: 18
|
|
1062
|
+
}, null, 8, ["name"])) : a("", !0), s("span", null, E(t.meta?.title), 1)], 8, Ut), t.children && t.children.length > 0 ? (y(), o("div", Wt, [(y(!0), o(e, null, S(t.children, (e) => (y(), o("div", {
|
|
1063
|
+
key: e.path,
|
|
1064
|
+
class: "menu-item",
|
|
1065
|
+
onClick: (t) => z(e)
|
|
1066
|
+
}, [e.meta?.icon ? (y(), i(T(O(H)), {
|
|
1067
|
+
key: 0,
|
|
1068
|
+
name: e.meta.icon,
|
|
1069
|
+
size: 16
|
|
1070
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Kt, E(e.meta?.title), 1)], 8, Gt))), 128)), (y(!0), o(e, null, S(t.children, (t) => (y(), o(e, { key: "sub-" + t.path }, [t.children && t.children.length > 0 ? (y(), o("div", qt, [s("div", Jt, E(t.meta?.title), 1), (y(!0), o(e, null, S(t.children, (e) => (y(), o("div", {
|
|
1071
|
+
key: e.path,
|
|
1072
|
+
class: "menu-item submenu-item",
|
|
1073
|
+
onClick: (t) => z(e)
|
|
1074
|
+
}, [e.meta?.icon ? (y(), i(T(O(H)), {
|
|
1075
|
+
key: 0,
|
|
1076
|
+
name: e.meta.icon,
|
|
1077
|
+
size: 14
|
|
1078
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Xt, E(e.meta?.title), 1)], 8, Yt))), 128))])) : a("", !0)], 64))), 128))])) : a("", !0)]))), 128))])])], !0)], 34),
|
|
1079
|
+
s("div", Zt, [u(O(B), { class: "content-layout" }, {
|
|
1080
|
+
default: j(() => [u(O(V), { class: "main-content p16px app-content" }, {
|
|
1081
|
+
default: j(() => [s("div", Qt, [u(l, null, {
|
|
1082
|
+
default: j(({ Component: e, route: r }) => [u(n, {
|
|
1083
|
+
name: N.value,
|
|
1084
|
+
mode: "out-in"
|
|
1085
|
+
}, {
|
|
1086
|
+
default: j(() => [(y(), i(t, {
|
|
1087
|
+
include: O(p),
|
|
1088
|
+
max: O(m)
|
|
1089
|
+
}, [(y(), i(T(e), { key: r.path }))], 1032, ["include", "max"]))]),
|
|
1090
|
+
_: 2
|
|
1091
|
+
}, 1032, ["name"])]),
|
|
1092
|
+
_: 1
|
|
1093
|
+
})])]),
|
|
1094
|
+
_: 1
|
|
1095
|
+
}), M.value ? C(r.$slots, "footer", { key: 0 }, void 0, !0) : a("", !0)]),
|
|
1096
|
+
_: 3
|
|
1097
|
+
})])
|
|
1098
|
+
]);
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
}), [["__scopeId", "data-v-3e4915c5"]]), en = {
|
|
1102
|
+
key: 6,
|
|
1103
|
+
class: "layout-coming-soon"
|
|
1104
|
+
}, tn = /* @__PURE__ */ d({
|
|
1105
|
+
name: "C_LayoutContainer",
|
|
1106
|
+
__name: "index",
|
|
1107
|
+
setup(e) {
|
|
1108
|
+
let t = me(), n = Y(), a = r(() => t.layoutMode), l = n.isDark, u = x(!1);
|
|
1109
|
+
return b("menuCollapse", {
|
|
1110
|
+
isCollapsed: u,
|
|
1111
|
+
handleCollapsedChange: (e) => {
|
|
1112
|
+
u.value = e;
|
|
1113
|
+
}
|
|
1114
|
+
}), (e, t) => (y(), o("div", { class: h(["layout-container", O(l) ? "dark-mode" : "light-mode"]) }, [a.value === "side" ? (y(), i(_e, {
|
|
1115
|
+
key: 0,
|
|
1116
|
+
collapsed: u.value,
|
|
1117
|
+
"onUpdate:collapsed": t[0] ||= (e) => u.value = e
|
|
1118
|
+
}, c({
|
|
1119
|
+
menu: j(() => [C(e.$slots, "menu", { collapsed: u.value })]),
|
|
1120
|
+
header: j(() => [C(e.$slots, "header")]),
|
|
1121
|
+
footer: j(() => [C(e.$slots, "footer")]),
|
|
1122
|
+
_: 2
|
|
1123
|
+
}, [e.$slots.logo ? {
|
|
1124
|
+
name: "logo",
|
|
1125
|
+
fn: j(() => [C(e.$slots, "logo")]),
|
|
1126
|
+
key: "0"
|
|
1127
|
+
} : void 0]), 1032, ["collapsed"])) : a.value === "top" ? (y(), i(je, { key: 1 }, c({ _: 2 }, [
|
|
1128
|
+
e.$slots.logo ? {
|
|
1129
|
+
name: "logo",
|
|
1130
|
+
fn: j(() => [C(e.$slots, "logo")]),
|
|
1131
|
+
key: "0"
|
|
1132
|
+
} : void 0,
|
|
1133
|
+
e.$slots["top-menu"] ? {
|
|
1134
|
+
name: "menu",
|
|
1135
|
+
fn: j(() => [C(e.$slots, "top-menu")]),
|
|
1136
|
+
key: "1"
|
|
1137
|
+
} : void 0,
|
|
1138
|
+
e.$slots["header-extra"] ? {
|
|
1139
|
+
name: "header-extra",
|
|
1140
|
+
fn: j(() => [C(e.$slots, "header-extra")]),
|
|
1141
|
+
key: "2"
|
|
1142
|
+
} : void 0,
|
|
1143
|
+
e.$slots["tags-view"] ? {
|
|
1144
|
+
name: "tags-view",
|
|
1145
|
+
fn: j(() => [C(e.$slots, "tags-view")]),
|
|
1146
|
+
key: "3"
|
|
1147
|
+
} : void 0,
|
|
1148
|
+
e.$slots.footer ? {
|
|
1149
|
+
name: "footer",
|
|
1150
|
+
fn: j(() => [C(e.$slots, "footer")]),
|
|
1151
|
+
key: "4"
|
|
1152
|
+
} : void 0
|
|
1153
|
+
]), 1024)) : a.value === "mix" ? (y(), i(Je, { key: 2 }, c({
|
|
1154
|
+
header: j(() => [C(e.$slots, "header")]),
|
|
1155
|
+
_: 2
|
|
1156
|
+
}, [e.$slots.logo ? {
|
|
1157
|
+
name: "logo",
|
|
1158
|
+
fn: j(() => [C(e.$slots, "logo")]),
|
|
1159
|
+
key: "0"
|
|
1160
|
+
} : void 0, e.$slots.footer ? {
|
|
1161
|
+
name: "footer",
|
|
1162
|
+
fn: j(() => [C(e.$slots, "footer")]),
|
|
1163
|
+
key: "1"
|
|
1164
|
+
} : void 0]), 1024)) : a.value === "mix-top" ? (y(), i(dt, { key: 3 }, c({ _: 2 }, [
|
|
1165
|
+
e.$slots.logo ? {
|
|
1166
|
+
name: "logo",
|
|
1167
|
+
fn: j(() => [C(e.$slots, "logo")]),
|
|
1168
|
+
key: "0"
|
|
1169
|
+
} : void 0,
|
|
1170
|
+
e.$slots.brand ? {
|
|
1171
|
+
name: "brand",
|
|
1172
|
+
fn: j(() => [C(e.$slots, "brand")]),
|
|
1173
|
+
key: "1"
|
|
1174
|
+
} : void 0,
|
|
1175
|
+
e.$slots["top-menu"] ? {
|
|
1176
|
+
name: "top-menu",
|
|
1177
|
+
fn: j(() => [C(e.$slots, "top-menu")]),
|
|
1178
|
+
key: "2"
|
|
1179
|
+
} : void 0,
|
|
1180
|
+
e.$slots["header-extra"] ? {
|
|
1181
|
+
name: "header-extra",
|
|
1182
|
+
fn: j(() => [C(e.$slots, "header-extra")]),
|
|
1183
|
+
key: "3"
|
|
1184
|
+
} : void 0,
|
|
1185
|
+
e.$slots["tags-view"] ? {
|
|
1186
|
+
name: "tags-view",
|
|
1187
|
+
fn: j(() => [C(e.$slots, "tags-view")]),
|
|
1188
|
+
key: "4"
|
|
1189
|
+
} : void 0,
|
|
1190
|
+
e.$slots.footer ? {
|
|
1191
|
+
name: "footer",
|
|
1192
|
+
fn: j(() => [C(e.$slots, "footer")]),
|
|
1193
|
+
key: "5"
|
|
1194
|
+
} : void 0
|
|
1195
|
+
]), 1024)) : a.value === "reverse-horizontal-mix" ? (y(), i(Mt, { key: 4 }, c({ _: 2 }, [
|
|
1196
|
+
e.$slots.logo ? {
|
|
1197
|
+
name: "logo",
|
|
1198
|
+
fn: j(() => [C(e.$slots, "logo")]),
|
|
1199
|
+
key: "0"
|
|
1200
|
+
} : void 0,
|
|
1201
|
+
e.$slots["top-menu"] ? {
|
|
1202
|
+
name: "top-menu",
|
|
1203
|
+
fn: j(() => [C(e.$slots, "top-menu")]),
|
|
1204
|
+
key: "1"
|
|
1205
|
+
} : void 0,
|
|
1206
|
+
e.$slots["header-extra"] ? {
|
|
1207
|
+
name: "header-extra",
|
|
1208
|
+
fn: j(() => [C(e.$slots, "header-extra")]),
|
|
1209
|
+
key: "2"
|
|
1210
|
+
} : void 0,
|
|
1211
|
+
e.$slots["tags-view"] ? {
|
|
1212
|
+
name: "tags-view",
|
|
1213
|
+
fn: j(() => [C(e.$slots, "tags-view")]),
|
|
1214
|
+
key: "3"
|
|
1215
|
+
} : void 0,
|
|
1216
|
+
e.$slots.footer ? {
|
|
1217
|
+
name: "footer",
|
|
1218
|
+
fn: j(() => [C(e.$slots, "footer")]),
|
|
1219
|
+
key: "4"
|
|
1220
|
+
} : void 0
|
|
1221
|
+
]), 1024)) : a.value === "card-layout" ? (y(), i($t, { key: 5 }, c({ _: 2 }, [
|
|
1222
|
+
e.$slots["menu-trigger"] ? {
|
|
1223
|
+
name: "menu-trigger",
|
|
1224
|
+
fn: j(() => [C(e.$slots, "menu-trigger")]),
|
|
1225
|
+
key: "0"
|
|
1226
|
+
} : void 0,
|
|
1227
|
+
e.$slots.logo ? {
|
|
1228
|
+
name: "logo",
|
|
1229
|
+
fn: j(() => [C(e.$slots, "logo")]),
|
|
1230
|
+
key: "1"
|
|
1231
|
+
} : void 0,
|
|
1232
|
+
e.$slots["header-extra"] ? {
|
|
1233
|
+
name: "header-extra",
|
|
1234
|
+
fn: j(() => [C(e.$slots, "header-extra")]),
|
|
1235
|
+
key: "2"
|
|
1236
|
+
} : void 0,
|
|
1237
|
+
e.$slots["tags-view"] ? {
|
|
1238
|
+
name: "tags-view",
|
|
1239
|
+
fn: j(() => [C(e.$slots, "tags-view")]),
|
|
1240
|
+
key: "3"
|
|
1241
|
+
} : void 0,
|
|
1242
|
+
e.$slots["drawer-menu"] ? {
|
|
1243
|
+
name: "drawer-menu",
|
|
1244
|
+
fn: j(() => [C(e.$slots, "drawer-menu")]),
|
|
1245
|
+
key: "4"
|
|
1246
|
+
} : void 0,
|
|
1247
|
+
e.$slots.footer ? {
|
|
1248
|
+
name: "footer",
|
|
1249
|
+
fn: j(() => [C(e.$slots, "footer")]),
|
|
1250
|
+
key: "5"
|
|
1251
|
+
} : void 0
|
|
1252
|
+
]), 1024)) : (y(), o("div", en, [...t[1] ||= [s("div", { class: "coming-soon-content" }, [s("div", { class: "coming-soon-icon" }, "🚧"), s("div", { class: "coming-soon-title" }, "布局开发中")], -1)]]))], 2));
|
|
1253
|
+
}
|
|
1254
|
+
}), nn = [
|
|
1255
|
+
{
|
|
1256
|
+
label: "左侧菜单(默认)",
|
|
1257
|
+
value: "side",
|
|
1258
|
+
disabled: !1,
|
|
1259
|
+
svg: "\n <rect x=\"0\" y=\"0\" width=\"16\" height=\"48\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.9\"/>\n <rect x=\"18\" y=\"0\" width=\"38\" height=\"10\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.7\"/>\n <rect x=\"18\" y=\"12\" width=\"38\" height=\"34\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.4\"/>\n "
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
label: "顶部菜单(清爽)",
|
|
1263
|
+
value: "top",
|
|
1264
|
+
disabled: !1,
|
|
1265
|
+
svg: "\n <rect x=\"0\" y=\"0\" width=\"56\" height=\"10\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.9\"/>\n <rect x=\"0\" y=\"12\" width=\"56\" height=\"8\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.7\"/>\n <rect x=\"0\" y=\"22\" width=\"56\" height=\"24\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.4\"/>\n "
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
label: "左侧混合(灵巧)",
|
|
1269
|
+
value: "mix",
|
|
1270
|
+
disabled: !1,
|
|
1271
|
+
svg: "\n <rect x=\"0\" y=\"0\" width=\"8\" height=\"48\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.9\"/>\n <rect x=\"10\" y=\"0\" width=\"14\" height=\"48\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.7\"/>\n <rect x=\"26\" y=\"0\" width=\"30\" height=\"10\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.6\"/>\n <rect x=\"26\" y=\"12\" width=\"30\" height=\"34\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.4\"/>\n "
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
label: "顶部混合(侧优)",
|
|
1275
|
+
value: "mix-top",
|
|
1276
|
+
disabled: !1,
|
|
1277
|
+
svg: "\n <rect x=\"0\" y=\"0\" width=\"8\" height=\"48\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.9\"/>\n <rect x=\"10\" y=\"0\" width=\"46\" height=\"10\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.7\"/>\n <rect x=\"10\" y=\"12\" width=\"46\" height=\"34\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.4\"/>\n "
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
label: "反转混合(另类)",
|
|
1281
|
+
value: "reverse-horizontal-mix",
|
|
1282
|
+
disabled: !1,
|
|
1283
|
+
svg: "\n <rect x=\"0\" y=\"0\" width=\"56\" height=\"10\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.9\"/>\n <rect x=\"44\" y=\"12\" width=\"12\" height=\"34\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.7\"/>\n <rect x=\"0\" y=\"12\" width=\"42\" height=\"34\" rx=\"1\" fill=\"currentColor\" fill-opacity=\"0.4\"/>\n "
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
label: "卡片网格(新颖)",
|
|
1287
|
+
value: "card-layout",
|
|
1288
|
+
disabled: !1,
|
|
1289
|
+
svg: "\n <rect x=\"0\" y=\"0\" width=\"24\" height=\"20\" rx=\"2\" fill=\"currentColor\" fill-opacity=\"0.9\"/>\n <rect x=\"32\" y=\"0\" width=\"24\" height=\"20\" rx=\"2\" fill=\"currentColor\" fill-opacity=\"0.7\"/>\n <rect x=\"0\" y=\"24\" width=\"24\" height=\"20\" rx=\"2\" fill=\"currentColor\" fill-opacity=\"0.6\"/>\n <rect x=\"32\" y=\"24\" width=\"24\" height=\"20\" rx=\"2\" fill=\"currentColor\" fill-opacity=\"0.4\"/>\n "
|
|
1290
|
+
}
|
|
1291
|
+
], rn = { class: "settings-section" }, an = { class: "preset-grid" }, on = ["onClick"], sn = { class: "preset-icon" }, cn = { class: "preset-name" }, ln = { class: "preset-color" }, un = { class: "settings-section" }, dn = { class: "settings-section" }, fn = { class: "color-picker-wrapper" }, pn = { class: "color-value" }, mn = { class: "settings-section" }, hn = { class: "settings-section" }, gn = { class: "flex items-center justify-between mb-2" }, _n = { class: "settings-section" }, vn = { class: "settings-section" }, yn = { class: "layout-grid" }, bn = ["onClick"], xn = { class: "layout-screenshot" }, Sn = {
|
|
1292
|
+
class: "layout-svg",
|
|
1293
|
+
viewBox: "0 0 56 48",
|
|
1294
|
+
fill: "none",
|
|
1295
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1296
|
+
}, Cn = ["innerHTML"], wn = { class: "layout-label" }, Tn = {
|
|
1297
|
+
key: 0,
|
|
1298
|
+
class: "badge-soon"
|
|
1299
|
+
}, En = {
|
|
1300
|
+
class: "settings-section menu-expand-section",
|
|
1301
|
+
"data-menu-expand-mode": "built-in"
|
|
1302
|
+
}, Dn = { class: "settings-section" }, On = { class: "setting-item" }, kn = { class: "setting-item" }, An = { class: "setting-item" }, jn = { class: "setting-item" }, Mn = { class: "settings-section" }, Nn = { class: "slider-item" }, Pn = { class: "slider-label" }, Fn = { class: "slider-value" }, In = { class: "slider-item" }, Ln = { class: "slider-label" }, Rn = { class: "slider-value" }, zn = { class: "settings-section" }, Bn = { class: "settings-section" }, Vn = { class: "action-buttons-grid" }, Hn = { class: "settings-section" }, Un = { class: "action-buttons-grid" }, Wn = { class: "settings-section" }, Gn = { class: "setting-item" }, Kn = { class: "setting-item" }, qn = { class: "settings-section" }, Jn = { class: "setting-item" }, Yn = {
|
|
1303
|
+
key: 0,
|
|
1304
|
+
class: "mt-2"
|
|
1305
|
+
}, Xn = { class: "settings-section" }, Zn = { class: "system-info" }, Qn = { class: "info-item" }, $n = { class: "info-value" }, er = { class: "info-item" }, tr = { class: "info-value" }, nr = { class: "info-item" }, rr = { class: "info-value" }, ir = { class: "info-item" }, ar = { class: "info-value" }, or = { class: "info-item" }, sr = { class: "info-value" }, cr = { class: "info-item" }, lr = { class: "info-value" }, ur = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
1306
|
+
__name: "index",
|
|
1307
|
+
props: {
|
|
1308
|
+
show: {
|
|
1309
|
+
type: Boolean,
|
|
1310
|
+
default: !1
|
|
1311
|
+
},
|
|
1312
|
+
showModifiers: {}
|
|
1313
|
+
},
|
|
1314
|
+
emits: ["update:show"],
|
|
1315
|
+
setup(t) {
|
|
1316
|
+
let n = ae(), c = ie(), d = me(), f = k(t, "show"), p = x("appearance"), m = x(!1), _ = x(!1), b = x(!1), C = x("Robot Admin"), w = null, T = (e) => {
|
|
1317
|
+
w &&= (document.body.removeChild(w), null);
|
|
1318
|
+
let t = document.createElement("canvas"), n = t.getContext("2d");
|
|
1319
|
+
t.width = 200, t.height = 150, n.font = "14px Microsoft JhengHei", n.fillStyle = "rgba(120, 120, 120, 0.15)", n.rotate(-20 * Math.PI / 180), n.fillText(e, 0, 80), w = document.createElement("div"), w.style.cssText = `
|
|
1683
1320
|
position: fixed;
|
|
1684
1321
|
top: 0;
|
|
1685
1322
|
left: 0;
|
|
@@ -1690,962 +1327,661 @@ const vt = { class: "mix-layout-container" }, ht = { class: "logo-container" },
|
|
|
1690
1327
|
background-repeat: repeat;
|
|
1691
1328
|
z-index: 9999;
|
|
1692
1329
|
user-select: none;
|
|
1693
|
-
`, document.body.appendChild(
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
},
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
(n(!0), r(E, null, W(f.menuItem.children, (u) => (n(), r(E, {
|
|
2347
|
-
key: u.path
|
|
2348
|
-
}, [
|
|
2349
|
-
u.children && u.children.length > 0 ? (n(), r("div", un, [
|
|
2350
|
-
e("div", cn, [
|
|
2351
|
-
o(s).iconComponent && u.meta?.icon ? (n(), S(N(o(s).iconComponent), {
|
|
2352
|
-
key: 0,
|
|
2353
|
-
name: u.meta.icon,
|
|
2354
|
-
size: 16
|
|
2355
|
-
}, null, 8, ["name"])) : x("", !0),
|
|
2356
|
-
e("span", null, $(u.meta?.title), 1)
|
|
2357
|
-
]),
|
|
2358
|
-
(n(!0), r(E, null, W(u.children, (c) => (n(), r("div", {
|
|
2359
|
-
key: c.path,
|
|
2360
|
-
class: A(["floating-menu__item floating-menu__item--sub", { active: f.isActive?.(c.path) }]),
|
|
2361
|
-
onClick: (C) => y("click", c)
|
|
2362
|
-
}, [
|
|
2363
|
-
o(s).iconComponent && c.meta?.icon ? (n(), S(N(o(s).iconComponent), {
|
|
2364
|
-
key: 0,
|
|
2365
|
-
name: c.meta.icon,
|
|
2366
|
-
size: 16
|
|
2367
|
-
}, null, 8, ["name"])) : x("", !0),
|
|
2368
|
-
e("span", vn, $(c.meta?.title), 1)
|
|
2369
|
-
], 10, mn))), 128))
|
|
2370
|
-
])) : (n(), r("div", {
|
|
2371
|
-
key: 1,
|
|
2372
|
-
class: A(["floating-menu__item", { active: f.isActive?.(u.path) }]),
|
|
2373
|
-
onClick: (c) => y("click", u)
|
|
2374
|
-
}, [
|
|
2375
|
-
o(s).iconComponent && u.meta?.icon ? (n(), S(N(o(s).iconComponent), {
|
|
2376
|
-
key: 0,
|
|
2377
|
-
name: u.meta.icon,
|
|
2378
|
-
size: 18
|
|
2379
|
-
}, null, 8, ["name"])) : x("", !0),
|
|
2380
|
-
e("span", pn, $(u.meta?.title), 1)
|
|
2381
|
-
], 10, hn))
|
|
2382
|
-
], 64))), 128))
|
|
2383
|
-
])
|
|
2384
|
-
], 2)) : x("", !0)
|
|
2385
|
-
]),
|
|
2386
|
-
_: 1
|
|
2387
|
-
}));
|
|
2388
|
-
}
|
|
2389
|
-
}), Xn = /* @__PURE__ */ ee(gn, [["__scopeId", "data-v-0588c318"]]), fn = { class: "side-menu__header" }, _n = { class: "side-menu__header-icon" }, yn = { class: "side-menu__header-title" }, wn = { class: "side-menu__list" }, bn = {
|
|
2390
|
-
key: 0,
|
|
2391
|
-
class: "side-menu__group"
|
|
2392
|
-
}, kn = { class: "side-menu__group-label" }, $n = ["onClick"], Cn = { class: "side-menu__item-text" }, xn = ["onClick"], Sn = { class: "side-menu__item-text" }, Tn = /* @__PURE__ */ O({
|
|
2393
|
-
name: "SideMenu",
|
|
2394
|
-
__name: "index",
|
|
2395
|
-
props: {
|
|
2396
|
-
menus: {},
|
|
2397
|
-
activeItem: {},
|
|
2398
|
-
isActive: { type: Function }
|
|
2399
|
-
},
|
|
2400
|
-
emits: ["click"],
|
|
2401
|
-
setup(f, { emit: i }) {
|
|
2402
|
-
const y = i, s = X(), p = V(!1);
|
|
2403
|
-
return (m, a) => f.menus.length > 0 ? (n(), r(E, { key: 0 }, [
|
|
2404
|
-
e("div", {
|
|
2405
|
-
class: A(["side-menu-toggle", [
|
|
2406
|
-
o(s).isDark.value ? "dark-theme" : "light-theme",
|
|
2407
|
-
{ active: !p.value }
|
|
2408
|
-
]]),
|
|
2409
|
-
onClick: a[0] || (a[0] = (u) => p.value = !p.value)
|
|
2410
|
-
}, [
|
|
2411
|
-
e("i", {
|
|
2412
|
-
class: A([
|
|
2413
|
-
"toggle-icon",
|
|
2414
|
-
p.value ? "i-ri:side-bar-line" : "i-ri:arrow-right-s-line"
|
|
2415
|
-
])
|
|
2416
|
-
}, null, 2)
|
|
2417
|
-
], 2),
|
|
2418
|
-
v(Q, { name: "glass-slide" }, {
|
|
2419
|
-
default: l(() => [
|
|
2420
|
-
p.value ? x("", !0) : (n(), r("div", {
|
|
2421
|
-
key: 0,
|
|
2422
|
-
class: A(["side-menu", [o(s).isDark.value ? "dark-theme" : "light-theme"]])
|
|
2423
|
-
}, [
|
|
2424
|
-
e("div", fn, [
|
|
2425
|
-
e("div", _n, [
|
|
2426
|
-
o(s).iconComponent && f.activeItem?.meta?.icon ? (n(), S(N(o(s).iconComponent), {
|
|
2427
|
-
key: 0,
|
|
2428
|
-
name: f.activeItem.meta.icon,
|
|
2429
|
-
size: 17
|
|
2430
|
-
}, null, 8, ["name"])) : x("", !0)
|
|
2431
|
-
]),
|
|
2432
|
-
e("span", yn, $(f.activeItem?.meta?.title || "菜单"), 1)
|
|
2433
|
-
]),
|
|
2434
|
-
e("div", wn, [
|
|
2435
|
-
(n(!0), r(E, null, W(f.menus, (u) => (n(), r(E, {
|
|
2436
|
-
key: u.path
|
|
2437
|
-
}, [
|
|
2438
|
-
u.children && u.children.length > 0 ? (n(), r("div", bn, [
|
|
2439
|
-
e("div", kn, [
|
|
2440
|
-
o(s).iconComponent && u.meta?.icon ? (n(), S(N(o(s).iconComponent), {
|
|
2441
|
-
key: 0,
|
|
2442
|
-
name: u.meta.icon,
|
|
2443
|
-
size: 14
|
|
2444
|
-
}, null, 8, ["name"])) : x("", !0),
|
|
2445
|
-
e("span", null, $(u.meta?.title), 1)
|
|
2446
|
-
]),
|
|
2447
|
-
(n(!0), r(E, null, W(u.children, (c) => (n(), r("div", {
|
|
2448
|
-
key: c.path,
|
|
2449
|
-
class: A(["side-menu__item", { active: f.isActive?.(c.path) }]),
|
|
2450
|
-
onClick: (C) => y("click", c)
|
|
2451
|
-
}, [
|
|
2452
|
-
o(s).iconComponent && c.meta?.icon ? (n(), S(N(o(s).iconComponent), {
|
|
2453
|
-
key: 0,
|
|
2454
|
-
name: c.meta.icon,
|
|
2455
|
-
size: 15
|
|
2456
|
-
}, null, 8, ["name"])) : x("", !0),
|
|
2457
|
-
e("span", Cn, $(c.meta?.title), 1)
|
|
2458
|
-
], 10, $n))), 128))
|
|
2459
|
-
])) : (n(), r("div", {
|
|
2460
|
-
key: 1,
|
|
2461
|
-
class: A(["side-menu__item", { active: f.isActive?.(u.path) }]),
|
|
2462
|
-
onClick: (c) => y("click", u)
|
|
2463
|
-
}, [
|
|
2464
|
-
o(s).iconComponent && u.meta?.icon ? (n(), S(N(o(s).iconComponent), {
|
|
2465
|
-
key: 0,
|
|
2466
|
-
name: u.meta.icon,
|
|
2467
|
-
size: 16
|
|
2468
|
-
}, null, 8, ["name"])) : x("", !0),
|
|
2469
|
-
e("span", Sn, $(u.meta?.title), 1)
|
|
2470
|
-
], 10, xn))
|
|
2471
|
-
], 64))), 128))
|
|
2472
|
-
])
|
|
2473
|
-
], 2))
|
|
2474
|
-
]),
|
|
2475
|
-
_: 1
|
|
2476
|
-
})
|
|
2477
|
-
], 64)) : x("", !0);
|
|
2478
|
-
}
|
|
2479
|
-
}), Jn = /* @__PURE__ */ ee(Tn, [["__scopeId", "data-v-1909f229"]]), Mn = { class: "drawer-menu__content" }, In = { class: "drawer-menu__grid" }, zn = ["onClick"], Vn = {
|
|
2480
|
-
key: 0,
|
|
2481
|
-
class: "drawer-menu__items"
|
|
2482
|
-
}, Hn = ["onClick"], Rn = { class: "drawer-menu__item-text" }, An = {
|
|
2483
|
-
key: 0,
|
|
2484
|
-
class: "drawer-menu__sub-items"
|
|
2485
|
-
}, Ln = { class: "drawer-menu__sub-title" }, Dn = ["onClick"], Nn = { class: "drawer-menu__item-text" }, En = /* @__PURE__ */ O({
|
|
2486
|
-
name: "DrawerMenu",
|
|
2487
|
-
__name: "index",
|
|
2488
|
-
props: {
|
|
2489
|
-
menus: {},
|
|
2490
|
-
show: { type: Boolean }
|
|
2491
|
-
},
|
|
2492
|
-
setup(f) {
|
|
2493
|
-
const i = X(), y = ge(), s = we(Ve, {
|
|
2494
|
-
show: () => {
|
|
2495
|
-
},
|
|
2496
|
-
startHide: () => {
|
|
2497
|
-
},
|
|
2498
|
-
hide: () => {
|
|
2499
|
-
}
|
|
2500
|
-
}), p = (m) => {
|
|
2501
|
-
m.path && (y.push(m.path), s.hide());
|
|
2502
|
-
};
|
|
2503
|
-
return (m, a) => (n(), r("div", {
|
|
2504
|
-
class: A(["drawer-menu", [
|
|
2505
|
-
o(i).isDark.value ? "dark-theme" : "light-theme",
|
|
2506
|
-
{ visible: f.show }
|
|
2507
|
-
]]),
|
|
2508
|
-
onMouseenter: a[0] || (a[0] = (u) => o(s).show()),
|
|
2509
|
-
onMouseleave: a[1] || (a[1] = (u) => o(s).startHide())
|
|
2510
|
-
}, [
|
|
2511
|
-
a[2] || (a[2] = e("div", { class: "drawer-menu__header" }, [
|
|
2512
|
-
e("div", { class: "drawer-menu__title" }, [
|
|
2513
|
-
e("span", { class: "grid-icon" }, [
|
|
2514
|
-
e("span"),
|
|
2515
|
-
e("span"),
|
|
2516
|
-
e("span"),
|
|
2517
|
-
e("span")
|
|
2518
|
-
]),
|
|
2519
|
-
e("span", null, "功能导航")
|
|
2520
|
-
])
|
|
2521
|
-
], -1)),
|
|
2522
|
-
e("div", Mn, [
|
|
2523
|
-
e("div", In, [
|
|
2524
|
-
(n(!0), r(E, null, W(f.menus, (u) => (n(), r("div", {
|
|
2525
|
-
key: u.path,
|
|
2526
|
-
class: "drawer-menu__category"
|
|
2527
|
-
}, [
|
|
2528
|
-
e("div", {
|
|
2529
|
-
class: "drawer-menu__category-header",
|
|
2530
|
-
onClick: (c) => p(u)
|
|
2531
|
-
}, [
|
|
2532
|
-
o(i).iconComponent && u.meta?.icon ? (n(), S(N(o(i).iconComponent), {
|
|
2533
|
-
key: 0,
|
|
2534
|
-
name: u.meta.icon,
|
|
2535
|
-
size: 18
|
|
2536
|
-
}, null, 8, ["name"])) : x("", !0),
|
|
2537
|
-
e("span", null, $(u.meta?.title), 1)
|
|
2538
|
-
], 8, zn),
|
|
2539
|
-
u.children && u.children.length > 0 ? (n(), r("div", Vn, [
|
|
2540
|
-
(n(!0), r(E, null, W(u.children, (c) => (n(), r("div", {
|
|
2541
|
-
key: c.path,
|
|
2542
|
-
class: "drawer-menu__item",
|
|
2543
|
-
onClick: (C) => p(c)
|
|
2544
|
-
}, [
|
|
2545
|
-
o(i).iconComponent && c.meta?.icon ? (n(), S(N(o(i).iconComponent), {
|
|
2546
|
-
key: 0,
|
|
2547
|
-
name: c.meta.icon,
|
|
2548
|
-
size: 16
|
|
2549
|
-
}, null, 8, ["name"])) : x("", !0),
|
|
2550
|
-
e("span", Rn, $(c.meta?.title), 1)
|
|
2551
|
-
], 8, Hn))), 128)),
|
|
2552
|
-
(n(!0), r(E, null, W(u.children, (c) => (n(), r(E, {
|
|
2553
|
-
key: c.path
|
|
2554
|
-
}, [
|
|
2555
|
-
c.children && c.children.length > 0 ? (n(), r("div", An, [
|
|
2556
|
-
e("div", Ln, $(c.meta?.title), 1),
|
|
2557
|
-
(n(!0), r(E, null, W(c.children, (C) => (n(), r("div", {
|
|
2558
|
-
key: C.path,
|
|
2559
|
-
class: "drawer-menu__item drawer-menu__item--sub",
|
|
2560
|
-
onClick: (g) => p(C)
|
|
2561
|
-
}, [
|
|
2562
|
-
o(i).iconComponent && C.meta?.icon ? (n(), S(N(o(i).iconComponent), {
|
|
2563
|
-
key: 0,
|
|
2564
|
-
name: C.meta.icon,
|
|
2565
|
-
size: 14
|
|
2566
|
-
}, null, 8, ["name"])) : x("", !0),
|
|
2567
|
-
e("span", Nn, $(C.meta?.title), 1)
|
|
2568
|
-
], 8, Dn))), 128))
|
|
2569
|
-
])) : x("", !0)
|
|
2570
|
-
], 64))), 128))
|
|
2571
|
-
])) : x("", !0)
|
|
2572
|
-
]))), 128))
|
|
2573
|
-
])
|
|
2574
|
-
])
|
|
2575
|
-
], 34));
|
|
2576
|
-
}
|
|
2577
|
-
}), Zn = /* @__PURE__ */ ee(En, [["__scopeId", "data-v-b0d3e73b"]]), Bn = /* @__PURE__ */ O({
|
|
2578
|
-
name: "MenuTrigger",
|
|
2579
|
-
__name: "index",
|
|
2580
|
-
props: {
|
|
2581
|
-
show: { type: Boolean }
|
|
2582
|
-
},
|
|
2583
|
-
setup(f) {
|
|
2584
|
-
const i = we(Ve, {
|
|
2585
|
-
show: () => {
|
|
2586
|
-
},
|
|
2587
|
-
startHide: () => {
|
|
2588
|
-
},
|
|
2589
|
-
hide: () => {
|
|
2590
|
-
}
|
|
2591
|
-
});
|
|
2592
|
-
return (y, s) => (n(), r("div", {
|
|
2593
|
-
class: "menu-trigger",
|
|
2594
|
-
onMouseenter: s[0] || (s[0] = (p) => o(i).show()),
|
|
2595
|
-
onMouseleave: s[1] || (s[1] = (p) => o(i).startHide())
|
|
2596
|
-
}, [...s[2] || (s[2] = [
|
|
2597
|
-
e("div", { class: "menu-trigger__indicator" }, [
|
|
2598
|
-
e("span", { class: "hamburger-icon" }, [
|
|
2599
|
-
e("span"),
|
|
2600
|
-
e("span"),
|
|
2601
|
-
e("span")
|
|
2602
|
-
])
|
|
2603
|
-
], -1)
|
|
2604
|
-
])], 32));
|
|
2605
|
-
}
|
|
2606
|
-
}), qn = /* @__PURE__ */ ee(Bn, [["__scopeId", "data-v-2c20af78"]]);
|
|
2607
|
-
function Qn(f, i = {}) {
|
|
2608
|
-
const y = Ie(i);
|
|
2609
|
-
return y().syncCSSVariables(), y;
|
|
1330
|
+
`, document.body.appendChild(w);
|
|
1331
|
+
}, D = () => {
|
|
1332
|
+
w &&= (document.body.removeChild(w), null);
|
|
1333
|
+
};
|
|
1334
|
+
A(m, (e) => {
|
|
1335
|
+
document.documentElement.classList.toggle("gray-mode", e);
|
|
1336
|
+
}), A(_, (e) => {
|
|
1337
|
+
document.documentElement.classList.toggle("color-weak-mode", e);
|
|
1338
|
+
}), A(b, (e) => {
|
|
1339
|
+
e ? T(C.value) : D();
|
|
1340
|
+
}), A(C, (e) => {
|
|
1341
|
+
b.value && T(e);
|
|
1342
|
+
});
|
|
1343
|
+
let N = r(() => {
|
|
1344
|
+
let e = navigator.userAgent, t = "Unknown", n = "Unknown";
|
|
1345
|
+
return e.includes("Chrome") ? t = "Chrome" : e.includes("Firefox") ? t = "Firefox" : e.includes("Safari") ? t = "Safari" : e.includes("Edge") && (t = "Edge"), e.includes("Windows") ? n = "Windows" : e.includes("Mac") ? n = "macOS" : e.includes("Linux") ? n = "Linux" : e.includes("Android") ? n = "Android" : e.includes("iOS") && (n = "iOS"), {
|
|
1346
|
+
browser: t,
|
|
1347
|
+
os: n,
|
|
1348
|
+
resolution: `${window.screen.width} × ${window.screen.height}`,
|
|
1349
|
+
pixelRatio: window.devicePixelRatio + "x",
|
|
1350
|
+
language: navigator.language,
|
|
1351
|
+
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
1352
|
+
};
|
|
1353
|
+
});
|
|
1354
|
+
v(() => {
|
|
1355
|
+
D();
|
|
1356
|
+
});
|
|
1357
|
+
let R = (e, t) => {
|
|
1358
|
+
t || (d.layoutMode = e);
|
|
1359
|
+
}, B = (e) => d.primaryColor === e.primaryColor, V = (e) => {
|
|
1360
|
+
d.applyPreset(e), n.success(`已应用「${e.name}」主题方案`);
|
|
1361
|
+
}, H = () => {
|
|
1362
|
+
d.themeMode = J.themeMode, d.primaryColor = J.primaryColor, d.borderRadius = J.borderRadius, d.transitionType = J.transitionType, d.enableTransition = J.enableTransition, n.success("已恢复外观默认设置");
|
|
1363
|
+
}, ee = () => {
|
|
1364
|
+
d.layoutMode = J.layoutMode, d.menuExpandMode = J.menuExpandMode, d.fixedHeader = J.fixedHeader, d.showBreadcrumb = J.showBreadcrumb, d.showBreadcrumbIcon = J.showBreadcrumbIcon, d.showTagsView = J.showTagsView, d.tagsViewHeight = J.tagsViewHeight, d.tagsViewStyle = J.tagsViewStyle, d.showFooter = J.showFooter, d.sidebarWidth = J.sidebarWidth, d.sidebarCollapsedWidth = J.sidebarCollapsedWidth, d.headerHeight = J.headerHeight, n.success("已恢复布局默认设置");
|
|
1365
|
+
}, K = () => {
|
|
1366
|
+
c.warning({
|
|
1367
|
+
title: "确认重置",
|
|
1368
|
+
content: "确定要恢复默认配置吗?此操作不可撤销。",
|
|
1369
|
+
positiveText: "确认",
|
|
1370
|
+
negativeText: "取消",
|
|
1371
|
+
onPositiveClick: () => {
|
|
1372
|
+
d.resetSettings(), n.success("已恢复默认配置");
|
|
1373
|
+
}
|
|
1374
|
+
});
|
|
1375
|
+
}, q = () => {
|
|
1376
|
+
c.warning({
|
|
1377
|
+
title: "确认清除",
|
|
1378
|
+
content: "确定要清除浏览器缓存吗?",
|
|
1379
|
+
positiveText: "确认",
|
|
1380
|
+
negativeText: "取消",
|
|
1381
|
+
onPositiveClick: () => {
|
|
1382
|
+
let e = ["theme-mode", "robot-admin-settings"];
|
|
1383
|
+
Object.keys(localStorage).forEach((t) => {
|
|
1384
|
+
e.includes(t) || localStorage.removeItem(t);
|
|
1385
|
+
}), sessionStorage.clear(), n.success("缓存已清除");
|
|
1386
|
+
}
|
|
1387
|
+
});
|
|
1388
|
+
}, oe = () => {
|
|
1389
|
+
location.reload();
|
|
1390
|
+
}, ce = () => {
|
|
1391
|
+
let e = {
|
|
1392
|
+
settings: d.settingsState,
|
|
1393
|
+
gray: m.value,
|
|
1394
|
+
colorWeak: _.value,
|
|
1395
|
+
watermark: {
|
|
1396
|
+
enabled: b.value,
|
|
1397
|
+
text: C.value
|
|
1398
|
+
},
|
|
1399
|
+
exportTime: (/* @__PURE__ */ new Date()).toISOString()
|
|
1400
|
+
}, t = new Blob([JSON.stringify(e, null, 2)], { type: "application/json" }), r = URL.createObjectURL(t), i = document.createElement("a");
|
|
1401
|
+
i.href = r, i.download = `robot-admin-config-${Date.now()}.json`, i.click(), URL.revokeObjectURL(r), n.success("配置已导出");
|
|
1402
|
+
}, le = () => {
|
|
1403
|
+
let e = document.createElement("input");
|
|
1404
|
+
e.type = "file", e.accept = "application/json", e.onchange = async (e) => {
|
|
1405
|
+
let t = e.target.files?.[0];
|
|
1406
|
+
if (t) try {
|
|
1407
|
+
let e = await t.text(), r = JSON.parse(e);
|
|
1408
|
+
r.settings && d.$patch(r.settings), r.gray !== void 0 && (m.value = r.gray), r.colorWeak !== void 0 && (_.value = r.colorWeak), r.watermark && (b.value = r.watermark.enabled, C.value = r.watermark.text), n.success("配置已导入");
|
|
1409
|
+
} catch {
|
|
1410
|
+
n.error("配置文件格式错误");
|
|
1411
|
+
}
|
|
1412
|
+
}, e.click();
|
|
1413
|
+
};
|
|
1414
|
+
return (t, n) => (y(), i(O(I), {
|
|
1415
|
+
show: f.value,
|
|
1416
|
+
"onUpdate:show": n[17] ||= (e) => f.value = e,
|
|
1417
|
+
width: 380,
|
|
1418
|
+
placement: "right",
|
|
1419
|
+
"trap-focus": !1,
|
|
1420
|
+
"block-scroll": !1
|
|
1421
|
+
}, {
|
|
1422
|
+
default: j(() => [u(O(L), {
|
|
1423
|
+
title: "⚙️ 布局配置",
|
|
1424
|
+
closable: ""
|
|
1425
|
+
}, {
|
|
1426
|
+
default: j(() => [u(O(re), {
|
|
1427
|
+
value: p.value,
|
|
1428
|
+
"onUpdate:value": n[16] ||= (e) => p.value = e,
|
|
1429
|
+
animated: "",
|
|
1430
|
+
class: "settings-tabs"
|
|
1431
|
+
}, {
|
|
1432
|
+
default: j(() => [
|
|
1433
|
+
u(O(ne), {
|
|
1434
|
+
name: "appearance",
|
|
1435
|
+
tab: "🎨 外观"
|
|
1436
|
+
}, {
|
|
1437
|
+
default: j(() => [
|
|
1438
|
+
s("div", rn, [s("div", an, [(y(!0), o(e, null, S(O(se), (e) => (y(), o("div", {
|
|
1439
|
+
key: e.name,
|
|
1440
|
+
class: h(["preset-card", { active: B(e) }]),
|
|
1441
|
+
onClick: (t) => V(e)
|
|
1442
|
+
}, [
|
|
1443
|
+
s("div", sn, E(e.icon), 1),
|
|
1444
|
+
s("div", cn, E(e.name), 1),
|
|
1445
|
+
s("div", ln, [s("span", {
|
|
1446
|
+
class: "color-dot",
|
|
1447
|
+
style: g({ backgroundColor: e.primaryColor })
|
|
1448
|
+
}, null, 4)])
|
|
1449
|
+
], 10, on))), 128))])]),
|
|
1450
|
+
s("div", un, [n[21] ||= s("div", { class: "section-title" }, "主题模式", -1), u(O(W), {
|
|
1451
|
+
value: O(d).themeMode,
|
|
1452
|
+
"onUpdate:value": n[0] ||= (e) => O(d).themeMode = e,
|
|
1453
|
+
class: "mode-group"
|
|
1454
|
+
}, {
|
|
1455
|
+
default: j(() => [
|
|
1456
|
+
u(O(U), { value: "light" }, {
|
|
1457
|
+
default: j(() => [...n[18] ||= [s("span", { class: "i-mdi:white-balance-sunny mr-1" }, null, -1), l(" 浅色 ", -1)]]),
|
|
1458
|
+
_: 1
|
|
1459
|
+
}),
|
|
1460
|
+
u(O(U), { value: "dark" }, {
|
|
1461
|
+
default: j(() => [...n[19] ||= [s("span", { class: "i-mdi:moon-waning-crescent mr-1" }, null, -1), l(" 深色 ", -1)]]),
|
|
1462
|
+
_: 1
|
|
1463
|
+
}),
|
|
1464
|
+
u(O(U), { value: "auto" }, {
|
|
1465
|
+
default: j(() => [...n[20] ||= [s("span", { class: "i-mdi:theme-light-dark mr-1" }, null, -1), l(" 自动 ", -1)]]),
|
|
1466
|
+
_: 1
|
|
1467
|
+
})
|
|
1468
|
+
]),
|
|
1469
|
+
_: 1
|
|
1470
|
+
}, 8, ["value"])]),
|
|
1471
|
+
s("div", dn, [n[22] ||= s("div", { class: "section-title" }, "主题色", -1), s("div", fn, [u(O(F), {
|
|
1472
|
+
value: O(d).primaryColor,
|
|
1473
|
+
"onUpdate:value": n[1] ||= (e) => O(d).primaryColor = e,
|
|
1474
|
+
"show-alpha": !1,
|
|
1475
|
+
swatches: O(de),
|
|
1476
|
+
actions: ["confirm"]
|
|
1477
|
+
}, null, 8, ["value", "swatches"]), s("span", pn, E(O(d).primaryColor), 1)])]),
|
|
1478
|
+
s("div", mn, [n[26] ||= s("div", { class: "section-title" }, "圆角大小", -1), u(O(W), {
|
|
1479
|
+
value: O(d).borderRadius,
|
|
1480
|
+
"onUpdate:value": n[2] ||= (e) => O(d).borderRadius = e,
|
|
1481
|
+
class: "radius-group"
|
|
1482
|
+
}, {
|
|
1483
|
+
default: j(() => [
|
|
1484
|
+
u(O(U), { value: "small" }, {
|
|
1485
|
+
default: j(() => [...n[23] ||= [l("小 (4px)", -1)]]),
|
|
1486
|
+
_: 1
|
|
1487
|
+
}),
|
|
1488
|
+
u(O(U), { value: "medium" }, {
|
|
1489
|
+
default: j(() => [...n[24] ||= [l("中 (6px)", -1)]]),
|
|
1490
|
+
_: 1
|
|
1491
|
+
}),
|
|
1492
|
+
u(O(U), { value: "large" }, {
|
|
1493
|
+
default: j(() => [...n[25] ||= [l("大 (8px)", -1)]]),
|
|
1494
|
+
_: 1
|
|
1495
|
+
})
|
|
1496
|
+
]),
|
|
1497
|
+
_: 1
|
|
1498
|
+
}, 8, ["value"])]),
|
|
1499
|
+
s("div", hn, [
|
|
1500
|
+
n[32] ||= s("div", { class: "section-title" }, "页面动画", -1),
|
|
1501
|
+
s("div", gn, [n[27] ||= s("span", { class: "text-sm" }, "启用动画", -1), u(O(G), {
|
|
1502
|
+
value: O(d).enableTransition,
|
|
1503
|
+
"onUpdate:value": n[3] ||= (e) => O(d).enableTransition = e
|
|
1504
|
+
}, null, 8, ["value"])]),
|
|
1505
|
+
u(O(W), {
|
|
1506
|
+
value: O(d).transitionType,
|
|
1507
|
+
"onUpdate:value": n[4] ||= (e) => O(d).transitionType = e,
|
|
1508
|
+
disabled: !O(d).enableTransition,
|
|
1509
|
+
class: "transition-group"
|
|
1510
|
+
}, {
|
|
1511
|
+
default: j(() => [
|
|
1512
|
+
u(O(U), { value: "fade" }, {
|
|
1513
|
+
default: j(() => [...n[28] ||= [l("淡入", -1)]]),
|
|
1514
|
+
_: 1
|
|
1515
|
+
}),
|
|
1516
|
+
u(O(U), { value: "slide" }, {
|
|
1517
|
+
default: j(() => [...n[29] ||= [l("滑动", -1)]]),
|
|
1518
|
+
_: 1
|
|
1519
|
+
}),
|
|
1520
|
+
u(O(U), { value: "zoom" }, {
|
|
1521
|
+
default: j(() => [...n[30] ||= [l("缩放", -1)]]),
|
|
1522
|
+
_: 1
|
|
1523
|
+
}),
|
|
1524
|
+
u(O(U), { value: "none" }, {
|
|
1525
|
+
default: j(() => [...n[31] ||= [l("无", -1)]]),
|
|
1526
|
+
_: 1
|
|
1527
|
+
})
|
|
1528
|
+
]),
|
|
1529
|
+
_: 1
|
|
1530
|
+
}, 8, ["value", "disabled"])
|
|
1531
|
+
]),
|
|
1532
|
+
s("div", _n, [u(O(P), {
|
|
1533
|
+
block: "",
|
|
1534
|
+
secondary: "",
|
|
1535
|
+
onClick: H
|
|
1536
|
+
}, {
|
|
1537
|
+
icon: j(() => [...n[33] ||= [s("span", { class: "i-mdi:restore" }, null, -1)]]),
|
|
1538
|
+
default: j(() => [n[34] ||= l(" 恢复外观默认设置 ", -1)]),
|
|
1539
|
+
_: 1
|
|
1540
|
+
})])
|
|
1541
|
+
]),
|
|
1542
|
+
_: 1
|
|
1543
|
+
}),
|
|
1544
|
+
u(O(ne), {
|
|
1545
|
+
name: "layout",
|
|
1546
|
+
tab: "📐 布局"
|
|
1547
|
+
}, {
|
|
1548
|
+
default: j(() => [
|
|
1549
|
+
s("div", vn, [n[35] ||= s("div", { class: "section-title" }, "布局模式", -1), s("div", yn, [(y(!0), o(e, null, S(O(nn), (e) => (y(), o("div", {
|
|
1550
|
+
key: e.value,
|
|
1551
|
+
class: h(["layout-item", {
|
|
1552
|
+
active: O(d).layoutMode === e.value,
|
|
1553
|
+
disabled: e.disabled
|
|
1554
|
+
}]),
|
|
1555
|
+
onClick: M((t) => R(e.value, e.disabled), ["stop"])
|
|
1556
|
+
}, [s("div", xn, [(y(), o("svg", Sn, [s("g", { innerHTML: e.svg }, null, 8, Cn)]))]), s("div", wn, [l(E(e.label) + " ", 1), e.disabled ? (y(), o("span", Tn, "敬请期待")) : a("", !0)])], 10, bn))), 128))])]),
|
|
1557
|
+
s("div", En, [n[38] ||= s("div", { class: "section-title" }, "菜单展开方式", -1), u(O(W), {
|
|
1558
|
+
value: O(d).menuExpandMode,
|
|
1559
|
+
"onUpdate:value": n[5] ||= (e) => O(d).menuExpandMode = e,
|
|
1560
|
+
class: "menu-expand-group"
|
|
1561
|
+
}, {
|
|
1562
|
+
default: j(() => [u(O(U), { value: "inline" }, {
|
|
1563
|
+
default: j(() => [...n[36] ||= [l("传统展开", -1)]]),
|
|
1564
|
+
_: 1
|
|
1565
|
+
}), u(O(U), { value: "panel" }, {
|
|
1566
|
+
default: j(() => [...n[37] ||= [l("右侧面板", -1)]]),
|
|
1567
|
+
_: 1
|
|
1568
|
+
})]),
|
|
1569
|
+
_: 1
|
|
1570
|
+
}, 8, ["value"])]),
|
|
1571
|
+
s("div", Dn, [
|
|
1572
|
+
n[43] ||= s("div", { class: "section-title" }, "界面元素", -1),
|
|
1573
|
+
s("div", On, [n[39] ||= s("span", null, "显示面包屑", -1), u(O(G), {
|
|
1574
|
+
value: O(d).showBreadcrumb,
|
|
1575
|
+
"onUpdate:value": n[6] ||= (e) => O(d).showBreadcrumb = e
|
|
1576
|
+
}, null, 8, ["value"])]),
|
|
1577
|
+
s("div", kn, [n[40] ||= s("span", null, "显示面包屑图标", -1), u(O(G), {
|
|
1578
|
+
value: O(d).showBreadcrumbIcon,
|
|
1579
|
+
"onUpdate:value": n[7] ||= (e) => O(d).showBreadcrumbIcon = e,
|
|
1580
|
+
disabled: !O(d).showBreadcrumb
|
|
1581
|
+
}, null, 8, ["value", "disabled"])]),
|
|
1582
|
+
s("div", An, [n[41] ||= s("span", null, "显示标签页", -1), u(O(G), {
|
|
1583
|
+
value: O(d).showTagsView,
|
|
1584
|
+
"onUpdate:value": n[8] ||= (e) => O(d).showTagsView = e
|
|
1585
|
+
}, null, 8, ["value"])]),
|
|
1586
|
+
s("div", jn, [n[42] ||= s("span", null, "显示页脚", -1), u(O(G), {
|
|
1587
|
+
value: O(d).showFooter,
|
|
1588
|
+
"onUpdate:value": n[9] ||= (e) => O(d).showFooter = e
|
|
1589
|
+
}, null, 8, ["value"])])
|
|
1590
|
+
]),
|
|
1591
|
+
s("div", Mn, [
|
|
1592
|
+
n[46] ||= s("div", { class: "section-title" }, "尺寸调整", -1),
|
|
1593
|
+
s("div", Nn, [s("div", Pn, [n[44] ||= s("span", null, "侧边栏宽度", -1), s("span", Fn, E(O(d).sidebarWidth) + "px", 1)]), u(O(te), {
|
|
1594
|
+
value: O(d).sidebarWidth,
|
|
1595
|
+
"onUpdate:value": n[10] ||= (e) => O(d).sidebarWidth = e,
|
|
1596
|
+
min: 180,
|
|
1597
|
+
max: 280,
|
|
1598
|
+
step: 10,
|
|
1599
|
+
marks: {
|
|
1600
|
+
180: "180",
|
|
1601
|
+
220: "220",
|
|
1602
|
+
280: "280"
|
|
1603
|
+
}
|
|
1604
|
+
}, null, 8, ["value"])]),
|
|
1605
|
+
s("div", In, [s("div", Ln, [n[45] ||= s("span", null, "头部高度", -1), s("span", Rn, E(O(d).headerHeight) + "px", 1)]), u(O(te), {
|
|
1606
|
+
value: O(d).headerHeight,
|
|
1607
|
+
"onUpdate:value": n[11] ||= (e) => O(d).headerHeight = e,
|
|
1608
|
+
min: 48,
|
|
1609
|
+
max: 64,
|
|
1610
|
+
step: 4,
|
|
1611
|
+
marks: {
|
|
1612
|
+
48: "48",
|
|
1613
|
+
56: "56",
|
|
1614
|
+
64: "64"
|
|
1615
|
+
}
|
|
1616
|
+
}, null, 8, ["value"])])
|
|
1617
|
+
]),
|
|
1618
|
+
s("div", zn, [u(O(P), {
|
|
1619
|
+
block: "",
|
|
1620
|
+
secondary: "",
|
|
1621
|
+
onClick: ee
|
|
1622
|
+
}, {
|
|
1623
|
+
icon: j(() => [...n[47] ||= [s("span", { class: "i-mdi:restore" }, null, -1)]]),
|
|
1624
|
+
default: j(() => [n[48] ||= l(" 恢复布局默认设置 ", -1)]),
|
|
1625
|
+
_: 1
|
|
1626
|
+
})])
|
|
1627
|
+
]),
|
|
1628
|
+
_: 1
|
|
1629
|
+
}),
|
|
1630
|
+
u(O(ne), {
|
|
1631
|
+
name: "features",
|
|
1632
|
+
tab: "🔧 功能"
|
|
1633
|
+
}, {
|
|
1634
|
+
default: j(() => [
|
|
1635
|
+
s("div", Bn, [n[53] ||= s("div", { class: "section-title" }, "缓存管理", -1), s("div", Vn, [u(O(P), {
|
|
1636
|
+
secondary: "",
|
|
1637
|
+
onClick: q
|
|
1638
|
+
}, {
|
|
1639
|
+
icon: j(() => [...n[49] ||= [s("span", { class: "i-mdi:delete-sweep" }, null, -1)]]),
|
|
1640
|
+
default: j(() => [n[50] ||= l(" 清除缓存 ", -1)]),
|
|
1641
|
+
_: 1
|
|
1642
|
+
}), u(O(P), {
|
|
1643
|
+
secondary: "",
|
|
1644
|
+
onClick: oe
|
|
1645
|
+
}, {
|
|
1646
|
+
icon: j(() => [...n[51] ||= [s("span", { class: "i-mdi:refresh" }, null, -1)]]),
|
|
1647
|
+
default: j(() => [n[52] ||= l(" 重新加载 ", -1)]),
|
|
1648
|
+
_: 1
|
|
1649
|
+
})])]),
|
|
1650
|
+
s("div", Hn, [
|
|
1651
|
+
n[60] ||= s("div", { class: "section-title" }, "配置管理", -1),
|
|
1652
|
+
s("div", Un, [u(O(P), {
|
|
1653
|
+
secondary: "",
|
|
1654
|
+
onClick: ce
|
|
1655
|
+
}, {
|
|
1656
|
+
icon: j(() => [...n[54] ||= [s("span", { class: "i-mdi:download" }, null, -1)]]),
|
|
1657
|
+
default: j(() => [n[55] ||= l(" 导出配置 ", -1)]),
|
|
1658
|
+
_: 1
|
|
1659
|
+
}), u(O(P), {
|
|
1660
|
+
secondary: "",
|
|
1661
|
+
onClick: le
|
|
1662
|
+
}, {
|
|
1663
|
+
icon: j(() => [...n[56] ||= [s("span", { class: "i-mdi:upload" }, null, -1)]]),
|
|
1664
|
+
default: j(() => [n[57] ||= l(" 导入配置 ", -1)]),
|
|
1665
|
+
_: 1
|
|
1666
|
+
})]),
|
|
1667
|
+
u(O(P), {
|
|
1668
|
+
block: "",
|
|
1669
|
+
type: "error",
|
|
1670
|
+
secondary: "",
|
|
1671
|
+
class: "mt-2",
|
|
1672
|
+
onClick: K
|
|
1673
|
+
}, {
|
|
1674
|
+
icon: j(() => [...n[58] ||= [s("span", { class: "i-mdi:restore" }, null, -1)]]),
|
|
1675
|
+
default: j(() => [n[59] ||= l(" 重置所有配置 ", -1)]),
|
|
1676
|
+
_: 1
|
|
1677
|
+
})
|
|
1678
|
+
]),
|
|
1679
|
+
s("div", Wn, [
|
|
1680
|
+
n[63] ||= s("div", { class: "section-title" }, "系统模式", -1),
|
|
1681
|
+
s("div", Gn, [n[61] ||= s("div", { class: "setting-label" }, [s("span", null, "灰色模式"), s("span", { class: "setting-desc" }, "用于哀悼日场景")], -1), u(O(G), {
|
|
1682
|
+
value: m.value,
|
|
1683
|
+
"onUpdate:value": n[12] ||= (e) => m.value = e
|
|
1684
|
+
}, null, 8, ["value"])]),
|
|
1685
|
+
s("div", Kn, [n[62] ||= s("div", { class: "setting-label" }, [s("span", null, "色弱模式"), s("span", { class: "setting-desc" }, "提供无障碍访问支持")], -1), u(O(G), {
|
|
1686
|
+
value: _.value,
|
|
1687
|
+
"onUpdate:value": n[13] ||= (e) => _.value = e
|
|
1688
|
+
}, null, 8, ["value"])])
|
|
1689
|
+
]),
|
|
1690
|
+
s("div", qn, [
|
|
1691
|
+
n[65] ||= s("div", { class: "section-title" }, "水印设置", -1),
|
|
1692
|
+
s("div", Jn, [n[64] ||= s("span", null, "启用水印", -1), u(O(G), {
|
|
1693
|
+
value: b.value,
|
|
1694
|
+
"onUpdate:value": n[14] ||= (e) => b.value = e
|
|
1695
|
+
}, null, 8, ["value"])]),
|
|
1696
|
+
b.value ? (y(), o("div", Yn, [u(O(z), {
|
|
1697
|
+
value: C.value,
|
|
1698
|
+
"onUpdate:value": n[15] ||= (e) => C.value = e,
|
|
1699
|
+
placeholder: "请输入水印内容",
|
|
1700
|
+
size: "small"
|
|
1701
|
+
}, null, 8, ["value"])])) : a("", !0)
|
|
1702
|
+
]),
|
|
1703
|
+
s("div", Xn, [n[72] ||= s("div", { class: "section-title" }, "系统信息", -1), s("div", Zn, [
|
|
1704
|
+
s("div", Qn, [n[66] ||= s("span", { class: "info-label" }, "浏览器", -1), s("span", $n, E(N.value.browser), 1)]),
|
|
1705
|
+
s("div", er, [n[67] ||= s("span", { class: "info-label" }, "操作系统", -1), s("span", tr, E(N.value.os), 1)]),
|
|
1706
|
+
s("div", nr, [n[68] ||= s("span", { class: "info-label" }, "屏幕分辨率", -1), s("span", rr, E(N.value.resolution), 1)]),
|
|
1707
|
+
s("div", ir, [n[69] ||= s("span", { class: "info-label" }, "设备像素比", -1), s("span", ar, E(N.value.pixelRatio), 1)]),
|
|
1708
|
+
s("div", or, [n[70] ||= s("span", { class: "info-label" }, "语言", -1), s("span", sr, E(N.value.language), 1)]),
|
|
1709
|
+
s("div", cr, [n[71] ||= s("span", { class: "info-label" }, "时区", -1), s("span", lr, E(N.value.timezone), 1)])
|
|
1710
|
+
])])
|
|
1711
|
+
]),
|
|
1712
|
+
_: 1
|
|
1713
|
+
})
|
|
1714
|
+
]),
|
|
1715
|
+
_: 1
|
|
1716
|
+
}, 8, ["value"])]),
|
|
1717
|
+
_: 1
|
|
1718
|
+
})]),
|
|
1719
|
+
_: 1
|
|
1720
|
+
}, 8, ["show"]));
|
|
1721
|
+
}
|
|
1722
|
+
}), [["__scopeId", "data-v-b57a947e"]]), dr = { class: "brand-logo__icon" }, fr = [
|
|
1723
|
+
"src",
|
|
1724
|
+
"width",
|
|
1725
|
+
"height"
|
|
1726
|
+
], pr = [
|
|
1727
|
+
"src",
|
|
1728
|
+
"width",
|
|
1729
|
+
"height"
|
|
1730
|
+
], mr = { class: "brand-logo__name" }, hr = { class: "brand-logo__title" }, gr = {
|
|
1731
|
+
key: 0,
|
|
1732
|
+
class: "brand-logo__subtitle"
|
|
1733
|
+
}, _r = {
|
|
1734
|
+
key: 0,
|
|
1735
|
+
class: "brand-logo__divider"
|
|
1736
|
+
}, vr = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
1737
|
+
name: "BrandLogo",
|
|
1738
|
+
__name: "index",
|
|
1739
|
+
props: {
|
|
1740
|
+
showName: {
|
|
1741
|
+
type: Boolean,
|
|
1742
|
+
default: !1
|
|
1743
|
+
},
|
|
1744
|
+
showDivider: {
|
|
1745
|
+
type: Boolean,
|
|
1746
|
+
default: !1
|
|
1747
|
+
},
|
|
1748
|
+
size: { default: 36 },
|
|
1749
|
+
collapsed: {
|
|
1750
|
+
type: Boolean,
|
|
1751
|
+
default: !1
|
|
1752
|
+
},
|
|
1753
|
+
variant: { default: "horizontal" }
|
|
1754
|
+
},
|
|
1755
|
+
setup(t) {
|
|
1756
|
+
let n = Y(), r = {
|
|
1757
|
+
...X,
|
|
1758
|
+
...n.brand
|
|
1759
|
+
};
|
|
1760
|
+
return (n, i) => (y(), o("div", { class: h(["brand-logo", {
|
|
1761
|
+
"brand-logo--collapsed": t.collapsed,
|
|
1762
|
+
"brand-logo--horizontal": t.variant === "horizontal"
|
|
1763
|
+
}]) }, [s("div", dr, [i[0] ||= s("div", { class: "brand-logo__glow" }, null, -1), r.logoType === "video" && r.logoSrc ? (y(), o("video", {
|
|
1764
|
+
key: 0,
|
|
1765
|
+
src: r.logoSrc,
|
|
1766
|
+
width: t.size,
|
|
1767
|
+
height: t.size,
|
|
1768
|
+
autoplay: "",
|
|
1769
|
+
loop: "",
|
|
1770
|
+
muted: "",
|
|
1771
|
+
playsinline: "",
|
|
1772
|
+
class: "brand-logo__media"
|
|
1773
|
+
}, null, 8, fr)) : r.logoSrc ? (y(), o("img", {
|
|
1774
|
+
key: 1,
|
|
1775
|
+
src: r.logoSrc,
|
|
1776
|
+
width: t.size,
|
|
1777
|
+
height: t.size,
|
|
1778
|
+
class: "brand-logo__media",
|
|
1779
|
+
alt: "Logo"
|
|
1780
|
+
}, null, 8, pr)) : a("", !0)]), t.showName && !t.collapsed ? (y(), o(e, { key: 0 }, [s("div", mr, [s("span", hr, E(r.name), 1), r.subtitle ? (y(), o("span", gr, E(r.subtitle), 1)) : a("", !0)]), t.showDivider ? (y(), o("div", _r)) : a("", !0)], 64)) : a("", !0)], 2));
|
|
1781
|
+
}
|
|
1782
|
+
}), [["__scopeId", "data-v-fd1c2eec"]]), yr = { class: "icon-menu" }, br = ["onClick"], xr = { class: "icon-menu__icon" }, Sr = {
|
|
1783
|
+
key: 1,
|
|
1784
|
+
class: "icon-menu__fallback"
|
|
1785
|
+
}, Cr = { class: "icon-menu__label" }, wr = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
1786
|
+
name: "IconMenu",
|
|
1787
|
+
__name: "index",
|
|
1788
|
+
props: {
|
|
1789
|
+
menus: {},
|
|
1790
|
+
active: {}
|
|
1791
|
+
},
|
|
1792
|
+
emits: ["click"],
|
|
1793
|
+
setup(t, { emit: n }) {
|
|
1794
|
+
let r = n, a = Y();
|
|
1795
|
+
return (n, c) => (y(), o("div", yr, [(y(!0), o(e, null, S(t.menus, (e) => (y(), o("div", {
|
|
1796
|
+
key: e.path,
|
|
1797
|
+
class: h(["icon-menu__item", { "icon-menu__item--active": t.active === e.path }]),
|
|
1798
|
+
onClick: (t) => r("click", e)
|
|
1799
|
+
}, [s("div", xr, [O(a).iconComponent && e.meta?.icon ? (y(), i(T(O(a).iconComponent), {
|
|
1800
|
+
key: 0,
|
|
1801
|
+
name: e.meta.icon,
|
|
1802
|
+
size: 20
|
|
1803
|
+
}, null, 8, ["name"])) : (y(), o("span", Sr, E(e.meta?.title?.charAt(0) || "?"), 1))]), s("div", Cr, E(e.meta?.title), 1)], 10, br))), 128))]));
|
|
1804
|
+
}
|
|
1805
|
+
}), [["__scopeId", "data-v-f985d475"]]), Tr = { class: "floating-menu__header" }, Er = { class: "floating-menu__brand" }, Dr = { class: "floating-menu__brand-title" }, Or = { class: "floating-menu__brand-subtitle" }, kr = { class: "floating-menu__list" }, Ar = {
|
|
1806
|
+
key: 0,
|
|
1807
|
+
class: "floating-menu__group"
|
|
1808
|
+
}, jr = { class: "floating-menu__group-title" }, Mr = ["onClick"], Nr = { class: "floating-menu__item-text" }, Pr = ["onClick"], Fr = { class: "floating-menu__item-text" }, Ir = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
1809
|
+
name: "FloatingMenu",
|
|
1810
|
+
__name: "index",
|
|
1811
|
+
props: {
|
|
1812
|
+
show: { type: Boolean },
|
|
1813
|
+
menuItem: {},
|
|
1814
|
+
isActive: { type: Function }
|
|
1815
|
+
},
|
|
1816
|
+
emits: ["click"],
|
|
1817
|
+
setup(t, { emit: r }) {
|
|
1818
|
+
let c = r, l = Y(), u = {
|
|
1819
|
+
...X,
|
|
1820
|
+
...l.brand
|
|
1821
|
+
};
|
|
1822
|
+
return (r, d) => (y(), i(n, { name: "slide-fade" }, {
|
|
1823
|
+
default: j(() => [t.show && t.menuItem ? (y(), o("div", {
|
|
1824
|
+
key: 0,
|
|
1825
|
+
class: h(["floating-menu", [O(l).isDark.value ? "dark-theme" : "light-theme"]])
|
|
1826
|
+
}, [s("div", Tr, [s("div", Er, [s("span", Dr, E(u.name), 1), s("span", Or, E(u.subtitle), 1)])]), s("div", kr, [(y(!0), o(e, null, S(t.menuItem.children, (n) => (y(), o(e, { key: n.path }, [n.children && n.children.length > 0 ? (y(), o("div", Ar, [s("div", jr, [O(l).iconComponent && n.meta?.icon ? (y(), i(T(O(l).iconComponent), {
|
|
1827
|
+
key: 0,
|
|
1828
|
+
name: n.meta.icon,
|
|
1829
|
+
size: 16
|
|
1830
|
+
}, null, 8, ["name"])) : a("", !0), s("span", null, E(n.meta?.title), 1)]), (y(!0), o(e, null, S(n.children, (e) => (y(), o("div", {
|
|
1831
|
+
key: e.path,
|
|
1832
|
+
class: h(["floating-menu__item floating-menu__item--sub", { active: t.isActive?.(e.path) }]),
|
|
1833
|
+
onClick: (t) => c("click", e)
|
|
1834
|
+
}, [O(l).iconComponent && e.meta?.icon ? (y(), i(T(O(l).iconComponent), {
|
|
1835
|
+
key: 0,
|
|
1836
|
+
name: e.meta.icon,
|
|
1837
|
+
size: 16
|
|
1838
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Nr, E(e.meta?.title), 1)], 10, Mr))), 128))])) : (y(), o("div", {
|
|
1839
|
+
key: 1,
|
|
1840
|
+
class: h(["floating-menu__item", { active: t.isActive?.(n.path) }]),
|
|
1841
|
+
onClick: (e) => c("click", n)
|
|
1842
|
+
}, [O(l).iconComponent && n.meta?.icon ? (y(), i(T(O(l).iconComponent), {
|
|
1843
|
+
key: 0,
|
|
1844
|
+
name: n.meta.icon,
|
|
1845
|
+
size: 18
|
|
1846
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Fr, E(n.meta?.title), 1)], 10, Pr))], 64))), 128))])], 2)) : a("", !0)]),
|
|
1847
|
+
_: 1
|
|
1848
|
+
}));
|
|
1849
|
+
}
|
|
1850
|
+
}), [["__scopeId", "data-v-0588c318"]]), Lr = { class: "side-menu__header" }, Rr = { class: "side-menu__header-icon" }, zr = { class: "side-menu__header-title" }, Br = { class: "side-menu__list" }, Vr = {
|
|
1851
|
+
key: 0,
|
|
1852
|
+
class: "side-menu__group"
|
|
1853
|
+
}, Hr = { class: "side-menu__group-label" }, Ur = ["onClick"], Wr = { class: "side-menu__item-text" }, Gr = ["onClick"], Kr = { class: "side-menu__item-text" }, qr = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
1854
|
+
name: "SideMenu",
|
|
1855
|
+
__name: "index",
|
|
1856
|
+
props: {
|
|
1857
|
+
menus: {},
|
|
1858
|
+
activeItem: {},
|
|
1859
|
+
isActive: { type: Function }
|
|
1860
|
+
},
|
|
1861
|
+
emits: ["click"],
|
|
1862
|
+
setup(t, { emit: r }) {
|
|
1863
|
+
let c = r, l = Y(), d = x(!1);
|
|
1864
|
+
return (r, f) => t.menus.length > 0 ? (y(), o(e, { key: 0 }, [s("div", {
|
|
1865
|
+
class: h(["side-menu-toggle", [O(l).isDark.value ? "dark-theme" : "light-theme", { active: !d.value }]]),
|
|
1866
|
+
onClick: f[0] ||= (e) => d.value = !d.value
|
|
1867
|
+
}, [s("i", { class: h(["toggle-icon", d.value ? "i-ri:side-bar-line" : "i-ri:arrow-right-s-line"]) }, null, 2)], 2), u(n, { name: "glass-slide" }, {
|
|
1868
|
+
default: j(() => [d.value ? a("", !0) : (y(), o("div", {
|
|
1869
|
+
key: 0,
|
|
1870
|
+
class: h(["side-menu", [O(l).isDark.value ? "dark-theme" : "light-theme"]])
|
|
1871
|
+
}, [s("div", Lr, [s("div", Rr, [O(l).iconComponent && t.activeItem?.meta?.icon ? (y(), i(T(O(l).iconComponent), {
|
|
1872
|
+
key: 0,
|
|
1873
|
+
name: t.activeItem.meta.icon,
|
|
1874
|
+
size: 17
|
|
1875
|
+
}, null, 8, ["name"])) : a("", !0)]), s("span", zr, E(t.activeItem?.meta?.title || "菜单"), 1)]), s("div", Br, [(y(!0), o(e, null, S(t.menus, (n) => (y(), o(e, { key: n.path }, [n.children && n.children.length > 0 ? (y(), o("div", Vr, [s("div", Hr, [O(l).iconComponent && n.meta?.icon ? (y(), i(T(O(l).iconComponent), {
|
|
1876
|
+
key: 0,
|
|
1877
|
+
name: n.meta.icon,
|
|
1878
|
+
size: 14
|
|
1879
|
+
}, null, 8, ["name"])) : a("", !0), s("span", null, E(n.meta?.title), 1)]), (y(!0), o(e, null, S(n.children, (e) => (y(), o("div", {
|
|
1880
|
+
key: e.path,
|
|
1881
|
+
class: h(["side-menu__item", { active: t.isActive?.(e.path) }]),
|
|
1882
|
+
onClick: (t) => c("click", e)
|
|
1883
|
+
}, [O(l).iconComponent && e.meta?.icon ? (y(), i(T(O(l).iconComponent), {
|
|
1884
|
+
key: 0,
|
|
1885
|
+
name: e.meta.icon,
|
|
1886
|
+
size: 15
|
|
1887
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Wr, E(e.meta?.title), 1)], 10, Ur))), 128))])) : (y(), o("div", {
|
|
1888
|
+
key: 1,
|
|
1889
|
+
class: h(["side-menu__item", { active: t.isActive?.(n.path) }]),
|
|
1890
|
+
onClick: (e) => c("click", n)
|
|
1891
|
+
}, [O(l).iconComponent && n.meta?.icon ? (y(), i(T(O(l).iconComponent), {
|
|
1892
|
+
key: 0,
|
|
1893
|
+
name: n.meta.icon,
|
|
1894
|
+
size: 16
|
|
1895
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Kr, E(n.meta?.title), 1)], 10, Gr))], 64))), 128))])], 2))]),
|
|
1896
|
+
_: 1
|
|
1897
|
+
})], 64)) : a("", !0);
|
|
1898
|
+
}
|
|
1899
|
+
}), [["__scopeId", "data-v-1909f229"]]), Jr = { class: "drawer-menu__content" }, Yr = { class: "drawer-menu__grid" }, Xr = ["onClick"], Zr = {
|
|
1900
|
+
key: 0,
|
|
1901
|
+
class: "drawer-menu__items"
|
|
1902
|
+
}, Qr = ["onClick"], $r = { class: "drawer-menu__item-text" }, ei = {
|
|
1903
|
+
key: 0,
|
|
1904
|
+
class: "drawer-menu__sub-items"
|
|
1905
|
+
}, ti = { class: "drawer-menu__sub-title" }, ni = ["onClick"], ri = { class: "drawer-menu__item-text" }, ii = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
1906
|
+
name: "DrawerMenu",
|
|
1907
|
+
__name: "index",
|
|
1908
|
+
props: {
|
|
1909
|
+
menus: {},
|
|
1910
|
+
show: { type: Boolean }
|
|
1911
|
+
},
|
|
1912
|
+
setup(t) {
|
|
1913
|
+
let n = Y(), r = q(), c = p(ge, {
|
|
1914
|
+
show: () => {},
|
|
1915
|
+
startHide: () => {},
|
|
1916
|
+
hide: () => {}
|
|
1917
|
+
}), l = (e) => {
|
|
1918
|
+
e.path && (r.push(e.path), c.hide());
|
|
1919
|
+
};
|
|
1920
|
+
return (r, u) => (y(), o("div", {
|
|
1921
|
+
class: h(["drawer-menu", [O(n).isDark.value ? "dark-theme" : "light-theme", { visible: t.show }]]),
|
|
1922
|
+
onMouseenter: u[0] ||= (e) => O(c).show(),
|
|
1923
|
+
onMouseleave: u[1] ||= (e) => O(c).startHide()
|
|
1924
|
+
}, [u[2] ||= s("div", { class: "drawer-menu__header" }, [s("div", { class: "drawer-menu__title" }, [s("span", { class: "grid-icon" }, [
|
|
1925
|
+
s("span"),
|
|
1926
|
+
s("span"),
|
|
1927
|
+
s("span"),
|
|
1928
|
+
s("span")
|
|
1929
|
+
]), s("span", null, "功能导航")])], -1), s("div", Jr, [s("div", Yr, [(y(!0), o(e, null, S(t.menus, (t) => (y(), o("div", {
|
|
1930
|
+
key: t.path,
|
|
1931
|
+
class: "drawer-menu__category"
|
|
1932
|
+
}, [s("div", {
|
|
1933
|
+
class: "drawer-menu__category-header",
|
|
1934
|
+
onClick: (e) => l(t)
|
|
1935
|
+
}, [O(n).iconComponent && t.meta?.icon ? (y(), i(T(O(n).iconComponent), {
|
|
1936
|
+
key: 0,
|
|
1937
|
+
name: t.meta.icon,
|
|
1938
|
+
size: 18
|
|
1939
|
+
}, null, 8, ["name"])) : a("", !0), s("span", null, E(t.meta?.title), 1)], 8, Xr), t.children && t.children.length > 0 ? (y(), o("div", Zr, [(y(!0), o(e, null, S(t.children, (e) => (y(), o("div", {
|
|
1940
|
+
key: e.path,
|
|
1941
|
+
class: "drawer-menu__item",
|
|
1942
|
+
onClick: (t) => l(e)
|
|
1943
|
+
}, [O(n).iconComponent && e.meta?.icon ? (y(), i(T(O(n).iconComponent), {
|
|
1944
|
+
key: 0,
|
|
1945
|
+
name: e.meta.icon,
|
|
1946
|
+
size: 16
|
|
1947
|
+
}, null, 8, ["name"])) : a("", !0), s("span", $r, E(e.meta?.title), 1)], 8, Qr))), 128)), (y(!0), o(e, null, S(t.children, (t) => (y(), o(e, { key: t.path }, [t.children && t.children.length > 0 ? (y(), o("div", ei, [s("div", ti, E(t.meta?.title), 1), (y(!0), o(e, null, S(t.children, (e) => (y(), o("div", {
|
|
1948
|
+
key: e.path,
|
|
1949
|
+
class: "drawer-menu__item drawer-menu__item--sub",
|
|
1950
|
+
onClick: (t) => l(e)
|
|
1951
|
+
}, [O(n).iconComponent && e.meta?.icon ? (y(), i(T(O(n).iconComponent), {
|
|
1952
|
+
key: 0,
|
|
1953
|
+
name: e.meta.icon,
|
|
1954
|
+
size: 14
|
|
1955
|
+
}, null, 8, ["name"])) : a("", !0), s("span", ri, E(e.meta?.title), 1)], 8, ni))), 128))])) : a("", !0)], 64))), 128))])) : a("", !0)]))), 128))])])], 34));
|
|
1956
|
+
}
|
|
1957
|
+
}), [["__scopeId", "data-v-b0d3e73b"]]), ai = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
1958
|
+
name: "MenuTrigger",
|
|
1959
|
+
__name: "index",
|
|
1960
|
+
props: { show: { type: Boolean } },
|
|
1961
|
+
setup(e) {
|
|
1962
|
+
let t = p(ge, {
|
|
1963
|
+
show: () => {},
|
|
1964
|
+
startHide: () => {},
|
|
1965
|
+
hide: () => {}
|
|
1966
|
+
});
|
|
1967
|
+
return (e, n) => (y(), o("div", {
|
|
1968
|
+
class: "menu-trigger",
|
|
1969
|
+
onMouseenter: n[0] ||= (e) => O(t).show(),
|
|
1970
|
+
onMouseleave: n[1] ||= (e) => O(t).startHide()
|
|
1971
|
+
}, [...n[2] ||= [s("div", { class: "menu-trigger__indicator" }, [s("span", { class: "hamburger-icon" }, [
|
|
1972
|
+
s("span"),
|
|
1973
|
+
s("span"),
|
|
1974
|
+
s("span")
|
|
1975
|
+
])], -1)]], 32));
|
|
1976
|
+
}
|
|
1977
|
+
}), [["__scopeId", "data-v-2c20af78"]]);
|
|
1978
|
+
//#endregion
|
|
1979
|
+
//#region src/setup.ts
|
|
1980
|
+
function oi(e, t = {}) {
|
|
1981
|
+
let n = pe(t);
|
|
1982
|
+
return n().syncCSSVariables(), n;
|
|
2610
1983
|
}
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
Lo as C_CardLayout,
|
|
2616
|
-
jn as C_LayoutContainer,
|
|
2617
|
-
Mt as C_MixLayout,
|
|
2618
|
-
jt as C_MixTopLayout,
|
|
2619
|
-
vo as C_ReverseHorizontalMixLayout,
|
|
2620
|
-
qe as C_SideLayout,
|
|
2621
|
-
mt as C_TopLayout,
|
|
2622
|
-
Lo as CardLayout,
|
|
2623
|
-
ae as DEFAULT_BRAND_CONFIG,
|
|
2624
|
-
P as DEFAULT_SETTINGS,
|
|
2625
|
-
Ve as DRAWER_HANDLER_KEY,
|
|
2626
|
-
Zn as DrawerMenu,
|
|
2627
|
-
Xn as FloatingMenu,
|
|
2628
|
-
Gn as IconMenu,
|
|
2629
|
-
Ze as LAYOUT_CONTEXT_KEY,
|
|
2630
|
-
Pn as LAYOUT_MODES,
|
|
2631
|
-
qn as MenuTrigger,
|
|
2632
|
-
Mt as MixLayout,
|
|
2633
|
-
jt as MixTopLayout,
|
|
2634
|
-
Ke as PRESET_COLORS,
|
|
2635
|
-
$e as ResponsiveMenu,
|
|
2636
|
-
vo as ReverseHorizontalMixLayout,
|
|
2637
|
-
Kn as SettingsDrawer,
|
|
2638
|
-
qe as SideLayout,
|
|
2639
|
-
Jn as SideMenu,
|
|
2640
|
-
Ye as THEME_PRESETS,
|
|
2641
|
-
Xe as TRANSITION_MAP,
|
|
2642
|
-
mt as TopLayout,
|
|
2643
|
-
Te as adjustColor,
|
|
2644
|
-
Ie as createSettingsStore,
|
|
2645
|
-
Qn as setupLayout,
|
|
2646
|
-
me as useLayoutCache,
|
|
2647
|
-
X as useLayoutContext,
|
|
2648
|
-
Ce as useMenuSplit,
|
|
2649
|
-
ze as useSettingsStore
|
|
2650
|
-
};
|
|
2651
|
-
//# sourceMappingURL=index.js.map
|
|
1984
|
+
//#endregion
|
|
1985
|
+
export { le as BORDER_RADIUS_MAP, vr as BrandLogo, de as COLOR_SWATCHES, $t as C_CardLayout, $t as CardLayout, tn as C_LayoutContainer, Je as C_MixLayout, Je as MixLayout, dt as C_MixTopLayout, dt as MixTopLayout, Mt as C_ReverseHorizontalMixLayout, Mt as ReverseHorizontalMixLayout, _e as C_SideLayout, _e as SideLayout, je as C_TopLayout, je as TopLayout, X as DEFAULT_BRAND_CONFIG, J as DEFAULT_SETTINGS, ge as DRAWER_HANDLER_KEY, ii as DrawerMenu, Ir as FloatingMenu, wr as IconMenu, he as LAYOUT_CONTEXT_KEY, ce as LAYOUT_MODES, ai as MenuTrigger, oe as PRESET_COLORS, $ as ResponsiveMenu, ur as SettingsDrawer, qr as SideMenu, se as THEME_PRESETS, ue as TRANSITION_MAP, fe as adjustColor, pe as createSettingsStore, oi as setupLayout, Z as useLayoutCache, Y as useLayoutContext, Me as useMenuSplit, me as useSettingsStore };
|
|
1986
|
+
|
|
1987
|
+
//# sourceMappingURL=index.js.map
|