@pubinfo/core 2.1.11 → 2.1.13-beta.1

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.
Files changed (86) hide show
  1. package/dist/AppSetting-BBCop_0D.js +107 -0
  2. package/dist/{HButton-Dt6qGhhR.js → HButton-pEqyd918.js} +13 -11
  3. package/dist/HCheckList-cef4jGrw.js +35 -0
  4. package/dist/HDivider-BSj2DiEY.js +13 -0
  5. package/dist/HInput-DfpH43DV.js +36 -0
  6. package/dist/HSlideover-B6gEDfA5.js +3223 -0
  7. package/dist/HToggle-BTft_PNT.js +32 -0
  8. package/dist/HTooltip-B8aoK5uN.js +19 -0
  9. package/dist/PreferencesContent-CuNffqV_.js +703 -0
  10. package/dist/SettingBreadcrumb-CMn0gojs.js +47 -0
  11. package/dist/SettingCopyright-DKwdXYr3.js +47 -0
  12. package/dist/SettingEnableTransition-Bn37z29E.js +70 -0
  13. package/dist/SettingHome-HttuaN-N.js +33 -0
  14. package/dist/SettingMenu-CEvBV2Wj.js +113 -0
  15. package/dist/SettingMode-DpAUEZUv.js +62 -0
  16. package/dist/SettingNavSearch-Cem0LL54.js +33 -0
  17. package/dist/SettingOther-DcrlPnMd.js +50 -0
  18. package/dist/SettingPage-UhL5e6_m.js +24 -0
  19. package/dist/SettingTabbar-Ct3S8jS2.js +144 -0
  20. package/dist/SettingThemes-DaRKZ2Q3.js +123 -0
  21. package/dist/SettingToolbar-Cx_Mz_EP.js +52 -0
  22. package/dist/SettingTopbar-Ckg-OGSj.js +51 -0
  23. package/dist/SettingWidthMode-CZ2i-kzC.js +58 -0
  24. package/dist/_plugin-vue_export-helper-CsLplWgU.js +8 -0
  25. package/dist/auth-BVTDpkDr.js +4635 -0
  26. package/dist/{change-organization-hsqeSzDu.js → change-organization-EdR25ifs.js} +51 -48
  27. package/dist/{change-password-EtccCDRX.js → change-password-D-ZqBAmY.js} +85 -81
  28. package/dist/chunk-BdsCSvBP.js +20 -0
  29. package/dist/{components-DFNyaAb9.js → components-CKVAXENc.js} +681 -674
  30. package/dist/{core-DJIGzMMM.js → core-Dg8YES9i.js} +1003 -938
  31. package/dist/dist-HLiWAOC7.js +472 -0
  32. package/dist/{engine-oniguruma-CaNXwGSv.js → engine-oniguruma-DCGL4yXX.js} +58 -56
  33. package/dist/form-CGzMvzKZ.js +2968 -0
  34. package/dist/index.js +4989 -4877
  35. package/dist/json-BFBcpML_.js +3 -0
  36. package/dist/{modal-Bl5xHbxa.js → modal-ybprgEqf.js} +12543 -9070
  37. package/dist/not-found-CuHR6H_g.js +44 -0
  38. package/dist/not-permission-BcQAkzxI.js +41 -0
  39. package/dist/profile-Bsc6FIbI.js +19533 -0
  40. package/dist/{question-line-BG__Ycfv.js → question-line-BzrfPWnG.js} +9 -7
  41. package/dist/reload-BClJy4MY.js +15 -0
  42. package/dist/{right-BxBlFUwj.js → right-CCqcGubr.js} +15 -13
  43. package/dist/{tree-select-B8cTcGLa.js → tree-select-gPCwtMia.js} +2906 -2659
  44. package/dist/useContext-Dlqfap_7.js +11 -0
  45. package/dist/vitesse-dark-DrB9-RFK.js +4 -0
  46. package/dist/vitesse-light-CmcnEl2T.js +4 -0
  47. package/dist/wasm-C92aTsEJ.js +4 -0
  48. package/dist/watchDiff-DJP3s9bb.js +883 -0
  49. package/package.json +8 -8
  50. package/dist/AppSetting-7jlhUzze.js +0 -105
  51. package/dist/HCheckList-cPBgATmv.js +0 -33
  52. package/dist/HDivider-BwvBr5OE.js +0 -11
  53. package/dist/HInput-KJ5nFBpF.js +0 -34
  54. package/dist/HSlideover-DVQDc9q6.js +0 -3151
  55. package/dist/HToggle-Ce_2-yhZ.js +0 -30
  56. package/dist/HTooltip-DjAU-Evn.js +0 -16
  57. package/dist/PreferencesContent-BAIH81yS.js +0 -701
  58. package/dist/SettingBreadcrumb-O9-PhAFT.js +0 -45
  59. package/dist/SettingCopyright-DIKsWTuf.js +0 -45
  60. package/dist/SettingEnableTransition-61O7W00b.js +0 -68
  61. package/dist/SettingHome-Sv65TPH8.js +0 -31
  62. package/dist/SettingMenu-BvwJOUZV.js +0 -111
  63. package/dist/SettingMode-B8H_eQc8.js +0 -60
  64. package/dist/SettingNavSearch-BHsmYBA7.js +0 -31
  65. package/dist/SettingOther-CyyNnaDX.js +0 -48
  66. package/dist/SettingPage-B82lW41P.js +0 -22
  67. package/dist/SettingTabbar-Bky2xvH-.js +0 -142
  68. package/dist/SettingThemes-CkdzS1xt.js +0 -121
  69. package/dist/SettingToolbar-CD4qns1J.js +0 -50
  70. package/dist/SettingTopbar-1shjoe3s.js +0 -49
  71. package/dist/SettingWidthMode-DlG6lXjA.js +0 -56
  72. package/dist/_plugin-vue_export-helper-sUTDUeGO.js +0 -6
  73. package/dist/auth-BLGKOyc5.js +0 -4432
  74. package/dist/chunk-CD4vhpVs.js +0 -18
  75. package/dist/dist-7OjQvlya.js +0 -468
  76. package/dist/form-C3VHofnN.js +0 -2768
  77. package/dist/json-Bu_Zprin.js +0 -2
  78. package/dist/not-found-BCjngLzt.js +0 -42
  79. package/dist/not-permission-C26vTMvf.js +0 -39
  80. package/dist/profile-BVXIFuBG.js +0 -19269
  81. package/dist/reload-DHx5Vwus.js +0 -12
  82. package/dist/useContext-DLtu9F7E.js +0 -9
  83. package/dist/vitesse-dark-CTe40QT_.js +0 -2
  84. package/dist/vitesse-light-BWXC_WeB.js +0 -2
  85. package/dist/wasm-2zDVqo-C.js +0 -2
  86. package/dist/watchDiff-CPZFtaOC.js +0 -655
