@pubinfo/core 2.1.10-beta.2 → 2.1.11
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/{AppSetting-Dl8pVkN4.js → AppSetting-7jlhUzze.js} +42 -42
- package/dist/{HButton-CzYSwI6a.js → HButton-Dt6qGhhR.js} +7 -7
- package/dist/{HCheckList-CHR-lWIq.js → HCheckList-cPBgATmv.js} +15 -15
- package/dist/{HDivider-CXS9rl4C.js → HDivider-BwvBr5OE.js} +3 -3
- package/dist/{HInput-CSVwTg1Q.js → HInput-KJ5nFBpF.js} +10 -10
- package/dist/HSlideover-DVQDc9q6.js +3151 -0
- package/dist/{HToggle-C_iVIpxv.js → HToggle-Ce_2-yhZ.js} +8 -8
- package/dist/{HTooltip-BHBHfrCD.js → HTooltip-DjAU-Evn.js} +6 -6
- package/dist/PreferencesContent-BAIH81yS.js +701 -0
- package/dist/SettingBreadcrumb-O9-PhAFT.js +45 -0
- package/dist/SettingCopyright-DIKsWTuf.js +45 -0
- package/dist/{SettingEnableTransition-BBH52KKl.js → SettingEnableTransition-61O7W00b.js} +19 -19
- package/dist/SettingHome-Sv65TPH8.js +31 -0
- package/dist/SettingMenu-BvwJOUZV.js +111 -0
- package/dist/{SettingMode-BwhhUYlz.js → SettingMode-B8H_eQc8.js} +14 -14
- package/dist/SettingNavSearch-BHsmYBA7.js +31 -0
- package/dist/SettingOther-CyyNnaDX.js +48 -0
- package/dist/SettingPage-B82lW41P.js +22 -0
- package/dist/{SettingTabbar-DuqQVRnz.js → SettingTabbar-Bky2xvH-.js} +58 -58
- package/dist/{SettingThemes-Doo6Ax3u.js → SettingThemes-CkdzS1xt.js} +44 -44
- package/dist/SettingToolbar-CD4qns1J.js +50 -0
- package/dist/SettingTopbar-1shjoe3s.js +49 -0
- package/dist/{SettingWidthMode-VaN0CrBa.js → SettingWidthMode-DlG6lXjA.js} +14 -14
- package/dist/auth-BLGKOyc5.js +4432 -0
- package/dist/built-in/layout-component/composables/useContext.d.ts +1 -0
- package/dist/{change-organization-OjxZhWST.js → change-organization-hsqeSzDu.js} +38 -38
- package/dist/{change-password-B6kO54-d.js → change-password-EtccCDRX.js} +73 -73
- package/dist/{chunk-EsrJ1IKw.js → chunk-CD4vhpVs.js} +3 -3
- package/dist/{components-DVIyiEVI.js → components-DFNyaAb9.js} +1584 -1584
- package/dist/core/request.d.ts +1 -1
- package/dist/core-DJIGzMMM.js +4885 -0
- package/dist/dist-7OjQvlya.js +468 -0
- package/dist/engine-oniguruma-CaNXwGSv.js +243 -0
- package/dist/features/settings/index.d.ts +90 -1
- package/dist/{form-EQ9eL9hv.js → form-C3VHofnN.js} +923 -443
- package/dist/index.js +4418 -3895
- package/dist/{modal-CSWipFvB.js → modal-Bl5xHbxa.js} +15510 -15790
- package/dist/{not-found-DBe-djEg.js → not-found-BCjngLzt.js} +19 -19
- package/dist/{not-permission-DQzWCpOK.js → not-permission-C26vTMvf.js} +19 -19
- package/dist/{profile-DJ3gpjsS.js → profile-BVXIFuBG.js} +3340 -3277
- package/dist/{question-line-BKVlJGUb.js → question-line-BG__Ycfv.js} +2 -2
- package/dist/{reload-DAR8dVYw.js → reload-DHx5Vwus.js} +4 -4
- package/dist/{right-VKgVtqD5.js → right-BxBlFUwj.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/{tree-select-CTjWj5WT.js → tree-select-B8cTcGLa.js} +2575 -2256
- package/dist/watchDiff-CPZFtaOC.js +655 -0
- package/package.json +41 -41
- package/src/built-in/layout-component/components/Header/HeaderMenu.vue +2 -3
- package/src/built-in/layout-component/components/Menu/item.vue +2 -2
- package/src/built-in/layout-component/components/Menu/sub.vue +20 -1
- package/src/built-in/layout-component/composables/useContext.ts +1 -0
- package/src/built-in/layout-component/composables/useLayoutVisible.ts +1 -1
- package/src/built-in/layout-component/provider.ts +5 -0
- package/src/built-in/system-info/components/SystemInfo.vue +68 -66
- package/src/built-in/system-info/index.ts +4 -4
- package/src/core/ctx.ts +2 -2
- package/src/core/request.ts +1 -1
- package/src/features/components/PubinfoApp/index.vue +1 -0
- package/types/auto-imports.d.ts +63 -63
- package/types/components.d.ts +45 -1
- package/dist/HSlideover-Bc6OHPHe.js +0 -1695
- package/dist/HeaderFullMenu-BRhGliRJ.js +0 -6
- package/dist/HeaderFullMenu-DCF-gTCZ.js +0 -249
- package/dist/HeaderThinMenu-B_7vLcQX.js +0 -6
- package/dist/HeaderThinMenu-PA12XAvb.js +0 -437
- package/dist/PreferencesContent-cll4nwwl.js +0 -695
- package/dist/SettingBreadcrumb-BvSc7VUo.js +0 -45
- package/dist/SettingCopyright-DcWLKM5d.js +0 -45
- package/dist/SettingHome-Cd43oJmB.js +0 -31
- package/dist/SettingMenu-CJsN4F1l.js +0 -111
- package/dist/SettingNavSearch-BhHUWem3.js +0 -31
- package/dist/SettingOther-CDY0jSVT.js +0 -48
- package/dist/SettingPage-B0WNvUlj.js +0 -22
- package/dist/SettingToolbar-CHV_dVJ9.js +0 -50
- package/dist/SettingTopbar-CF1K_XIt.js +0 -49
- package/dist/auth-CPSkJwBz.js +0 -3968
- package/dist/core-Bg2PEcZK.js +0 -4884
- package/dist/dist-DAb-7mqe.js +0 -468
- package/dist/engine-oniguruma-CUfGsBrF.js +0 -243
- package/dist/overlayscrollbars-vue-BOGU2FK-.js +0 -1436
- package/dist/pick-C42gkI1h.js +0 -10
- package/dist/watchDiff-C4eGkl9e.js +0 -397
- /package/dist/{_plugin-vue_export-helper-DaPiLSxE.js → _plugin-vue_export-helper-sUTDUeGO.js} +0 -0
- /package/dist/{json-S7wVLDnW.js → json-Bu_Zprin.js} +0 -0
- /package/dist/{useContext-D6pJCZez.js → useContext-DLtu9F7E.js} +0 -0
- /package/dist/{vitesse-dark-BsnBIHGG.js → vitesse-dark-CTe40QT_.js} +0 -0
- /package/dist/{vitesse-light-Cs_6DF7j.js → vitesse-light-BWXC_WeB.js} +0 -0
- /package/dist/{wasm-EvDQvzqp.js → wasm-2zDVqo-C.js} +0 -0
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
import { $n as ExclamationCircleFilled, $t as withInstall, Cn as _extends, D as getTransitionProps, Hn as InfoCircleFilled, Qn as ExclamationCircleOutlined, Vn as InfoCircleOutlined, X as cloneElement, Zt as tuple, a as button_default, cr as CloseCircleFilled, dr as CheckCircleOutlined, et as PropTypes, fr as CheckCircleFilled, lt as merge, mn as isValidElement, mt as resetComponent, n as api, or as CloseOutlined, rt as useConfigInject_default, sr as CloseCircleOutlined, ut as genComponentStyleHook, wn as _objectSpread2, yn as classNames } from "./modal-Bl5xHbxa.js";
|
|
2
|
+
import { a as hasIn, n as basePickBy, s as cloneDeep, t as watchDiffObject, v as flatRest } from "./watchDiff-CPZFtaOC.js";
|
|
3
|
+
import "./tree-select-B8cTcGLa.js";
|
|
4
|
+
import "./components-DFNyaAb9.js";
|
|
5
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-sUTDUeGO.js";
|
|
6
|
+
import { n as useContext } from "./useContext-DLtu9F7E.js";
|
|
7
|
+
import { t as HTooltip_default } from "./HTooltip-DjAU-Evn.js";
|
|
8
|
+
import { t as HCheckList_default } from "./HCheckList-cPBgATmv.js";
|
|
9
|
+
import { t as HToggle_default } from "./HToggle-Ce_2-yhZ.js";
|
|
10
|
+
import { t as question_line_default } from "./question-line-BG__Ycfv.js";
|
|
11
|
+
import { n as back_default, t as right_default } from "./right-BxBlFUwj.js";
|
|
12
|
+
import { Fragment, Transition, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, normalizeClass, normalizeStyle, openBlock, ref, renderList, resolveComponent, shallowRef, unref, vShow, withCtx, withDirectives } from "vue";
|
|
13
|
+
import { getThemes } from "@pubinfo/config/themes";
|
|
14
|
+
function basePick(e, t) {
|
|
15
|
+
return basePickBy(e, t, function(t, n) {
|
|
16
|
+
return hasIn(e, n);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var pick = flatRest(function(e, t) {
|
|
20
|
+
return e == null ? {} : basePick(e, t);
|
|
21
|
+
}), genAlertTypeStyle = (e, t, n, r, i) => ({
|
|
22
|
+
backgroundColor: e,
|
|
23
|
+
border: `${r.lineWidth}px ${r.lineType} ${t}`,
|
|
24
|
+
[`${i}-icon`]: { color: n }
|
|
25
|
+
});
|
|
26
|
+
const genBaseStyle = (e) => {
|
|
27
|
+
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;
|
|
28
|
+
return {
|
|
29
|
+
[t]: _extends(_extends({}, resetComponent(e)), {
|
|
30
|
+
position: "relative",
|
|
31
|
+
display: "flex",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
padding: `${p}px ${m}px`,
|
|
34
|
+
wordWrap: "break-word",
|
|
35
|
+
borderRadius: l,
|
|
36
|
+
[`&${t}-rtl`]: { direction: "rtl" },
|
|
37
|
+
[`${t}-content`]: {
|
|
38
|
+
flex: 1,
|
|
39
|
+
minWidth: 0
|
|
40
|
+
},
|
|
41
|
+
[`${t}-icon`]: {
|
|
42
|
+
marginInlineEnd: i,
|
|
43
|
+
lineHeight: 0
|
|
44
|
+
},
|
|
45
|
+
"&-description": {
|
|
46
|
+
display: "none",
|
|
47
|
+
fontSize: o,
|
|
48
|
+
lineHeight: c
|
|
49
|
+
},
|
|
50
|
+
"&-message": { color: f },
|
|
51
|
+
[`&${t}-motion-leave`]: {
|
|
52
|
+
overflow: "hidden",
|
|
53
|
+
opacity: 1,
|
|
54
|
+
transition: `max-height ${r} ${u}, opacity ${r} ${u},
|
|
55
|
+
padding-top ${r} ${u}, padding-bottom ${r} ${u},
|
|
56
|
+
margin-bottom ${r} ${u}`
|
|
57
|
+
},
|
|
58
|
+
[`&${t}-motion-leave-active`]: {
|
|
59
|
+
maxHeight: 0,
|
|
60
|
+
marginBottom: "0 !important",
|
|
61
|
+
paddingTop: 0,
|
|
62
|
+
paddingBottom: 0,
|
|
63
|
+
opacity: 0
|
|
64
|
+
}
|
|
65
|
+
}),
|
|
66
|
+
[`${t}-with-description`]: {
|
|
67
|
+
alignItems: "flex-start",
|
|
68
|
+
paddingInline: _,
|
|
69
|
+
paddingBlock: h,
|
|
70
|
+
[`${t}-icon`]: {
|
|
71
|
+
marginInlineEnd: a,
|
|
72
|
+
fontSize: d,
|
|
73
|
+
lineHeight: 0
|
|
74
|
+
},
|
|
75
|
+
[`${t}-message`]: {
|
|
76
|
+
display: "block",
|
|
77
|
+
marginBottom: i,
|
|
78
|
+
color: f,
|
|
79
|
+
fontSize: s
|
|
80
|
+
},
|
|
81
|
+
[`${t}-description`]: { display: "block" }
|
|
82
|
+
},
|
|
83
|
+
[`${t}-banner`]: {
|
|
84
|
+
marginBottom: 0,
|
|
85
|
+
border: "0 !important",
|
|
86
|
+
borderRadius: 0
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}, genTypeStyle = (e) => {
|
|
90
|
+
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;
|
|
91
|
+
return { [t]: {
|
|
92
|
+
"&-success": genAlertTypeStyle(a, i, r, e, t),
|
|
93
|
+
"&-info": genAlertTypeStyle(m, p, f, e, t),
|
|
94
|
+
"&-warning": genAlertTypeStyle(c, s, o, e, t),
|
|
95
|
+
"&-error": _extends(_extends({}, genAlertTypeStyle(d, u, l, e, t)), { [`${t}-description > pre`]: {
|
|
96
|
+
margin: 0,
|
|
97
|
+
padding: 0
|
|
98
|
+
} })
|
|
99
|
+
} };
|
|
100
|
+
}, genActionStyle = (e) => {
|
|
101
|
+
let { componentCls: t, iconCls: n, motionDurationMid: r, marginXS: i, fontSizeIcon: a, colorIcon: o, colorIconHover: s } = e;
|
|
102
|
+
return { [t]: {
|
|
103
|
+
"&-action": { marginInlineStart: i },
|
|
104
|
+
[`${t}-close-icon`]: {
|
|
105
|
+
marginInlineStart: i,
|
|
106
|
+
padding: 0,
|
|
107
|
+
overflow: "hidden",
|
|
108
|
+
fontSize: a,
|
|
109
|
+
lineHeight: `${a}px`,
|
|
110
|
+
backgroundColor: "transparent",
|
|
111
|
+
border: "none",
|
|
112
|
+
outline: "none",
|
|
113
|
+
cursor: "pointer",
|
|
114
|
+
[`${n}-close`]: {
|
|
115
|
+
color: o,
|
|
116
|
+
transition: `color ${r}`,
|
|
117
|
+
"&:hover": { color: s }
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"&-close-text": {
|
|
121
|
+
color: o,
|
|
122
|
+
transition: `color ${r}`,
|
|
123
|
+
"&:hover": { color: s }
|
|
124
|
+
}
|
|
125
|
+
} };
|
|
126
|
+
}, genAlertStyle = (e) => [
|
|
127
|
+
genBaseStyle(e),
|
|
128
|
+
genTypeStyle(e),
|
|
129
|
+
genActionStyle(e)
|
|
130
|
+
];
|
|
131
|
+
var style_default = genComponentStyleHook("Alert", (e) => {
|
|
132
|
+
let { fontSizeHeading3: t } = e;
|
|
133
|
+
return [genAlertStyle(merge(e, {
|
|
134
|
+
alertIconSizeLG: t,
|
|
135
|
+
alertPaddingHorizontal: 12
|
|
136
|
+
}))];
|
|
137
|
+
}), iconMapFilled = {
|
|
138
|
+
success: CheckCircleFilled,
|
|
139
|
+
info: InfoCircleFilled,
|
|
140
|
+
error: CloseCircleFilled,
|
|
141
|
+
warning: ExclamationCircleFilled
|
|
142
|
+
}, iconMapOutlined = {
|
|
143
|
+
success: CheckCircleOutlined,
|
|
144
|
+
info: InfoCircleOutlined,
|
|
145
|
+
error: CloseCircleOutlined,
|
|
146
|
+
warning: ExclamationCircleOutlined
|
|
147
|
+
}, AlertTypes = tuple("success", "info", "warning", "error"), alert_default = withInstall(defineComponent({
|
|
148
|
+
compatConfig: { MODE: 3 },
|
|
149
|
+
name: "AAlert",
|
|
150
|
+
inheritAttrs: !1,
|
|
151
|
+
props: {
|
|
152
|
+
type: PropTypes.oneOf(AlertTypes),
|
|
153
|
+
closable: {
|
|
154
|
+
type: Boolean,
|
|
155
|
+
default: void 0
|
|
156
|
+
},
|
|
157
|
+
closeText: PropTypes.any,
|
|
158
|
+
message: PropTypes.any,
|
|
159
|
+
description: PropTypes.any,
|
|
160
|
+
afterClose: Function,
|
|
161
|
+
showIcon: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default: void 0
|
|
164
|
+
},
|
|
165
|
+
prefixCls: String,
|
|
166
|
+
banner: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
default: void 0
|
|
169
|
+
},
|
|
170
|
+
icon: PropTypes.any,
|
|
171
|
+
closeIcon: PropTypes.any,
|
|
172
|
+
onClose: Function
|
|
173
|
+
},
|
|
174
|
+
setup(e, t) {
|
|
175
|
+
let { slots: n, emit: i, attrs: a, expose: o } = t, { prefixCls: c, direction: l } = useConfigInject_default("alert", e), [u, d] = style_default(c), f = shallowRef(!1), p = shallowRef(!1), m = shallowRef(), g = (e) => {
|
|
176
|
+
e.preventDefault();
|
|
177
|
+
let t = m.value;
|
|
178
|
+
t.style.height = `${t.offsetHeight}px`, t.style.height = `${t.offsetHeight}px`, f.value = !0, i("close", e);
|
|
179
|
+
}, _ = () => {
|
|
180
|
+
var t;
|
|
181
|
+
f.value = !1, p.value = !0, (t = e.afterClose) == null || t.call(e);
|
|
182
|
+
}, y = computed(() => {
|
|
183
|
+
let { type: t } = e;
|
|
184
|
+
return t === void 0 ? e.banner ? "warning" : "info" : t;
|
|
185
|
+
});
|
|
186
|
+
o({ animationEnd: _ });
|
|
187
|
+
let b = shallowRef({});
|
|
188
|
+
return () => {
|
|
189
|
+
let { banner: t, closeIcon: i = n.closeIcon?.call(n) } = e, { closable: o, showIcon: v } = e, x = e.closeText ?? n.closeText?.call(n), S = e.description ?? n.description?.call(n), C = e.message ?? n.message?.call(n), w = e.icon ?? n.icon?.call(n), T = n.action?.call(n);
|
|
190
|
+
v = t && v === void 0 ? !0 : v;
|
|
191
|
+
let E = (S ? iconMapOutlined : iconMapFilled)[y.value] || null;
|
|
192
|
+
x && (o = !0);
|
|
193
|
+
let D = c.value, O = classNames(D, {
|
|
194
|
+
[`${D}-${y.value}`]: !0,
|
|
195
|
+
[`${D}-closing`]: f.value,
|
|
196
|
+
[`${D}-with-description`]: !!S,
|
|
197
|
+
[`${D}-no-icon`]: !v,
|
|
198
|
+
[`${D}-banner`]: !!t,
|
|
199
|
+
[`${D}-closable`]: o,
|
|
200
|
+
[`${D}-rtl`]: l.value === "rtl",
|
|
201
|
+
[d.value]: !0
|
|
202
|
+
}), k = o ? createVNode("button", {
|
|
203
|
+
type: "button",
|
|
204
|
+
onClick: g,
|
|
205
|
+
class: `${D}-close-icon`,
|
|
206
|
+
tabindex: 0
|
|
207
|
+
}, [x ? createVNode("span", { class: `${D}-close-text` }, [x]) : i === void 0 ? createVNode(CloseOutlined, null, null) : i]) : null, A = w && (isValidElement(w) ? cloneElement(w, { class: `${D}-icon` }) : createVNode("span", { class: `${D}-icon` }, [w])) || createVNode(E, { class: `${D}-icon` }, null), j = getTransitionProps(`${D}-motion`, {
|
|
208
|
+
appear: !1,
|
|
209
|
+
css: !0,
|
|
210
|
+
onAfterLeave: _,
|
|
211
|
+
onBeforeLeave: (e) => {
|
|
212
|
+
e.style.maxHeight = `${e.offsetHeight}px`;
|
|
213
|
+
},
|
|
214
|
+
onLeave: (e) => {
|
|
215
|
+
e.style.maxHeight = "0px";
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
return u(p.value ? null : createVNode(Transition, j, { default: () => [withDirectives(createVNode("div", _objectSpread2(_objectSpread2({ role: "alert" }, a), {}, {
|
|
219
|
+
style: [a.style, b.value],
|
|
220
|
+
class: [a.class, O],
|
|
221
|
+
"data-show": !f.value,
|
|
222
|
+
ref: m
|
|
223
|
+
}), [
|
|
224
|
+
v ? A : null,
|
|
225
|
+
createVNode("div", { class: `${D}-content` }, [C ? createVNode("div", { class: `${D}-message` }, [C]) : null, S ? createVNode("div", { class: `${D}-description` }, [S]) : null]),
|
|
226
|
+
T ? createVNode("div", { class: `${D}-action` }, [T]) : null,
|
|
227
|
+
k
|
|
228
|
+
]), [[vShow, !f.value]])] }));
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
})), _hoisted_1 = {
|
|
232
|
+
key: 0,
|
|
233
|
+
class: "divider"
|
|
234
|
+
}, _hoisted_2 = {
|
|
235
|
+
key: 1,
|
|
236
|
+
class: "flex items-center justify-center pb-4"
|
|
237
|
+
}, _hoisted_3 = {
|
|
238
|
+
key: 2,
|
|
239
|
+
class: "themes"
|
|
240
|
+
}, _hoisted_4 = ["onClick"], _hoisted_5 = {
|
|
241
|
+
key: 3,
|
|
242
|
+
class: "divider"
|
|
243
|
+
}, _hoisted_6 = {
|
|
244
|
+
key: 4,
|
|
245
|
+
class: "menu-mode"
|
|
246
|
+
}, _hoisted_7 = {
|
|
247
|
+
key: 5,
|
|
248
|
+
class: "divider"
|
|
249
|
+
}, _hoisted_8 = {
|
|
250
|
+
key: 6,
|
|
251
|
+
class: "app-width-mode"
|
|
252
|
+
}, _hoisted_9 = {
|
|
253
|
+
key: 7,
|
|
254
|
+
class: "divider"
|
|
255
|
+
}, _hoisted_10 = {
|
|
256
|
+
key: 8,
|
|
257
|
+
class: "flex items-center justify-center pb-4"
|
|
258
|
+
}, _hoisted_11 = {
|
|
259
|
+
key: 9,
|
|
260
|
+
class: "transition-mode"
|
|
261
|
+
}, _hoisted_12 = {
|
|
262
|
+
key: 10,
|
|
263
|
+
class: "divider"
|
|
264
|
+
}, _hoisted_13 = {
|
|
265
|
+
key: 11,
|
|
266
|
+
class: "setting-item"
|
|
267
|
+
}, _hoisted_14 = { class: "label" }, _hoisted_15 = {
|
|
268
|
+
key: 12,
|
|
269
|
+
class: "setting-item"
|
|
270
|
+
}, _hoisted_16 = {
|
|
271
|
+
key: 13,
|
|
272
|
+
class: "setting-item"
|
|
273
|
+
}, _hoisted_17 = {
|
|
274
|
+
key: 14,
|
|
275
|
+
class: "setting-item"
|
|
276
|
+
}, _hoisted_18 = {
|
|
277
|
+
key: 15,
|
|
278
|
+
class: "setting-item"
|
|
279
|
+
}, _hoisted_19 = {
|
|
280
|
+
key: 16,
|
|
281
|
+
class: "divider"
|
|
282
|
+
}, _hoisted_20 = {
|
|
283
|
+
key: 17,
|
|
284
|
+
class: "setting-item"
|
|
285
|
+
}, _hoisted_21 = { class: "label" }, _hoisted_22 = {
|
|
286
|
+
key: 18,
|
|
287
|
+
class: "divider"
|
|
288
|
+
}, _hoisted_23 = {
|
|
289
|
+
key: 19,
|
|
290
|
+
class: "setting-item"
|
|
291
|
+
}, _hoisted_24 = {
|
|
292
|
+
key: 20,
|
|
293
|
+
class: "setting-item"
|
|
294
|
+
}, _hoisted_25 = {
|
|
295
|
+
key: 21,
|
|
296
|
+
class: "setting-item"
|
|
297
|
+
}, _hoisted_26 = {
|
|
298
|
+
key: 22,
|
|
299
|
+
class: "setting-item"
|
|
300
|
+
}, _hoisted_27 = { class: "label" }, _hoisted_28 = {
|
|
301
|
+
key: 23,
|
|
302
|
+
class: "divider"
|
|
303
|
+
}, _hoisted_29 = {
|
|
304
|
+
key: 24,
|
|
305
|
+
class: "setting-item"
|
|
306
|
+
}, _hoisted_30 = {
|
|
307
|
+
key: 25,
|
|
308
|
+
class: "setting-item"
|
|
309
|
+
}, _hoisted_31 = {
|
|
310
|
+
key: 26,
|
|
311
|
+
class: "setting-item"
|
|
312
|
+
}, _hoisted_32 = {
|
|
313
|
+
key: 27,
|
|
314
|
+
class: "divider"
|
|
315
|
+
}, _hoisted_33 = {
|
|
316
|
+
key: 28,
|
|
317
|
+
class: "setting-item"
|
|
318
|
+
}, _hoisted_34 = { class: "label" }, _hoisted_35 = {
|
|
319
|
+
"w-full": "",
|
|
320
|
+
"h-100px": "",
|
|
321
|
+
flex: "~ center"
|
|
322
|
+
}, PreferencesContent_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
323
|
+
name: "PreferenceContent",
|
|
324
|
+
__name: "PreferencesContent",
|
|
325
|
+
setup(e) {
|
|
326
|
+
let { settingsStore: t } = useContext(), n = ref({
|
|
327
|
+
app: pick(t.settings.app, [
|
|
328
|
+
"colorScheme",
|
|
329
|
+
"lightTheme",
|
|
330
|
+
"darkTheme",
|
|
331
|
+
"enableProgress",
|
|
332
|
+
"enableUserPreferences"
|
|
333
|
+
]),
|
|
334
|
+
menu: pick(t.settings.menu, [
|
|
335
|
+
"menuMode",
|
|
336
|
+
"isRounded",
|
|
337
|
+
"menuActiveStyle",
|
|
338
|
+
"subMenuUniqueOpened",
|
|
339
|
+
"subMenuCollapse",
|
|
340
|
+
"enableSubMenuCollapseButton"
|
|
341
|
+
]),
|
|
342
|
+
layout: pick(t.settings.layout, ["widthMode"]),
|
|
343
|
+
mainPage: pick(t.settings.mainPage, ["enableTransition", "transitionMode"]),
|
|
344
|
+
topbar: pick(t.settings.topbar, ["mode", "switchTabbarAndToolbar"]),
|
|
345
|
+
tabbar: pick(t.settings.tabbar, [
|
|
346
|
+
"enable",
|
|
347
|
+
"style",
|
|
348
|
+
"enableIcon",
|
|
349
|
+
"mergeTabsBy",
|
|
350
|
+
"enableMemory"
|
|
351
|
+
]),
|
|
352
|
+
breadcrumb: pick(t.settings.breadcrumb, [
|
|
353
|
+
"enable",
|
|
354
|
+
"style",
|
|
355
|
+
"enableMainMenu"
|
|
356
|
+
])
|
|
357
|
+
}), r = computed({
|
|
358
|
+
get() {
|
|
359
|
+
return n.value.app?.colorScheme === "dark";
|
|
360
|
+
},
|
|
361
|
+
set(e) {
|
|
362
|
+
n.value.app?.colorScheme && (n.value.app.colorScheme = e ? "dark" : "light");
|
|
363
|
+
}
|
|
364
|
+
}), i = computed(() => {
|
|
365
|
+
let e = getThemes();
|
|
366
|
+
return Object.keys(e).map((t) => ({
|
|
367
|
+
label: t,
|
|
368
|
+
value: e[t]
|
|
369
|
+
})).filter((e) => e.value["color-scheme"] === n.value.app?.colorScheme);
|
|
370
|
+
});
|
|
371
|
+
watchDiffObject(() => n.value, async (e) => {
|
|
372
|
+
t.updateSettings(cloneDeep(e), !1), await t.setPreferencesSetting(e), api.success("个人偏好设置成功");
|
|
373
|
+
}, { deep: !0 });
|
|
374
|
+
async function a() {
|
|
375
|
+
await t.resetSettings();
|
|
376
|
+
}
|
|
377
|
+
return (e, o) => {
|
|
378
|
+
let s = alert_default, c = HToggle_default, u = HTooltip_default, d = HCheckList_default, f = button_default;
|
|
379
|
+
return openBlock(), createElementBlock("div", null, [
|
|
380
|
+
createVNode(s, {
|
|
381
|
+
message: "提示",
|
|
382
|
+
description: "个人偏好设置将覆盖系统默认设置。若需恢复至系统默认配置,请滚动至底部并点击“还原系统设置”按钮。",
|
|
383
|
+
type: "info"
|
|
384
|
+
}),
|
|
385
|
+
unref(n).app?.hasOwnProperty("colorScheme") || unref(n).app?.hasOwnProperty("lightTheme") && unref(n).app?.hasOwnProperty("darkTheme") ? (openBlock(), createElementBlock("div", _hoisted_1, " 颜色主题风格 ")) : createCommentVNode("", !0),
|
|
386
|
+
unref(n).app?.hasOwnProperty("colorScheme") ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(c, {
|
|
387
|
+
modelValue: unref(r),
|
|
388
|
+
"onUpdate:modelValue": o[0] ||= (e) => isRef(r) ? r.value = e : null,
|
|
389
|
+
"on-icon": "i-ri-sun-line",
|
|
390
|
+
"off-icon": "i-ri-moon-line"
|
|
391
|
+
}, null, 8, ["modelValue"])])) : createCommentVNode("", !0),
|
|
392
|
+
unref(n).app?.hasOwnProperty("lightTheme") && unref(n).app?.hasOwnProperty("darkTheme") ? (openBlock(), createElementBlock("div", _hoisted_3, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(i), (e) => (openBlock(), createElementBlock("div", {
|
|
393
|
+
key: e.label,
|
|
394
|
+
class: normalizeClass(["theme", { active: unref(r) ? unref(n).app.darkTheme === e.label : unref(n).app.lightTheme === e.label }]),
|
|
395
|
+
onClick: (t) => unref(r) ? unref(n).app?.hasOwnProperty("darkTheme") && (unref(n).app.darkTheme = e.label) : unref(n).app?.hasOwnProperty("lightTheme") && (unref(n).app.lightTheme = e.label)
|
|
396
|
+
}, [createElementVNode("div", {
|
|
397
|
+
class: "content",
|
|
398
|
+
style: normalizeStyle(`background-color: rgb(${e.value["--ui-primary"]});`)
|
|
399
|
+
}, null, 4)], 10, _hoisted_4))), 128))])) : createCommentVNode("", !0),
|
|
400
|
+
unref(t).mode === "pc" && unref(n).menu?.hasOwnProperty("menuMode") ? (openBlock(), createElementBlock("div", _hoisted_5, " 导航栏模式 ")) : createCommentVNode("", !0),
|
|
401
|
+
unref(t).mode === "pc" && unref(n).menu?.hasOwnProperty("menuMode") ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
402
|
+
createVNode(u, {
|
|
403
|
+
text: "侧边栏模式 (含主导航)",
|
|
404
|
+
placement: "bottom",
|
|
405
|
+
delay: 500
|
|
406
|
+
}, {
|
|
407
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
408
|
+
class: normalizeClass(["mode mode-side", { active: unref(n).menu.menuMode === "side" }]),
|
|
409
|
+
onClick: o[1] ||= (e) => unref(n).menu?.hasOwnProperty("menuMode") && (unref(n).menu.menuMode = "side")
|
|
410
|
+
}, [...o[30] ||= [createElementVNode("div", { class: "mode-container" }, null, -1)]], 2)]),
|
|
411
|
+
_: 1
|
|
412
|
+
}),
|
|
413
|
+
createVNode(u, {
|
|
414
|
+
text: "顶部模式",
|
|
415
|
+
placement: "bottom",
|
|
416
|
+
delay: 500
|
|
417
|
+
}, {
|
|
418
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
419
|
+
class: normalizeClass(["mode mode-head", { active: unref(n).menu.menuMode === "head" }]),
|
|
420
|
+
onClick: o[2] ||= (e) => unref(n).menu?.hasOwnProperty("menuMode") && (unref(n).menu.menuMode = "head")
|
|
421
|
+
}, [...o[31] ||= [createElementVNode("div", { class: "mode-container" }, null, -1)]], 2)]),
|
|
422
|
+
_: 1
|
|
423
|
+
}),
|
|
424
|
+
createVNode(u, {
|
|
425
|
+
text: "侧边栏模式 (不含主导航)",
|
|
426
|
+
placement: "bottom",
|
|
427
|
+
delay: 500
|
|
428
|
+
}, {
|
|
429
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
430
|
+
class: normalizeClass(["mode mode-single", { active: unref(n).menu.menuMode === "single" }]),
|
|
431
|
+
onClick: o[3] ||= (e) => unref(n).menu?.hasOwnProperty("menuMode") && (unref(n).menu.menuMode = "single")
|
|
432
|
+
}, [...o[32] ||= [createElementVNode("div", { class: "mode-container" }, null, -1)]], 2)]),
|
|
433
|
+
_: 1
|
|
434
|
+
}),
|
|
435
|
+
createVNode(u, {
|
|
436
|
+
text: "侧边栏精简模式",
|
|
437
|
+
placement: "bottom",
|
|
438
|
+
delay: 500
|
|
439
|
+
}, {
|
|
440
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
441
|
+
class: normalizeClass(["mode mode-only-side", { active: unref(n).menu.menuMode === "only-side" }]),
|
|
442
|
+
onClick: o[4] ||= (e) => unref(n).menu?.hasOwnProperty("menuMode") && (unref(n).menu.menuMode = "only-side")
|
|
443
|
+
}, [...o[33] ||= [createElementVNode("div", { class: "mode-container" }, null, -1)]], 2)]),
|
|
444
|
+
_: 1
|
|
445
|
+
}),
|
|
446
|
+
createVNode(u, {
|
|
447
|
+
text: "顶部精简模式",
|
|
448
|
+
placement: "bottom",
|
|
449
|
+
delay: 500
|
|
450
|
+
}, {
|
|
451
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
452
|
+
class: normalizeClass(["mode mode-only-head", { active: unref(n).menu.menuMode === "only-head" }]),
|
|
453
|
+
onClick: o[5] ||= (e) => unref(n).menu?.hasOwnProperty("menuMode") && (unref(n).menu.menuMode = "only-head")
|
|
454
|
+
}, [...o[34] ||= [createElementVNode("div", { class: "mode-container" }, null, -1)]], 2)]),
|
|
455
|
+
_: 1
|
|
456
|
+
})
|
|
457
|
+
])) : createCommentVNode("", !0),
|
|
458
|
+
unref(t).mode === "pc" && unref(n).layout?.hasOwnProperty("widthMode") ? (openBlock(), createElementBlock("div", _hoisted_7, " 页宽模式 ")) : createCommentVNode("", !0),
|
|
459
|
+
unref(t).mode === "pc" && unref(n).layout?.hasOwnProperty("widthMode") ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
460
|
+
createVNode(u, {
|
|
461
|
+
text: "自适应",
|
|
462
|
+
placement: "bottom",
|
|
463
|
+
delay: 500
|
|
464
|
+
}, {
|
|
465
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
466
|
+
class: normalizeClass(["mode mode-adaption", { active: unref(n).layout.widthMode === "adaption" }]),
|
|
467
|
+
onClick: o[6] ||= (e) => unref(n).layout?.hasOwnProperty("widthMode") && (unref(n).layout.widthMode = "adaption")
|
|
468
|
+
}, [createVNode(unref(back_default), { class: "left" }), createVNode(unref(right_default), { class: "right" })], 2)]),
|
|
469
|
+
_: 1
|
|
470
|
+
}),
|
|
471
|
+
createVNode(u, {
|
|
472
|
+
text: "自适应 (有最小宽度)",
|
|
473
|
+
placement: "bottom",
|
|
474
|
+
delay: 500
|
|
475
|
+
}, {
|
|
476
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
477
|
+
class: normalizeClass(["mode mode-adaption-min-width", { active: unref(n).layout.widthMode === "adaption-min-width" }]),
|
|
478
|
+
onClick: o[7] ||= (e) => unref(n).layout?.hasOwnProperty("widthMode") && (unref(n).layout.widthMode = "adaption-min-width")
|
|
479
|
+
}, [createVNode(unref(back_default), { class: "left" }), createVNode(unref(right_default), { class: "right" })], 2)]),
|
|
480
|
+
_: 1
|
|
481
|
+
}),
|
|
482
|
+
createVNode(u, {
|
|
483
|
+
text: "定宽居中",
|
|
484
|
+
placement: "bottom",
|
|
485
|
+
delay: 500
|
|
486
|
+
}, {
|
|
487
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
488
|
+
class: normalizeClass(["mode mode-center", { active: unref(n).layout.widthMode === "center" }]),
|
|
489
|
+
onClick: o[8] ||= (e) => unref(n).layout?.widthMode && (unref(n).layout.widthMode = "center")
|
|
490
|
+
}, null, 2)]),
|
|
491
|
+
_: 1
|
|
492
|
+
}),
|
|
493
|
+
createVNode(u, {
|
|
494
|
+
text: "定宽居中 (有最大宽度)",
|
|
495
|
+
placement: "bottom",
|
|
496
|
+
delay: 500
|
|
497
|
+
}, {
|
|
498
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
499
|
+
class: normalizeClass(["mode mode-center-max-width", { active: unref(n).layout.widthMode === "center-max-width" }]),
|
|
500
|
+
onClick: o[9] ||= (e) => unref(n).layout?.widthMode && (unref(n).layout.widthMode = "center-max-width")
|
|
501
|
+
}, [createVNode(unref(back_default), { class: "left" }), createVNode(unref(right_default), { class: "right" })], 2)]),
|
|
502
|
+
_: 1
|
|
503
|
+
})
|
|
504
|
+
])) : createCommentVNode("", !0),
|
|
505
|
+
unref(t).settings.mainPage.enableTransition && unref(n).mainPage?.hasOwnProperty("enableTransition") ? (openBlock(), createElementBlock("div", _hoisted_9, " 页面切换动画 ")) : createCommentVNode("", !0),
|
|
506
|
+
unref(t).settings.mainPage.enableTransition && unref(n).mainPage?.hasOwnProperty("enableTransition") ? (openBlock(), createElementBlock("div", _hoisted_10, [createVNode(c, {
|
|
507
|
+
modelValue: unref(n).mainPage.enableTransition,
|
|
508
|
+
"onUpdate:modelValue": o[10] ||= (e) => unref(n).mainPage.enableTransition = e
|
|
509
|
+
}, null, 8, ["modelValue"])])) : createCommentVNode("", !0),
|
|
510
|
+
unref(t).settings.mainPage.enableTransition && unref(n).mainPage?.hasOwnProperty("transitionMode") ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
511
|
+
createVNode(u, {
|
|
512
|
+
text: "淡入淡出",
|
|
513
|
+
placement: "bottom",
|
|
514
|
+
delay: 500
|
|
515
|
+
}, {
|
|
516
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
517
|
+
class: normalizeClass(["mode mode-fade", { active: unref(n).mainPage.transitionMode === "fade" }]),
|
|
518
|
+
onClick: o[11] ||= (e) => unref(n).mainPage?.hasOwnProperty("transitionMode") && (unref(n).mainPage.transitionMode = "fade")
|
|
519
|
+
}, null, 2)]),
|
|
520
|
+
_: 1
|
|
521
|
+
}),
|
|
522
|
+
createVNode(u, {
|
|
523
|
+
text: "向左滑动",
|
|
524
|
+
placement: "bottom",
|
|
525
|
+
delay: 500
|
|
526
|
+
}, {
|
|
527
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
528
|
+
class: normalizeClass(["mode mode-slide-left", { active: unref(n).mainPage.transitionMode === "slide-left" }]),
|
|
529
|
+
onClick: o[12] ||= (e) => unref(n).mainPage?.hasOwnProperty("transitionMode") && (unref(n).mainPage.transitionMode = "slide-left")
|
|
530
|
+
}, null, 2)]),
|
|
531
|
+
_: 1
|
|
532
|
+
}),
|
|
533
|
+
createVNode(u, {
|
|
534
|
+
text: "向右滑动",
|
|
535
|
+
placement: "bottom",
|
|
536
|
+
delay: 500
|
|
537
|
+
}, {
|
|
538
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
539
|
+
class: normalizeClass(["mode mode-slide-right", { active: unref(n).mainPage.transitionMode === "slide-right" }]),
|
|
540
|
+
onClick: o[13] ||= (e) => unref(n).mainPage?.hasOwnProperty("transitionMode") && (unref(n).mainPage.transitionMode = "slide-right")
|
|
541
|
+
}, null, 2)]),
|
|
542
|
+
_: 1
|
|
543
|
+
}),
|
|
544
|
+
createVNode(u, {
|
|
545
|
+
text: "向上滑动",
|
|
546
|
+
placement: "bottom",
|
|
547
|
+
delay: 500
|
|
548
|
+
}, {
|
|
549
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
550
|
+
class: normalizeClass(["mode mode-slide-top", { active: unref(n).mainPage.transitionMode === "slide-top" }]),
|
|
551
|
+
onClick: o[14] ||= (e) => unref(n).mainPage?.hasOwnProperty("transitionMode") && (unref(n).mainPage.transitionMode = "slide-top")
|
|
552
|
+
}, null, 2)]),
|
|
553
|
+
_: 1
|
|
554
|
+
}),
|
|
555
|
+
createVNode(u, {
|
|
556
|
+
text: "向下滑动",
|
|
557
|
+
placement: "bottom",
|
|
558
|
+
delay: 500
|
|
559
|
+
}, {
|
|
560
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
561
|
+
class: normalizeClass(["mode mode-slide-bottom", { active: unref(n).mainPage.transitionMode === "slide-bottom" }]),
|
|
562
|
+
onClick: o[15] ||= (e) => unref(n).mainPage?.hasOwnProperty("transitionMode") && (unref(n).mainPage.transitionMode = "slide-bottom")
|
|
563
|
+
}, null, 2)]),
|
|
564
|
+
_: 1
|
|
565
|
+
})
|
|
566
|
+
])) : createCommentVNode("", !0),
|
|
567
|
+
unref(n).menu?.hasOwnProperty("switchMainMenuAndPageJump") || unref(n).menu?.hasOwnProperty("subMenuOnlyOneHide") || unref(n).menu?.hasOwnProperty("subMenuUniqueOpened") || unref(n).menu?.hasOwnProperty("subMenuCollapse") || unref(n).menu?.hasOwnProperty("enableSubMenuCollapseButton") ? (openBlock(), createElementBlock("div", _hoisted_12, " 导航栏 ")) : createCommentVNode("", !0),
|
|
568
|
+
unref(n).menu?.hasOwnProperty("subMenuUniqueOpened") ? (openBlock(), createElementBlock("div", _hoisted_13, [createElementVNode("div", _hoisted_14, [o[35] ||= createTextVNode(" 次导航保持展开一个 ", -1), createVNode(u, { text: "开启该功能后,次导航只保持单个菜单的展开" }, {
|
|
569
|
+
default: withCtx(() => [createVNode(unref(question_line_default))]),
|
|
570
|
+
_: 1
|
|
571
|
+
})]), createVNode(c, {
|
|
572
|
+
modelValue: unref(n).menu.subMenuUniqueOpened,
|
|
573
|
+
"onUpdate:modelValue": o[16] ||= (e) => unref(n).menu.subMenuUniqueOpened = e,
|
|
574
|
+
disabled: ["only-side", "only-head"].includes(unref(n).menu?.menuMode ?? unref(t).settings.menu.menuMode)
|
|
575
|
+
}, null, 8, ["modelValue", "disabled"])])) : createCommentVNode("", !0),
|
|
576
|
+
unref(n).menu?.hasOwnProperty("subMenuCollapse") ? (openBlock(), createElementBlock("div", _hoisted_15, [o[36] ||= createElementVNode("div", { class: "label" }, " 次导航是否折叠 ", -1), createVNode(c, {
|
|
577
|
+
modelValue: unref(n).menu.subMenuCollapse,
|
|
578
|
+
"onUpdate:modelValue": o[17] ||= (e) => unref(n).menu.subMenuCollapse = e,
|
|
579
|
+
disabled: ["only-side", "only-head"].includes(unref(n).menu?.menuMode ?? unref(t).settings.menu.menuMode)
|
|
580
|
+
}, null, 8, ["modelValue", "disabled"])])) : createCommentVNode("", !0),
|
|
581
|
+
unref(t).mode === "pc" && unref(t).settings.menu.enableSubMenuCollapseButton && unref(n).menu?.hasOwnProperty("enableSubMenuCollapseButton") ? (openBlock(), createElementBlock("div", _hoisted_16, [o[37] ||= createElementVNode("div", { class: "label" }, " 显示次导航折叠按钮 ", -1), createVNode(c, {
|
|
582
|
+
modelValue: unref(n).menu.enableSubMenuCollapseButton,
|
|
583
|
+
"onUpdate:modelValue": o[18] ||= (e) => unref(n).menu.enableSubMenuCollapseButton = e,
|
|
584
|
+
disabled: ["only-side", "only-head"].includes(unref(n).menu?.menuMode ?? unref(t).settings.menu.menuMode)
|
|
585
|
+
}, null, 8, ["modelValue", "disabled"])])) : createCommentVNode("", !0),
|
|
586
|
+
unref(n).menu?.hasOwnProperty("isRounded") ? (openBlock(), createElementBlock("div", _hoisted_17, [o[38] ||= createElementVNode("div", { class: "label" }, " 是否圆角 ", -1), createVNode(c, {
|
|
587
|
+
modelValue: unref(n).menu.isRounded,
|
|
588
|
+
"onUpdate:modelValue": o[19] ||= (e) => unref(n).menu.isRounded = e
|
|
589
|
+
}, null, 8, ["modelValue"])])) : createCommentVNode("", !0),
|
|
590
|
+
(unref(n).menu?.menuMode ?? unref(t).settings.menu.menuMode) !== "single" && unref(n).menu?.hasOwnProperty("menuActiveStyle") ? (openBlock(), createElementBlock("div", _hoisted_18, [o[39] ||= createElementVNode("div", { class: "label" }, " 激活风格 ", -1), createVNode(d, {
|
|
591
|
+
modelValue: unref(n).menu.menuActiveStyle,
|
|
592
|
+
"onUpdate:modelValue": o[20] ||= (e) => unref(n).menu.menuActiveStyle = e,
|
|
593
|
+
options: [
|
|
594
|
+
{
|
|
595
|
+
icon: "i-jam-stop-sign",
|
|
596
|
+
value: ""
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
icon: ["head", "only-head"].includes(unref(n).menu?.menuMode ?? unref(t).settings.menu.menuMode) ? "i-ep-caret-top" : "i-ep-caret-left",
|
|
600
|
+
value: "arrow"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
icon: ["side", "only-side"].includes(unref(n).menu?.menuMode ?? unref(t).settings.menu.menuMode) ? "i-tabler-minus-vertical" : "i-tabler-minus",
|
|
604
|
+
value: "line"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
icon: "i-icon-park-outline-dot",
|
|
608
|
+
value: "dot"
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
}, null, 8, ["modelValue", "options"])])) : createCommentVNode("", !0),
|
|
612
|
+
unref(n).topbar?.hasOwnProperty("mode") || unref(n).topbar?.hasOwnProperty("switchTabbarAndToolbar") ? (openBlock(), createElementBlock("div", _hoisted_19, " 顶栏 ")) : createCommentVNode("", !0),
|
|
613
|
+
unref(n).topbar?.hasOwnProperty("switchTabbarAndToolbar") ? (openBlock(), createElementBlock("div", _hoisted_20, [createElementVNode("div", _hoisted_21, [o[40] ||= createTextVNode(" 展示切换 ", -1), createVNode(u, { text: "切换标签栏和工具栏的展示顺序" }, {
|
|
614
|
+
default: withCtx(() => [createVNode(unref(question_line_default))]),
|
|
615
|
+
_: 1
|
|
616
|
+
})]), createVNode(c, {
|
|
617
|
+
modelValue: unref(n).topbar.switchTabbarAndToolbar,
|
|
618
|
+
"onUpdate:modelValue": o[21] ||= (e) => unref(n).topbar.switchTabbarAndToolbar = e,
|
|
619
|
+
disabled: !unref(n).tabbar?.enable
|
|
620
|
+
}, null, 8, ["modelValue", "disabled"])])) : createCommentVNode("", !0),
|
|
621
|
+
unref(t).settings.tabbar.enable && unref(n).tabbar?.hasOwnProperty("enable") || unref(n).tabbar?.hasOwnProperty("style") || unref(n).tabbar?.hasOwnProperty("enableIcon") || unref(n).tabbar?.hasOwnProperty("mergeTabsBy") ? (openBlock(), createElementBlock("div", _hoisted_22, " 标签栏 ")) : createCommentVNode("", !0),
|
|
622
|
+
unref(t).settings.tabbar.enable && unref(n).tabbar?.hasOwnProperty("enable") ? (openBlock(), createElementBlock("div", _hoisted_23, [o[41] ||= createElementVNode("div", { class: "label" }, " 是否启用 ", -1), createVNode(c, {
|
|
623
|
+
modelValue: unref(n).tabbar.enable,
|
|
624
|
+
"onUpdate:modelValue": o[22] ||= (e) => unref(n).tabbar.enable = e
|
|
625
|
+
}, null, 8, ["modelValue"])])) : createCommentVNode("", !0),
|
|
626
|
+
unref(t).settings.tabbar.enable && unref(n).tabbar?.hasOwnProperty("style") ? (openBlock(), createElementBlock("div", _hoisted_24, [o[42] ||= createElementVNode("div", { class: "label" }, " 风格 ", -1), createVNode(d, {
|
|
627
|
+
modelValue: unref(n).tabbar.style,
|
|
628
|
+
"onUpdate:modelValue": o[23] ||= (e) => unref(n).tabbar.style = e,
|
|
629
|
+
options: [
|
|
630
|
+
{
|
|
631
|
+
label: "时尚",
|
|
632
|
+
value: "fashion"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
label: "卡片",
|
|
636
|
+
value: "card"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
label: "方块",
|
|
640
|
+
value: "square"
|
|
641
|
+
}
|
|
642
|
+
],
|
|
643
|
+
disabled: !(unref(n).tabbar?.enable ?? unref(t).settings.tabbar.enable)
|
|
644
|
+
}, null, 8, ["modelValue", "disabled"])])) : createCommentVNode("", !0),
|
|
645
|
+
unref(t).settings.tabbar.enable && unref(n).tabbar?.hasOwnProperty("enableIcon") ? (openBlock(), createElementBlock("div", _hoisted_25, [o[43] ||= createElementVNode("div", { class: "label" }, " 是否显示图标 ", -1), createVNode(c, {
|
|
646
|
+
modelValue: unref(n).tabbar.enableIcon,
|
|
647
|
+
"onUpdate:modelValue": o[24] ||= (e) => unref(n).tabbar.enableIcon = e,
|
|
648
|
+
disabled: !(unref(n).tabbar?.enable ?? unref(t).settings.tabbar.enable)
|
|
649
|
+
}, null, 8, ["modelValue", "disabled"])])) : createCommentVNode("", !0),
|
|
650
|
+
unref(t).settings.tabbar.enable && unref(n).tabbar?.hasOwnProperty("enableMemory") ? (openBlock(), createElementBlock("div", _hoisted_26, [createElementVNode("div", _hoisted_27, [o[44] ||= createTextVNode(" 是否启用记忆功能 ", -1), createVNode(u, { text: "开启该功能后,非固定和非常驻的标签页将在本次会话窗口中始终存在,刷新浏览器或重新登录时不会丢失" }, {
|
|
651
|
+
default: withCtx(() => [createVNode(unref(question_line_default))]),
|
|
652
|
+
_: 1
|
|
653
|
+
})]), createVNode(c, {
|
|
654
|
+
modelValue: unref(n).tabbar.enableMemory,
|
|
655
|
+
"onUpdate:modelValue": o[25] ||= (e) => unref(n).tabbar.enableMemory = e,
|
|
656
|
+
disabled: !(unref(n).tabbar?.enable ?? unref(t).settings.tabbar.enable)
|
|
657
|
+
}, null, 8, ["modelValue", "disabled"])])) : createCommentVNode("", !0),
|
|
658
|
+
unref(t).mode === "pc" && unref(t).settings.breadcrumb.enable && (unref(n).breadcrumb?.hasOwnProperty("enable") || unref(n).breadcrumb?.hasOwnProperty("style") || unref(n).breadcrumb?.hasOwnProperty("enableMainMenu")) ? (openBlock(), createElementBlock("div", _hoisted_28, " 面包屑导航 ")) : createCommentVNode("", !0),
|
|
659
|
+
unref(t).mode === "pc" && unref(t).settings.breadcrumb.enable && unref(n).breadcrumb?.hasOwnProperty("enable") ? (openBlock(), createElementBlock("div", _hoisted_29, [o[45] ||= createElementVNode("div", { class: "label" }, " 是否启用 ", -1), createVNode(c, {
|
|
660
|
+
modelValue: unref(n).breadcrumb.enable,
|
|
661
|
+
"onUpdate:modelValue": o[26] ||= (e) => unref(n).breadcrumb.enable = e
|
|
662
|
+
}, null, 8, ["modelValue"])])) : createCommentVNode("", !0),
|
|
663
|
+
unref(t).mode === "pc" && unref(t).settings.breadcrumb.enable && unref(n).breadcrumb?.hasOwnProperty("style") ? (openBlock(), createElementBlock("div", _hoisted_30, [o[46] ||= createElementVNode("div", { class: "label" }, " 风格 ", -1), createVNode(d, {
|
|
664
|
+
modelValue: unref(n).breadcrumb.style,
|
|
665
|
+
"onUpdate:modelValue": o[27] ||= (e) => unref(n).breadcrumb.style = e,
|
|
666
|
+
options: [{
|
|
667
|
+
label: "默认",
|
|
668
|
+
value: ""
|
|
669
|
+
}, {
|
|
670
|
+
label: "现代",
|
|
671
|
+
value: "modern"
|
|
672
|
+
}],
|
|
673
|
+
disabled: !(unref(n).breadcrumb?.enable ?? unref(t).settings.breadcrumb.enable)
|
|
674
|
+
}, null, 8, ["modelValue", "disabled"])])) : createCommentVNode("", !0),
|
|
675
|
+
unref(t).mode === "pc" && unref(t).settings.breadcrumb.enable && unref(t).settings.breadcrumb.enableMainMenu && unref(n).breadcrumb?.hasOwnProperty("enableMainMenu") ? (openBlock(), createElementBlock("div", _hoisted_31, [o[47] ||= createElementVNode("div", { class: "label" }, " 是否显示主导航 ", -1), createVNode(c, {
|
|
676
|
+
modelValue: unref(n).breadcrumb.enableMainMenu,
|
|
677
|
+
"onUpdate:modelValue": o[28] ||= (e) => unref(n).breadcrumb.enableMainMenu = e,
|
|
678
|
+
disabled: ["single"].includes(unref(n).menu?.menuMode ?? unref(t).settings.menu.menuMode)
|
|
679
|
+
}, null, 8, ["modelValue", "disabled"])])) : createCommentVNode("", !0),
|
|
680
|
+
unref(n).app?.hasOwnProperty("enableProgress") ? (openBlock(), createElementBlock("div", _hoisted_32, " 其它 ")) : createCommentVNode("", !0),
|
|
681
|
+
unref(t).settings.app.enableProgress && unref(n).app?.hasOwnProperty("enableProgress") ? (openBlock(), createElementBlock("div", _hoisted_33, [createElementVNode("div", _hoisted_34, [o[48] ||= createTextVNode(" 载入进度条 ", -1), createVNode(u, { text: "该功能开启时,跳转路由会看到页面顶部有进度条" }, {
|
|
682
|
+
default: withCtx(() => [createVNode(unref(question_line_default))]),
|
|
683
|
+
_: 1
|
|
684
|
+
})]), createVNode(c, {
|
|
685
|
+
modelValue: unref(n).app.enableProgress,
|
|
686
|
+
"onUpdate:modelValue": o[29] ||= (e) => unref(n).app.enableProgress = e
|
|
687
|
+
}, null, 8, ["modelValue"])])) : createCommentVNode("", !0),
|
|
688
|
+
createElementVNode("div", _hoisted_35, [createVNode(f, {
|
|
689
|
+
"w-full": "",
|
|
690
|
+
type: "primary",
|
|
691
|
+
size: "large",
|
|
692
|
+
onClick: a
|
|
693
|
+
}, {
|
|
694
|
+
default: withCtx(() => [...o[49] ||= [createTextVNode(" 还原系统设置 ", -1)]]),
|
|
695
|
+
_: 1
|
|
696
|
+
})])
|
|
697
|
+
]);
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
}), [["__scopeId", "data-v-c97d99bc"]]);
|
|
701
|
+
export { PreferencesContent_default as default };
|