@robot-admin/layout 0.1.0 → 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.js CHANGED
@@ -1,7 +1,7 @@
1
- import { ref as d, computed as D, watch as F, defineComponent as te, useModel as se, onUnmounted as oe, openBlock as R, createBlock as ie, unref as i, 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 le, createTextVNode as c, createCommentVNode as X, mergeModels as ae } from "vue";
2
- import { useMessage as ne, useDialog as re, NDrawer as de, NDrawerContent as ue, NTabs as ce, NTabPane as j, NRadioGroup as K, NRadioButton as M, NColorPicker as ve, NSwitch as H, NButton as O, NSlider as q, NInput as me } from "naive-ui";
3
- import { defineStore as pe } from "pinia";
4
- const ge = [
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
- ], fe = [
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
- ], Bt = [
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
- ], ye = {
81
+ ], we = {
82
82
  small: "4px",
83
83
  medium: "6px",
84
84
  large: "8px"
85
- }, he = {
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
- }, Ut = ge.map((b) => b.value);
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)), p = Math.min(255, Math.max(0, (v & 255) + u));
115
- return `#${(s << 16 | w << 8 | p).toString(16).padStart(6, "0")}`;
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 pe("settings", () => {
123
- const w = d(s.themeMode), p = d(s.primaryColor), x = d(s.borderRadius), f = d(s.transitionType), y = d(s.enableTransition), S = d(s.layoutMode), g = d(s.fixedHeader), V = d(s.showBreadcrumb), L = d(s.showBreadcrumbIcon), C = d(s.showTagsView), E = d(s.tagsViewHeight), P = d(s.tagsViewStyle), I = d(s.showFooter), _ = d(s.sidebarWidth), B = d(
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), N = d(s.enableHotkeys), $ = d(s.version), A = D(
126
- () => ye[x.value]
127
- ), z = D(() => he[f.value]), l = D(
128
- () => y.value && f.value !== "none"
129
- ), e = D(() => ({
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: p.value,
132
+ primaryColor: f.value,
132
133
  borderRadius: x.value,
133
- transitionType: f.value,
134
+ transitionType: g.value,
134
135
  enableTransition: y.value,
135
- layoutMode: S.value,
136
- fixedHeader: g.value,
136
+ layoutMode: k.value,
137
+ collapsed: p.value,
138
+ fixedHeader: L.value,
137
139
  showBreadcrumb: V.value,
138
- showBreadcrumbIcon: L.value,
139
- showTagsView: C.value,
140
+ showBreadcrumbIcon: S.value,
141
+ showTagsView: I.value,
140
142
  tagsViewHeight: E.value,
141
143
  tagsViewStyle: P.value,
142
- showFooter: I.value,
144
+ showFooter: N.value,
143
145
  sidebarWidth: _.value,
144
146
  sidebarCollapsedWidth: B.value,
145
147
  headerHeight: U.value,
146
- enableHotkeys: N.value,
147
- version: $.value
148
- })), o = () => {
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", p.value), r.style.setProperty(
153
+ r.style.setProperty("--primary-color", f.value), r.style.setProperty(
152
154
  "--primary-color-hover",
153
- Q(p.value, 10)
155
+ Q(f.value, 10)
154
156
  ), r.style.setProperty(
155
157
  "--primary-color-pressed",
156
- Q(p.value, -10)
157
- ), r.style.setProperty("--border-radius", A.value), r.style.setProperty("--sidebar-width", `${_.value}px`), r.style.setProperty(
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
- p.value = r.primaryColor, r.settings && (r.settings.borderRadius && (x.value = r.settings.borderRadius), r.settings.transitionType && (f.value = r.settings.transitionType), r.settings.showBreadcrumb !== void 0 && (V.value = r.settings.showBreadcrumb), r.settings.showTagsView !== void 0 && (C.value = r.settings.showTagsView), r.settings.tagsViewStyle && (P.value = r.settings.tagsViewStyle));
163
- }, k = () => {
164
- w.value = s.themeMode, p.value = s.primaryColor, x.value = s.borderRadius, f.value = s.transitionType, y.value = s.enableTransition, S.value = s.layoutMode, g.value = s.fixedHeader, V.value = s.showBreadcrumb, L.value = s.showBreadcrumbIcon, C.value = s.showTagsView, E.value = s.tagsViewHeight, P.value = s.tagsViewStyle, I.value = s.showFooter, _.value = s.sidebarWidth, B.value = s.sidebarCollapsedWidth, U.value = s.headerHeight, N.value = s.enableHotkeys;
165
- }, ee = async (r) => {
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
- p,
171
- A,
174
+ f,
175
+ D,
172
176
  _,
173
177
  B,
174
178
  U,
175
179
  E
176
180
  ],
177
181
  () => {
178
- o();
182
+ C();
179
183
  },
180
184
  { immediate: !0 }
181
185
  ), {
182
186
  // 状态
183
187
  themeMode: w,
184
- primaryColor: p,
188
+ primaryColor: f,
185
189
  borderRadius: x,
186
- transitionType: f,
190
+ transitionType: g,
187
191
  enableTransition: y,
188
- layoutMode: S,
189
- fixedHeader: g,
192
+ layoutMode: k,
193
+ collapsed: p,
194
+ fixedHeader: L,
190
195
  showBreadcrumb: V,
191
- showBreadcrumbIcon: L,
192
- showTagsView: C,
196
+ showBreadcrumbIcon: S,
197
+ showTagsView: I,
193
198
  tagsViewHeight: E,
194
199
  tagsViewStyle: P,
195
- showFooter: I,
200
+ showFooter: N,
196
201
  sidebarWidth: _,
197
202
  sidebarCollapsedWidth: B,
198
203
  headerHeight: U,
199
- enableHotkeys: N,
200
- version: $,
204
+ enableHotkeys: A,
205
+ version: z,
201
206
  // 计算属性
202
- borderRadiusValue: A,
203
- transitionName: z,
204
- shouldEnableTransition: l,
205
- settingsState: e,
207
+ borderRadiusValue: D,
208
+ transitionName: i,
209
+ shouldEnableTransition: e,
210
+ settingsState: o,
206
211
  // 方法
207
- syncCSSVariables: o,
212
+ syncCSSVariables: C,
208
213
  applyPreset: T,
209
- resetSettings: k,
210
- updateThemeMode: ee
214
+ resetSettings: ee,
215
+ updateThemeMode: te,
216
+ toggleCollapse: se
211
217
  };
212
218
  });
