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,776 @@
1
+ import { defineComponent as Ce, reactive as N, ref as R, resolveComponent as c, openBlock as v, createElementBlock as g, createElementVNode as a, createVNode as t, unref as s, isRef as xe, withCtx as n, createTextVNode as r, toDisplayString as i, Fragment as y, renderList as k, normalizeStyle as w, normalizeProps as Te, guardReactiveProps as Le, normalizeClass as De, createCommentVNode as Se } from "vue";
2
+ import { useRouter as Ee } from "vue-router";
3
+ import { storeToRefs as Be } from "pinia";
4
+ import { ElMessage as O, ElNotification as Ae, ElMessageBox as Pe, ElLoading as Ue } from "element-plus";
5
+ import { u as $e, p as Me, c as l, D as ze, a as Ke, _ as Fe } from "./index-CGitwHqZ.js";
6
+ import { useClientStore as Ne } from "yh-client";
7
+ import { S as Re, T as H } from "./themeVarLabels-CgtetVkU.js";
8
+ const Oe = { class: "theme-demo-page" }, He = { class: "demo-toolbar" }, Xe = { class: "demo-section-title" }, Ie = { class: "sub-title" }, We = { class: "swatch-grid" }, Ze = { class: "swatch-name" }, Ge = { class: "swatch-var" }, je = { class: "swatch-value" }, qe = { class: "rgb-line" }, Ye = { class: "demo-section-title" }, Je = { class: "sub-title" }, Qe = { class: "swatch-grid" }, el = { class: "swatch-name" }, ll = { class: "swatch-var" }, tl = { class: "swatch-value" }, ol = { class: "swatch-name" }, sl = { class: "swatch-var" }, al = { class: "swatch-value" }, nl = { class: "demo-section-title" }, il = { class: "layout-preview" }, rl = { class: "layout-row" }, dl = { class: "swatch-value" }, ul = { class: "layout-row" }, cl = { class: "swatch-value" }, _l = { class: "layout-dims" }, pl = ["title"], ml = { class: "dim-name" }, vl = { class: "dim-value" }, gl = { class: "demo-section-title" }, fl = { class: "demo-block" }, bl = { class: "block-title" }, yl = { class: "demo-block" }, kl = { class: "block-title" }, hl = { class: "demo-block" }, wl = { class: "block-title" }, Vl = { class: "demo-block" }, Cl = { class: "block-title" }, xl = { class: "demo-block" }, Tl = { class: "demo-block" }, Ll = { class: "block-title" }, Dl = { class: "demo-section-title" }, Sl = { class: "swatch-grid" }, El = {
9
+ key: 0,
10
+ class: "non-color-text"
11
+ }, Bl = { class: "swatch-name" }, Al = { class: "swatch-var" }, Pl = { class: "swatch-value" }, Ul = /* @__PURE__ */ Ce({
12
+ __name: "ThemeDemo",
13
+ setup($l) {
14
+ const V = $e(), X = Ee(), I = Ne(Me);
15
+ function W(d) {
16
+ return `--${d.replace(/([A-Z])/g, "-$1").toLowerCase()}`;
17
+ }
18
+ const { mode: B } = Be(V);
19
+ function Z() {
20
+ X.push(I.isAdmin ? "/admin/theme-config" : "/theme-config");
21
+ }
22
+ function f(d) {
23
+ return V.currentVars[d] ?? "-";
24
+ }
25
+ function h(d) {
26
+ return `var(${d})`;
27
+ }
28
+ function A(d) {
29
+ return /^(#[0-9a-f]{3,8}|rgba?\(|hsla?\()/i.test(d.trim());
30
+ }
31
+ function L(d, e) {
32
+ return { label: d, cssVar: W(e), varKey: e };
33
+ }
34
+ const u = (d) => L(H[d] || d, d), G = ["primary", "success", "warning", "danger", "info"], P = (d) => d[0].toUpperCase() + d.slice(1), j = [
35
+ ["变亮 3", "Light3"],
36
+ ["变亮 5", "Light5"],
37
+ ["变亮 7", "Light7"],
38
+ ["变亮 8", "Light8"],
39
+ ["变亮 9", "Light9"],
40
+ ["变暗 2", "Dark2"]
41
+ ], q = G.map((d) => ({
42
+ title: `${Re[d] || d} ${d}`,
43
+ rgbKey: `elColor${P(d)}Rgb`,
44
+ items: [
45
+ L("基准", `elColor${P(d)}`),
46
+ ...j.map(([e, x]) => L(e, `elColor${P(d)}${x}`))
47
+ ]
48
+ })), Y = [
49
+ {
50
+ title: l("文字颜色"),
51
+ type: "text",
52
+ items: [
53
+ u("elTextColorPrimary"),
54
+ u("elTextColorRegular"),
55
+ u("elTextColorSecondary"),
56
+ u("elTextColorPlaceholder"),
57
+ u("elTextColorDisabled")
58
+ ]
59
+ },
60
+ {
61
+ title: l("边框颜色"),
62
+ items: [
63
+ u("elBorderColor"),
64
+ u("elBorderColorLight"),
65
+ u("elBorderColorLighter"),
66
+ u("elBorderColorExtraLight"),
67
+ u("elBorderColorDark"),
68
+ u("elBorderColorDarker")
69
+ ]
70
+ },
71
+ {
72
+ title: l("填充颜色"),
73
+ items: [
74
+ u("elFillColor"),
75
+ u("elFillColorLight"),
76
+ u("elFillColorLighter"),
77
+ u("elFillColorExtraLight"),
78
+ u("elFillColorDark"),
79
+ u("elFillColorDarker"),
80
+ u("elFillColorBlank")
81
+ ]
82
+ },
83
+ {
84
+ title: l("背景与遮罩颜色"),
85
+ items: [
86
+ u("elBgColor"),
87
+ u("elBgColorPage"),
88
+ u("elBgColorOverlay"),
89
+ u("elOverlayColor"),
90
+ u("elOverlayColorLight"),
91
+ u("elOverlayColorLighter"),
92
+ u("elMaskColor"),
93
+ u("elMaskColorExtraLight")
94
+ ]
95
+ }
96
+ ], J = [
97
+ u("layoutHeaderHeight"),
98
+ u("layoutAsideWidth"),
99
+ u("layoutAsideCollapsedWidth")
100
+ ], M = Object.keys({ ...Ke, ...ze }).map(
101
+ (d) => L(
102
+ H[d] || d.slice(5).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""),
103
+ d
104
+ )
105
+ ), m = N({
106
+ input: "",
107
+ select: "",
108
+ date: "",
109
+ switch: !0,
110
+ radio: "1",
111
+ checkbox: ["a"],
112
+ slider: 30,
113
+ rate: 4
114
+ }), Q = [l("选项一"), l("选项二"), l("选项三")], U = [
115
+ { name: l("物料清单"), status: l("已完成"), statusType: "success", amount: "¥1,280.00", date: "2026-08-01" },
116
+ { name: l("生产工单"), status: l("进行中"), statusType: "primary", amount: "¥8,560.00", date: "2026-08-15" },
117
+ { name: l("采购申请"), status: l("待审批"), statusType: "warning", amount: "¥3,420.00", date: "2026-08-20" },
118
+ { name: l("库存盘点"), status: l("已驳回"), statusType: "danger", amount: "¥980.00", date: "2026-08-25" }
119
+ ], D = N({ currentPage: 1, pageSize: 10 }), ee = {
120
+ border: !0,
121
+ stripe: !0,
122
+ showOverflow: !0,
123
+ height: 220,
124
+ align: "center",
125
+ columns: [
126
+ { type: "seq", width: 60, title: l("序号") },
127
+ { field: "name", title: l("名称") },
128
+ { field: "status", title: l("状态") },
129
+ { field: "amount", title: l("金额") },
130
+ { field: "date", title: l("日期") }
131
+ ],
132
+ data: U,
133
+ slots: { bottom: "pager" }
134
+ }, C = R(!1), $ = R(!1);
135
+ function le() {
136
+ Ae({
137
+ title: l("通知"),
138
+ message: l("这是一条 Notification 示例"),
139
+ type: "success"
140
+ });
141
+ }
142
+ function te() {
143
+ Pe.confirm(l("确认执行此操作吗?"), l("提示"), {
144
+ confirmButtonText: l("确定"),
145
+ cancelButtonText: l("取消"),
146
+ type: "warning"
147
+ }).catch(() => {
148
+ });
149
+ }
150
+ function oe() {
151
+ const d = Ue.service({
152
+ lock: !0,
153
+ text: l("加载中..."),
154
+ background: "rgba(0, 0, 0, 0.2)"
155
+ });
156
+ setTimeout(() => d.close(), 1e3);
157
+ }
158
+ return (d, e) => {
159
+ const x = c("el-radio-button"), z = c("el-radio-group"), T = c("el-tag"), _ = c("el-button"), S = c("el-divider"), se = c("el-input"), b = c("el-form-item"), ae = c("el-option"), ne = c("el-select"), ie = c("el-date-picker"), re = c("el-switch"), K = c("el-radio"), F = c("el-checkbox"), de = c("el-checkbox-group"), ue = c("el-slider"), ce = c("el-rate"), _e = c("el-form"), pe = c("el-avatar"), me = c("el-badge"), ve = c("el-progress"), ge = c("el-alert"), E = c("el-table-column"), fe = c("el-table"), be = c("vxe-pager"), ye = c("vxe-grid"), ke = c("el-collapse-item"), he = c("el-collapse"), we = c("el-dialog"), Ve = c("el-drawer");
160
+ return v(), g("div", Oe, [
161
+ a("div", He, [
162
+ t(z, {
163
+ modelValue: s(B),
164
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => xe(B) ? B.value = o : null),
165
+ onChange: e[1] || (e[1] = (o) => s(V).setMode(o))
166
+ }, {
167
+ default: n(() => [
168
+ t(x, { value: "light" }, {
169
+ default: n(() => [
170
+ r(i(s(l)("亮色")), 1)
171
+ ]),
172
+ _: 1
173
+ }),
174
+ t(x, { value: "dark" }, {
175
+ default: n(() => [
176
+ r(i(s(l)("暗色")), 1)
177
+ ]),
178
+ _: 1
179
+ }),
180
+ t(x, { value: "auto" }, {
181
+ default: n(() => [
182
+ r(i(s(l)("跟随系统")), 1)
183
+ ]),
184
+ _: 1
185
+ })
186
+ ]),
187
+ _: 1
188
+ }, 8, ["modelValue"]),
189
+ t(T, {
190
+ type: s(V).effectiveMode === "dark" ? "info" : "warning",
191
+ effect: "plain"
192
+ }, {
193
+ default: n(() => [
194
+ r(i(s(l)("当前实际")) + ": " + i(s(V).effectiveMode === "dark" ? s(l)("暗色") : s(l)("亮色")), 1)
195
+ ]),
196
+ _: 1
197
+ }, 8, ["type"]),
198
+ e[20] || (e[20] = a("div", { class: "flex-grow" }, null, -1)),
199
+ t(_, {
200
+ type: "primary",
201
+ onClick: Z
202
+ }, {
203
+ default: n(() => [
204
+ r(i(s(l)("前往主题配置")), 1)
205
+ ]),
206
+ _: 1
207
+ })
208
+ ]),
209
+ a("h3", Xe, i(s(l)("状态色(自动派生变体)")), 1),
210
+ (v(!0), g(y, null, k(s(q), (o) => (v(), g("div", {
211
+ key: o.title,
212
+ class: "color-sub-section"
213
+ }, [
214
+ a("div", Ie, i(o.title), 1),
215
+ a("div", We, [
216
+ (v(!0), g(y, null, k(o.items, (p) => (v(), g("div", {
217
+ key: p.varKey,
218
+ class: "swatch-item"
219
+ }, [
220
+ a("div", {
221
+ class: "swatch-box",
222
+ style: w({ backgroundColor: h(p.cssVar) })
223
+ }, null, 4),
224
+ a("div", Ze, i(p.label), 1),
225
+ a("div", Ge, i(p.cssVar), 1),
226
+ a("div", je, i(f(p.varKey)), 1)
227
+ ]))), 128))
228
+ ]),
229
+ a("div", qe, i(o.title) + "-rgb:" + i(f(o.rgbKey)), 1)
230
+ ]))), 128)),
231
+ a("h3", Ye, i(s(l)("中性色体系")), 1),
232
+ (v(), g(y, null, k(Y, (o) => a("div", {
233
+ key: o.title,
234
+ class: "color-sub-section"
235
+ }, [
236
+ a("div", Je, i(o.title), 1),
237
+ a("div", Qe, [
238
+ o.type === "text" ? (v(!0), g(y, { key: 0 }, k(o.items, (p) => (v(), g("div", {
239
+ key: p.varKey,
240
+ class: "swatch-item"
241
+ }, [
242
+ a("div", {
243
+ class: "text-sample",
244
+ style: w({ color: h(p.cssVar) })
245
+ }, " 元海 Aa 字 ", 4),
246
+ a("div", el, i(p.label), 1),
247
+ a("div", ll, i(p.cssVar), 1),
248
+ a("div", tl, i(f(p.varKey)), 1)
249
+ ]))), 128)) : (v(!0), g(y, { key: 1 }, k(o.items, (p) => (v(), g("div", {
250
+ key: p.varKey,
251
+ class: "swatch-item"
252
+ }, [
253
+ a("div", {
254
+ class: "swatch-box",
255
+ style: w({ backgroundColor: h(p.cssVar) })
256
+ }, null, 4),
257
+ a("div", ol, i(p.label), 1),
258
+ a("div", sl, i(p.cssVar), 1),
259
+ a("div", al, i(f(p.varKey)), 1)
260
+ ]))), 128))
261
+ ])
262
+ ])), 64)),
263
+ a("h3", nl, i(s(l)("布局变量")), 1),
264
+ a("div", il, [
265
+ a("div", rl, [
266
+ e[21] || (e[21] = a("div", { class: "layout-label" }, [
267
+ a("span", { class: "label-zh" }, "头部背景"),
268
+ a("span", { class: "label-var" }, "--layout-header-background")
269
+ ], -1)),
270
+ a("div", {
271
+ class: "layout-header-bar",
272
+ style: w({ background: h("--layout-header-background") })
273
+ }, null, 4),
274
+ a("div", dl, i(f("layoutHeaderBackground")), 1)
275
+ ]),
276
+ a("div", ul, [
277
+ e[22] || (e[22] = a("div", { class: "layout-label" }, [
278
+ a("span", { class: "label-zh" }, "侧边栏背景"),
279
+ a("span", { class: "label-var" }, "--layout-aside-background")
280
+ ], -1)),
281
+ a("div", {
282
+ class: "layout-aside-bar",
283
+ style: w({ backgroundColor: h("--layout-aside-background") })
284
+ }, null, 4),
285
+ a("div", cl, i(f("layoutAsideBackground")), 1)
286
+ ]),
287
+ a("div", _l, [
288
+ (v(), g(y, null, k(J, (o) => a("div", {
289
+ key: o.varKey,
290
+ class: "dim-chip",
291
+ title: o.cssVar
292
+ }, [
293
+ a("span", ml, i(o.label), 1),
294
+ a("span", vl, i(f(o.varKey)), 1)
295
+ ], 8, pl)), 64))
296
+ ])
297
+ ]),
298
+ a("h3", gl, i(s(l)("组件效果")), 1),
299
+ a("div", fl, [
300
+ a("div", bl, i(s(l)("按钮 Button")), 1),
301
+ t(_, null, {
302
+ default: n(() => [
303
+ r(i(s(l)("默认按钮")), 1)
304
+ ]),
305
+ _: 1
306
+ }),
307
+ t(_, { type: "primary" }, {
308
+ default: n(() => [...e[23] || (e[23] = [
309
+ r("Primary", -1)
310
+ ])]),
311
+ _: 1
312
+ }),
313
+ t(_, { type: "success" }, {
314
+ default: n(() => [...e[24] || (e[24] = [
315
+ r("Success", -1)
316
+ ])]),
317
+ _: 1
318
+ }),
319
+ t(_, { type: "warning" }, {
320
+ default: n(() => [...e[25] || (e[25] = [
321
+ r("Warning", -1)
322
+ ])]),
323
+ _: 1
324
+ }),
325
+ t(_, { type: "danger" }, {
326
+ default: n(() => [...e[26] || (e[26] = [
327
+ r("Danger", -1)
328
+ ])]),
329
+ _: 1
330
+ }),
331
+ t(_, { type: "info" }, {
332
+ default: n(() => [...e[27] || (e[27] = [
333
+ r("Info", -1)
334
+ ])]),
335
+ _: 1
336
+ }),
337
+ t(S, { direction: "vertical" }),
338
+ t(_, { plain: "" }, {
339
+ default: n(() => [...e[28] || (e[28] = [
340
+ r("Plain", -1)
341
+ ])]),
342
+ _: 1
343
+ }),
344
+ t(_, {
345
+ type: "primary",
346
+ plain: ""
347
+ }, {
348
+ default: n(() => [...e[29] || (e[29] = [
349
+ r("Primary Plain", -1)
350
+ ])]),
351
+ _: 1
352
+ }),
353
+ t(S, { direction: "vertical" }),
354
+ t(_, { text: "" }, {
355
+ default: n(() => [...e[30] || (e[30] = [
356
+ r("Text", -1)
357
+ ])]),
358
+ _: 1
359
+ }),
360
+ t(_, {
361
+ type: "danger",
362
+ text: ""
363
+ }, {
364
+ default: n(() => [...e[31] || (e[31] = [
365
+ r("Danger Text", -1)
366
+ ])]),
367
+ _: 1
368
+ }),
369
+ t(S, { direction: "vertical" }),
370
+ t(_, { disabled: "" }, {
371
+ default: n(() => [
372
+ r(i(s(l)("禁用")), 1)
373
+ ]),
374
+ _: 1
375
+ }),
376
+ t(_, {
377
+ type: "primary",
378
+ loading: ""
379
+ }, {
380
+ default: n(() => [
381
+ r(i(s(l)("加载中")), 1)
382
+ ]),
383
+ _: 1
384
+ })
385
+ ]),
386
+ a("div", yl, [
387
+ a("div", kl, i(s(l)("表单控件 Form")), 1),
388
+ t(_e, {
389
+ inline: "",
390
+ "label-width": "auto"
391
+ }, {
392
+ default: n(() => [
393
+ t(b, {
394
+ label: s(l)("输入框")
395
+ }, {
396
+ default: n(() => [
397
+ t(se, {
398
+ modelValue: m.input,
399
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => m.input = o),
400
+ placeholder: s(l)("请输入内容"),
401
+ clearable: ""
402
+ }, null, 8, ["modelValue", "placeholder"])
403
+ ]),
404
+ _: 1
405
+ }, 8, ["label"]),
406
+ t(b, {
407
+ label: s(l)("选择器")
408
+ }, {
409
+ default: n(() => [
410
+ t(ne, {
411
+ modelValue: m.select,
412
+ "onUpdate:modelValue": e[3] || (e[3] = (o) => m.select = o),
413
+ placeholder: s(l)("请选择"),
414
+ style: { width: "160px" }
415
+ }, {
416
+ default: n(() => [
417
+ (v(), g(y, null, k(Q, (o) => t(ae, {
418
+ key: o,
419
+ label: o,
420
+ value: o
421
+ }, null, 8, ["label", "value"])), 64))
422
+ ]),
423
+ _: 1
424
+ }, 8, ["modelValue", "placeholder"])
425
+ ]),
426
+ _: 1
427
+ }, 8, ["label"]),
428
+ t(b, {
429
+ label: s(l)("日期")
430
+ }, {
431
+ default: n(() => [
432
+ t(ie, {
433
+ modelValue: m.date,
434
+ "onUpdate:modelValue": e[4] || (e[4] = (o) => m.date = o),
435
+ type: "date",
436
+ placeholder: s(l)("选择日期")
437
+ }, null, 8, ["modelValue", "placeholder"])
438
+ ]),
439
+ _: 1
440
+ }, 8, ["label"]),
441
+ t(b, {
442
+ label: s(l)("开关")
443
+ }, {
444
+ default: n(() => [
445
+ t(re, {
446
+ modelValue: m.switch,
447
+ "onUpdate:modelValue": e[5] || (e[5] = (o) => m.switch = o)
448
+ }, null, 8, ["modelValue"])
449
+ ]),
450
+ _: 1
451
+ }, 8, ["label"]),
452
+ t(b, {
453
+ label: s(l)("单选")
454
+ }, {
455
+ default: n(() => [
456
+ t(z, {
457
+ modelValue: m.radio,
458
+ "onUpdate:modelValue": e[6] || (e[6] = (o) => m.radio = o)
459
+ }, {
460
+ default: n(() => [
461
+ t(K, { value: "1" }, {
462
+ default: n(() => [
463
+ r(i(s(l)("选项一")), 1)
464
+ ]),
465
+ _: 1
466
+ }),
467
+ t(K, { value: "2" }, {
468
+ default: n(() => [
469
+ r(i(s(l)("选项二")), 1)
470
+ ]),
471
+ _: 1
472
+ })
473
+ ]),
474
+ _: 1
475
+ }, 8, ["modelValue"])
476
+ ]),
477
+ _: 1
478
+ }, 8, ["label"]),
479
+ t(b, {
480
+ label: s(l)("多选")
481
+ }, {
482
+ default: n(() => [
483
+ t(de, {
484
+ modelValue: m.checkbox,
485
+ "onUpdate:modelValue": e[7] || (e[7] = (o) => m.checkbox = o)
486
+ }, {
487
+ default: n(() => [
488
+ t(F, { value: "a" }, {
489
+ default: n(() => [
490
+ r(i(s(l)("苹果")), 1)
491
+ ]),
492
+ _: 1
493
+ }),
494
+ t(F, { value: "b" }, {
495
+ default: n(() => [
496
+ r(i(s(l)("香蕉")), 1)
497
+ ]),
498
+ _: 1
499
+ })
500
+ ]),
501
+ _: 1
502
+ }, 8, ["modelValue"])
503
+ ]),
504
+ _: 1
505
+ }, 8, ["label"]),
506
+ t(b, {
507
+ label: s(l)("滑块")
508
+ }, {
509
+ default: n(() => [
510
+ t(ue, {
511
+ modelValue: m.slider,
512
+ "onUpdate:modelValue": e[8] || (e[8] = (o) => m.slider = o),
513
+ style: { width: "140px" }
514
+ }, null, 8, ["modelValue"])
515
+ ]),
516
+ _: 1
517
+ }, 8, ["label"]),
518
+ t(b, {
519
+ label: s(l)("评分")
520
+ }, {
521
+ default: n(() => [
522
+ t(ce, {
523
+ modelValue: m.rate,
524
+ "onUpdate:modelValue": e[9] || (e[9] = (o) => m.rate = o)
525
+ }, null, 8, ["modelValue"])
526
+ ]),
527
+ _: 1
528
+ }, 8, ["label"])
529
+ ]),
530
+ _: 1
531
+ })
532
+ ]),
533
+ a("div", hl, [
534
+ a("div", wl, i(s(l)("数据展示 Data Display")), 1),
535
+ t(T, null, {
536
+ default: n(() => [
537
+ r(i(s(l)("标签一")), 1)
538
+ ]),
539
+ _: 1
540
+ }),
541
+ t(T, { type: "success" }, {
542
+ default: n(() => [
543
+ r(i(s(l)("标签二")), 1)
544
+ ]),
545
+ _: 1
546
+ }),
547
+ t(T, {
548
+ type: "warning",
549
+ effect: "dark"
550
+ }, {
551
+ default: n(() => [
552
+ r(i(s(l)("标签三")), 1)
553
+ ]),
554
+ _: 1
555
+ }),
556
+ t(S, { direction: "vertical" }),
557
+ t(pe, { size: 36 }, {
558
+ default: n(() => [...e[32] || (e[32] = [
559
+ r("YH", -1)
560
+ ])]),
561
+ _: 1
562
+ }),
563
+ t(me, {
564
+ value: 12,
565
+ class: "badge-item"
566
+ }, {
567
+ default: n(() => [
568
+ t(_, null, {
569
+ default: n(() => [
570
+ r(i(s(l)("消息")), 1)
571
+ ]),
572
+ _: 1
573
+ })
574
+ ]),
575
+ _: 1
576
+ }),
577
+ t(ve, {
578
+ percentage: 70,
579
+ style: { width: "200px" }
580
+ }),
581
+ t(ge, {
582
+ title: s(l)("警告提示:这是一条 Alert 示例"),
583
+ type: "warning",
584
+ "show-icon": "",
585
+ style: { "margin-top": "12px" }
586
+ }, null, 8, ["title"])
587
+ ]),
588
+ a("div", Vl, [
589
+ a("div", Cl, i(s(l)("表格 Table(Element Plus)")), 1),
590
+ t(fe, {
591
+ data: U,
592
+ border: "",
593
+ stripe: "",
594
+ style: { width: "100%" }
595
+ }, {
596
+ default: n(() => [
597
+ t(E, {
598
+ prop: "name",
599
+ label: s(l)("名称")
600
+ }, null, 8, ["label"]),
601
+ t(E, {
602
+ prop: "status",
603
+ label: s(l)("状态")
604
+ }, {
605
+ default: n(({ row: o }) => [
606
+ t(T, {
607
+ size: "small",
608
+ type: o.statusType
609
+ }, {
610
+ default: n(() => [
611
+ r(i(o.status), 1)
612
+ ]),
613
+ _: 2
614
+ }, 1032, ["type"])
615
+ ]),
616
+ _: 1
617
+ }, 8, ["label"]),
618
+ t(E, {
619
+ prop: "amount",
620
+ label: s(l)("金额")
621
+ }, null, 8, ["label"]),
622
+ t(E, {
623
+ prop: "date",
624
+ label: s(l)("日期")
625
+ }, null, 8, ["label"])
626
+ ]),
627
+ _: 1
628
+ })
629
+ ]),
630
+ a("div", xl, [
631
+ e[33] || (e[33] = a("div", { class: "block-title" }, "VXE Table", -1)),
632
+ t(ye, Te(Le(ee)), {
633
+ pager: n(() => [
634
+ t(be, {
635
+ "current-page": D.currentPage,
636
+ "onUpdate:currentPage": e[10] || (e[10] = (o) => D.currentPage = o),
637
+ "page-size": D.pageSize,
638
+ "onUpdate:pageSize": e[11] || (e[11] = (o) => D.pageSize = o),
639
+ layouts: ["PrevPage", "Number", "NextPage", "Total"],
640
+ total: U.length
641
+ }, null, 8, ["current-page", "page-size", "total"])
642
+ ]),
643
+ _: 1
644
+ }, 16)
645
+ ]),
646
+ a("div", Tl, [
647
+ a("div", Ll, i(s(l)("反馈 Feedback")), 1),
648
+ t(_, {
649
+ onClick: e[12] || (e[12] = (o) => s(O).success(s(l)("成功消息 Message")))
650
+ }, {
651
+ default: n(() => [...e[34] || (e[34] = [
652
+ r("Message", -1)
653
+ ])]),
654
+ _: 1
655
+ }),
656
+ t(_, {
657
+ onClick: e[13] || (e[13] = (o) => s(O).warning(s(l)("警告消息 Message")))
658
+ }, {
659
+ default: n(() => [...e[35] || (e[35] = [
660
+ r("Message Warning", -1)
661
+ ])]),
662
+ _: 1
663
+ }),
664
+ t(_, { onClick: le }, {
665
+ default: n(() => [...e[36] || (e[36] = [
666
+ r("Notification", -1)
667
+ ])]),
668
+ _: 1
669
+ }),
670
+ t(_, { onClick: te }, {
671
+ default: n(() => [...e[37] || (e[37] = [
672
+ r("MessageBox", -1)
673
+ ])]),
674
+ _: 1
675
+ }),
676
+ t(_, {
677
+ onClick: e[14] || (e[14] = (o) => C.value = !0)
678
+ }, {
679
+ default: n(() => [...e[38] || (e[38] = [
680
+ r("Dialog", -1)
681
+ ])]),
682
+ _: 1
683
+ }),
684
+ t(_, {
685
+ onClick: e[15] || (e[15] = (o) => $.value = !0)
686
+ }, {
687
+ default: n(() => [...e[39] || (e[39] = [
688
+ r("Drawer", -1)
689
+ ])]),
690
+ _: 1
691
+ }),
692
+ t(_, { onClick: oe }, {
693
+ default: n(() => [...e[40] || (e[40] = [
694
+ r("Loading", -1)
695
+ ])]),
696
+ _: 1
697
+ })
698
+ ]),
699
+ a("h3", Dl, i(s(l)("VXE 变量")), 1),
700
+ t(he, null, {
701
+ default: n(() => [
702
+ t(ke, {
703
+ title: `${s(l)("VXE Table 独有变量")}(${s(M).length})`
704
+ }, {
705
+ default: n(() => [
706
+ a("div", Sl, [
707
+ (v(!0), g(y, null, k(s(M), (o) => (v(), g("div", {
708
+ key: o.varKey,
709
+ class: "swatch-item"
710
+ }, [
711
+ a("div", {
712
+ class: De(["swatch-box", { "is-non-color": !A(f(o.varKey)) }]),
713
+ style: w(A(f(o.varKey)) ? { backgroundColor: h(o.cssVar) } : {})
714
+ }, [
715
+ A(f(o.varKey)) ? Se("", !0) : (v(), g("span", El, i(f(o.varKey)), 1))
716
+ ], 6),
717
+ a("div", Bl, i(o.label), 1),
718
+ a("div", Al, i(o.cssVar), 1),
719
+ a("div", Pl, i(f(o.varKey)), 1)
720
+ ]))), 128))
721
+ ])
722
+ ]),
723
+ _: 1
724
+ }, 8, ["title"])
725
+ ]),
726
+ _: 1
727
+ }),
728
+ t(we, {
729
+ modelValue: C.value,
730
+ "onUpdate:modelValue": e[18] || (e[18] = (o) => C.value = o),
731
+ title: s(l)("Dialog 示例"),
732
+ width: "420px"
733
+ }, {
734
+ footer: n(() => [
735
+ t(_, {
736
+ onClick: e[16] || (e[16] = (o) => C.value = !1)
737
+ }, {
738
+ default: n(() => [
739
+ r(i(s(l)("取消")), 1)
740
+ ]),
741
+ _: 1
742
+ }),
743
+ t(_, {
744
+ type: "primary",
745
+ onClick: e[17] || (e[17] = (o) => C.value = !1)
746
+ }, {
747
+ default: n(() => [
748
+ r(i(s(l)("确定")), 1)
749
+ ]),
750
+ _: 1
751
+ })
752
+ ]),
753
+ default: n(() => [
754
+ a("span", null, i(s(l)("这段文字用于预览弹窗在当前主题下的效果。")), 1)
755
+ ]),
756
+ _: 1
757
+ }, 8, ["modelValue", "title"]),
758
+ t(Ve, {
759
+ modelValue: $.value,
760
+ "onUpdate:modelValue": e[19] || (e[19] = (o) => $.value = o),
761
+ title: s(l)("Drawer 示例"),
762
+ size: "320px"
763
+ }, {
764
+ default: n(() => [
765
+ a("span", null, i(s(l)("这段文字用于预览抽屉在当前主题下的效果。")), 1)
766
+ ]),
767
+ _: 1
768
+ }, 8, ["modelValue", "title"])
769
+ ]);
770
+ };
771
+ }
772
+ }), Hl = /* @__PURE__ */ Fe(Ul, [["__scopeId", "data-v-ebed1bba"]]);
773
+ export {
774
+ Hl as default
775
+ };
776
+ //# sourceMappingURL=ThemeDemo-mMm9qP5J.js.map