yh-pub 2.0.34 → 2.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/{AdminLogin-B6urma5G.js → AdminLogin-eglnq2P1.js} +18 -18
  2. package/{AdminLogin-B6urma5G.js.map → AdminLogin-eglnq2P1.js.map} +1 -1
  3. package/{Error-YEJNA7SZ.js → Error-CBLJU85m.js} +2 -2
  4. package/{Error-YEJNA7SZ.js.map → Error-CBLJU85m.js.map} +1 -1
  5. package/{Error401-E4pHHcHG.js → Error401-BQCe5erf.js} +3 -3
  6. package/{Error401-E4pHHcHG.js.map → Error401-BQCe5erf.js.map} +1 -1
  7. package/{Error404-yCAmJMiF.js → Error404-ChJvHWnb.js} +3 -3
  8. package/{Error404-yCAmJMiF.js.map → Error404-ChJvHWnb.js.map} +1 -1
  9. package/{Error500-D9jEXDUl.js → Error500-DeSjRV6r.js} +3 -3
  10. package/{Error500-D9jEXDUl.js.map → Error500-DeSjRV6r.js.map} +1 -1
  11. package/{HomeIndex-gYT_4tWA.js → HomeIndex-AvpuYMLC.js} +4 -4
  12. package/{HomeIndex-gYT_4tWA.js.map → HomeIndex-AvpuYMLC.js.map} +1 -1
  13. package/{IconExplorer-DS--IkRN.js → IconExplorer-IfKjELdy.js} +2 -2
  14. package/{IconExplorer-DS--IkRN.js.map → IconExplorer-IfKjELdy.js.map} +1 -1
  15. package/Index-ZdwGnVVr.js +5 -0
  16. package/Index-ZdwGnVVr.js.map +1 -0
  17. package/{MainLogin-WT4vevTr.js → MainLogin-CspMhcPJ.js} +33 -37
  18. package/{MainLogin-WT4vevTr.js.map → MainLogin-CspMhcPJ.js.map} +1 -1
  19. package/{MenuManage-CWbkFem5.js → MenuManage-nk59Gdji.js} +2 -2
  20. package/{MenuManage-CWbkFem5.js.map → MenuManage-nk59Gdji.js.map} +1 -1
  21. package/{OrgManage-DrkjKQsD.js → OrgManage-vrk4DFIe.js} +2 -2
  22. package/{OrgManage-DrkjKQsD.js.map → OrgManage-vrk4DFIe.js.map} +1 -1
  23. package/{RoleManage-zU2_Sg7o.js → RoleManage-B5F-zFAx.js} +2 -2
  24. package/{RoleManage-zU2_Sg7o.js.map → RoleManage-B5F-zFAx.js.map} +1 -1
  25. package/{SysConfig-BbhOofe-.js → SysConfig-CyBsfxKk.js} +225 -208
  26. package/SysConfig-CyBsfxKk.js.map +1 -0
  27. package/{TenantList-p7ztAouG.js → TenantList-sEahiRWX.js} +41 -41
  28. package/{TenantList-p7ztAouG.js.map → TenantList-sEahiRWX.js.map} +1 -1
  29. package/ThemeConfig-C8pQBI3C.js +570 -0
  30. package/ThemeConfig-C8pQBI3C.js.map +1 -0
  31. package/ThemeDemo-mMm9qP5J.js +776 -0
  32. package/ThemeDemo-mMm9qP5J.js.map +1 -0
  33. package/{index-V8IW-e9m.js → index-CGitwHqZ.js} +11064 -11011
  34. package/{index-V8IW-e9m.js.map → index-CGitwHqZ.js.map} +1 -1
  35. package/index.es.js +17 -17
  36. package/package.json +1 -1
  37. package/style.css +1 -1
  38. package/themeVarLabels-CgtetVkU.js +90 -0
  39. package/themeVarLabels-CgtetVkU.js.map +1 -0
  40. package/Index-BtKC3WNZ.js +0 -5
  41. package/Index-BtKC3WNZ.js.map +0 -1
  42. package/SysConfig-BbhOofe-.js.map +0 -1