213
219
  }
214
- const be = Z(), we = [
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
- ], xe = [
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
- ], Ce = { class: "settings-section" }, Te = { class: "preset-grid" }, ke = ["onClick"], Se = { class: "preset-icon" }, Me = { class: "preset-name" }, Re = { class: "preset-color" }, He = { class: "settings-section" }, Ve = { class: "settings-section" }, Ee = { class: "color-picker-wrapper" }, _e = { class: "color-value" }, Be = { class: "settings-section" }, Ue = { class: "settings-section" }, We = { class: "flex items-center justify-between mb-2" }, Oe = { class: "settings-section" }, Le = { class: "settings-section" }, Pe = { class: "layout-grid" }, Ie = ["onClick"], Ne = { class: "layout-screenshot" }, Ae = {
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
- }, De = ["innerHTML"], Fe = { class: "layout-label" }, $e = {
297
+ }, ze = ["innerHTML"], je = { class: "layout-label" }, Ke = {
292
298
  key: 0,
293
299
  class: "badge-soon"
294
- }, ze = { class: "settings-section" }, je = { class: "setting-item" }, Ke = { class: "setting-item" }, Je = { class: "setting-item" }, Ye = { class: "setting-item" }, Ge = { class: "settings-section" }, Xe = { class: "slider-item" }, qe = { class: "slider-label" }, Qe = { class: "slider-value" }, Ze = { class: "slider-item" }, et = { class: "slider-label" }, tt = { class: "slider-value" }, st = { class: "settings-section" }, ot = { class: "settings-section" }, it = { class: "action-buttons-grid" }, lt = { class: "settings-section" }, at = { class: "action-buttons-grid" }, nt = { class: "settings-section" }, rt = { class: "setting-item" }, dt = { class: "setting-item" }, ut = { class: "settings-section" }, ct = { class: "setting-item" }, vt = {
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
- }, mt = { class: "settings-section" }, pt = { class: "system-info" }, gt = { class: "info-item" }, ft = { class: "info-value" }, yt = { class: "info-item" }, ht = { class: "info-value" }, bt = { class: "info-item" }, wt = { class: "info-value" }, xt = { class: "info-item" }, Ct = { class: "info-value" }, Tt = { class: "info-item" }, kt = { class: "info-value" }, St = { class: "info-item" }, Mt = { class: "info-value" }, Rt = /* @__PURE__ */ te({
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__ */ ae({
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 = ne(), v = re(), s = be(), w = se(b, "show"), p = d("appearance"), x = d(!1), f = d(!1), y = d(!1), S = d("Robot Admin");
308
- let g = null;
309
- const V = (l) => {
310
- g && (document.body.removeChild(g), g = null);
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(l, 0, 80), g = document.createElement("div"), g.style.cssText = `
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(g);
324
- }, L = () => {
325
- g && (document.body.removeChild(g), g = null);
329
+ `, document.body.appendChild(p);
330
+ }, V = () => {
331
+ p && (document.body.removeChild(p), p = null);
326
332
  };
327
- F(x, (l) => {
328
- document.documentElement.classList.toggle("gray-mode", l);
329
- }), F(f, (l) => {
330
- document.documentElement.classList.toggle("color-weak-mode", l);
331
- }), F(y, (l) => {
332
- l ? V(S.value) : L();
333
- }), F(S, (l) => {
334
- y.value && V(l);
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 C = D(() => {
337
- const l = navigator.userAgent;
342
+ const S = $(() => {
343
+ const i = navigator.userAgent;
338
344
  let e = "Unknown", o = "Unknown";
339
- return l.includes("Chrome") ? e = "Chrome" : l.includes("Firefox") ? e = "Firefox" : l.includes("Safari") ? e = "Safari" : l.includes("Edge") && (e = "Edge"), l.includes("Windows") ? o = "Windows" : l.includes("Mac") ? o = "macOS" : l.includes("Linux") ? o = "Linux" : l.includes("Android") ? o = "Android" : l.includes("iOS") && (o = "iOS"), {
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
- oe(() => {
349
- L();
354
+ ie(() => {
355
+ V();
350
356
  });
351
- const E = (l, e) => {
352
- l.stopPropagation(), s.layoutMode = e;
353
- }, P = (l) => s.primaryColor === l.primaryColor, I = (l) => {
354
- s.applyPreset(l), u.success(`已应用「${l.name}」主题方案`);
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
- }, B = () => {
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
- }, U = () => {
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
- }, N = () => {
375
+ }, U = () => {
370
376
  v.warning({
371
377
  title: "确认清除",
372
378
  content: "确定要清除浏览器缓存吗?",
373
379
  positiveText: "确认",
374
380
  negativeText: "取消",
375
381
  onPositiveClick: () => {
376
- const l = ["theme-mode", "robot-admin-settings"];
382
+ const i = ["theme-mode", "robot-admin-settings"];
377
383
  Object.keys(localStorage).forEach((o) => {
378
- l.includes(o) || localStorage.removeItem(o);
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
- const l = {
389
+ location.reload();
390
+ }, z = () => {
391
+ const i = {
386
392
  settings: s.settingsState,
387
393
  gray: x.value,
388
- colorWeak: f.value,
394
+ colorWeak: g.value,
389
395
  watermark: {
390
396
  enabled: y.value,
391
- text: S.value
397
+ text: k.value
392
398
  },
393
399
  exportTime: (/* @__PURE__ */ new Date()).toISOString()
394
- }, e = new Blob([JSON.stringify(l, null, 2)], {
400
+ }, e = new Blob([JSON.stringify(i, null, 2)], {
395
401
  type: "application/json"
396
- }), o = URL.createObjectURL(e), T = document.createElement("a");
397
- T.href = o, T.download = `robot-admin-config-${Date.now()}.json`, T.click(), URL.revokeObjectURL(o), u.success("配置已导出");
398
- }, z = () => {
399
- const l = document.createElement("input");
400
- l.type = "file", l.accept = "application/json", l.onchange = async (e) => {
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 T = await o.text(), k = JSON.parse(T);
405
- k.settings && Object.assign(s, k.settings), k.gray !== void 0 && (x.value = k.gray), k.colorWeak !== void 0 && (f.value = k.colorWeak), k.watermark && (y.value = k.watermark.enabled, S.value = k.watermark.text), u.success("配置已导入");
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
- }, l.click();
415
+ }, i.click();
410
416
  };
411
- return (l, e) => (R(), ie(i(de), {
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(i(ue), {
426
+ a(l(pe), {
421
427
  title: "⚙️ 布局配置",
422
428
  closable: ""
423
429
  }, {
424
430
  default: n(() => [
425
- a(i(ce), {
426
- value: p.value,
427
- "onUpdate:value": e[15] || (e[15] = (o) => p.value = 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(i(j), {
438
+ a(l(j), {
433
439
  name: "appearance",
434
440
  tab: "🎨 外观"
435
441
  }, {
436
442
  default: n(() => [
437
- t("div", Ce, [
438
- t("div", Te, [
439
- (R(!0), W(J, null, Y(i(fe), (o) => (R(), W("div", {
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: P(o) }]),
442
- onClick: (T) => I(o)
447
+ class: G(["preset-card", { active: E(o) }]),
448
+ onClick: (C) => P(o)
443
449
  }, [
444
- t("div", Se, h(o.icon), 1),
445
- t("div", Me, h(o.name), 1),
446
- t("div", Re, [
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: le({ backgroundColor: o.primaryColor })
455
+ style: ne({ backgroundColor: o.primaryColor })
450
456
  }, null, 4)
451
457
  ])
452
- ], 10, ke))), 128))
458
+ ], 10, Re))), 128))
453
459
  ])
454
460
  ]),
455
- t("div", He, [
461
+ t("div", _e, [
456
462
  e[20] || (e[20] = t("div", { class: "section-title" }, "主题模式", -1)),
457
- a(i(K), {
458
- value: i(s).themeMode,
459
- "onUpdate:value": e[0] || (e[0] = (o) => i(s).themeMode = 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(i(M), { value: "light" }, {
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(i(M), { value: "dark" }, {
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(i(M), { value: "auto" }, {
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", Ve, [
494
+ t("div", Be, [
489
495
  e[21] || (e[21] = t("div", { class: "section-title" }, "主题色", -1)),
490
- t("div", Ee, [
491
- a(i(ve), {
492
- value: i(s).primaryColor,
493
- "onUpdate:value": e[1] || (e[1] = (o) => i(s).primaryColor = 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: i(we),
501
+ swatches: l(Te),
496
502
  actions: ["confirm"]
497
503
  }, null, 8, ["value", "swatches"]),
498
- t("span", _e, h(i(s).primaryColor), 1)
504
+ t("span", We, h(l(s).primaryColor), 1)
499
505
  ])
500
506
  ]),
501
- t("div", Be, [
507
+ t("div", Oe, [
502
508
  e[25] || (e[25] = t("div", { class: "section-title" }, "圆角大小", -1)),
503
- a(i(K), {
504
- value: i(s).borderRadius,
505
- "onUpdate:value": e[2] || (e[2] = (o) => i(s).borderRadius = 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(i(M), { value: "small" }, {
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(i(M), { value: "medium" }, {
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(i(M), { value: "large" }, {
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", Ue, [
537
+ t("div", Le, [
532
538
  e[31] || (e[31] = t("div", { class: "section-title" }, "页面动画", -1)),
533
- t("div", We, [
539
+ t("div", Ie, [
534
540
  e[26] || (e[26] = t("span", { class: "text-sm" }, "启用动画", -1)),
535
- a(i(H), {
536
- value: i(s).enableTransition,
537
- "onUpdate:value": e[3] || (e[3] = (o) => i(s).enableTransition = 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(i(K), {
541
- value: i(s).transitionType,
542
- "onUpdate:value": e[4] || (e[4] = (o) => i(s).transitionType = o),
543
- disabled: !i(s).enableTransition,
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(i(M), { value: "fade" }, {
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(i(M), { value: "slide" }, {
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(i(M), { value: "zoom" }, {
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(i(M), { value: "none" }, {
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", Oe, [
576
- a(i(O), {
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(i(j), {
599
+ a(l(j), {
594
600
  name: "layout",
595
601
  tab: "📐 布局"
596
602
  }, {
597
603
  default: n(() => [
598
- t("div", Le, [
604
+ t("div", Ne, [
599
605
  e[34] || (e[34] = t("div", { class: "section-title" }, "布局模式", -1)),
600
- t("div", Pe, [
601
- (R(!0), W(J, null, Y(i(xe), (o) => (R(), W("div", {
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: i(s).layoutMode === o.value,
610
+ active: l(s).layoutMode === o.value,
605
611
  disabled: o.disabled
606
612
  }]),
607
- onClick: (T) => !o.disabled && E(T, o.value)
613
+ onClick: re((C) => I(o.value, o.disabled), ["stop"])
608
614
  }, [
609
- t("div", Ne, [
610
- (R(), W("svg", Ae, [
615
+ t("div", $e, [
616
+ (R(), W("svg", Fe, [
611
617
  t("g", {
612
618
  innerHTML: o.svg
613
- }, null, 8, De)
619
+ }, null, 8, ze)
614
620
  ]))
615
621
  ]),
616
- t("div", Fe, [
622
+ t("div", je, [
617
623
  c(h(o.label) + " ", 1),
618
- o.disabled ? (R(), W("span", $e, "敬请期待")) : X("", !0)
624
+ o.disabled ? (R(), W("span", Ke, "敬请期待")) : X("", !0)
619
625
  ])
620
- ], 10, Ie))), 128))
626
+ ], 10, De))), 128))
621
627
  ])
622
628
  ]),
623
- t("div", ze, [
629
+ t("div", Je, [
624
630
  e[39] || (e[39] = t("div", { class: "section-title" }, "界面元素", -1)),
625
- t("div", je, [
631
+ t("div", Ye, [
626
632
  e[35] || (e[35] = t("span", null, "显示面包屑", -1)),
627
- a(i(H), {
628
- value: i(s).showBreadcrumb,
629
- "onUpdate:value": e[5] || (e[5] = (o) => i(s).showBreadcrumb = 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", Ke, [
638
+ t("div", Ge, [
633
639
  e[36] || (e[36] = t("span", null, "显示面包屑图标", -1)),
634
- a(i(H), {
635
- value: i(s).showBreadcrumbIcon,
636
- "onUpdate:value": e[6] || (e[6] = (o) => i(s).showBreadcrumbIcon = o),
637
- disabled: !i(s).showBreadcrumb
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", Je, [
646
+ t("div", Xe, [
641
647
  e[37] || (e[37] = t("span", null, "显示标签页", -1)),
642
- a(i(H), {
643
- value: i(s).showTagsView,
644
- "onUpdate:value": e[7] || (e[7] = (o) => i(s).showTagsView = 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", Ye, [
653
+ t("div", qe, [
648
654
  e[38] || (e[38] = t("span", null, "显示页脚", -1)),
649
- a(i(H), {
650
- value: i(s).showFooter,
651
- "onUpdate:value": e[8] || (e[8] = (o) => i(s).showFooter = 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", Ge, [
661
+ t("div", Qe, [
656
662
  e[42] || (e[42] = t("div", { class: "section-title" }, "尺寸调整", -1)),
657
- t("div", Xe, [
658
- t("div", qe, [
663
+ t("div", Ze, [
664
+ t("div", et, [
659
665
  e[40] || (e[40] = t("span", null, "侧边栏宽度", -1)),
660
- t("span", Qe, h(i(s).sidebarWidth) + "px", 1)
666
+ t("span", tt, h(l(s).sidebarWidth) + "px", 1)
661
667
  ]),
662
- a(i(q), {
663
- value: i(s).sidebarWidth,
664
- "onUpdate:value": e[9] || (e[9] = (o) => i(s).sidebarWidth = 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", Ze, [
672
- t("div", et, [
677
+ t("div", st, [
678
+ t("div", ot, [
673
679
  e[41] || (e[41] = t("span", null, "头部高度", -1)),
674
- t("span", tt, h(i(s).headerHeight) + "px", 1)
680
+ t("span", lt, h(l(s).headerHeight) + "px", 1)
675
681
  ]),
676
- a(i(q), {
677
- value: i(s).headerHeight,
678
- "onUpdate:value": e[10] || (e[10] = (o) => i(s).headerHeight = 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", st, [
687
- a(i(O), {
692
+ t("div", it, [
693
+ a(l(O), {
688
694
  block: "",
689
695
  secondary: "",
690
- onClick: B
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(i(j), {
710
+ a(l(j), {
705
711
  name: "features",
706
712
  tab: "🔧 功能"
707
713
  }, {
708
714
  default: n(() => [
709
- t("div", ot, [
715
+ t("div", at, [
710
716
  e[49] || (e[49] = t("div", { class: "section-title" }, "缓存管理", -1)),
711
- t("div", it, [
712
- a(i(O), {
717
+ t("div", nt, [
718
+ a(l(O), {
713
719
  secondary: "",
714
- onClick: N
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(i(O), {
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", lt, [
744
+ t("div", rt, [
739
745
  e[56] || (e[56] = t("div", { class: "section-title" }, "配置管理", -1)),
740
- t("div", at, [
741
- a(i(O), {
746
+ t("div", dt, [
747
+ a(l(O), {
742
748
  secondary: "",
743
- onClick: A
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(i(O), {
759
+ a(l(O), {
754
760
  secondary: "",
755
- onClick: z
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(i(O), {
772
+ a(l(O), {
767
773
  block: "",
768
774
  type: "error",
769
775
  secondary: "",
770
776
  class: "mt-2",
771
- onClick: U
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", nt, [
788
+ t("div", ut, [
783
789
  e[59] || (e[59] = t("div", { class: "section-title" }, "系统模式", -1)),
784
- t("div", rt, [
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(i(H), {
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", dt, [
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(i(H), {
800
- value: f.value,
801
- "onUpdate:value": e[12] || (e[12] = (o) => f.value = 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", ut, [
811
+ t("div", pt, [
806
812
  e[61] || (e[61] = t("div", { class: "section-title" }, "水印设置", -1)),
807
- t("div", ct, [
813
+ t("div", mt, [
808
814
  e[60] || (e[60] = t("span", null, "启用水印", -1)),
809
- a(i(H), {
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", vt, [
815
- a(i(me), {
816
- value: S.value,
817
- "onUpdate:value": e[14] || (e[14] = (o) => S.value = 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", mt, [
829
+ t("div", gt, [
824
830
  e[68] || (e[68] = t("div", { class: "section-title" }, "系统信息", -1)),
825
- t("div", pt, [
826
- t("div", gt, [
831
+ t("div", yt, [
832
+ t("div", ht, [
827
833
  e[62] || (e[62] = t("span", { class: "info-label" }, "浏览器", -1)),
828
- t("span", ft, h(C.value.browser), 1)
834
+ t("span", bt, h(S.value.browser), 1)
829
835
  ]),
830
- t("div", yt, [
836
+ t("div", wt, [
831
837
  e[63] || (e[63] = t("span", { class: "info-label" }, "操作系统", -1)),
832
- t("span", ht, h(C.value.os), 1)
838
+ t("span", xt, h(S.value.os), 1)
833
839
  ]),
834
- t("div", bt, [
840
+ t("div", Ct, [
835
841
  e[64] || (e[64] = t("span", { class: "info-label" }, "屏幕分辨率", -1)),
836
- t("span", wt, h(C.value.resolution), 1)
842
+ t("span", Tt, h(S.value.resolution), 1)
837
843
  ]),
838
- t("div", xt, [
844
+ t("div", kt, [
839
845
  e[65] || (e[65] = t("span", { class: "info-label" }, "设备像素比", -1)),
840
- t("span", Ct, h(C.value.pixelRatio), 1)
846
+ t("span", St, h(S.value.pixelRatio), 1)
841
847
  ]),
842
- t("div", Tt, [
848
+ t("div", Mt, [
843
849
  e[66] || (e[66] = t("span", { class: "info-label" }, "语言", -1)),
844
- t("span", kt, h(C.value.language), 1)
850
+ t("span", Rt, h(S.value.language), 1)
845
851
  ]),
846
- t("div", St, [
852
+ t("div", Ht, [
847
853
  e[67] || (e[67] = t("span", { class: "info-label" }, "时区", -1)),
848
- t("span", Mt, h(C.value.timezone), 1)
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
- }), Ht = (b, u) => {
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
- }, Wt = /* @__PURE__ */ Ht(Rt, [["__scopeId", "data-v-918513ca"]]);
871
- function Ot(b, u = {}) {
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
- ye as BORDER_RADIUS_MAP,
877
- Ut as COLOR_SWATCHES,
882
+ we as BORDER_RADIUS_MAP,
883
+ Lt as COLOR_SWATCHES,
878
884
  m as DEFAULT_SETTINGS,
879
- Bt as LAYOUT_MODES,
880
- ge as PRESET_COLORS,
881
- Wt as SettingsDrawer,
882
- fe as THEME_PRESETS,
883
- he as TRANSITION_MAP,
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
- Ot as setupLayout,
886
- be as useSettingsStore
891
+ Pt as setupLayout,
892
+ Ce as useSettingsStore
887
893
  };
888
894
  //# sourceMappingURL=index.js.map