@robot-admin/layout 0.1.1 → 2.0.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.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +26 -6
- package/dist/index.js +267 -261
- package/dist/index.js.map +1 -1
- package/package.json +76 -66
- package/src/styles/settings.scss +13 -8
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as d, computed as
|
|
2
|
-
import { useMessage as
|
|
3
|
-
import { defineStore as
|
|
4
|
-
const
|
|
1
|
+
import { ref as d, computed as $, watch as F, defineComponent as oe, useModel as le, onUnmounted as ie, openBlock as R, createBlock as ae, unref as l, withCtx as n, createVNode as a, createElementVNode as t, createElementBlock as W, Fragment as J, renderList as Y, normalizeClass as G, toDisplayString as h, normalizeStyle as ne, createTextVNode as c, withModifiers as re, createCommentVNode as X, mergeModels as de } from "vue";
|
|
2
|
+
import { useMessage as ue, useDialog as ce, NDrawer as ve, NDrawerContent as pe, NTabs as me, NTabPane as j, NRadioGroup as K, NRadioButton as M, NColorPicker as fe, NSwitch as H, NButton as O, NSlider as q, NInput as ge } from "naive-ui";
|
|
3
|
+
import { defineStore as ye } from "pinia";
|
|
4
|
+
const he = [
|
|
5
5
|
{ name: "拂晓蓝", value: "#409eff" },
|
|
6
6
|
{ name: "薄暮红", value: "#f5222d" },
|
|
7
7
|
{ name: "火山橙", value: "#fa541c" },
|
|
@@ -10,7 +10,7 @@ const ge = [
|
|
|
10
10
|
{ name: "明青", value: "#13c2c2" },
|
|
11
11
|
{ name: "极客蓝", value: "#2f54eb" },
|
|
12
12
|
{ name: "酱紫", value: "#722ed1" }
|
|
13
|
-
],
|
|
13
|
+
], be = [
|
|
14
14
|
{
|
|
15
15
|
name: "科技蓝",
|
|
16
16
|
icon: "💙",
|
|
@@ -41,7 +41,7 @@ const ge = [
|
|
|
41
41
|
icon: "❤️",
|
|
42
42
|
primaryColor: "#f5222d"
|
|
43
43
|
}
|
|
44
|
-
],
|
|
44
|
+
], Ot = [
|
|
45
45
|
{
|
|
46
46
|
mode: "side",
|
|
47
47
|
label: "左侧菜单",
|
|
@@ -78,11 +78,11 @@ const ge = [
|
|
|
78
78
|
description: "卡片式布局风格",
|
|
79
79
|
icon: "i-mdi:card-outline"
|
|
80
80
|
}
|
|
81
|
-
],
|
|
81
|
+
], we = {
|
|
82
82
|
small: "4px",
|
|
83
83
|
medium: "6px",
|
|
84
84
|
large: "8px"
|
|
85
|
-
},
|
|
85
|
+
}, xe = {
|
|
86
86
|
fade: "fade-transform",
|
|
87
87
|
slide: "fade-slide",
|
|
88
88
|
zoom: "fade-zoom",
|
|
@@ -96,6 +96,7 @@ const ge = [
|
|
|
96
96
|
enableTransition: !0,
|
|
97
97
|
// 布局
|
|
98
98
|
layoutMode: "side",
|
|
99
|
+
collapsed: !1,
|
|
99
100
|
fixedHeader: !0,
|
|
100
101
|
showBreadcrumb: !0,
|
|
101
102
|
showBreadcrumbIcon: !0,
|
|
@@ -109,109 +110,114 @@ const ge = [
|
|
|
109
110
|
// 高级
|
|
110
111
|
enableHotkeys: !0,
|
|
111
112
|
version: "1.0.0"
|
|
112
|
-
},
|
|
113
|
+
}, Lt = he.map((b) => b.value);
|
|
113
114
|
function Q(b, u) {
|
|
114
|
-
const v = parseInt(b.replace("#", ""), 16), s = Math.min(255, Math.max(0, (v >> 16) + u)), w = Math.min(255, Math.max(0, (v >> 8 & 255) + u)),
|
|
115
|
-
return `#${(s << 16 | w << 8 |
|
|
115
|
+
const v = parseInt(b.replace("#", ""), 16), s = Math.min(255, Math.max(0, (v >> 16) + u)), w = Math.min(255, Math.max(0, (v >> 8 & 255) + u)), f = Math.min(255, Math.max(0, (v & 255) + u));
|
|
116
|
+
return `#${(s << 16 | w << 8 | f).toString(16).padStart(6, "0")}`;
|
|
116
117
|
}
|
|
117
118
|
function Z(b = {}) {
|
|
118
119
|
const { defaults: u = {}, onThemeModeChange: v } = b, s = {
|
|
119
120
|
...m,
|
|
120
121
|
...u
|
|
121
122
|
};
|
|
122
|
-
return
|
|
123
|
-
const w = d(s.themeMode),
|
|
123
|
+
return ye("settings", () => {
|
|
124
|
+
const w = d(s.themeMode), f = d(s.primaryColor), x = d(s.borderRadius), g = d(s.transitionType), y = d(s.enableTransition), k = d(s.layoutMode), p = d(s.collapsed || !1), L = d(s.fixedHeader), V = d(s.showBreadcrumb), S = d(s.showBreadcrumbIcon), I = d(s.showTagsView), E = d(s.tagsViewHeight), P = d(s.tagsViewStyle), N = d(s.showFooter), _ = d(s.sidebarWidth), B = d(
|
|
124
125
|
s.sidebarCollapsedWidth
|
|
125
|
-
), U = d(s.headerHeight),
|
|
126
|
-
() =>
|
|
127
|
-
),
|
|
128
|
-
() => y.value &&
|
|
129
|
-
),
|
|
126
|
+
), U = d(s.headerHeight), A = d(s.enableHotkeys), z = d(s.version), D = $(
|
|
127
|
+
() => we[x.value]
|
|
128
|
+
), i = $(() => xe[g.value]), e = $(
|
|
129
|
+
() => y.value && g.value !== "none"
|
|
130
|
+
), o = $(() => ({
|
|
130
131
|
themeMode: w.value,
|
|
131
|
-
primaryColor:
|
|
132
|
+
primaryColor: f.value,
|
|
132
133
|
borderRadius: x.value,
|
|
133
|
-
transitionType:
|
|
134
|
+
transitionType: g.value,
|
|
134
135
|
enableTransition: y.value,
|
|
135
|
-
layoutMode:
|
|
136
|
-
|
|
136
|
+
layoutMode: k.value,
|
|
137
|
+
collapsed: p.value,
|
|
138
|
+
fixedHeader: L.value,
|
|
137
139
|
showBreadcrumb: V.value,
|
|
138
|
-
showBreadcrumbIcon:
|
|
139
|
-
showTagsView:
|
|
140
|
+
showBreadcrumbIcon: S.value,
|
|
141
|
+
showTagsView: I.value,
|
|
140
142
|
tagsViewHeight: E.value,
|
|
141
143
|
tagsViewStyle: P.value,
|
|
142
|
-
showFooter:
|
|
144
|
+
showFooter: N.value,
|
|
143
145
|
sidebarWidth: _.value,
|
|
144
146
|
sidebarCollapsedWidth: B.value,
|
|
145
147
|
headerHeight: U.value,
|
|
146
|
-
enableHotkeys:
|
|
147
|
-
version:
|
|
148
|
-
})),
|
|
148
|
+
enableHotkeys: A.value,
|
|
149
|
+
version: z.value
|
|
150
|
+
})), C = () => {
|
|
149
151
|
if (typeof document > "u") return;
|
|
150
152
|
const r = document.documentElement;
|
|
151
|
-
r.style.setProperty("--primary-color",
|
|
153
|
+
r.style.setProperty("--primary-color", f.value), r.style.setProperty(
|
|
152
154
|
"--primary-color-hover",
|
|
153
|
-
Q(
|
|
155
|
+
Q(f.value, 10)
|
|
154
156
|
), r.style.setProperty(
|
|
155
157
|
"--primary-color-pressed",
|
|
156
|
-
Q(
|
|
157
|
-
), r.style.setProperty("--border-radius",
|
|
158
|
+
Q(f.value, -10)
|
|
159
|
+
), r.style.setProperty("--border-radius", D.value), r.style.setProperty("--sidebar-width", `${_.value}px`), r.style.setProperty(
|
|
158
160
|
"--sidebar-collapsed-width",
|
|
159
161
|
`${B.value}px`
|
|
160
162
|
), r.style.setProperty("--header-height", `${U.value}px`), r.style.setProperty("--tags-view-height", `${E.value}px`);
|
|
161
163
|
}, T = async (r) => {
|
|
162
|
-
|
|
163
|
-
},
|
|
164
|
-
w.value = s.themeMode,
|
|
165
|
-
},
|
|
164
|
+
f.value = r.primaryColor, r.settings && (r.settings.borderRadius && (x.value = r.settings.borderRadius), r.settings.transitionType && (g.value = r.settings.transitionType), r.settings.showBreadcrumb !== void 0 && (V.value = r.settings.showBreadcrumb), r.settings.showTagsView !== void 0 && (I.value = r.settings.showTagsView), r.settings.tagsViewStyle && (P.value = r.settings.tagsViewStyle));
|
|
165
|
+
}, ee = () => {
|
|
166
|
+
w.value = s.themeMode, f.value = s.primaryColor, x.value = s.borderRadius, g.value = s.transitionType, y.value = s.enableTransition, k.value = s.layoutMode, p.value = s.collapsed || !1, L.value = s.fixedHeader, V.value = s.showBreadcrumb, S.value = s.showBreadcrumbIcon, I.value = s.showTagsView, E.value = s.tagsViewHeight, P.value = s.tagsViewStyle, N.value = s.showFooter, _.value = s.sidebarWidth, B.value = s.sidebarCollapsedWidth, U.value = s.headerHeight, A.value = s.enableHotkeys;
|
|
167
|
+
}, te = async (r) => {
|
|
166
168
|
w.value = r, v && await v(r);
|
|
169
|
+
}, se = () => {
|
|
170
|
+
p.value = !p.value;
|
|
167
171
|
};
|
|
168
172
|
return F(
|
|
169
173
|
[
|
|
170
|
-
|
|
171
|
-
|
|
174
|
+
f,
|
|
175
|
+
D,
|
|
172
176
|
_,
|
|
173
177
|
B,
|
|
174
178
|
U,
|
|
175
179
|
E
|
|
176
180
|
],
|
|
177
181
|
() => {
|
|
178
|
-
|
|
182
|
+
C();
|
|
179
183
|
},
|
|
180
184
|
{ immediate: !0 }
|
|
181
185
|
), {
|
|
182
186
|
// 状态
|
|
183
187
|
themeMode: w,
|
|
184
|
-
primaryColor:
|
|
188
|
+
primaryColor: f,
|
|
185
189
|
borderRadius: x,
|
|
186
|
-
transitionType:
|
|
190
|
+
transitionType: g,
|
|
187
191
|
enableTransition: y,
|
|
188
|
-
layoutMode:
|
|
189
|
-
|
|
192
|
+
layoutMode: k,
|
|
193
|
+
collapsed: p,
|
|
194
|
+
fixedHeader: L,
|
|
190
195
|
showBreadcrumb: V,
|
|
191
|
-
showBreadcrumbIcon:
|
|
192
|
-
showTagsView:
|
|
196
|
+
showBreadcrumbIcon: S,
|
|
197
|
+
showTagsView: I,
|
|
193
198
|
tagsViewHeight: E,
|
|
194
199
|
tagsViewStyle: P,
|
|
195
|
-
showFooter:
|
|
200
|
+
showFooter: N,
|
|
196
201
|
sidebarWidth: _,
|
|
197
202
|
sidebarCollapsedWidth: B,
|
|
198
203
|
headerHeight: U,
|
|
199
|
-
enableHotkeys:
|
|
200
|
-
version:
|
|
204
|
+
enableHotkeys: A,
|
|
205
|
+
version: z,
|
|
201
206
|
// 计算属性
|
|
202
|
-
borderRadiusValue:
|
|
203
|
-
transitionName:
|
|
204
|
-
shouldEnableTransition:
|
|
205
|
-
settingsState:
|
|
207
|
+
borderRadiusValue: D,
|
|
208
|
+
transitionName: i,
|
|
209
|
+
shouldEnableTransition: e,
|
|
210
|
+
settingsState: o,
|
|
206
211
|
// 方法
|
|
207
|
-
syncCSSVariables:
|
|
212
|
+
syncCSSVariables: C,
|
|
208
213
|
applyPreset: T,
|
|
209
|
-
resetSettings:
|
|
210
|
-
updateThemeMode:
|
|
214
|
+
resetSettings: ee,
|
|
215
|
+
updateThemeMode: te,
|
|
216
|
+
toggleCollapse: se
|
|
211
217
|
};
|
|
212
218
|
});
|
|
213
219
|
}
|
|
214
|
-
const
|
|
220
|
+
const Ce = Z(), Te = [
|
|
215
221
|
"#409eff",
|
|
216
222
|
"#f5222d",
|
|
217
223
|
"#fa541c",
|
|
@@ -220,7 +226,7 @@ const be = Z(), we = [
|
|
|
220
226
|
"#13c2c2",
|
|
221
227
|
"#2f54eb",
|
|
222
228
|
"#722ed1"
|
|
223
|
-
],
|
|
229
|
+
], ke = [
|
|
224
230
|
{
|
|
225
231
|
label: "左侧菜单(默认)",
|
|
226
232
|
value: "side",
|
|
@@ -283,20 +289,20 @@ const be = Z(), we = [
|
|
|
283
289
|
<rect x="32" y="24" width="24" height="20" rx="2" fill="currentColor" fill-opacity="0.4"/>
|
|
284
290
|
`
|
|
285
291
|
}
|
|
286
|
-
],
|
|
292
|
+
], Se = { class: "settings-section" }, Me = { class: "preset-grid" }, Re = ["onClick"], He = { class: "preset-icon" }, Ve = { class: "preset-name" }, Ee = { class: "preset-color" }, _e = { class: "settings-section" }, Be = { class: "settings-section" }, Ue = { class: "color-picker-wrapper" }, We = { class: "color-value" }, Oe = { class: "settings-section" }, Le = { class: "settings-section" }, Ie = { class: "flex items-center justify-between mb-2" }, Pe = { class: "settings-section" }, Ne = { class: "settings-section" }, Ae = { class: "layout-grid" }, De = ["onClick"], $e = { class: "layout-screenshot" }, Fe = {
|
|
287
293
|
class: "layout-svg",
|
|
288
294
|
viewBox: "0 0 56 48",
|
|
289
295
|
fill: "none",
|
|
290
296
|
xmlns: "http://www.w3.org/2000/svg"
|
|
291
|
-
},
|
|
297
|
+
}, ze = ["innerHTML"], je = { class: "layout-label" }, Ke = {
|
|
292
298
|
key: 0,
|
|
293
299
|
class: "badge-soon"
|
|
294
|
-
},
|
|
300
|
+
}, Je = { class: "settings-section" }, Ye = { class: "setting-item" }, Ge = { class: "setting-item" }, Xe = { class: "setting-item" }, qe = { class: "setting-item" }, Qe = { class: "settings-section" }, Ze = { class: "slider-item" }, et = { class: "slider-label" }, tt = { class: "slider-value" }, st = { class: "slider-item" }, ot = { class: "slider-label" }, lt = { class: "slider-value" }, it = { class: "settings-section" }, at = { class: "settings-section" }, nt = { class: "action-buttons-grid" }, rt = { class: "settings-section" }, dt = { class: "action-buttons-grid" }, ut = { class: "settings-section" }, ct = { class: "setting-item" }, vt = { class: "setting-item" }, pt = { class: "settings-section" }, mt = { class: "setting-item" }, ft = {
|
|
295
301
|
key: 0,
|
|
296
302
|
class: "mt-2"
|
|
297
|
-
},
|
|
303
|
+
}, gt = { class: "settings-section" }, yt = { class: "system-info" }, ht = { class: "info-item" }, bt = { class: "info-value" }, wt = { class: "info-item" }, xt = { class: "info-value" }, Ct = { class: "info-item" }, Tt = { class: "info-value" }, kt = { class: "info-item" }, St = { class: "info-value" }, Mt = { class: "info-item" }, Rt = { class: "info-value" }, Ht = { class: "info-item" }, Vt = { class: "info-value" }, Et = /* @__PURE__ */ oe({
|
|
298
304
|
__name: "index",
|
|
299
|
-
props: /* @__PURE__ */
|
|
305
|
+
props: /* @__PURE__ */ de({
|
|
300
306
|
storageKey: {}
|
|
301
307
|
}, {
|
|
302
308
|
show: { type: Boolean, default: !1 },
|
|
@@ -304,12 +310,12 @@ const be = Z(), we = [
|
|
|
304
310
|
}),
|
|
305
311
|
emits: ["update:show"],
|
|
306
312
|
setup(b) {
|
|
307
|
-
const u =
|
|
308
|
-
let
|
|
309
|
-
const
|
|
310
|
-
|
|
313
|
+
const u = ue(), v = ce(), s = Ce(), w = le(b, "show"), f = d("appearance"), x = d(!1), g = d(!1), y = d(!1), k = d("Robot Admin");
|
|
314
|
+
let p = null;
|
|
315
|
+
const L = (i) => {
|
|
316
|
+
p && (document.body.removeChild(p), p = null);
|
|
311
317
|
const e = document.createElement("canvas"), o = e.getContext("2d");
|
|
312
|
-
e.width = 200, e.height = 150, o.font = "14px Microsoft JhengHei", o.fillStyle = "rgba(120, 120, 120, 0.15)", o.rotate(-20 * Math.PI / 180), o.fillText(
|
|
318
|
+
e.width = 200, e.height = 150, o.font = "14px Microsoft JhengHei", o.fillStyle = "rgba(120, 120, 120, 0.15)", o.rotate(-20 * Math.PI / 180), o.fillText(i, 0, 80), p = document.createElement("div"), p.style.cssText = `
|
|
313
319
|
position: fixed;
|
|
314
320
|
top: 0;
|
|
315
321
|
left: 0;
|
|
@@ -320,23 +326,23 @@ const be = Z(), we = [
|
|
|
320
326
|
background-repeat: repeat;
|
|
321
327
|
z-index: 9999;
|
|
322
328
|
user-select: none;
|
|
323
|
-
`, document.body.appendChild(
|
|
324
|
-
},
|
|
325
|
-
|
|
329
|
+
`, document.body.appendChild(p);
|
|
330
|
+
}, V = () => {
|
|
331
|
+
p && (document.body.removeChild(p), p = null);
|
|
326
332
|
};
|
|
327
|
-
F(x, (
|
|
328
|
-
document.documentElement.classList.toggle("gray-mode",
|
|
329
|
-
}), F(
|
|
330
|
-
document.documentElement.classList.toggle("color-weak-mode",
|
|
331
|
-
}), F(y, (
|
|
332
|
-
|
|
333
|
-
}), F(
|
|
334
|
-
y.value &&
|
|
333
|
+
F(x, (i) => {
|
|
334
|
+
document.documentElement.classList.toggle("gray-mode", i);
|
|
335
|
+
}), F(g, (i) => {
|
|
336
|
+
document.documentElement.classList.toggle("color-weak-mode", i);
|
|
337
|
+
}), F(y, (i) => {
|
|
338
|
+
i ? L(k.value) : V();
|
|
339
|
+
}), F(k, (i) => {
|
|
340
|
+
y.value && L(i);
|
|
335
341
|
});
|
|
336
|
-
const
|
|
337
|
-
const
|
|
342
|
+
const S = $(() => {
|
|
343
|
+
const i = navigator.userAgent;
|
|
338
344
|
let e = "Unknown", o = "Unknown";
|
|
339
|
-
return
|
|
345
|
+
return i.includes("Chrome") ? e = "Chrome" : i.includes("Firefox") ? e = "Firefox" : i.includes("Safari") ? e = "Safari" : i.includes("Edge") && (e = "Edge"), i.includes("Windows") ? o = "Windows" : i.includes("Mac") ? o = "macOS" : i.includes("Linux") ? o = "Linux" : i.includes("Android") ? o = "Android" : i.includes("iOS") && (o = "iOS"), {
|
|
340
346
|
browser: e,
|
|
341
347
|
os: o,
|
|
342
348
|
resolution: `${window.screen.width} × ${window.screen.height}`,
|
|
@@ -345,18 +351,18 @@ const be = Z(), we = [
|
|
|
345
351
|
timezone: "XIAn"
|
|
346
352
|
};
|
|
347
353
|
});
|
|
348
|
-
|
|
349
|
-
|
|
354
|
+
ie(() => {
|
|
355
|
+
V();
|
|
350
356
|
});
|
|
351
|
-
const
|
|
352
|
-
|
|
353
|
-
},
|
|
354
|
-
s.applyPreset(
|
|
355
|
-
},
|
|
357
|
+
const I = (i, e) => {
|
|
358
|
+
e || (s.layoutMode = i);
|
|
359
|
+
}, E = (i) => s.primaryColor === i.primaryColor, P = (i) => {
|
|
360
|
+
s.applyPreset(i), u.success(`已应用「${i.name}」主题方案`);
|
|
361
|
+
}, N = () => {
|
|
356
362
|
s.themeMode = m.themeMode, s.primaryColor = m.primaryColor, s.borderRadius = m.borderRadius, s.transitionType = m.transitionType, s.enableTransition = m.enableTransition, u.success("已恢复外观默认设置");
|
|
357
|
-
},
|
|
363
|
+
}, _ = () => {
|
|
358
364
|
s.layoutMode = m.layoutMode, s.showBreadcrumb = m.showBreadcrumb, s.showBreadcrumbIcon = m.showBreadcrumbIcon, s.showTagsView = m.showTagsView, s.showFooter = m.showFooter, s.sidebarWidth = m.sidebarWidth, s.sidebarCollapsedWidth = m.sidebarCollapsedWidth, s.headerHeight = m.headerHeight, s.tagsViewHeight = m.tagsViewHeight, u.success("已恢复布局默认设置");
|
|
359
|
-
},
|
|
365
|
+
}, B = () => {
|
|
360
366
|
v.warning({
|
|
361
367
|
title: "确认重置",
|
|
362
368
|
content: "确定要恢复默认配置吗?此操作不可撤销。",
|
|
@@ -366,49 +372,49 @@ const be = Z(), we = [
|
|
|
366
372
|
s.resetSettings(), u.success("已恢复默认配置");
|
|
367
373
|
}
|
|
368
374
|
});
|
|
369
|
-
},
|
|
375
|
+
}, U = () => {
|
|
370
376
|
v.warning({
|
|
371
377
|
title: "确认清除",
|
|
372
378
|
content: "确定要清除浏览器缓存吗?",
|
|
373
379
|
positiveText: "确认",
|
|
374
380
|
negativeText: "取消",
|
|
375
381
|
onPositiveClick: () => {
|
|
376
|
-
const
|
|
382
|
+
const i = ["theme-mode", "robot-admin-settings"];
|
|
377
383
|
Object.keys(localStorage).forEach((o) => {
|
|
378
|
-
|
|
384
|
+
i.includes(o) || localStorage.removeItem(o);
|
|
379
385
|
}), sessionStorage.clear(), u.success("缓存已清除");
|
|
380
386
|
}
|
|
381
387
|
});
|
|
382
|
-
}, $ = () => {
|
|
383
|
-
location.reload();
|
|
384
388
|
}, A = () => {
|
|
385
|
-
|
|
389
|
+
location.reload();
|
|
390
|
+
}, z = () => {
|
|
391
|
+
const i = {
|
|
386
392
|
settings: s.settingsState,
|
|
387
393
|
gray: x.value,
|
|
388
|
-
colorWeak:
|
|
394
|
+
colorWeak: g.value,
|
|
389
395
|
watermark: {
|
|
390
396
|
enabled: y.value,
|
|
391
|
-
text:
|
|
397
|
+
text: k.value
|
|
392
398
|
},
|
|
393
399
|
exportTime: (/* @__PURE__ */ new Date()).toISOString()
|
|
394
|
-
}, e = new Blob([JSON.stringify(
|
|
400
|
+
}, e = new Blob([JSON.stringify(i, null, 2)], {
|
|
395
401
|
type: "application/json"
|
|
396
|
-
}), o = URL.createObjectURL(e),
|
|
397
|
-
|
|
398
|
-
},
|
|
399
|
-
const
|
|
400
|
-
|
|
402
|
+
}), o = URL.createObjectURL(e), C = document.createElement("a");
|
|
403
|
+
C.href = o, C.download = `robot-admin-config-${Date.now()}.json`, C.click(), URL.revokeObjectURL(o), u.success("配置已导出");
|
|
404
|
+
}, D = () => {
|
|
405
|
+
const i = document.createElement("input");
|
|
406
|
+
i.type = "file", i.accept = "application/json", i.onchange = async (e) => {
|
|
401
407
|
const o = e.target.files?.[0];
|
|
402
408
|
if (o)
|
|
403
409
|
try {
|
|
404
|
-
const
|
|
405
|
-
|
|
410
|
+
const C = await o.text(), T = JSON.parse(C);
|
|
411
|
+
T.settings && Object.assign(s, T.settings), T.gray !== void 0 && (x.value = T.gray), T.colorWeak !== void 0 && (g.value = T.colorWeak), T.watermark && (y.value = T.watermark.enabled, k.value = T.watermark.text), u.success("配置已导入");
|
|
406
412
|
} catch {
|
|
407
413
|
u.error("配置文件格式错误");
|
|
408
414
|
}
|
|
409
|
-
},
|
|
415
|
+
}, i.click();
|
|
410
416
|
};
|
|
411
|
-
return (
|
|
417
|
+
return (i, e) => (R(), ae(l(ve), {
|
|
412
418
|
show: w.value,
|
|
413
419
|
"onUpdate:show": e[16] || (e[16] = (o) => w.value = o),
|
|
414
420
|
width: 380,
|
|
@@ -417,64 +423,64 @@ const be = Z(), we = [
|
|
|
417
423
|
"block-scroll": !1
|
|
418
424
|
}, {
|
|
419
425
|
default: n(() => [
|
|
420
|
-
a(
|
|
426
|
+
a(l(pe), {
|
|
421
427
|
title: "⚙️ 布局配置",
|
|
422
428
|
closable: ""
|
|
423
429
|
}, {
|
|
424
430
|
default: n(() => [
|
|
425
|
-
a(
|
|
426
|
-
value:
|
|
427
|
-
"onUpdate:value": e[15] || (e[15] = (o) =>
|
|
431
|
+
a(l(me), {
|
|
432
|
+
value: f.value,
|
|
433
|
+
"onUpdate:value": e[15] || (e[15] = (o) => f.value = o),
|
|
428
434
|
animated: "",
|
|
429
435
|
class: "settings-tabs"
|
|
430
436
|
}, {
|
|
431
437
|
default: n(() => [
|
|
432
|
-
a(
|
|
438
|
+
a(l(j), {
|
|
433
439
|
name: "appearance",
|
|
434
440
|
tab: "🎨 外观"
|
|
435
441
|
}, {
|
|
436
442
|
default: n(() => [
|
|
437
|
-
t("div",
|
|
438
|
-
t("div",
|
|
439
|
-
(R(!0), W(J, null, Y(
|
|
443
|
+
t("div", Se, [
|
|
444
|
+
t("div", Me, [
|
|
445
|
+
(R(!0), W(J, null, Y(l(be), (o) => (R(), W("div", {
|
|
440
446
|
key: o.name,
|
|
441
|
-
class: G(["preset-card", { active:
|
|
442
|
-
onClick: (
|
|
447
|
+
class: G(["preset-card", { active: E(o) }]),
|
|
448
|
+
onClick: (C) => P(o)
|
|
443
449
|
}, [
|
|
444
|
-
t("div",
|
|
445
|
-
t("div",
|
|
446
|
-
t("div",
|
|
450
|
+
t("div", He, h(o.icon), 1),
|
|
451
|
+
t("div", Ve, h(o.name), 1),
|
|
452
|
+
t("div", Ee, [
|
|
447
453
|
t("span", {
|
|
448
454
|
class: "color-dot",
|
|
449
|
-
style:
|
|
455
|
+
style: ne({ backgroundColor: o.primaryColor })
|
|
450
456
|
}, null, 4)
|
|
451
457
|
])
|
|
452
|
-
], 10,
|
|
458
|
+
], 10, Re))), 128))
|
|
453
459
|
])
|
|
454
460
|
]),
|
|
455
|
-
t("div",
|
|
461
|
+
t("div", _e, [
|
|
456
462
|
e[20] || (e[20] = t("div", { class: "section-title" }, "主题模式", -1)),
|
|
457
|
-
a(
|
|
458
|
-
value:
|
|
459
|
-
"onUpdate:value": e[0] || (e[0] = (o) =>
|
|
463
|
+
a(l(K), {
|
|
464
|
+
value: l(s).themeMode,
|
|
465
|
+
"onUpdate:value": e[0] || (e[0] = (o) => l(s).themeMode = o),
|
|
460
466
|
class: "mode-group"
|
|
461
467
|
}, {
|
|
462
468
|
default: n(() => [
|
|
463
|
-
a(
|
|
469
|
+
a(l(M), { value: "light" }, {
|
|
464
470
|
default: n(() => [...e[17] || (e[17] = [
|
|
465
471
|
t("span", { class: "i-mdi:white-balance-sunny mr-1" }, null, -1),
|
|
466
472
|
c(" 浅色 ", -1)
|
|
467
473
|
])]),
|
|
468
474
|
_: 1
|
|
469
475
|
}),
|
|
470
|
-
a(
|
|
476
|
+
a(l(M), { value: "dark" }, {
|
|
471
477
|
default: n(() => [...e[18] || (e[18] = [
|
|
472
478
|
t("span", { class: "i-mdi:moon-waning-crescent mr-1" }, null, -1),
|
|
473
479
|
c(" 深色 ", -1)
|
|
474
480
|
])]),
|
|
475
481
|
_: 1
|
|
476
482
|
}),
|
|
477
|
-
a(
|
|
483
|
+
a(l(M), { value: "auto" }, {
|
|
478
484
|
default: n(() => [...e[19] || (e[19] = [
|
|
479
485
|
t("span", { class: "i-mdi:theme-light-dark mr-1" }, null, -1),
|
|
480
486
|
c(" 自动 ", -1)
|
|
@@ -485,40 +491,40 @@ const be = Z(), we = [
|
|
|
485
491
|
_: 1
|
|
486
492
|
}, 8, ["value"])
|
|
487
493
|
]),
|
|
488
|
-
t("div",
|
|
494
|
+
t("div", Be, [
|
|
489
495
|
e[21] || (e[21] = t("div", { class: "section-title" }, "主题色", -1)),
|
|
490
|
-
t("div",
|
|
491
|
-
a(
|
|
492
|
-
value:
|
|
493
|
-
"onUpdate:value": e[1] || (e[1] = (o) =>
|
|
496
|
+
t("div", Ue, [
|
|
497
|
+
a(l(fe), {
|
|
498
|
+
value: l(s).primaryColor,
|
|
499
|
+
"onUpdate:value": e[1] || (e[1] = (o) => l(s).primaryColor = o),
|
|
494
500
|
"show-alpha": !1,
|
|
495
|
-
swatches:
|
|
501
|
+
swatches: l(Te),
|
|
496
502
|
actions: ["confirm"]
|
|
497
503
|
}, null, 8, ["value", "swatches"]),
|
|
498
|
-
t("span",
|
|
504
|
+
t("span", We, h(l(s).primaryColor), 1)
|
|
499
505
|
])
|
|
500
506
|
]),
|
|
501
|
-
t("div",
|
|
507
|
+
t("div", Oe, [
|
|
502
508
|
e[25] || (e[25] = t("div", { class: "section-title" }, "圆角大小", -1)),
|
|
503
|
-
a(
|
|
504
|
-
value:
|
|
505
|
-
"onUpdate:value": e[2] || (e[2] = (o) =>
|
|
509
|
+
a(l(K), {
|
|
510
|
+
value: l(s).borderRadius,
|
|
511
|
+
"onUpdate:value": e[2] || (e[2] = (o) => l(s).borderRadius = o),
|
|
506
512
|
class: "radius-group"
|
|
507
513
|
}, {
|
|
508
514
|
default: n(() => [
|
|
509
|
-
a(
|
|
515
|
+
a(l(M), { value: "small" }, {
|
|
510
516
|
default: n(() => [...e[22] || (e[22] = [
|
|
511
517
|
c("小 (4px)", -1)
|
|
512
518
|
])]),
|
|
513
519
|
_: 1
|
|
514
520
|
}),
|
|
515
|
-
a(
|
|
521
|
+
a(l(M), { value: "medium" }, {
|
|
516
522
|
default: n(() => [...e[23] || (e[23] = [
|
|
517
523
|
c("中 (6px)", -1)
|
|
518
524
|
])]),
|
|
519
525
|
_: 1
|
|
520
526
|
}),
|
|
521
|
-
a(
|
|
527
|
+
a(l(M), { value: "large" }, {
|
|
522
528
|
default: n(() => [...e[24] || (e[24] = [
|
|
523
529
|
c("大 (8px)", -1)
|
|
524
530
|
])]),
|
|
@@ -528,41 +534,41 @@ const be = Z(), we = [
|
|
|
528
534
|
_: 1
|
|
529
535
|
}, 8, ["value"])
|
|
530
536
|
]),
|
|
531
|
-
t("div",
|
|
537
|
+
t("div", Le, [
|
|
532
538
|
e[31] || (e[31] = t("div", { class: "section-title" }, "页面动画", -1)),
|
|
533
|
-
t("div",
|
|
539
|
+
t("div", Ie, [
|
|
534
540
|
e[26] || (e[26] = t("span", { class: "text-sm" }, "启用动画", -1)),
|
|
535
|
-
a(
|
|
536
|
-
value:
|
|
537
|
-
"onUpdate:value": e[3] || (e[3] = (o) =>
|
|
541
|
+
a(l(H), {
|
|
542
|
+
value: l(s).enableTransition,
|
|
543
|
+
"onUpdate:value": e[3] || (e[3] = (o) => l(s).enableTransition = o)
|
|
538
544
|
}, null, 8, ["value"])
|
|
539
545
|
]),
|
|
540
|
-
a(
|
|
541
|
-
value:
|
|
542
|
-
"onUpdate:value": e[4] || (e[4] = (o) =>
|
|
543
|
-
disabled: !
|
|
546
|
+
a(l(K), {
|
|
547
|
+
value: l(s).transitionType,
|
|
548
|
+
"onUpdate:value": e[4] || (e[4] = (o) => l(s).transitionType = o),
|
|
549
|
+
disabled: !l(s).enableTransition,
|
|
544
550
|
class: "transition-group"
|
|
545
551
|
}, {
|
|
546
552
|
default: n(() => [
|
|
547
|
-
a(
|
|
553
|
+
a(l(M), { value: "fade" }, {
|
|
548
554
|
default: n(() => [...e[27] || (e[27] = [
|
|
549
555
|
c("淡入", -1)
|
|
550
556
|
])]),
|
|
551
557
|
_: 1
|
|
552
558
|
}),
|
|
553
|
-
a(
|
|
559
|
+
a(l(M), { value: "slide" }, {
|
|
554
560
|
default: n(() => [...e[28] || (e[28] = [
|
|
555
561
|
c("滑动", -1)
|
|
556
562
|
])]),
|
|
557
563
|
_: 1
|
|
558
564
|
}),
|
|
559
|
-
a(
|
|
565
|
+
a(l(M), { value: "zoom" }, {
|
|
560
566
|
default: n(() => [...e[29] || (e[29] = [
|
|
561
567
|
c("缩放", -1)
|
|
562
568
|
])]),
|
|
563
569
|
_: 1
|
|
564
570
|
}),
|
|
565
|
-
a(
|
|
571
|
+
a(l(M), { value: "none" }, {
|
|
566
572
|
default: n(() => [...e[30] || (e[30] = [
|
|
567
573
|
c("无", -1)
|
|
568
574
|
])]),
|
|
@@ -572,11 +578,11 @@ const be = Z(), we = [
|
|
|
572
578
|
_: 1
|
|
573
579
|
}, 8, ["value", "disabled"])
|
|
574
580
|
]),
|
|
575
|
-
t("div",
|
|
576
|
-
a(
|
|
581
|
+
t("div", Pe, [
|
|
582
|
+
a(l(O), {
|
|
577
583
|
block: "",
|
|
578
584
|
secondary: "",
|
|
579
|
-
onClick:
|
|
585
|
+
onClick: N
|
|
580
586
|
}, {
|
|
581
587
|
icon: n(() => [...e[32] || (e[32] = [
|
|
582
588
|
t("span", { class: "i-mdi:restore" }, null, -1)
|
|
@@ -590,92 +596,92 @@ const be = Z(), we = [
|
|
|
590
596
|
]),
|
|
591
597
|
_: 1
|
|
592
598
|
}),
|
|
593
|
-
a(
|
|
599
|
+
a(l(j), {
|
|
594
600
|
name: "layout",
|
|
595
601
|
tab: "📐 布局"
|
|
596
602
|
}, {
|
|
597
603
|
default: n(() => [
|
|
598
|
-
t("div",
|
|
604
|
+
t("div", Ne, [
|
|
599
605
|
e[34] || (e[34] = t("div", { class: "section-title" }, "布局模式", -1)),
|
|
600
|
-
t("div",
|
|
601
|
-
(R(!0), W(J, null, Y(
|
|
606
|
+
t("div", Ae, [
|
|
607
|
+
(R(!0), W(J, null, Y(l(ke), (o) => (R(), W("div", {
|
|
602
608
|
key: o.value,
|
|
603
609
|
class: G(["layout-item", {
|
|
604
|
-
active:
|
|
610
|
+
active: l(s).layoutMode === o.value,
|
|
605
611
|
disabled: o.disabled
|
|
606
612
|
}]),
|
|
607
|
-
onClick: (
|
|
613
|
+
onClick: re((C) => I(o.value, o.disabled), ["stop"])
|
|
608
614
|
}, [
|
|
609
|
-
t("div",
|
|
610
|
-
(R(), W("svg",
|
|
615
|
+
t("div", $e, [
|
|
616
|
+
(R(), W("svg", Fe, [
|
|
611
617
|
t("g", {
|
|
612
618
|
innerHTML: o.svg
|
|
613
|
-
}, null, 8,
|
|
619
|
+
}, null, 8, ze)
|
|
614
620
|
]))
|
|
615
621
|
]),
|
|
616
|
-
t("div",
|
|
622
|
+
t("div", je, [
|
|
617
623
|
c(h(o.label) + " ", 1),
|
|
618
|
-
o.disabled ? (R(), W("span",
|
|
624
|
+
o.disabled ? (R(), W("span", Ke, "敬请期待")) : X("", !0)
|
|
619
625
|
])
|
|
620
|
-
], 10,
|
|
626
|
+
], 10, De))), 128))
|
|
621
627
|
])
|
|
622
628
|
]),
|
|
623
|
-
t("div",
|
|
629
|
+
t("div", Je, [
|
|
624
630
|
e[39] || (e[39] = t("div", { class: "section-title" }, "界面元素", -1)),
|
|
625
|
-
t("div",
|
|
631
|
+
t("div", Ye, [
|
|
626
632
|
e[35] || (e[35] = t("span", null, "显示面包屑", -1)),
|
|
627
|
-
a(
|
|
628
|
-
value:
|
|
629
|
-
"onUpdate:value": e[5] || (e[5] = (o) =>
|
|
633
|
+
a(l(H), {
|
|
634
|
+
value: l(s).showBreadcrumb,
|
|
635
|
+
"onUpdate:value": e[5] || (e[5] = (o) => l(s).showBreadcrumb = o)
|
|
630
636
|
}, null, 8, ["value"])
|
|
631
637
|
]),
|
|
632
|
-
t("div",
|
|
638
|
+
t("div", Ge, [
|
|
633
639
|
e[36] || (e[36] = t("span", null, "显示面包屑图标", -1)),
|
|
634
|
-
a(
|
|
635
|
-
value:
|
|
636
|
-
"onUpdate:value": e[6] || (e[6] = (o) =>
|
|
637
|
-
disabled: !
|
|
640
|
+
a(l(H), {
|
|
641
|
+
value: l(s).showBreadcrumbIcon,
|
|
642
|
+
"onUpdate:value": e[6] || (e[6] = (o) => l(s).showBreadcrumbIcon = o),
|
|
643
|
+
disabled: !l(s).showBreadcrumb
|
|
638
644
|
}, null, 8, ["value", "disabled"])
|
|
639
645
|
]),
|
|
640
|
-
t("div",
|
|
646
|
+
t("div", Xe, [
|
|
641
647
|
e[37] || (e[37] = t("span", null, "显示标签页", -1)),
|
|
642
|
-
a(
|
|
643
|
-
value:
|
|
644
|
-
"onUpdate:value": e[7] || (e[7] = (o) =>
|
|
648
|
+
a(l(H), {
|
|
649
|
+
value: l(s).showTagsView,
|
|
650
|
+
"onUpdate:value": e[7] || (e[7] = (o) => l(s).showTagsView = o)
|
|
645
651
|
}, null, 8, ["value"])
|
|
646
652
|
]),
|
|
647
|
-
t("div",
|
|
653
|
+
t("div", qe, [
|
|
648
654
|
e[38] || (e[38] = t("span", null, "显示页脚", -1)),
|
|
649
|
-
a(
|
|
650
|
-
value:
|
|
651
|
-
"onUpdate:value": e[8] || (e[8] = (o) =>
|
|
655
|
+
a(l(H), {
|
|
656
|
+
value: l(s).showFooter,
|
|
657
|
+
"onUpdate:value": e[8] || (e[8] = (o) => l(s).showFooter = o)
|
|
652
658
|
}, null, 8, ["value"])
|
|
653
659
|
])
|
|
654
660
|
]),
|
|
655
|
-
t("div",
|
|
661
|
+
t("div", Qe, [
|
|
656
662
|
e[42] || (e[42] = t("div", { class: "section-title" }, "尺寸调整", -1)),
|
|
657
|
-
t("div",
|
|
658
|
-
t("div",
|
|
663
|
+
t("div", Ze, [
|
|
664
|
+
t("div", et, [
|
|
659
665
|
e[40] || (e[40] = t("span", null, "侧边栏宽度", -1)),
|
|
660
|
-
t("span",
|
|
666
|
+
t("span", tt, h(l(s).sidebarWidth) + "px", 1)
|
|
661
667
|
]),
|
|
662
|
-
a(
|
|
663
|
-
value:
|
|
664
|
-
"onUpdate:value": e[9] || (e[9] = (o) =>
|
|
668
|
+
a(l(q), {
|
|
669
|
+
value: l(s).sidebarWidth,
|
|
670
|
+
"onUpdate:value": e[9] || (e[9] = (o) => l(s).sidebarWidth = o),
|
|
665
671
|
min: 180,
|
|
666
672
|
max: 280,
|
|
667
673
|
step: 10,
|
|
668
674
|
marks: { 180: "180", 220: "220", 280: "280" }
|
|
669
675
|
}, null, 8, ["value"])
|
|
670
676
|
]),
|
|
671
|
-
t("div",
|
|
672
|
-
t("div",
|
|
677
|
+
t("div", st, [
|
|
678
|
+
t("div", ot, [
|
|
673
679
|
e[41] || (e[41] = t("span", null, "头部高度", -1)),
|
|
674
|
-
t("span",
|
|
680
|
+
t("span", lt, h(l(s).headerHeight) + "px", 1)
|
|
675
681
|
]),
|
|
676
|
-
a(
|
|
677
|
-
value:
|
|
678
|
-
"onUpdate:value": e[10] || (e[10] = (o) =>
|
|
682
|
+
a(l(q), {
|
|
683
|
+
value: l(s).headerHeight,
|
|
684
|
+
"onUpdate:value": e[10] || (e[10] = (o) => l(s).headerHeight = o),
|
|
679
685
|
min: 48,
|
|
680
686
|
max: 64,
|
|
681
687
|
step: 4,
|
|
@@ -683,11 +689,11 @@ const be = Z(), we = [
|
|
|
683
689
|
}, null, 8, ["value"])
|
|
684
690
|
])
|
|
685
691
|
]),
|
|
686
|
-
t("div",
|
|
687
|
-
a(
|
|
692
|
+
t("div", it, [
|
|
693
|
+
a(l(O), {
|
|
688
694
|
block: "",
|
|
689
695
|
secondary: "",
|
|
690
|
-
onClick:
|
|
696
|
+
onClick: _
|
|
691
697
|
}, {
|
|
692
698
|
icon: n(() => [...e[43] || (e[43] = [
|
|
693
699
|
t("span", { class: "i-mdi:restore" }, null, -1)
|
|
@@ -701,17 +707,17 @@ const be = Z(), we = [
|
|
|
701
707
|
]),
|
|
702
708
|
_: 1
|
|
703
709
|
}),
|
|
704
|
-
a(
|
|
710
|
+
a(l(j), {
|
|
705
711
|
name: "features",
|
|
706
712
|
tab: "🔧 功能"
|
|
707
713
|
}, {
|
|
708
714
|
default: n(() => [
|
|
709
|
-
t("div",
|
|
715
|
+
t("div", at, [
|
|
710
716
|
e[49] || (e[49] = t("div", { class: "section-title" }, "缓存管理", -1)),
|
|
711
|
-
t("div",
|
|
712
|
-
a(
|
|
717
|
+
t("div", nt, [
|
|
718
|
+
a(l(O), {
|
|
713
719
|
secondary: "",
|
|
714
|
-
onClick:
|
|
720
|
+
onClick: U
|
|
715
721
|
}, {
|
|
716
722
|
icon: n(() => [...e[45] || (e[45] = [
|
|
717
723
|
t("span", { class: "i-mdi:delete-sweep" }, null, -1)
|
|
@@ -721,9 +727,9 @@ const be = Z(), we = [
|
|
|
721
727
|
]),
|
|
722
728
|
_: 1
|
|
723
729
|
}),
|
|
724
|
-
a(
|
|
730
|
+
a(l(O), {
|
|
725
731
|
secondary: "",
|
|
726
|
-
onClick:
|
|
732
|
+
onClick: A
|
|
727
733
|
}, {
|
|
728
734
|
icon: n(() => [...e[47] || (e[47] = [
|
|
729
735
|
t("span", { class: "i-mdi:refresh" }, null, -1)
|
|
@@ -735,12 +741,12 @@ const be = Z(), we = [
|
|
|
735
741
|
})
|
|
736
742
|
])
|
|
737
743
|
]),
|
|
738
|
-
t("div",
|
|
744
|
+
t("div", rt, [
|
|
739
745
|
e[56] || (e[56] = t("div", { class: "section-title" }, "配置管理", -1)),
|
|
740
|
-
t("div",
|
|
741
|
-
a(
|
|
746
|
+
t("div", dt, [
|
|
747
|
+
a(l(O), {
|
|
742
748
|
secondary: "",
|
|
743
|
-
onClick:
|
|
749
|
+
onClick: z
|
|
744
750
|
}, {
|
|
745
751
|
icon: n(() => [...e[50] || (e[50] = [
|
|
746
752
|
t("span", { class: "i-mdi:download" }, null, -1)
|
|
@@ -750,9 +756,9 @@ const be = Z(), we = [
|
|
|
750
756
|
]),
|
|
751
757
|
_: 1
|
|
752
758
|
}),
|
|
753
|
-
a(
|
|
759
|
+
a(l(O), {
|
|
754
760
|
secondary: "",
|
|
755
|
-
onClick:
|
|
761
|
+
onClick: D
|
|
756
762
|
}, {
|
|
757
763
|
icon: n(() => [...e[52] || (e[52] = [
|
|
758
764
|
t("span", { class: "i-mdi:upload" }, null, -1)
|
|
@@ -763,12 +769,12 @@ const be = Z(), we = [
|
|
|
763
769
|
_: 1
|
|
764
770
|
})
|
|
765
771
|
]),
|
|
766
|
-
a(
|
|
772
|
+
a(l(O), {
|
|
767
773
|
block: "",
|
|
768
774
|
type: "error",
|
|
769
775
|
secondary: "",
|
|
770
776
|
class: "mt-2",
|
|
771
|
-
onClick:
|
|
777
|
+
onClick: B
|
|
772
778
|
}, {
|
|
773
779
|
icon: n(() => [...e[54] || (e[54] = [
|
|
774
780
|
t("span", { class: "i-mdi:restore" }, null, -1)
|
|
@@ -779,73 +785,73 @@ const be = Z(), we = [
|
|
|
779
785
|
_: 1
|
|
780
786
|
})
|
|
781
787
|
]),
|
|
782
|
-
t("div",
|
|
788
|
+
t("div", ut, [
|
|
783
789
|
e[59] || (e[59] = t("div", { class: "section-title" }, "系统模式", -1)),
|
|
784
|
-
t("div",
|
|
790
|
+
t("div", ct, [
|
|
785
791
|
e[57] || (e[57] = t("div", { class: "setting-label" }, [
|
|
786
792
|
t("span", null, "灰色模式"),
|
|
787
793
|
t("span", { class: "setting-desc" }, "用于哀悼日场景")
|
|
788
794
|
], -1)),
|
|
789
|
-
a(
|
|
795
|
+
a(l(H), {
|
|
790
796
|
value: x.value,
|
|
791
797
|
"onUpdate:value": e[11] || (e[11] = (o) => x.value = o)
|
|
792
798
|
}, null, 8, ["value"])
|
|
793
799
|
]),
|
|
794
|
-
t("div",
|
|
800
|
+
t("div", vt, [
|
|
795
801
|
e[58] || (e[58] = t("div", { class: "setting-label" }, [
|
|
796
802
|
t("span", null, "色弱模式"),
|
|
797
803
|
t("span", { class: "setting-desc" }, "提供无障碍访问支持")
|
|
798
804
|
], -1)),
|
|
799
|
-
a(
|
|
800
|
-
value:
|
|
801
|
-
"onUpdate:value": e[12] || (e[12] = (o) =>
|
|
805
|
+
a(l(H), {
|
|
806
|
+
value: g.value,
|
|
807
|
+
"onUpdate:value": e[12] || (e[12] = (o) => g.value = o)
|
|
802
808
|
}, null, 8, ["value"])
|
|
803
809
|
])
|
|
804
810
|
]),
|
|
805
|
-
t("div",
|
|
811
|
+
t("div", pt, [
|
|
806
812
|
e[61] || (e[61] = t("div", { class: "section-title" }, "水印设置", -1)),
|
|
807
|
-
t("div",
|
|
813
|
+
t("div", mt, [
|
|
808
814
|
e[60] || (e[60] = t("span", null, "启用水印", -1)),
|
|
809
|
-
a(
|
|
815
|
+
a(l(H), {
|
|
810
816
|
value: y.value,
|
|
811
817
|
"onUpdate:value": e[13] || (e[13] = (o) => y.value = o)
|
|
812
818
|
}, null, 8, ["value"])
|
|
813
819
|
]),
|
|
814
|
-
y.value ? (R(), W("div",
|
|
815
|
-
a(
|
|
816
|
-
value:
|
|
817
|
-
"onUpdate:value": e[14] || (e[14] = (o) =>
|
|
820
|
+
y.value ? (R(), W("div", ft, [
|
|
821
|
+
a(l(ge), {
|
|
822
|
+
value: k.value,
|
|
823
|
+
"onUpdate:value": e[14] || (e[14] = (o) => k.value = o),
|
|
818
824
|
placeholder: "请输入水印内容",
|
|
819
825
|
size: "small"
|
|
820
826
|
}, null, 8, ["value"])
|
|
821
827
|
])) : X("", !0)
|
|
822
828
|
]),
|
|
823
|
-
t("div",
|
|
829
|
+
t("div", gt, [
|
|
824
830
|
e[68] || (e[68] = t("div", { class: "section-title" }, "系统信息", -1)),
|
|
825
|
-
t("div",
|
|
826
|
-
t("div",
|
|
831
|
+
t("div", yt, [
|
|
832
|
+
t("div", ht, [
|
|
827
833
|
e[62] || (e[62] = t("span", { class: "info-label" }, "浏览器", -1)),
|
|
828
|
-
t("span",
|
|
834
|
+
t("span", bt, h(S.value.browser), 1)
|
|
829
835
|
]),
|
|
830
|
-
t("div",
|
|
836
|
+
t("div", wt, [
|
|
831
837
|
e[63] || (e[63] = t("span", { class: "info-label" }, "操作系统", -1)),
|
|
832
|
-
t("span",
|
|
838
|
+
t("span", xt, h(S.value.os), 1)
|
|
833
839
|
]),
|
|
834
|
-
t("div",
|
|
840
|
+
t("div", Ct, [
|
|
835
841
|
e[64] || (e[64] = t("span", { class: "info-label" }, "屏幕分辨率", -1)),
|
|
836
|
-
t("span",
|
|
842
|
+
t("span", Tt, h(S.value.resolution), 1)
|
|
837
843
|
]),
|
|
838
|
-
t("div",
|
|
844
|
+
t("div", kt, [
|
|
839
845
|
e[65] || (e[65] = t("span", { class: "info-label" }, "设备像素比", -1)),
|
|
840
|
-
t("span",
|
|
846
|
+
t("span", St, h(S.value.pixelRatio), 1)
|
|
841
847
|
]),
|
|
842
|
-
t("div",
|
|
848
|
+
t("div", Mt, [
|
|
843
849
|
e[66] || (e[66] = t("span", { class: "info-label" }, "语言", -1)),
|
|
844
|
-
t("span",
|
|
850
|
+
t("span", Rt, h(S.value.language), 1)
|
|
845
851
|
]),
|
|
846
|
-
t("div",
|
|
852
|
+
t("div", Ht, [
|
|
847
853
|
e[67] || (e[67] = t("span", { class: "info-label" }, "时区", -1)),
|
|
848
|
-
t("span",
|
|
854
|
+
t("span", Vt, h(S.value.timezone), 1)
|
|
849
855
|
])
|
|
850
856
|
])
|
|
851
857
|
])
|
|
@@ -862,27 +868,27 @@ const be = Z(), we = [
|
|
|
862
868
|
_: 1
|
|
863
869
|
}, 8, ["show"]));
|
|
864
870
|
}
|
|
865
|
-
}),
|
|
871
|
+
}), _t = (b, u) => {
|
|
866
872
|
const v = b.__vccOpts || b;
|
|
867
873
|
for (const [s, w] of u)
|
|
868
874
|
v[s] = w;
|
|
869
875
|
return v;
|
|
870
|
-
},
|
|
871
|
-
function
|
|
876
|
+
}, It = /* @__PURE__ */ _t(Et, [["__scopeId", "data-v-a6b98153"]]);
|
|
877
|
+
function Pt(b, u = {}) {
|
|
872
878
|
const v = Z(u);
|
|
873
879
|
return v().syncCSSVariables(), v;
|
|
874
880
|
}
|
|
875
881
|
export {
|
|
876
|
-
|
|
877
|
-
|
|
882
|
+
we as BORDER_RADIUS_MAP,
|
|
883
|
+
Lt as COLOR_SWATCHES,
|
|
878
884
|
m as DEFAULT_SETTINGS,
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
885
|
+
Ot as LAYOUT_MODES,
|
|
886
|
+
he as PRESET_COLORS,
|
|
887
|
+
It as SettingsDrawer,
|
|
888
|
+
be as THEME_PRESETS,
|
|
889
|
+
xe as TRANSITION_MAP,
|
|
884
890
|
Z as createSettingsStore,
|
|
885
|
-
|
|
886
|
-
|
|
891
|
+
Pt as setupLayout,
|
|
892
|
+
Ce as useSettingsStore
|
|
887
893
|
};
|
|
888
894
|
//# sourceMappingURL=index.js.map
|