@@ -0,0 +1,570 @@
1
+ import { defineComponent as ke, reactive as A, ref as E, resolveComponent as y, openBlock as T, createElementBlock as S, createElementVNode as l, toDisplayString as u, unref as p, createVNode as r, isRef as _e, withCtx as h, createTextVNode as V, Fragment as z, renderList as M, normalizeStyle as ye, createBlock as F } from "vue";
2
+ import { storeToRefs as Ce } from "pinia";
3
+ import { useRouter as Ve } from "vue-router";
4
+ import { ElMessage as I } from "element-plus";
5
+ import { u as fe, p as ve, c as n, D as be, a as Te, L as B, b as P, d as K, e as N, _ as we } from "./index-CGitwHqZ.js";
6
+ import { useClientStore as xe } from "yh-client";
7
+ import { S as Be, T as Ue } from "./themeVarLabels-CgtetVkU.js";
8
+ const Se = { class: "theme-config-page" }, Le = { class: "config-toolbar" }, Ae = { class: "toolbar-title" }, Ee = { class: "config-section-title" }, Fe = { class: "status-grid" }, $e = ["title"], De = { class: "status-pickers" }, Re = { class: "picker-cap" }, We = { class: "status-pickers" }, He = { class: "picker-cap" }, Oe = { class: "config-section-title" }, je = { class: "layout-card" }, ze = { class: "layout-line" }, Me = { class: "layout-line wrap" }, Ie = { class: "pair" }, Pe = { class: "picker-cap" }, Ke = { class: "pair" }, Ne = { class: "picker-cap" }, Ge = { class: "layout-line wrap" }, Xe = { class: "pair" }, Ye = { class: "picker-cap" }, Ze = { class: "pair" }, qe = { class: "picker-cap" }, Je = { class: "layout-line wrap" }, Qe = { class: "pair" }, el = { class: "picker-cap" }, ll = { class: "pair" }, ol = { class: "picker-cap" }, tl = { class: "config-section-title" }, al = { class: "adv-head-row" }, sl = ["title"], rl = { class: "label-zh" }, nl = { class: "label-var" }, dl = { class: "adv-control" }, il = { class: "adv-value" }, ul = { class: "adv-control" }, pl = { class: "adv-value" }, cl = { class: "config-section-title" }, gl = { class: "preview-card" }, ml = { class: "preview-row" }, hl = { class: "preview-row" }, kl = /* @__PURE__ */ ke({
9
+ __name: "ThemeConfig",
10
+ setup(_l) {
11
+ const b = fe(), te = Ve(), ae = xe(ve), { mode: $ } = Ce(b);
12
+ function se() {
13
+ te.push(ae.isAdmin ? "/admin/theme-demo" : "/theme-demo");
14
+ }
15
+ function D(o) {
16
+ return `--${o.replace(/([A-Z])/g, "-$1").toLowerCase()}`;
17
+ }
18
+ function G(o, e) {
19
+ return (e === "light" ? b.lightVars : b.darkVars)[o] ?? "-";
20
+ }
21
+ function R(o) {
22
+ return /^(#[0-9a-f]{3,8}|rgba?\(|hsla?\()/i.test((o || "").trim());
23
+ }
24
+ function re(o) {
25
+ let e = o.trim().replace("#", "");
26
+ (e.length === 3 || e.length === 4) && (e = e.slice(0, 3).split("").map((i) => i + i).join(""));
27
+ const s = parseInt(e.slice(0, 6), 16);
28
+ return [s >> 16 & 255, s >> 8 & 255, s & 255];
29
+ }
30
+ function ne(o, e, s) {
31
+ return [
32
+ Math.round(o[0] * (1 - s) + e[0] * s),
33
+ Math.round(o[1] * (1 - s) + e[1] * s),
34
+ Math.round(o[2] * (1 - s) + e[2] * s)
35
+ ];
36
+ }
37
+ function de(o) {
38
+ return `#${o.map((e) => e.toString(16).padStart(2, "0")).join("")}`;
39
+ }
40
+ function k(o, e, s, i) {
41
+ const d = (c) => (c || "").trim().toLowerCase().replace(/\s+/g, "");
42
+ d(i) !== d(e[s]) && (o[s] = i);
43
+ }
44
+ const W = ["primary", "success", "warning", "danger", "info"], L = (o) => o[0].toUpperCase() + o.slice(1), v = A({}), a = A({
45
+ headerHeight: 60,
46
+ asideWidth: 240,
47
+ asideCollapsedWidth: 60,
48
+ light: { gradFrom: "#0051C1", gradTo: "#3E93FE", asideBg: "#21304C", borderColor: "#f0f0f0" },
49
+ dark: { gradFrom: "#1a1a1a", gradTo: "#2d2d2d", asideBg: "#212223", borderColor: "#363637" }
50
+ });
51
+ function X(o) {
52
+ const e = /linear-gradient\(90deg,\s*(\S+)\s+0%,\s*(\S+)\s+100%\)/.exec(o || "");
53
+ return e ? [e[1], e[2]] : ["#0051C1", "#3E93FE"];
54
+ }
55
+ const w = A({}), x = A({});
56
+ function U(o) {
57
+ return o.map((e) => ({
58
+ key: e,
59
+ // 中文标签优先,缺失时回退为变量短名
60
+ label: Ue[e] || D(e).replace(/^--(el-|vxe-ui-)/, "")
61
+ }));
62
+ }
63
+ const H = [
64
+ {
65
+ key: "text",
66
+ title: n("文字颜色"),
67
+ items: U([
68
+ "elTextColorPrimary",
69
+ "elTextColorRegular",
70
+ "elTextColorSecondary",
71
+ "elTextColorPlaceholder",
72
+ "elTextColorDisabled"
73
+ ])
74
+ },
75
+ {
76
+ key: "border",
77
+ title: n("边框颜色"),
78
+ items: U([
79
+ "elBorderColor",
80
+ "elBorderColorLight",
81
+ "elBorderColorLighter",
82
+ "elBorderColorExtraLight",
83
+ "elBorderColorDark",
84
+ "elBorderColorDarker"
85
+ ])
86
+ },
87
+ {
88
+ key: "fill",
89
+ title: n("填充颜色"),
90
+ items: U([
91
+ "elFillColor",
92
+ "elFillColorLight",
93
+ "elFillColorLighter",
94
+ "elFillColorExtraLight",
95
+ "elFillColorDark",
96
+ "elFillColorDarker",
97
+ "elFillColorBlank"
98
+ ])
99
+ },
100
+ {
101
+ key: "bg",
102
+ title: n("背景与遮罩"),
103
+ items: U([
104
+ "elBgColor",
105
+ "elBgColorPage",
106
+ "elBgColorOverlay",
107
+ "elOverlayColor",
108
+ "elOverlayColorLight",
109
+ "elOverlayColorLighter",
110
+ "elMaskColor",
111
+ "elMaskColorExtraLight"
112
+ ])
113
+ },
114
+ {
115
+ key: "vxe",
116
+ title: "VXE",
117
+ items: U(Object.keys({ ...Te, ...be }))
118
+ }
119
+ ], Y = E([]);
120
+ function Z() {
121
+ const o = b.lightVars, e = b.darkVars;
122
+ W.forEach((_) => {
123
+ const C = `elColor${L(_)}`;
124
+ v[_] = {
125
+ light: o[C] || "#409eff",
126
+ dark: e[C] || "#409eff"
127
+ };
128
+ }), a.headerHeight = parseInt(o.layoutHeaderHeight, 10) || 60, a.asideWidth = parseInt(o.layoutAsideWidth, 10) || 240, a.asideCollapsedWidth = parseInt(o.layoutAsideCollapsedWidth, 10) || 60;
129
+ const [s, i] = X(o.layoutHeaderBackground);
130
+ a.light.gradFrom = s, a.light.gradTo = i;
131
+ const [d, c] = X(e.layoutHeaderBackground);
132
+ a.dark.gradFrom = d, a.dark.gradTo = c, a.light.asideBg = o.layoutAsideBackground || "#21304C", a.light.borderColor = o.layoutBorderColor || "#f0f0f0", a.dark.asideBg = e.layoutAsideBackground || "#212223", a.dark.borderColor = e.layoutBorderColor || "#363637", H.forEach((_) => {
133
+ _.items.forEach((C) => {
134
+ w[C.key] = o[C.key] ?? "", x[C.key] = e[C.key] ?? "";
135
+ });
136
+ });
137
+ }
138
+ Z();
139
+ function q() {
140
+ const o = {}, e = {};
141
+ k(o, B, "layoutHeaderHeight", `${a.headerHeight}px`), k(o, B, "layoutAsideWidth", `${a.asideWidth}px`), k(
142
+ o,
143
+ B,
144
+ "layoutAsideCollapsedWidth",
145
+ `${a.asideCollapsedWidth}px`
146
+ );
147
+ const s = (i, d) => `linear-gradient(90deg, ${i} 0%, ${d} 100%)`;
148
+ return k(
149
+ o,
150
+ B,
151
+ "layoutHeaderBackground",
152
+ s(a.light.gradFrom, a.light.gradTo)
153
+ ), k(
154
+ e,
155
+ P,
156
+ "layoutHeaderBackground",
157
+ s(a.dark.gradFrom, a.dark.gradTo)
158
+ ), k(o, B, "layoutAsideBackground", a.light.asideBg), k(o, B, "layoutBorderColor", a.light.borderColor), k(e, P, "layoutAsideBackground", a.dark.asideBg), k(e, P, "layoutBorderColor", a.dark.borderColor), W.forEach((i) => {
159
+ const d = `elColor${L(i)}`, c = (_) => (_ || "").trim().toLowerCase();
160
+ c(v[i].light) !== c(K[d]) && J(o, K, i, v[i].light, [255, 255, 255]), c(v[i].dark) !== c(N[d]) && J(e, N, i, v[i].dark, [20, 20, 20]);
161
+ }), H.forEach((i) => {
162
+ i.items.forEach((d) => {
163
+ k(o, K, d.key, w[d.key]), k(e, N, d.key, x[d.key]);
164
+ });
165
+ }), { light: o, dark: e };
166
+ }
167
+ function J(o, e, s, i, d) {
168
+ if (!R(i) || !i.startsWith("#")) return;
169
+ const c = L(s);
170
+ k(o, e, `elColor${c}`, i.toLowerCase());
171
+ const _ = re(i);
172
+ [
173
+ ["Light3", 0.3],
174
+ ["Light5", 0.5],
175
+ ["Light7", 0.7],
176
+ ["Light8", 0.8],
177
+ ["Light9", 0.9],
178
+ ["Dark2", 0.2]
179
+ ].forEach(([O, j]) => {
180
+ k(
181
+ o,
182
+ e,
183
+ `elColor${c}${O}`,
184
+ de(ne(_, d, j))
185
+ );
186
+ }), k(o, e, `elColor${c}Rgb`, _.join(", "));
187
+ }
188
+ function m() {
189
+ const { light: o, dark: e } = q();
190
+ b.extend({ light: o, dark: e });
191
+ }
192
+ function ie() {
193
+ b.setTheme("default"), b.extend({ light: {}, dark: {} }), Z(), I.success(n("已恢复默认主题"));
194
+ }
195
+ function Q(o) {
196
+ return Object.entries(o).map(([e, s]) => ` ${e}: '${s}',`).join(`
197
+ `);
198
+ }
199
+ async function ue() {
200
+ const { light: o, dark: e } = q(), s = [];
201
+ Object.keys(o).length > 0 && s.push(` light: {
202
+ ${Q(o)}
203
+ }`), Object.keys(e).length > 0 && s.push(` dark: {
204
+ ${Q(e)}
205
+ }`);
206
+ const i = s.length > 0 ? `// 在应用入口调用(如 main.ts),仅包含相对默认值的改动
207
+ import {useThemeStore} from 'yh-pub';
208
+
209
+ useThemeStore().extend({
210
+ ${s.join(`,
211
+ `)}
212
+ });` : "// 当前配置与默认主题一致,无需覆盖";
213
+ try {
214
+ await navigator.clipboard.writeText(i), I.success(n("配置代码已复制到剪贴板"));
215
+ } catch {
216
+ const d = document.createElement("textarea");
217
+ d.value = i, d.style.position = "fixed", d.style.opacity = "0", document.body.appendChild(d), d.select(), document.execCommand("copy"), document.body.removeChild(d), I.success(n("配置代码已复制到剪贴板"));
218
+ }
219
+ }
220
+ const ee = E(!0), le = E(!0), oe = E("");
221
+ return (o, e) => {
222
+ const s = y("el-radio-button"), i = y("el-radio-group"), d = y("el-button"), c = y("el-color-picker"), _ = y("el-input-number"), C = y("el-input"), O = y("el-collapse-item"), j = y("el-collapse"), pe = y("el-tag"), ce = y("el-switch"), ge = y("el-checkbox"), me = y("el-progress"), he = y("el-alert");
223
+ return T(), S("div", Se, [
224
+ l("div", Le, [
225
+ l("span", Ae, u(p(n)("主题配置")), 1),
226
+ r(i, {
227
+ modelValue: p($),
228
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => _e($) ? $.value = t : null),
229
+ onChange: e[1] || (e[1] = (t) => p(b).setMode(t))
230
+ }, {
231
+ default: h(() => [
232
+ r(s, { value: "light" }, {
233
+ default: h(() => [
234
+ V(u(p(n)("亮色")), 1)
235
+ ]),
236
+ _: 1
237
+ }),
238
+ r(s, { value: "dark" }, {
239
+ default: h(() => [
240
+ V(u(p(n)("暗色")), 1)
241
+ ]),
242
+ _: 1
243
+ }),
244
+ r(s, { value: "auto" }, {
245
+ default: h(() => [
246
+ V(u(p(n)("跟随系统")), 1)
247
+ ]),
248
+ _: 1
249
+ })
250
+ ]),
251
+ _: 1
252
+ }, 8, ["modelValue"]),
253
+ e[17] || (e[17] = l("div", { class: "flex-grow" }, null, -1)),
254
+ r(d, { onClick: se }, {
255
+ default: h(() => [
256
+ V(u(p(n)("前往主题演示")), 1)
257
+ ]),
258
+ _: 1
259
+ }),
260
+ r(d, { onClick: ie }, {
261
+ default: h(() => [
262
+ V(u(p(n)("恢复默认")), 1)
263
+ ]),
264
+ _: 1
265
+ }),
266
+ r(d, {
267
+ type: "primary",
268
+ onClick: ue
269
+ }, {
270
+ default: h(() => [
271
+ V(u(p(n)("复制配置代码")), 1)
272
+ ]),
273
+ _: 1
274
+ })
275
+ ]),
276
+ l("h3", Ee, u(p(n)("状态色(自动派生变体)")), 1),
277
+ l("div", Fe, [
278
+ (T(), S(z, null, M(W, (t) => {
279
+ var g;
280
+ return l("div", {
281
+ key: t,
282
+ class: "status-row"
283
+ }, [
284
+ l("span", {
285
+ class: "status-chip",
286
+ style: ye({ backgroundColor: (g = v[t]) == null ? void 0 : g.light })
287
+ }, null, 4),
288
+ l("span", {
289
+ class: "status-name",
290
+ title: `elColor${L(t)}`
291
+ }, u(p(Be)[t] || t) + " " + u(t), 9, $e),
292
+ l("div", De, [
293
+ r(c, {
294
+ modelValue: v[t].light,
295
+ "onUpdate:modelValue": (f) => v[t].light = f,
296
+ onChange: m
297
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
298
+ l("span", Re, u(p(n)("亮色")), 1)
299
+ ]),
300
+ l("div", We, [
301
+ r(c, {
302
+ modelValue: v[t].dark,
303
+ "onUpdate:modelValue": (f) => v[t].dark = f,
304
+ onChange: m
305
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
306
+ l("span", He, u(p(n)("暗色")), 1)
307
+ ])
308
+ ]);
309
+ }), 64))
310
+ ]),
311
+ l("h3", Oe, u(p(n)("布局变量")), 1),
312
+ l("div", je, [
313
+ l("div", ze, [
314
+ e[18] || (e[18] = l("div", { class: "line-label" }, [
315
+ l("span", { class: "label-zh" }, "头部高度"),
316
+ l("span", { class: "label-var" }, "--layout-header-height")
317
+ ], -1)),
318
+ r(_, {
319
+ modelValue: a.headerHeight,
320
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => a.headerHeight = t),
321
+ min: 40,
322
+ max: 120,
323
+ step: 4,
324
+ onChange: m
325
+ }, null, 8, ["modelValue"]),
326
+ e[19] || (e[19] = l("div", { class: "line-label" }, [
327
+ l("span", { class: "label-zh" }, "侧边栏宽度"),
328
+ l("span", { class: "label-var" }, "--layout-aside-width")
329
+ ], -1)),
330
+ r(_, {
331
+ modelValue: a.asideWidth,
332
+ "onUpdate:modelValue": e[3] || (e[3] = (t) => a.asideWidth = t),
333
+ min: 160,
334
+ max: 400,
335
+ step: 10,
336
+ onChange: m
337
+ }, null, 8, ["modelValue"]),
338
+ e[20] || (e[20] = l("div", { class: "line-label" }, [
339
+ l("span", { class: "label-zh" }, "收起宽度"),
340
+ l("span", { class: "label-var" }, "--layout-aside-collapsed-width")
341
+ ], -1)),
342
+ r(_, {
343
+ modelValue: a.asideCollapsedWidth,
344
+ "onUpdate:modelValue": e[4] || (e[4] = (t) => a.asideCollapsedWidth = t),
345
+ min: 40,
346
+ max: 120,
347
+ step: 4,
348
+ onChange: m
349
+ }, null, 8, ["modelValue"]),
350
+ e[21] || (e[21] = l("span", { class: "unit" }, "px", -1))
351
+ ]),
352
+ l("div", Me, [
353
+ e[24] || (e[24] = l("div", { class: "line-label" }, [
354
+ l("span", { class: "label-zh" }, "头部背景(渐变)"),
355
+ l("span", { class: "label-var" }, "--layout-header-background")
356
+ ], -1)),
357
+ l("div", Ie, [
358
+ l("span", Pe, u(p(n)("亮色")), 1),
359
+ r(c, {
360
+ modelValue: a.light.gradFrom,
361
+ "onUpdate:modelValue": e[5] || (e[5] = (t) => a.light.gradFrom = t),
362
+ onChange: m
363
+ }, null, 8, ["modelValue"]),
364
+ e[22] || (e[22] = l("span", { class: "arrow" }, "→", -1)),
365
+ r(c, {
366
+ modelValue: a.light.gradTo,
367
+ "onUpdate:modelValue": e[6] || (e[6] = (t) => a.light.gradTo = t),
368
+ onChange: m
369
+ }, null, 8, ["modelValue"])
370
+ ]),
371
+ l("div", Ke, [
372
+ l("span", Ne, u(p(n)("暗色")), 1),
373
+ r(c, {
374
+ modelValue: a.dark.gradFrom,
375
+ "onUpdate:modelValue": e[7] || (e[7] = (t) => a.dark.gradFrom = t),
376
+ onChange: m
377
+ }, null, 8, ["modelValue"]),
378
+ e[23] || (e[23] = l("span", { class: "arrow" }, "→", -1)),
379
+ r(c, {
380
+ modelValue: a.dark.gradTo,
381
+ "onUpdate:modelValue": e[8] || (e[8] = (t) => a.dark.gradTo = t),
382
+ onChange: m
383
+ }, null, 8, ["modelValue"])
384
+ ])
385
+ ]),
386
+ l("div", Ge, [
387
+ e[25] || (e[25] = l("div", { class: "line-label" }, [
388
+ l("span", { class: "label-zh" }, "侧边栏背景"),
389
+ l("span", { class: "label-var" }, "--layout-aside-background")
390
+ ], -1)),
391
+ l("div", Xe, [
392
+ l("span", Ye, u(p(n)("亮色")), 1),
393
+ r(c, {
394
+ modelValue: a.light.asideBg,
395
+ "onUpdate:modelValue": e[9] || (e[9] = (t) => a.light.asideBg = t),
396
+ onChange: m
397
+ }, null, 8, ["modelValue"])
398
+ ]),
399
+ l("div", Ze, [
400
+ l("span", qe, u(p(n)("暗色")), 1),
401
+ r(c, {
402
+ modelValue: a.dark.asideBg,
403
+ "onUpdate:modelValue": e[10] || (e[10] = (t) => a.dark.asideBg = t),
404
+ onChange: m
405
+ }, null, 8, ["modelValue"])
406
+ ])
407
+ ]),
408
+ l("div", Je, [
409
+ e[26] || (e[26] = l("div", { class: "line-label" }, [
410
+ l("span", { class: "label-zh" }, "布局边框色"),
411
+ l("span", { class: "label-var" }, "--layout-border-color")
412
+ ], -1)),
413
+ l("div", Qe, [
414
+ l("span", el, u(p(n)("亮色")), 1),
415
+ r(c, {
416
+ modelValue: a.light.borderColor,
417
+ "onUpdate:modelValue": e[11] || (e[11] = (t) => a.light.borderColor = t),
418
+ onChange: m
419
+ }, null, 8, ["modelValue"])
420
+ ]),
421
+ l("div", ll, [
422
+ l("span", ol, u(p(n)("暗色")), 1),
423
+ r(c, {
424
+ modelValue: a.dark.borderColor,
425
+ "onUpdate:modelValue": e[12] || (e[12] = (t) => a.dark.borderColor = t),
426
+ onChange: m
427
+ }, null, 8, ["modelValue"])
428
+ ])
429
+ ])
430
+ ]),
431
+ l("h3", tl, u(p(n)("高级配置(全部变量)")), 1),
432
+ r(j, {
433
+ modelValue: Y.value,
434
+ "onUpdate:modelValue": e[13] || (e[13] = (t) => Y.value = t)
435
+ }, {
436
+ default: h(() => [
437
+ (T(), S(z, null, M(H, (t) => r(O, {
438
+ key: t.key,
439
+ name: t.key,
440
+ title: `${t.title}(${t.items.length})`
441
+ }, {
442
+ default: h(() => [
443
+ l("div", al, [
444
+ l("span", null, u(p(n)("变量")), 1),
445
+ l("span", null, u(p(n)("亮色值")), 1),
446
+ l("span", null, u(p(n)("暗色值")), 1)
447
+ ]),
448
+ (T(!0), S(z, null, M(t.items, (g) => (T(), S("div", {
449
+ key: g.key,
450
+ class: "adv-row"
451
+ }, [
452
+ l("span", {
453
+ class: "adv-label",
454
+ title: D(g.key)
455
+ }, [
456
+ l("span", rl, u(g.label), 1),
457
+ l("span", nl, u(D(g.key)), 1)
458
+ ], 8, sl),
459
+ l("div", dl, [
460
+ R(w[g.key]) ? (T(), F(c, {
461
+ key: 0,
462
+ modelValue: w[g.key],
463
+ "onUpdate:modelValue": (f) => w[g.key] = f,
464
+ "show-alpha": "",
465
+ onChange: m
466
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (T(), F(C, {
467
+ key: 1,
468
+ modelValue: w[g.key],
469
+ "onUpdate:modelValue": (f) => w[g.key] = f,
470
+ size: "small",
471
+ onChange: m
472
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])),
473
+ l("span", il, u(G(g.key, "light")), 1)
474
+ ]),
475
+ l("div", ul, [
476
+ R(x[g.key]) ? (T(), F(c, {
477
+ key: 0,
478
+ modelValue: x[g.key],
479
+ "onUpdate:modelValue": (f) => x[g.key] = f,
480
+ "show-alpha": "",
481
+ onChange: m
482
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (T(), F(C, {
483
+ key: 1,
484
+ modelValue: x[g.key],
485
+ "onUpdate:modelValue": (f) => x[g.key] = f,
486
+ size: "small",
487
+ onChange: m
488
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])),
489
+ l("span", pl, u(G(g.key, "dark")), 1)
490
+ ])
491
+ ]))), 128))
492
+ ]),
493
+ _: 2
494
+ }, 1032, ["name", "title"])), 64))
495
+ ]),
496
+ _: 1
497
+ }, 8, ["modelValue"]),
498
+ l("h3", cl, u(p(n)("实时预览")), 1),
499
+ l("div", gl, [
500
+ l("div", ml, [
501
+ r(d, { type: "primary" }, {
502
+ default: h(() => [...e[27] || (e[27] = [
503
+ V("Primary", -1)
504
+ ])]),
505
+ _: 1
506
+ }),
507
+ r(d, { type: "success" }, {
508
+ default: h(() => [...e[28] || (e[28] = [
509
+ V("Success", -1)
510
+ ])]),
511
+ _: 1
512
+ }),
513
+ r(d, { type: "warning" }, {
514
+ default: h(() => [...e[29] || (e[29] = [
515
+ V("Warning", -1)
516
+ ])]),
517
+ _: 1
518
+ }),
519
+ r(d, { type: "danger" }, {
520
+ default: h(() => [...e[30] || (e[30] = [
521
+ V("Danger", -1)
522
+ ])]),
523
+ _: 1
524
+ }),
525
+ r(pe, { type: "primary" }, {
526
+ default: h(() => [...e[31] || (e[31] = [
527
+ V("Tag", -1)
528
+ ])]),
529
+ _: 1
530
+ }),
531
+ r(ce, {
532
+ modelValue: ee.value,
533
+ "onUpdate:modelValue": e[14] || (e[14] = (t) => ee.value = t)
534
+ }, null, 8, ["modelValue"]),
535
+ r(ge, {
536
+ modelValue: le.value,
537
+ "onUpdate:modelValue": e[15] || (e[15] = (t) => le.value = t)
538
+ }, {
539
+ default: h(() => [
540
+ V(u(p(n)("复选框")), 1)
541
+ ]),
542
+ _: 1
543
+ }, 8, ["modelValue"])
544
+ ]),
545
+ l("div", hl, [
546
+ r(C, {
547
+ modelValue: oe.value,
548
+ "onUpdate:modelValue": e[16] || (e[16] = (t) => oe.value = t),
549
+ placeholder: p(n)("输入框"),
550
+ style: { width: "200px" }
551
+ }, null, 8, ["modelValue", "placeholder"]),
552
+ r(me, {
553
+ percentage: 66,
554
+ style: { width: "180px" }
555
+ })
556
+ ]),
557
+ r(he, {
558
+ title: p(n)("布局头部与侧边栏即为实时预览效果,修改立即生效。"),
559
+ type: "info",
560
+ "show-icon": ""
561
+ }, null, 8, ["title"])
562
+ ])
563
+ ]);
564
+ };
565
+ }
566
+ }), wl = /* @__PURE__ */ we(kl, [["__scopeId", "data-v-cf188a76"]]);
567
+ export {
568
+ wl as default
569
+ };
570
+ //# sourceMappingURL=ThemeConfig-C8pQBI3C.js.map