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