@@ -0,0 +1,703 @@
1
+ import { $n as e, $t as t, Cn as n, D as r, Hn as i, Qn as a, Vn as o, X as s, Zt as c, a as l, cr as u, dr as d, et as f, fr as p, lt as m, mn as h, mt as g, n as _, or as ee, rt as v, sr as y, ut as b, wn as x, yn as S } from "./modal-ybprgEqf.js";
2
+ import { a as C, n as w, s as T, t as E, v as D } from "./watchDiff-DJP3s9bb.js";
3
+ import "./tree-select-gPCwtMia.js";
4
+ import "./components-CKVAXENc.js";
5
+ import { t as O } from "./_plugin-vue_export-helper-CsLplWgU.js";
6
+ import { n as k } from "./useContext-Dlqfap_7.js";
7
+ import { t as A } from "./HTooltip-B8aoK5uN.js";
8
+ import { t as j } from "./HCheckList-cef4jGrw.js";
9
+ import { t as M } from "./HToggle-BTft_PNT.js";
10
+ import { t as N } from "./question-line-BzrfPWnG.js";
11
+ import { n as P, t as F } from "./right-CCqcGubr.js";
12
+ import { Fragment as te, Transition as I, computed as L, createCommentVNode as R, createElementBlock as z, createElementVNode as B, createTextVNode as V, createVNode as H, defineComponent as U, isRef as ne, normalizeClass as W, normalizeStyle as re, openBlock as G, ref as ie, renderList as K, shallowRef as q, unref as J, vShow as Y, withCtx as X, withDirectives as ae } from "vue";
13
+ import { getThemes as oe } from "@pubinfo/config/themes";
14
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePick.js
15
+ function se(e, t) {
16
+ return w(e, t, function(t, n) {
17
+ return C(e, n);
18
+ });
19
+ }
20
+ //#endregion
21
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/pick.js
22
+ var Z = D(function(e, t) {
23
+ return e == null ? {} : se(e, t);
24
+ }), Q = (e, t, n, r, i) => ({
25
+ backgroundColor: e,
26
+ border: `${r.lineWidth}px ${r.lineType} ${t}`,
27
+ [`${i}-icon`]: { color: n }
28
+ }), ce = (e) => {
29
+ let { componentCls: t, motionDurationSlow: r, marginXS: i, marginSM: a, fontSize: o, fontSizeLG: s, lineHeight: c, borderRadiusLG: l, motionEaseInOutCirc: u, alertIconSizeLG: d, colorText: f, paddingContentVerticalSM: p, alertPaddingHorizontal: m, paddingMD: h, paddingContentHorizontalLG: _ } = e;
30
+ return {
31
+ [t]: n(n({}, g(e)), {
32
+ position: "relative",
33
+ display: "flex",
34
+ alignItems: "center",
35
+ padding: `${p}px ${m}px`,
36
+ wordWrap: "break-word",
37
+ borderRadius: l,
38
+ [`&${t}-rtl`]: { direction: "rtl" },
39
+ [`${t}-content`]: {
40
+ flex: 1,
41
+ minWidth: 0
42
+ },
43
+ [`${t}-icon`]: {
44
+ marginInlineEnd: i,
45
+ lineHeight: 0
46
+ },
47
+ "&-description": {
48
+ display: "none",
49
+ fontSize: o,
50
+ lineHeight: c
51
+ },
52
+ "&-message": { color: f },
53
+ [`&${t}-motion-leave`]: {
54
+ overflow: "hidden",
55
+ opacity: 1,
56
+ transition: `max-height ${r} ${u}, opacity ${r} ${u},
57
+ padding-top ${r} ${u}, padding-bottom ${r} ${u},
58
+ margin-bottom ${r} ${u}`
59
+ },
60
+ [`&${t}-motion-leave-active`]: {
61
+ maxHeight: 0,
62
+ marginBottom: "0 !important",
63
+ paddingTop: 0,
64
+ paddingBottom: 0,
65
+ opacity: 0
66
+ }
67
+ }),
68
+ [`${t}-with-description`]: {
69
+ alignItems: "flex-start",
70
+ paddingInline: _,
71
+ paddingBlock: h,
72
+ [`${t}-icon`]: {
73
+ marginInlineEnd: a,
74
+ fontSize: d,
75
+ lineHeight: 0
76
+ },
77
+ [`${t}-message`]: {
78
+ display: "block",
79
+ marginBottom: i,
80
+ color: f,
81
+ fontSize: s
82
+ },
83
+ [`${t}-description`]: { display: "block" }
84
+ },
85
+ [`${t}-banner`]: {
86
+ marginBottom: 0,
87
+ border: "0 !important",
88
+ borderRadius: 0
89
+ }
90
+ };
91
+ }, le = (e) => {
92
+ let { componentCls: t, colorSuccess: r, colorSuccessBorder: i, colorSuccessBg: a, colorWarning: o, colorWarningBorder: s, colorWarningBg: c, colorError: l, colorErrorBorder: u, colorErrorBg: d, colorInfo: f, colorInfoBorder: p, colorInfoBg: m } = e;
93
+ return { [t]: {
94
+ "&-success": Q(a, i, r, e, t),
95
+ "&-info": Q(m, p, f, e, t),
96
+ "&-warning": Q(c, s, o, e, t),
97
+ "&-error": n(n({}, Q(d, u, l, e, t)), { [`${t}-description > pre`]: {
98
+ margin: 0,
99
+ padding: 0
100
+ } })
101
+ } };
102
+ }, ue = (e) => {
103
+ let { componentCls: t, iconCls: n, motionDurationMid: r, marginXS: i, fontSizeIcon: a, colorIcon: o, colorIconHover: s } = e;
104
+ return { [t]: {
105
+ "&-action": { marginInlineStart: i },
106
+ [`${t}-close-icon`]: {
107
+ marginInlineStart: i,
108
+ padding: 0,
109
+ overflow: "hidden",
110
+ fontSize: a,
111
+ lineHeight: `${a}px`,
112
+ backgroundColor: "transparent",
113
+ border: "none",
114
+ outline: "none",
115
+ cursor: "pointer",
116
+ [`${n}-close`]: {
117
+ color: o,
118
+ transition: `color ${r}`,
119
+ "&:hover": { color: s }
120
+ }
121
+ },
122
+ "&-close-text": {
123
+ color: o,
124
+ transition: `color ${r}`,
125
+ "&:hover": { color: s }
126
+ }
127
+ } };
128
+ }, de = (e) => [
129
+ ce(e),
130
+ le(e),
131
+ ue(e)
132
+ ], fe = b("Alert", (e) => {
133
+ let { fontSizeHeading3: t } = e;
134
+ return [de(m(e, {
135
+ alertIconSizeLG: t,
136
+ alertPaddingHorizontal: 12
137
+ }))];
138
+ }), pe = {
139
+ success: p,
140
+ info: i,
141
+ error: u,
142
+ warning: e
143
+ }, me = {
144
+ success: d,
145
+ info: o,
146
+ error: y,
147
+ warning: a
148
+ }, he = c("success", "info", "warning", "error"), ge = t(U({
149
+ compatConfig: { MODE: 3 },
150
+ name: "AAlert",
151
+ inheritAttrs: !1,
152
+ props: {
153
+ type: f.oneOf(he),
154
+ closable: {
155
+ type: Boolean,
156
+ default: void 0
157
+ },
158
+ closeText: f.any,
159
+ message: f.any,
160
+ description: f.any,
161
+ afterClose: Function,
162
+ showIcon: {
163
+ type: Boolean,
164
+ default: void 0
165
+ },
166
+ prefixCls: String,
167
+ banner: {
168
+ type: Boolean,
169
+ default: void 0
170
+ },
171
+ icon: f.any,
172
+ closeIcon: f.any,
173
+ onClose: Function
174
+ },
175
+ setup(e, t) {
176
+ let { slots: n, emit: i, attrs: a, expose: o } = t, { prefixCls: c, direction: l } = v("alert", e), [u, d] = fe(c), f = q(!1), p = q(!1), m = q(), g = (e) => {
177
+ e.preventDefault();
178
+ let t = m.value;
179
+ t.style.height = `${t.offsetHeight}px`, t.style.height = `${t.offsetHeight}px`, f.value = !0, i("close", e);
180
+ }, _ = () => {
181
+ var t;
182
+ f.value = !1, p.value = !0, (t = e.afterClose) == null || t.call(e);
183
+ }, y = L(() => {
184
+ let { type: t } = e;
185
+ return t === void 0 ? e.banner ? "warning" : "info" : t;
186
+ });
187
+ o({ animationEnd: _ });
188
+ let b = q({});
189
+ return () => {
190
+ let { banner: t, closeIcon: i = n.closeIcon?.call(n) } = e, { closable: o, showIcon: v } = e, C = e.closeText ?? n.closeText?.call(n), w = e.description ?? n.description?.call(n), T = e.message ?? n.message?.call(n), E = e.icon ?? n.icon?.call(n), D = n.action?.call(n);
191
+ v = t && v === void 0 ? !0 : v;
192
+ let O = (w ? me : pe)[y.value] || null;
193
+ C && (o = !0);
194
+ let k = c.value, A = S(k, {
195
+ [`${k}-${y.value}`]: !0,
196
+ [`${k}-closing`]: f.value,
197
+ [`${k}-with-description`]: !!w,
198
+ [`${k}-no-icon`]: !v,
199
+ [`${k}-banner`]: !!t,
200
+ [`${k}-closable`]: o,
201
+ [`${k}-rtl`]: l.value === "rtl",
202
+ [d.value]: !0
203
+ }), j = o ? H("button", {
204
+ type: "button",
205
+ onClick: g,
206
+ class: `${k}-close-icon`,
207
+ tabindex: 0
208
+ }, [C ? H("span", { class: `${k}-close-text` }, [C]) : i === void 0 ? H(ee, null, null) : i]) : null, M = E && (h(E) ? s(E, { class: `${k}-icon` }) : H("span", { class: `${k}-icon` }, [E])) || H(O, { class: `${k}-icon` }, null), N = r(`${k}-motion`, {
209
+ appear: !1,
210
+ css: !0,
211
+ onAfterLeave: _,
212
+ onBeforeLeave: (e) => {
213
+ e.style.maxHeight = `${e.offsetHeight}px`;
214
+ },
215
+ onLeave: (e) => {
216
+ e.style.maxHeight = "0px";
217
+ }
218
+ });
219
+ return u(p.value ? null : H(I, N, { default: () => [ae(H("div", x(x({ role: "alert" }, a), {}, {
220
+ style: [a.style, b.value],
221
+ class: [a.class, A],
222
+ "data-show": !f.value,
223
+ ref: m
224
+ }), [
225
+ v ? M : null,
226
+ H("div", { class: `${k}-content` }, [T ? H("div", { class: `${k}-message` }, [T]) : null, w ? H("div", { class: `${k}-description` }, [w]) : null]),
227
+ D ? H("div", { class: `${k}-action` }, [D]) : null,
228
+ j
229
+ ]), [[Y, !f.value]])] }));
230
+ };
231
+ }
232
+ })), $ = {
233
+ key: 0,
234
+ class: "divider"
235
+ }, _e = {
236
+ key: 1,
237
+ class: "flex items-center justify-center pb-4"
238
+ }, ve = {
239
+ key: 2,
240
+ class: "themes"
241
+ }, ye = ["onClick"], be = {
242
+ key: 3,
243
+ class: "divider"
244
+ }, xe = {
245
+ key: 4,
246
+ class: "menu-mode"
247
+ }, Se = {
248
+ key: 5,
249
+ class: "divider"
250
+ }, Ce = {
251
+ key: 6,
252
+ class: "app-width-mode"
253
+ }, we = {
254
+ key: 7,
255
+ class: "divider"
256
+ }, Te = {
257
+ key: 8,
258
+ class: "flex items-center justify-center pb-4"
259
+ }, Ee = {
260
+ key: 9,
261
+ class: "transition-mode"
262
+ }, De = {
263
+ key: 10,
264
+ class: "divider"
265
+ }, Oe = {
266
+ key: 11,
267
+ class: "setting-item"
268
+ }, ke = { class: "label" }, Ae = {
269
+ key: 12,
270
+ class: "setting-item"
271
+ }, je = {
272
+ key: 13,
273
+ class: "setting-item"
274
+ }, Me = {
275
+ key: 14,
276
+ class: "setting-item"
277
+ }, Ne = {
278
+ key: 15,
279
+ class: "setting-item"
280
+ }, Pe = {
281
+ key: 16,
282
+ class: "divider"
283
+ }, Fe = {
284
+ key: 17,
285
+ class: "setting-item"
286
+ }, Ie = { class: "label" }, Le = {
287
+ key: 18,
288
+ class: "divider"
289
+ }, Re = {
290
+ key: 19,
291
+ class: "setting-item"
292
+ }, ze = {
293
+ key: 20,
294
+ class: "setting-item"
295
+ }, Be = {
296
+ key: 21,
297
+ class: "setting-item"
298
+ }, Ve = {
299
+ key: 22,
300
+ class: "setting-item"
301
+ }, He = { class: "label" }, Ue = {
302
+ key: 23,
303
+ class: "divider"
304
+ }, We = {
305
+ key: 24,
306
+ class: "setting-item"
307
+ }, Ge = {
308
+ key: 25,
309
+ class: "setting-item"
310
+ }, Ke = {
311
+ key: 26,
312
+ class: "setting-item"
313
+ }, qe = {
314
+ key: 27,
315
+ class: "divider"
316
+ }, Je = {
317
+ key: 28,
318
+ class: "setting-item"
319
+ }, Ye = { class: "label" }, Xe = {
320
+ "w-full": "",
321
+ "h-100px": "",
322
+ flex: "~ center"
323
+ }, Ze = /* @__PURE__ */ O(/* @__PURE__ */ U({
324
+ name: "PreferenceContent",
325
+ __name: "PreferencesContent",
326
+ setup(e) {
327
+ let { settingsStore: t } = k(), n = ie({
328
+ app: Z(t.settings.app, [
329
+ "colorScheme",
330
+ "lightTheme",
331
+ "darkTheme",
332
+ "enableProgress",
333
+ "enableUserPreferences"
334
+ ]),
335
+ menu: Z(t.settings.menu, [
336
+ "menuMode",
337
+ "isRounded",
338
+ "menuActiveStyle",
339
+ "subMenuUniqueOpened",
340
+ "subMenuCollapse",
341
+ "enableSubMenuCollapseButton"
342
+ ]),
343
+ layout: Z(t.settings.layout, ["widthMode"]),
344
+ mainPage: Z(t.settings.mainPage, ["enableTransition", "transitionMode"]),
345
+ topbar: Z(t.settings.topbar, ["mode", "switchTabbarAndToolbar"]),
346
+ tabbar: Z(t.settings.tabbar, [
347
+ "enable",
348
+ "style",
349
+ "enableIcon",
350
+ "mergeTabsBy",
351
+ "enableMemory"
352
+ ]),
353
+ breadcrumb: Z(t.settings.breadcrumb, [
354
+ "enable",
355
+ "style",
356
+ "enableMainMenu"
357
+ ])
358
+ }), r = L({
359
+ get() {
360
+ return n.value.app?.colorScheme === "dark";
361
+ },
362
+ set(e) {
363
+ n.value.app?.colorScheme && (n.value.app.colorScheme = e ? "dark" : "light");
364
+ }
365
+ }), i = L(() => {
366
+ let e = oe();
367
+ return Object.keys(e).map((t) => ({
368
+ label: t,
369
+ value: e[t]
370
+ })).filter((e) => e.value["color-scheme"] === n.value.app?.colorScheme);
371
+ });
372
+ E(() => n.value, async (e) => {
373
+ t.updateSettings(T(e), !1), await t.setPreferencesSetting(e), _.success("个人偏好设置成功");
374
+ }, { deep: !0 });
375
+ async function a() {
376
+ await t.resetSettings();
377
+ }
378
+ return (e, o) => {
379
+ let s = ge, c = M, u = A, d = j, f = l;
380
+ return G(), z("div", null, [
381
+ H(s, {
382
+ message: "提示",
383
+ description: "个人偏好设置将覆盖系统默认设置。若需恢复至系统默认配置,请滚动至底部并点击“还原系统设置”按钮。",
384
+ type: "info"
385
+ }),
386
+ J(n).app?.hasOwnProperty("colorScheme") || J(n).app?.hasOwnProperty("lightTheme") && J(n).app?.hasOwnProperty("darkTheme") ? (G(), z("div", $, " 颜色主题风格 ")) : R("", !0),
387
+ J(n).app?.hasOwnProperty("colorScheme") ? (G(), z("div", _e, [H(c, {
388
+ modelValue: J(r),
389
+ "onUpdate:modelValue": o[0] ||= (e) => ne(r) ? r.value = e : null,
390
+ "on-icon": "i-ri-sun-line",
391
+ "off-icon": "i-ri-moon-line"
392
+ }, null, 8, ["modelValue"])])) : R("", !0),
393
+ J(n).app?.hasOwnProperty("lightTheme") && J(n).app?.hasOwnProperty("darkTheme") ? (G(), z("div", ve, [(G(!0), z(te, null, K(J(i), (e) => (G(), z("div", {
394
+ key: e.label,
395
+ class: W(["theme", { active: J(r) ? J(n).app.darkTheme === e.label : J(n).app.lightTheme === e.label }]),
396
+ onClick: (t) => J(r) ? J(n).app?.hasOwnProperty("darkTheme") && (J(n).app.darkTheme = e.label) : J(n).app?.hasOwnProperty("lightTheme") && (J(n).app.lightTheme = e.label)
397
+ }, [B("div", {
398
+ class: "content",
399
+ style: re(`background-color: rgb(${e.value["--ui-primary"]});`)
400
+ }, null, 4)], 10, ye))), 128))])) : R("", !0),
401
+ J(t).mode === "pc" && J(n).menu?.hasOwnProperty("menuMode") ? (G(), z("div", be, " 导航栏模式 ")) : R("", !0),
402
+ J(t).mode === "pc" && J(n).menu?.hasOwnProperty("menuMode") ? (G(), z("div", xe, [
403
+ H(u, {
404
+ text: "侧边栏模式 (含主导航)",
405
+ placement: "bottom",
406
+ delay: 500
407
+ }, {
408
+ default: X(() => [B("div", {
409
+ class: W(["mode mode-side", { active: J(n).menu.menuMode === "side" }]),
410
+ onClick: o[1] ||= (e) => J(n).menu?.hasOwnProperty("menuMode") && (J(n).menu.menuMode = "side")
411
+ }, [...o[30] ||= [B("div", { class: "mode-container" }, null, -1)]], 2)]),
412
+ _: 1
413
+ }),
414
+ H(u, {
415
+ text: "顶部模式",
416
+ placement: "bottom",
417
+ delay: 500
418
+ }, {
419
+ default: X(() => [B("div", {
420
+ class: W(["mode mode-head", { active: J(n).menu.menuMode === "head" }]),
421
+ onClick: o[2] ||= (e) => J(n).menu?.hasOwnProperty("menuMode") && (J(n).menu.menuMode = "head")
422
+ }, [...o[31] ||= [B("div", { class: "mode-container" }, null, -1)]], 2)]),
423
+ _: 1
424
+ }),
425
+ H(u, {
426
+ text: "侧边栏模式 (不含主导航)",
427
+ placement: "bottom",
428
+ delay: 500
429
+ }, {
430
+ default: X(() => [B("div", {
431
+ class: W(["mode mode-single", { active: J(n).menu.menuMode === "single" }]),
432
+ onClick: o[3] ||= (e) => J(n).menu?.hasOwnProperty("menuMode") && (J(n).menu.menuMode = "single")
433
+ }, [...o[32] ||= [B("div", { class: "mode-container" }, null, -1)]], 2)]),
434
+ _: 1
435
+ }),
436
+ H(u, {
437
+ text: "侧边栏精简模式",
438
+ placement: "bottom",
439
+ delay: 500
440
+ }, {
441
+ default: X(() => [B("div", {
442
+ class: W(["mode mode-only-side", { active: J(n).menu.menuMode === "only-side" }]),
443
+ onClick: o[4] ||= (e) => J(n).menu?.hasOwnProperty("menuMode") && (J(n).menu.menuMode = "only-side")
444
+ }, [...o[33] ||= [B("div", { class: "mode-container" }, null, -1)]], 2)]),
445
+ _: 1
446
+ }),
447
+ H(u, {
448
+ text: "顶部精简模式",
449
+ placement: "bottom",
450
+ delay: 500
451
+ }, {
452
+ default: X(() => [B("div", {
453
+ class: W(["mode mode-only-head", { active: J(n).menu.menuMode === "only-head" }]),
454
+ onClick: o[5] ||= (e) => J(n).menu?.hasOwnProperty("menuMode") && (J(n).menu.menuMode = "only-head")
455
+ }, [...o[34] ||= [B("div", { class: "mode-container" }, null, -1)]], 2)]),
456
+ _: 1
457
+ })
458
+ ])) : R("", !0),
459
+ J(t).mode === "pc" && J(n).layout?.hasOwnProperty("widthMode") ? (G(), z("div", Se, " 页宽模式 ")) : R("", !0),
460
+ J(t).mode === "pc" && J(n).layout?.hasOwnProperty("widthMode") ? (G(), z("div", Ce, [
461
+ H(u, {
462
+ text: "自适应",
463
+ placement: "bottom",
464
+ delay: 500
465
+ }, {
466
+ default: X(() => [B("div", {
467
+ class: W(["mode mode-adaption", { active: J(n).layout.widthMode === "adaption" }]),
468
+ onClick: o[6] ||= (e) => J(n).layout?.hasOwnProperty("widthMode") && (J(n).layout.widthMode = "adaption")
469
+ }, [H(J(P), { class: "left" }), H(J(F), { class: "right" })], 2)]),
470
+ _: 1
471
+ }),
472
+ H(u, {
473
+ text: "自适应 (有最小宽度)",
474
+ placement: "bottom",
475
+ delay: 500
476
+ }, {
477
+ default: X(() => [B("div", {
478
+ class: W(["mode mode-adaption-min-width", { active: J(n).layout.widthMode === "adaption-min-width" }]),
479
+ onClick: o[7] ||= (e) => J(n).layout?.hasOwnProperty("widthMode") && (J(n).layout.widthMode = "adaption-min-width")
480
+ }, [H(J(P), { class: "left" }), H(J(F), { class: "right" })], 2)]),
481
+ _: 1
482
+ }),
483
+ H(u, {
484
+ text: "定宽居中",
485
+ placement: "bottom",
486
+ delay: 500
487
+ }, {
488
+ default: X(() => [B("div", {
489
+ class: W(["mode mode-center", { active: J(n).layout.widthMode === "center" }]),
490
+ onClick: o[8] ||= (e) => J(n).layout?.widthMode && (J(n).layout.widthMode = "center")
491
+ }, null, 2)]),
492
+ _: 1
493
+ }),
494
+ H(u, {
495
+ text: "定宽居中 (有最大宽度)",
496
+ placement: "bottom",
497
+ delay: 500
498
+ }, {
499
+ default: X(() => [B("div", {
500
+ class: W(["mode mode-center-max-width", { active: J(n).layout.widthMode === "center-max-width" }]),
501
+ onClick: o[9] ||= (e) => J(n).layout?.widthMode && (J(n).layout.widthMode = "center-max-width")
502
+ }, [H(J(P), { class: "left" }), H(J(F), { class: "right" })], 2)]),
503
+ _: 1
504
+ })
505
+ ])) : R("", !0),
506
+ J(t).settings.mainPage.enableTransition && J(n).mainPage?.hasOwnProperty("enableTransition") ? (G(), z("div", we, " 页面切换动画 ")) : R("", !0),
507
+ J(t).settings.mainPage.enableTransition && J(n).mainPage?.hasOwnProperty("enableTransition") ? (G(), z("div", Te, [H(c, {
508
+ modelValue: J(n).mainPage.enableTransition,
509
+ "onUpdate:modelValue": o[10] ||= (e) => J(n).mainPage.enableTransition = e
510
+ }, null, 8, ["modelValue"])])) : R("", !0),
511
+ J(t).settings.mainPage.enableTransition && J(n).mainPage?.hasOwnProperty("transitionMode") ? (G(), z("div", Ee, [
512
+ H(u, {
513
+ text: "淡入淡出",
514
+ placement: "bottom",
515
+ delay: 500
516
+ }, {
517
+ default: X(() => [B("div", {
518
+ class: W(["mode mode-fade", { active: J(n).mainPage.transitionMode === "fade" }]),
519
+ onClick: o[11] ||= (e) => J(n).mainPage?.hasOwnProperty("transitionMode") && (J(n).mainPage.transitionMode = "fade")
520
+ }, null, 2)]),
521
+ _: 1
522
+ }),
523
+ H(u, {
524
+ text: "向左滑动",
525
+ placement: "bottom",
526
+ delay: 500
527
+ }, {
528
+ default: X(() => [B("div", {
529
+ class: W(["mode mode-slide-left", { active: J(n).mainPage.transitionMode === "slide-left" }]),
530
+ onClick: o[12] ||= (e) => J(n).mainPage?.hasOwnProperty("transitionMode") && (J(n).mainPage.transitionMode = "slide-left")
531
+ }, null, 2)]),
532
+ _: 1
533
+ }),
534
+ H(u, {
535
+ text: "向右滑动",
536
+ placement: "bottom",
537
+ delay: 500
538
+ }, {
539
+ default: X(() => [B("div", {
540
+ class: W(["mode mode-slide-right", { active: J(n).mainPage.transitionMode === "slide-right" }]),
541
+ onClick: o[13] ||= (e) => J(n).mainPage?.hasOwnProperty("transitionMode") && (J(n).mainPage.transitionMode = "slide-right")
542
+ }, null, 2)]),
543
+ _: 1
544
+ }),
545
+ H(u, {
546
+ text: "向上滑动",
547
+ placement: "bottom",
548
+ delay: 500
549
+ }, {
550
+ default: X(() => [B("div", {
551
+ class: W(["mode mode-slide-top", { active: J(n).mainPage.transitionMode === "slide-top" }]),
552
+ onClick: o[14] ||= (e) => J(n).mainPage?.hasOwnProperty("transitionMode") && (J(n).mainPage.transitionMode = "slide-top")
553
+ }, null, 2)]),
554
+ _: 1
555
+ }),
556
+ H(u, {
557
+ text: "向下滑动",
558
+ placement: "bottom",
559
+ delay: 500
560
+ }, {
561
+ default: X(() => [B("div", {
562
+ class: W(["mode mode-slide-bottom", { active: J(n).mainPage.transitionMode === "slide-bottom" }]),
563
+ onClick: o[15] ||= (e) => J(n).mainPage?.hasOwnProperty("transitionMode") && (J(n).mainPage.transitionMode = "slide-bottom")
564
+ }, null, 2)]),
565
+ _: 1
566
+ })
567
+ ])) : R("", !0),
568
+ J(n).menu?.hasOwnProperty("switchMainMenuAndPageJump") || J(n).menu?.hasOwnProperty("subMenuOnlyOneHide") || J(n).menu?.hasOwnProperty("subMenuUniqueOpened") || J(n).menu?.hasOwnProperty("subMenuCollapse") || J(n).menu?.hasOwnProperty("enableSubMenuCollapseButton") ? (G(), z("div", De, " 导航栏 ")) : R("", !0),
569
+ J(n).menu?.hasOwnProperty("subMenuUniqueOpened") ? (G(), z("div", Oe, [B("div", ke, [o[35] ||= V(" 次导航保持展开一个 ", -1), H(u, { text: "开启该功能后,次导航只保持单个菜单的展开" }, {
570
+ default: X(() => [H(J(N))]),
571
+ _: 1
572
+ })]), H(c, {
573
+ modelValue: J(n).menu.subMenuUniqueOpened,
574
+ "onUpdate:modelValue": o[16] ||= (e) => J(n).menu.subMenuUniqueOpened = e,
575
+ disabled: ["only-side", "only-head"].includes(J(n).menu?.menuMode ?? J(t).settings.menu.menuMode)
576
+ }, null, 8, ["modelValue", "disabled"])])) : R("", !0),
577
+ J(n).menu?.hasOwnProperty("subMenuCollapse") ? (G(), z("div", Ae, [o[36] ||= B("div", { class: "label" }, " 次导航是否折叠 ", -1), H(c, {
578
+ modelValue: J(n).menu.subMenuCollapse,
579
+ "onUpdate:modelValue": o[17] ||= (e) => J(n).menu.subMenuCollapse = e,
580
+ disabled: ["only-side", "only-head"].includes(J(n).menu?.menuMode ?? J(t).settings.menu.menuMode)
581
+ }, null, 8, ["modelValue", "disabled"])])) : R("", !0),
582
+ J(t).mode === "pc" && J(t).settings.menu.enableSubMenuCollapseButton && J(n).menu?.hasOwnProperty("enableSubMenuCollapseButton") ? (G(), z("div", je, [o[37] ||= B("div", { class: "label" }, " 显示次导航折叠按钮 ", -1), H(c, {
583
+ modelValue: J(n).menu.enableSubMenuCollapseButton,
584
+ "onUpdate:modelValue": o[18] ||= (e) => J(n).menu.enableSubMenuCollapseButton = e,
585
+ disabled: ["only-side", "only-head"].includes(J(n).menu?.menuMode ?? J(t).settings.menu.menuMode)
586
+ }, null, 8, ["modelValue", "disabled"])])) : R("", !0),
587
+ J(n).menu?.hasOwnProperty("isRounded") ? (G(), z("div", Me, [o[38] ||= B("div", { class: "label" }, " 是否圆角 ", -1), H(c, {
588
+ modelValue: J(n).menu.isRounded,
589
+ "onUpdate:modelValue": o[19] ||= (e) => J(n).menu.isRounded = e
590
+ }, null, 8, ["modelValue"])])) : R("", !0),
591
+ (J(n).menu?.menuMode ?? J(t).settings.menu.menuMode) !== "single" && J(n).menu?.hasOwnProperty("menuActiveStyle") ? (G(), z("div", Ne, [o[39] ||= B("div", { class: "label" }, " 激活风格 ", -1), H(d, {
592
+ modelValue: J(n).menu.menuActiveStyle,
593
+ "onUpdate:modelValue": o[20] ||= (e) => J(n).menu.menuActiveStyle = e,
594
+ options: [
595
+ {
596
+ icon: "i-jam-stop-sign",
597
+ value: ""
598
+ },
599
+ {
600
+ icon: ["head", "only-head"].includes(J(n).menu?.menuMode ?? J(t).settings.menu.menuMode) ? "i-ep-caret-top" : "i-ep-caret-left",
601
+ value: "arrow"
602
+ },
603
+ {
604
+ icon: ["side", "only-side"].includes(J(n).menu?.menuMode ?? J(t).settings.menu.menuMode) ? "i-tabler-minus-vertical" : "i-tabler-minus",
605
+ value: "line"
606
+ },
607
+ {
608
+ icon: "i-icon-park-outline-dot",
609
+ value: "dot"
610
+ }
611
+ ]
612
+ }, null, 8, ["modelValue", "options"])])) : R("", !0),
613
+ J(n).topbar?.hasOwnProperty("mode") || J(n).topbar?.hasOwnProperty("switchTabbarAndToolbar") ? (G(), z("div", Pe, " 顶栏 ")) : R("", !0),
614
+ J(n).topbar?.hasOwnProperty("switchTabbarAndToolbar") ? (G(), z("div", Fe, [B("div", Ie, [o[40] ||= V(" 展示切换 ", -1), H(u, { text: "切换标签栏和工具栏的展示顺序" }, {
615
+ default: X(() => [H(J(N))]),
616
+ _: 1
617
+ })]), H(c, {
618
+ modelValue: J(n).topbar.switchTabbarAndToolbar,
619
+ "onUpdate:modelValue": o[21] ||= (e) => J(n).topbar.switchTabbarAndToolbar = e,
620
+ disabled: !J(n).tabbar?.enable
621
+ }, null, 8, ["modelValue", "disabled"])])) : R("", !0),
622
+ J(t).settings.tabbar.enable && J(n).tabbar?.hasOwnProperty("enable") || J(n).tabbar?.hasOwnProperty("style") || J(n).tabbar?.hasOwnProperty("enableIcon") || J(n).tabbar?.hasOwnProperty("mergeTabsBy") ? (G(), z("div", Le, " 标签栏 ")) : R("", !0),
623
+ J(t).settings.tabbar.enable && J(n).tabbar?.hasOwnProperty("enable") ? (G(), z("div", Re, [o[41] ||= B("div", { class: "label" }, " 是否启用 ", -1), H(c, {
624
+ modelValue: J(n).tabbar.enable,
625
+ "onUpdate:modelValue": o[22] ||= (e) => J(n).tabbar.enable = e
626
+ }, null, 8, ["modelValue"])])) : R("", !0),
627
+ J(t).settings.tabbar.enable && J(n).tabbar?.hasOwnProperty("style") ? (G(), z("div", ze, [o[42] ||= B("div", { class: "label" }, " 风格 ", -1), H(d, {
628
+ modelValue: J(n).tabbar.style,
629
+ "onUpdate:modelValue": o[23] ||= (e) => J(n).tabbar.style = e,
630
+ options: [
631
+ {
632
+ label: "时尚",
633
+ value: "fashion"
634
+ },
635
+ {
636
+ label: "卡片",
637
+ value: "card"
638
+ },
639
+ {
640
+ label: "方块",
641
+ value: "square"
642
+ }
643
+ ],
644
+ disabled: !(J(n).tabbar?.enable ?? J(t).settings.tabbar.enable)
645
+ }, null, 8, ["modelValue", "disabled"])])) : R("", !0),
646
+ J(t).settings.tabbar.enable && J(n).tabbar?.hasOwnProperty("enableIcon") ? (G(), z("div", Be, [o[43] ||= B("div", { class: "label" }, " 是否显示图标 ", -1), H(c, {
647
+ modelValue: J(n).tabbar.enableIcon,
648
+ "onUpdate:modelValue": o[24] ||= (e) => J(n).tabbar.enableIcon = e,
649
+ disabled: !(J(n).tabbar?.enable ?? J(t).settings.tabbar.enable)
650
+ }, null, 8, ["modelValue", "disabled"])])) : R("", !0),
651
+ J(t).settings.tabbar.enable && J(n).tabbar?.hasOwnProperty("enableMemory") ? (G(), z("div", Ve, [B("div", He, [o[44] ||= V(" 是否启用记忆功能 ", -1), H(u, { text: "开启该功能后,非固定和非常驻的标签页将在本次会话窗口中始终存在,刷新浏览器或重新登录时不会丢失" }, {
652
+ default: X(() => [H(J(N))]),
653
+ _: 1
654
+ })]), H(c, {
655
+ modelValue: J(n).tabbar.enableMemory,
656
+ "onUpdate:modelValue": o[25] ||= (e) => J(n).tabbar.enableMemory = e,
657
+ disabled: !(J(n).tabbar?.enable ?? J(t).settings.tabbar.enable)
658
+ }, null, 8, ["modelValue", "disabled"])])) : R("", !0),
659
+ J(t).mode === "pc" && J(t).settings.breadcrumb.enable && (J(n).breadcrumb?.hasOwnProperty("enable") || J(n).breadcrumb?.hasOwnProperty("style") || J(n).breadcrumb?.hasOwnProperty("enableMainMenu")) ? (G(), z("div", Ue, " 面包屑导航 ")) : R("", !0),
660
+ J(t).mode === "pc" && J(t).settings.breadcrumb.enable && J(n).breadcrumb?.hasOwnProperty("enable") ? (G(), z("div", We, [o[45] ||= B("div", { class: "label" }, " 是否启用 ", -1), H(c, {
661
+ modelValue: J(n).breadcrumb.enable,
662
+ "onUpdate:modelValue": o[26] ||= (e) => J(n).breadcrumb.enable = e
663
+ }, null, 8, ["modelValue"])])) : R("", !0),
664
+ J(t).mode === "pc" && J(t).settings.breadcrumb.enable && J(n).breadcrumb?.hasOwnProperty("style") ? (G(), z("div", Ge, [o[46] ||= B("div", { class: "label" }, " 风格 ", -1), H(d, {
665
+ modelValue: J(n).breadcrumb.style,
666
+ "onUpdate:modelValue": o[27] ||= (e) => J(n).breadcrumb.style = e,
667
+ options: [{
668
+ label: "默认",
669
+ value: ""
670
+ }, {
671
+ label: "现代",
672
+ value: "modern"
673
+ }],
674
+ disabled: !(J(n).breadcrumb?.enable ?? J(t).settings.breadcrumb.enable)
675
+ }, null, 8, ["modelValue", "disabled"])])) : R("", !0),
676
+ J(t).mode === "pc" && J(t).settings.breadcrumb.enable && J(t).settings.breadcrumb.enableMainMenu && J(n).breadcrumb?.hasOwnProperty("enableMainMenu") ? (G(), z("div", Ke, [o[47] ||= B("div", { class: "label" }, " 是否显示主导航 ", -1), H(c, {
677
+ modelValue: J(n).breadcrumb.enableMainMenu,
678
+ "onUpdate:modelValue": o[28] ||= (e) => J(n).breadcrumb.enableMainMenu = e,
679
+ disabled: ["single"].includes(J(n).menu?.menuMode ?? J(t).settings.menu.menuMode)
680
+ }, null, 8, ["modelValue", "disabled"])])) : R("", !0),
681
+ J(n).app?.hasOwnProperty("enableProgress") ? (G(), z("div", qe, " 其它 ")) : R("", !0),
682
+ J(t).settings.app.enableProgress && J(n).app?.hasOwnProperty("enableProgress") ? (G(), z("div", Je, [B("div", Ye, [o[48] ||= V(" 载入进度条 ", -1), H(u, { text: "该功能开启时,跳转路由会看到页面顶部有进度条" }, {
683
+ default: X(() => [H(J(N))]),
684
+ _: 1
685
+ })]), H(c, {
686
+ modelValue: J(n).app.enableProgress,
687
+ "onUpdate:modelValue": o[29] ||= (e) => J(n).app.enableProgress = e
688
+ }, null, 8, ["modelValue"])])) : R("", !0),
689
+ B("div", Xe, [H(f, {
690
+ "w-full": "",
691
+ type: "primary",
692
+ size: "large",
693
+ onClick: a
694
+ }, {
695
+ default: X(() => [...o[49] ||= [V(" 还原系统设置 ", -1)]]),
696
+ _: 1
697
+ })])
698
+ ]);
699
+ };
700
+ }
701
+ }), [["__scopeId", "data-v-c97d99bc"]]);
702
+ //#endregion
703
+ export { Ze as default };