@mxmweb/zui-layouts 1.3.13 → 1.3.15

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 (2) hide show
  1. package/index.js +169 -163
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as o, jsxs as b, Fragment as ye } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as b, Fragment as ye } from "react/jsx-runtime";
2
2
  import * as T from "react";
3
3
  import k, { forwardRef as Ce, createElement as se } from "react";
4
4
  import l from "styled-components";
@@ -50,7 +50,7 @@ new Promise(() => {
50
50
  * This source code is licensed under the ISC license.
51
51
  * See the LICENSE file in the root directory of this source tree.
52
52
  */
53
- const Ee = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Be = (...e) => e.filter((t, n, d) => !!t && t.trim() !== "" && d.indexOf(t) === n).join(" ").trim();
53
+ const Ee = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Be = (...e) => e.filter((t, o, d) => !!t && t.trim() !== "" && d.indexOf(t) === o).join(" ").trim();
54
54
  /**
55
55
  * @license lucide-react v0.456.0 - ISC
56
56
  *
@@ -78,7 +78,7 @@ const _e = Ce(
78
78
  ({
79
79
  color: e = "currentColor",
80
80
  size: t = 24,
81
- strokeWidth: n = 2,
81
+ strokeWidth: o = 2,
82
82
  absoluteStrokeWidth: d,
83
83
  className: i = "",
84
84
  children: p,
@@ -92,7 +92,7 @@ const _e = Ce(
92
92
  width: t,
93
93
  height: t,
94
94
  stroke: e,
95
- strokeWidth: d ? Number(n) * 24 / Number(t) : n,
95
+ strokeWidth: d ? Number(o) * 24 / Number(t) : o,
96
96
  className: Be("lucide", i),
97
97
  ...B
98
98
  },
@@ -109,7 +109,7 @@ const _e = Ce(
109
109
  * See the LICENSE file in the root directory of this source tree.
110
110
  */
111
111
  const De = (e, t) => {
112
- const n = Ce(
112
+ const o = Ce(
113
113
  ({ className: d, ...i }, p) => se(_e, {
114
114
  ref: p,
115
115
  iconNode: t,
@@ -117,7 +117,7 @@ const De = (e, t) => {
117
117
  ...i
118
118
  })
119
119
  );
120
- return n.displayName = `${e}`, n;
120
+ return o.displayName = `${e}`, o;
121
121
  };
122
122
  /**
123
123
  * @license lucide-react v0.456.0 - ISC
@@ -149,16 +149,16 @@ const ee = De("ChevronRight", [
149
149
  max-width: 100%;
150
150
  position: relative;
151
151
  background: ${({ theme: e }) => {
152
- var t, n;
153
- return ((t = e.colors) == null ? void 0 : t.dashboardBackground) ?? ((n = e.colors) == null ? void 0 : n.appBackground) ?? "transparent";
152
+ var t, o;
153
+ return ((t = e.colors) == null ? void 0 : t.dashboardBackground) ?? ((o = e.colors) == null ? void 0 : o.appBackground) ?? "transparent";
154
154
  }};
155
155
  color: ${({ theme: e }) => {
156
156
  var t;
157
157
  return ((t = e.colors) == null ? void 0 : t.text) || "#1D2129";
158
158
  }};
159
159
  font-family: ${({ theme: e }) => {
160
- var t, n;
161
- return ((n = (t = e.fonts) == null ? void 0 : t.body) == null ? void 0 : n.family) || "PingFang SC, Microsoft YaHei, Arial, sans-serif";
160
+ var t, o;
161
+ return ((o = (t = e.fonts) == null ? void 0 : t.body) == null ? void 0 : o.family) || "PingFang SC, Microsoft YaHei, Arial, sans-serif";
162
162
  }};
163
163
  `, Ye = l.div.attrs({
164
164
  className: "dashboard-container-header"
@@ -215,16 +215,16 @@ const ee = De("ChevronRight", [
215
215
  &:hover svg {
216
216
  transform: translateY(-1px);
217
217
  color: ${({ theme: e }) => {
218
- var t, n;
219
- return ((t = e.colors) == null ? void 0 : t.primaryHover) || ((n = e.colors) == null ? void 0 : n.primary) || "#6D86F5";
218
+ var t, o;
219
+ return ((t = e.colors) == null ? void 0 : t.primaryHover) || ((o = e.colors) == null ? void 0 : o.primary) || "#6D86F5";
220
220
  }};
221
221
  }
222
222
 
223
223
  &:active svg {
224
224
  transform: translateY(0);
225
225
  color: ${({ theme: e }) => {
226
- var t, n;
227
- return ((t = e.colors) == null ? void 0 : t.primaryActive) || ((n = e.colors) == null ? void 0 : n.primary) || "#2D4BE0";
226
+ var t, o;
227
+ return ((t = e.colors) == null ? void 0 : t.primaryActive) || ((o = e.colors) == null ? void 0 : o.primary) || "#2D4BE0";
228
228
  }};
229
229
  }
230
230
  `, Ze = l.div.attrs({
@@ -246,12 +246,12 @@ const ee = De("ChevronRight", [
246
246
  return ((t = e.colors) == null ? void 0 : t.text) || "#1D2129";
247
247
  }};
248
248
  font-size: ${({ theme: e }) => {
249
- var t, n;
250
- return ((n = (t = e.fonts) == null ? void 0 : t.heading) == null ? void 0 : n.size) || "16px";
249
+ var t, o;
250
+ return ((o = (t = e.fonts) == null ? void 0 : t.heading) == null ? void 0 : o.size) || "16px";
251
251
  }};
252
252
  font-weight: ${({ theme: e }) => {
253
- var t, n;
254
- return ((n = (t = e.fonts) == null ? void 0 : t.heading) == null ? void 0 : n.weight) || "600";
253
+ var t, o;
254
+ return ((o = (t = e.fonts) == null ? void 0 : t.heading) == null ? void 0 : o.weight) || "600";
255
255
  }};
256
256
 
257
257
  &:hover {
@@ -273,13 +273,13 @@ const ee = De("ChevronRight", [
273
273
  flex: 1;
274
274
  min-width: 0;
275
275
  color: ${({ theme: e }) => {
276
- var t, n;
277
- return ((t = e.colors) == null ? void 0 : t.textSecondary) || ((n = e.colors) == null ? void 0 : n.disabledText) || "#4E5969";
276
+ var t, o;
277
+ return ((t = e.colors) == null ? void 0 : t.textSecondary) || ((o = e.colors) == null ? void 0 : o.disabledText) || "#4E5969";
278
278
  }};
279
279
  opacity: 0.7;
280
280
  font-size: ${({ theme: e }) => {
281
- var t, n;
282
- return ((n = (t = e.fonts) == null ? void 0 : t.body) == null ? void 0 : n.size) || "12px";
281
+ var t, o;
282
+ return ((o = (t = e.fonts) == null ? void 0 : t.body) == null ? void 0 : o.size) || "12px";
283
283
  }};
284
284
  `, ke = l.div.attrs({
285
285
  className: "dashboard-container-breadcrumb"
@@ -298,12 +298,12 @@ const ee = De("ChevronRight", [
298
298
  align-items: center;
299
299
  gap: 4px;
300
300
  font-size: ${({ theme: e }) => {
301
- var t, n;
302
- return ((n = (t = e.fonts) == null ? void 0 : t.body) == null ? void 0 : n.size) || "14px";
301
+ var t, o;
302
+ return ((o = (t = e.fonts) == null ? void 0 : t.body) == null ? void 0 : o.size) || "14px";
303
303
  }};
304
304
  color: ${({ $isLast: e, theme: t }) => {
305
- var n, d, i;
306
- return e ? ((n = t.colors) == null ? void 0 : n.text) || "#343a40" : ((d = t.colors) == null ? void 0 : d.textSecondary) || ((i = t.colors) == null ? void 0 : i.disabledText) || "#6c757d";
305
+ var o, d, i;
306
+ return e ? ((o = t.colors) == null ? void 0 : o.text) || "#343a40" : ((d = t.colors) == null ? void 0 : d.textSecondary) || ((i = t.colors) == null ? void 0 : i.disabledText) || "#6c757d";
307
307
  }};
308
308
  font-weight: ${({ $isLast: e }) => e ? "600" : "normal"};
309
309
  cursor: ${({ $isClickable: e }) => e ? "pointer" : "default"};
@@ -315,8 +315,8 @@ const ee = De("ChevronRight", [
315
315
 
316
316
  &:hover {
317
317
  color: ${({ $isLast: e, theme: t }) => {
318
- var n;
319
- return e ? ((n = t.colors) == null ? void 0 : n.primary) || "#4E6EF2" : "inherit";
318
+ var o;
319
+ return e ? ((o = t.colors) == null ? void 0 : o.primary) || "#4E6EF2" : "inherit";
320
320
  }};
321
321
  }
322
322
  `, oe = l.div.attrs({
@@ -325,8 +325,8 @@ const ee = De("ChevronRight", [
325
325
  display: flex;
326
326
  align-items: center;
327
327
  color: ${({ theme: e }) => {
328
- var t, n;
329
- return ((t = e.colors) == null ? void 0 : t.textSecondary) || ((n = e.colors) == null ? void 0 : n.disabledText) || "#6c757d";
328
+ var t, o;
329
+ return ((t = e.colors) == null ? void 0 : t.textSecondary) || ((o = e.colors) == null ? void 0 : o.disabledText) || "#6c757d";
330
330
  }};
331
331
  margin: 0 2px;
332
332
  `, Je = l.div.attrs({
@@ -335,6 +335,11 @@ const ee = De("ChevronRight", [
335
335
  display: flex;
336
336
  flex-direction: column;
337
337
  width: 100%;
338
+ /* 使用 !important 覆盖全局 * { padding: 0 },确保 theme.space.dashboardContentPadding 生效 */
339
+ padding: ${({ theme: e }) => {
340
+ var t, o;
341
+ return ((t = e == null ? void 0 : e.space) == null ? void 0 : t.dashboardContentPadding) ?? ((o = e == null ? void 0 : e.space) == null ? void 0 : o.padding) ?? "0";
342
+ }};
338
343
  height: ${({ theme: e }) => {
339
344
  var D, B;
340
345
  const t = ((D = e.space) == null ? void 0 : D.dashboardHeaderHeight) ?? "38px", d = (((B = e.space) == null ? void 0 : B.dashboardHeaderPadding) ?? "0 0 8px 0").trim().split(/\s+/);
@@ -344,22 +349,22 @@ const ee = De("ChevronRight", [
344
349
  min-height: 420px;
345
350
  overflow: auto;
346
351
  background: ${({ theme: e }) => {
347
- var t, n;
348
- return ((t = e.colors) == null ? void 0 : t.dashboardBackground) || ((n = e.colors) == null ? void 0 : n.background) || "#FFFFFF";
352
+ var t, o;
353
+ return ((t = e.colors) == null ? void 0 : t.dashboardBackground) || ((o = e.colors) == null ? void 0 : o.background) || "#FFFFFF";
349
354
  }};
350
355
  /* 优先使用 dashboardBorder,如果没有则使用 border 颜色构建默认 border */
351
356
  border: ${({ theme: e }) => {
352
- var t, n;
353
- return ((t = e.colors) == null ? void 0 : t.dashboardBorder) !== void 0 ? e.colors.dashboardBorder : (n = e.colors) != null && n.border ? `1px solid ${e.colors.border}` : "none";
357
+ var t, o;
358
+ return ((t = e.colors) == null ? void 0 : t.dashboardBorder) !== void 0 ? e.colors.dashboardBorder : (o = e.colors) != null && o.border ? `1px solid ${e.colors.border}` : "none";
354
359
  }};
355
360
  border-radius: ${({ theme: e }) => {
356
- var t, n, d;
357
- return ((t = e.space) == null ? void 0 : t.dashboardContentRadius) ?? ((n = e.colors) == null ? void 0 : n.dashboardContentRadius) ?? ((d = e.space) == null ? void 0 : d.radius) ?? "4px";
361
+ var t, o, d;
362
+ return ((t = e.space) == null ? void 0 : t.dashboardContentRadius) ?? ((o = e.colors) == null ? void 0 : o.dashboardContentRadius) ?? ((d = e.space) == null ? void 0 : d.radius) ?? "4px";
358
363
  }};
359
364
  /* 优先使用 dashboardShadow,如果没有则使用 shadow */
360
365
  box-shadow: ${({ theme: e }) => {
361
- var t, n;
362
- return ((t = e.colors) == null ? void 0 : t.dashboardShadow) || ((n = e.colors) == null ? void 0 : n.shadow) || "none";
366
+ var t, o;
367
+ return ((t = e.colors) == null ? void 0 : t.dashboardShadow) || ((o = e.colors) == null ? void 0 : o.shadow) || "none";
363
368
  }};
364
369
  `, Qe = l.div.attrs({
365
370
  className: "dashboard-container-nav"
@@ -371,7 +376,8 @@ const ee = De("ChevronRight", [
371
376
  })`
372
377
  display: flex;
373
378
  flex-direction: column;
374
- flex: 1;
379
+ flex: 1 1 0;
380
+ min-height: 0;
375
381
  min-width: 0;
376
382
  background: ${({ theme: e }) => {
377
383
  var t;
@@ -390,7 +396,7 @@ const ee = De("ChevronRight", [
390
396
  `, Ft = ({
391
397
  children: e,
392
398
  goBack: t,
393
- title: n,
399
+ title: o,
394
400
  description: d,
395
401
  breadcrumbs: i,
396
402
  dockItems: p,
@@ -410,19 +416,19 @@ const ee = De("ChevronRight", [
410
416
  s != null && s.onGoBack ? s.onGoBack() : t && t();
411
417
  }, L = () => {
412
418
  s != null && s.onTitleClick && s.onTitleClick();
413
- }, A = (g, r) => {
414
- s != null && s.onBreadcrumbClick ? s.onBreadcrumbClick(g, r) : g.onClick && g.onClick();
415
- }, Y = (g, r) => {
416
- s != null && s.onDockItemClick && s.onDockItemClick(g, r);
419
+ }, A = (u, r) => {
420
+ s != null && s.onBreadcrumbClick ? s.onBreadcrumbClick(u, r) : u.onClick && u.onClick();
421
+ }, Y = (u, r) => {
422
+ s != null && s.onDockItemClick && s.onDockItemClick(u, r);
417
423
  }, j = () => {
418
424
  if (!i || i.length === 0) return null;
419
- const [g, r] = k.useState({ start: 0, end: i.length, showEllipsis: !1 }), R = k.useCallback(() => {
425
+ const [u, r] = k.useState({ start: 0, end: i.length, showEllipsis: !1 }), R = k.useCallback(() => {
420
426
  if (!N.current || i.length <= 3) {
421
427
  r({ start: 0, end: i.length, showEllipsis: !1 });
422
428
  return;
423
429
  }
424
- const m = N.current.offsetWidth * 0.5;
425
- let V = Math.floor((m - 30) / (120 + 20));
430
+ const v = N.current.offsetWidth * 0.5;
431
+ let V = Math.floor((v - 30) / (120 + 20));
426
432
  if (V < 2 && (V = 2), V >= i.length) {
427
433
  r({ start: 0, end: i.length, showEllipsis: !1 });
428
434
  return;
@@ -443,39 +449,39 @@ const ee = De("ChevronRight", [
443
449
  w.disconnect();
444
450
  };
445
451
  }, [R]), i.length <= 3)
446
- return /* @__PURE__ */ o(ke, { theme: c, children: i.map((w, m) => /* @__PURE__ */ b(k.Fragment, { children: [
447
- /* @__PURE__ */ o(
452
+ return /* @__PURE__ */ n(ke, { theme: c, children: i.map((w, v) => /* @__PURE__ */ b(k.Fragment, { children: [
453
+ /* @__PURE__ */ n(
448
454
  te,
449
455
  {
450
- $isLast: m === i.length - 1,
451
- $isClickable: !!(m < i.length - 1 || w.onClick),
452
- onClick: () => A(w, m),
456
+ $isLast: v === i.length - 1,
457
+ $isClickable: !!(v < i.length - 1 || w.onClick),
458
+ onClick: () => A(w, v),
453
459
  theme: c,
454
460
  title: w.label,
455
461
  children: w.label
456
462
  }
457
463
  ),
458
- m < i.length - 1 && /* @__PURE__ */ o(oe, { theme: c, children: /* @__PURE__ */ o(ee, { size: 14 }) })
464
+ v < i.length - 1 && /* @__PURE__ */ n(oe, { theme: c, children: /* @__PURE__ */ n(ee, { size: 14 }) })
459
465
  ] }, w.id)) });
460
- const { start: E, end: W, showEllipsis: re } = g;
466
+ const { start: E, end: W, showEllipsis: re } = u;
461
467
  return /* @__PURE__ */ b(ke, { theme: c, children: [
462
- i.slice(E, W).map((w, m) => /* @__PURE__ */ b(k.Fragment, { children: [
463
- /* @__PURE__ */ o(
468
+ i.slice(E, W).map((w, v) => /* @__PURE__ */ b(k.Fragment, { children: [
469
+ /* @__PURE__ */ n(
464
470
  te,
465
471
  {
466
- $isLast: m === W - E - 1 && !re,
467
- $isClickable: !!(m < W - E - 1 || w.onClick),
468
- onClick: () => A(w, E + m),
472
+ $isLast: v === W - E - 1 && !re,
473
+ $isClickable: !!(v < W - E - 1 || w.onClick),
474
+ onClick: () => A(w, E + v),
469
475
  theme: c,
470
476
  title: w.label,
471
477
  children: w.label
472
478
  }
473
479
  ),
474
- m < W - E - 1 && /* @__PURE__ */ o(oe, { theme: c, children: /* @__PURE__ */ o(ee, { size: 14 }) })
480
+ v < W - E - 1 && /* @__PURE__ */ n(oe, { theme: c, children: /* @__PURE__ */ n(ee, { size: 14 }) })
475
481
  ] }, w.id)),
476
482
  re && /* @__PURE__ */ b(ye, { children: [
477
- /* @__PURE__ */ o(oe, { theme: c, children: /* @__PURE__ */ o(ee, { size: 14 }) }),
478
- /* @__PURE__ */ o(
483
+ /* @__PURE__ */ n(oe, { theme: c, children: /* @__PURE__ */ n(ee, { size: 14 }) }),
484
+ /* @__PURE__ */ n(
479
485
  te,
480
486
  {
481
487
  $isLast: !1,
@@ -489,8 +495,8 @@ const ee = De("ChevronRight", [
489
495
  children: "..."
490
496
  }
491
497
  ),
492
- /* @__PURE__ */ o(oe, { theme: c, children: /* @__PURE__ */ o(ee, { size: 14 }) }),
493
- /* @__PURE__ */ o(
498
+ /* @__PURE__ */ n(oe, { theme: c, children: /* @__PURE__ */ n(ee, { size: 14 }) }),
499
+ /* @__PURE__ */ n(
494
500
  te,
495
501
  {
496
502
  $isLast: !0,
@@ -504,39 +510,39 @@ const ee = De("ChevronRight", [
504
510
  ] })
505
511
  ] });
506
512
  }, [P, q] = k.useState(!0);
507
- return /* @__PURE__ */ o(Ke, { theme: c, children: /* @__PURE__ */ b(et, { theme: c, children: [
508
- p && p.length > 0 && /* @__PURE__ */ o(Qe, { $isOpen: P, theme: c, children: /* @__PURE__ */ o(
513
+ return /* @__PURE__ */ n(Ke, { theme: c, children: /* @__PURE__ */ b(et, { theme: c, children: [
514
+ p && p.length > 0 && /* @__PURE__ */ n(Qe, { $isOpen: P, theme: c, children: /* @__PURE__ */ n(
509
515
  Te,
510
516
  {
511
517
  items: p,
512
518
  open: P,
513
519
  onOpenChange: q,
514
- onItemClick: (g) => Y({ id: String(g.key), label: g.name }, 0),
520
+ onItemClick: (u) => Y({ id: String(u.key), label: u.name }, 0),
515
521
  defaultOpen: !0
516
522
  }
517
523
  ) }),
518
524
  /* @__PURE__ */ b(Ue, { theme: c, children: [
519
- (n || d || t || i) && /* @__PURE__ */ b(Ye, { ref: N, theme: c, children: [
520
- t && /* @__PURE__ */ o(
525
+ (o || d || t || i) && /* @__PURE__ */ b(Ye, { ref: N, theme: c, children: [
526
+ t && /* @__PURE__ */ n(
521
527
  qe,
522
528
  {
523
529
  onClick: S,
524
530
  theme: c,
525
531
  title: "\u8FD4\u56DE",
526
- children: /* @__PURE__ */ o(Ge, { size: 18 })
532
+ children: /* @__PURE__ */ n(Ge, { size: 18 })
527
533
  }
528
534
  ),
529
535
  j(),
530
- n && /* @__PURE__ */ o(
536
+ o && /* @__PURE__ */ n(
531
537
  Ze,
532
538
  {
533
539
  onClick: L,
534
540
  theme: c,
535
- title: n,
536
- children: n
541
+ title: o,
542
+ children: o
537
543
  }
538
544
  ),
539
- d && /* @__PURE__ */ o(
545
+ d && /* @__PURE__ */ n(
540
546
  Xe,
541
547
  {
542
548
  theme: c,
@@ -545,7 +551,7 @@ const ee = De("ChevronRight", [
545
551
  }
546
552
  )
547
553
  ] }),
548
- /* @__PURE__ */ o(Je, { theme: c, children: e || /* @__PURE__ */ o(Pe, {}) })
554
+ /* @__PURE__ */ n(Je, { theme: c, children: e || /* @__PURE__ */ n(Pe, {}) })
549
555
  ] })
550
556
  ] }) });
551
557
  }, tt = l.div.withConfig({
@@ -603,18 +609,18 @@ const ee = De("ChevronRight", [
603
609
  &::-webkit-scrollbar-thumb:hover {
604
610
  background: rgba(255, 255, 255, 0.5);
605
611
  }
606
- `, ne = 16, it = 48, at = it + ne * 2, me = at + ne * 2, lt = l.div.withConfig({
612
+ `, ne = 16, it = 48, at = it + ne * 2, ve = at + ne * 2, lt = l.div.withConfig({
607
613
  shouldForwardProp: (e) => !["dockPosition"].includes(e)
608
614
  })`
609
615
  ${(e) => e.dockPosition === "left" || e.dockPosition === "right" ? `
610
- width: ${me}px;
616
+ width: ${ve}px;
611
617
  height: 100%;
612
618
  display: flex;
613
619
  align-items: center;
614
620
  justify-content: center;
615
621
  padding: ${ne}px;
616
622
  ` : `
617
- height: ${me}px;
623
+ height: ${ve}px;
618
624
  width: 100%;
619
625
  display: flex;
620
626
  align-items: ${e.dockPosition === "top" ? "flex-start" : "flex-end"};
@@ -627,7 +633,7 @@ const ee = De("ChevronRight", [
627
633
  `, zt = ({
628
634
  children: e,
629
635
  backgroundImage: t,
630
- backgroundColor: n,
636
+ backgroundColor: o,
631
637
  header: d,
632
638
  dockItems: i,
633
639
  dockPosition: p = "bottom",
@@ -643,15 +649,15 @@ const ee = De("ChevronRight", [
643
649
  G({ theme: F, mode: "light" }, K),
644
650
  // 最高层:用户手动传入的styles
645
651
  z
646
- ), c = (I == null ? void 0 : I.theme) || F, N = (g, r) => {
647
- s != null && s.onDockItemClick ? s.onDockItemClick(g, r) : g.onClick && g.onClick();
648
- }, S = (g, r) => {
649
- s != null && s.onDockActiveChange && s.onDockActiveChange(g, r);
650
- }, L = (g, r) => {
651
- s != null && s.onDockActiveChangeMultiple && s.onDockActiveChangeMultiple(g, r);
652
+ ), c = (I == null ? void 0 : I.theme) || F, N = (u, r) => {
653
+ s != null && s.onDockItemClick ? s.onDockItemClick(u, r) : u.onClick && u.onClick();
654
+ }, S = (u, r) => {
655
+ s != null && s.onDockActiveChange && s.onDockActiveChange(u, r);
656
+ }, L = (u, r) => {
657
+ s != null && s.onDockActiveChangeMultiple && s.onDockActiveChangeMultiple(u, r);
652
658
  }, A = p === "left" || p === "right", Y = /* @__PURE__ */ b(ye, { children: [
653
- d && /* @__PURE__ */ o(nt, { children: d }),
654
- /* @__PURE__ */ o(
659
+ d && /* @__PURE__ */ n(nt, { children: d }),
660
+ /* @__PURE__ */ n(
655
661
  rt,
656
662
  {
657
663
  style: {
@@ -661,7 +667,7 @@ const ee = De("ChevronRight", [
661
667
  children: e
662
668
  }
663
669
  )
664
- ] }), j = i && i.length > 0 && /* @__PURE__ */ o(lt, { dockPosition: p, children: /* @__PURE__ */ o(
670
+ ] }), j = i && i.length > 0 && /* @__PURE__ */ n(lt, { dockPosition: p, children: /* @__PURE__ */ n(
665
671
  Fe,
666
672
  {
667
673
  items: i,
@@ -683,12 +689,12 @@ const ee = De("ChevronRight", [
683
689
  tt,
684
690
  {
685
691
  backgroundImage: t,
686
- backgroundColor: n,
692
+ backgroundColor: o,
687
693
  dockPosition: p,
688
694
  children: [
689
695
  p === "top" && j,
690
696
  p === "left" && j,
691
- A ? /* @__PURE__ */ o(ot, { children: Y }) : Y,
697
+ A ? /* @__PURE__ */ n(ot, { children: Y }) : Y,
692
698
  (p === "bottom" || p === "right") && j
693
699
  ]
694
700
  }
@@ -727,7 +733,7 @@ const ee = De("ChevronRight", [
727
733
  display: flex;
728
734
  align-items: center;
729
735
  gap: 8px;
730
- `, ve = l.button`
736
+ `, me = l.button`
731
737
  display: inline-flex;
732
738
  align-items: center;
733
739
  justify-content: center;
@@ -762,9 +768,9 @@ const ee = De("ChevronRight", [
762
768
  gap: 12px;
763
769
  padding: 12px 12px 20px 12px;
764
770
  }
765
- `, ut = l.aside`
771
+ `, gt = l.aside`
766
772
  position: relative;
767
- `, gt = l.div`
773
+ `, ut = l.div`
768
774
  height: 100%;
769
775
  overflow: hidden;
770
776
  padding-right: 8px;
@@ -809,12 +815,12 @@ const ee = De("ChevronRight", [
809
815
  height: 100%;
810
816
  transition: opacity .5s ease;
811
817
  opacity: ${(e) => e.$opacity};
812
- `, mt = l.aside`
818
+ `, vt = l.aside`
813
819
  position: relative;
814
820
  z-index: 1;
815
821
  height: 100%;
816
822
  overflow: hidden;
817
- `, vt = l.div`
823
+ `, mt = l.div`
818
824
  /* 右侧目录独立滚动 */
819
825
  position: relative;
820
826
  height: 100%;
@@ -931,10 +937,10 @@ const le = l.div`
931
937
  },
932
938
  mode: "dark"
933
939
  }, Mt = (e) => {
934
- var ge, fe, xe, be;
940
+ var ue, fe, xe, be;
935
941
  const {
936
942
  children: t,
937
- headerLogo: n,
943
+ headerLogo: o,
938
944
  contentKey: d,
939
945
  modules: i,
940
946
  activeModuleKey: p,
@@ -952,13 +958,13 @@ const le = l.div`
952
958
  onTocItemClick: A,
953
959
  collapsibleSidebar: Y = !0,
954
960
  styles: j
955
- } = e, P = de(), q = e.activeThemeKey === "dark" ? Dt : Bt, g = G(
961
+ } = e, P = de(), q = e.activeThemeKey === "dark" ? Dt : Bt, u = G(
956
962
  G(
957
963
  G({ theme: F, mode: "light" }, P),
958
964
  q
959
965
  ),
960
966
  j
961
- ), r = (g == null ? void 0 : g.theme) || F, [R, E] = k.useState(!1), [W, re] = k.useState(!1), [w, m] = k.useState(!1), U = typeof L == "string", [ce, ie] = k.useState(L), V = k.useRef(null), [J, O] = k.useState(void 0), [Ie, he] = k.useState(t), [Ne, pe] = k.useState(1);
967
+ ), r = (u == null ? void 0 : u.theme) || F, [R, E] = k.useState(!1), [W, re] = k.useState(!1), [w, v] = k.useState(!1), U = typeof L == "string", [ce, ie] = k.useState(L), V = k.useRef(null), [J, O] = k.useState(void 0), [Ie, he] = k.useState(t), [Ne, pe] = k.useState(1);
962
968
  k.useEffect(() => {
963
969
  if (d === void 0) {
964
970
  he(t);
@@ -970,15 +976,15 @@ const le = l.div`
970
976
  }, 120);
971
977
  return () => clearTimeout(a);
972
978
  }, [d, t]), k.useMemo(() => {
973
- var a, f, u, y, $, h, v, x, _, C, M, Z, Q;
979
+ var a, f, g, y, $, h, m, x, _, C, M, Z, Q;
974
980
  return {
975
981
  primaryColor: (a = r == null ? void 0 : r.colors) == null ? void 0 : a.primary,
976
982
  secondaryColor: (f = r == null ? void 0 : r.colors) == null ? void 0 : f.secondary,
977
- backgroundColor: (u = r == null ? void 0 : r.colors) == null ? void 0 : u.appBackground,
983
+ backgroundColor: (g = r == null ? void 0 : r.colors) == null ? void 0 : g.appBackground,
978
984
  textColor: (y = r == null ? void 0 : r.colors) == null ? void 0 : y.text,
979
985
  borderColor: ($ = r == null ? void 0 : r.colors) == null ? void 0 : $.border,
980
986
  disabledBackground: (h = r == null ? void 0 : r.colors) == null ? void 0 : h.disabledBackground,
981
- borderRadius: (v = r == null ? void 0 : r.space) == null ? void 0 : v.radius,
987
+ borderRadius: (m = r == null ? void 0 : r.space) == null ? void 0 : m.radius,
982
988
  padding: (x = r == null ? void 0 : r.space) == null ? void 0 : x.padding,
983
989
  margin: (_ = r == null ? void 0 : r.space) == null ? void 0 : _.margin,
984
990
  baseFontSize: (M = (C = r == null ? void 0 : r.fonts) == null ? void 0 : C.body) != null && M.size ? parseInt((Q = (Z = r == null ? void 0 : r.fonts) == null ? void 0 : Z.body) == null ? void 0 : Q.size, 10) : void 0
@@ -990,19 +996,19 @@ const le = l.div`
990
996
  d !== void 0 && O(void 0);
991
997
  let a = 0;
992
998
  const f = 10;
993
- let u = null, y = null;
999
+ let g = null, y = null;
994
1000
  const $ = () => {
995
1001
  const h = V.current;
996
1002
  if (!h) {
997
- a < f ? (a++, u = setTimeout($, 200)) : O([]);
1003
+ a < f ? (a++, g = setTimeout($, 200)) : O([]);
998
1004
  return;
999
1005
  }
1000
- const v = Array.from(h.querySelectorAll("h1, h2, h3"));
1001
- if (v.length === 0) {
1002
- a < f ? (a++, u = setTimeout($, 200)) : O([]);
1006
+ const m = Array.from(h.querySelectorAll("h1, h2, h3"));
1007
+ if (m.length === 0) {
1008
+ a < f ? (a++, g = setTimeout($, 200)) : O([]);
1003
1009
  return;
1004
1010
  }
1005
- const x = /* @__PURE__ */ new Map(), _ = v.map((C) => {
1011
+ const x = /* @__PURE__ */ new Map(), _ = m.map((C) => {
1006
1012
  var we;
1007
1013
  const M = C.id || ((we = C.textContent) == null ? void 0 : we.trim().replace(/\s+/g, "-").toLowerCase()) || "", Z = x.get(M) || 0;
1008
1014
  x.set(M, Z + 1);
@@ -1014,9 +1020,9 @@ const le = l.div`
1014
1020
  O(_);
1015
1021
  };
1016
1022
  return y = requestAnimationFrame(() => {
1017
- u = setTimeout($, 100);
1023
+ g = setTimeout($, 100);
1018
1024
  }), () => {
1019
- y !== null && cancelAnimationFrame(y), u !== null && clearTimeout(u);
1025
+ y !== null && cancelAnimationFrame(y), g !== null && clearTimeout(g);
1020
1026
  };
1021
1027
  }
1022
1028
  }, [t, e.tocItems, d]), k.useEffect(() => {
@@ -1024,31 +1030,31 @@ const le = l.div`
1024
1030
  const f = ((e.tocItems ?? J) || []).map((h) => h.id).filter(Boolean);
1025
1031
  if (f.length === 0) return;
1026
1032
  ie(void 0);
1027
- const u = { root: null, rootMargin: "0px 0px -70% 0px", threshold: 0 }, y = (h) => {
1033
+ const g = { root: null, rootMargin: "0px 0px -70% 0px", threshold: 0 }, y = (h) => {
1028
1034
  var x, _;
1029
- const v = h.filter((C) => C.isIntersecting).sort((C, M) => C.boundingClientRect.top - M.boundingClientRect.top);
1030
- (_ = (x = v[0]) == null ? void 0 : x.target) != null && _.id && ie(v[0].target.id);
1031
- }, $ = new IntersectionObserver(y, u);
1035
+ const m = h.filter((C) => C.isIntersecting).sort((C, M) => C.boundingClientRect.top - M.boundingClientRect.top);
1036
+ (_ = (x = m[0]) == null ? void 0 : x.target) != null && _.id && ie(m[0].target.id);
1037
+ }, $ = new IntersectionObserver(y, g);
1032
1038
  return f.forEach((h) => {
1033
- const v = document.getElementById(h);
1034
- v && $.observe(v);
1039
+ const m = document.getElementById(h);
1040
+ m && $.observe(m);
1035
1041
  }), () => $.disconnect();
1036
1042
  }, [J, U, e.tocItems, d]);
1037
- const ue = (a, f) => {
1043
+ const ge = (a, f) => {
1038
1044
  if (!a || a.length === 0) return;
1039
- const u = Math.max(0, a.findIndex(($) => $.key === f)), y = a[(u + 1) % a.length];
1045
+ const g = Math.max(0, a.findIndex(($) => $.key === f)), y = a[(g + 1) % a.length];
1040
1046
  return y == null ? void 0 : y.key;
1041
1047
  }, ae = (a) => {
1042
1048
  const f = document.getElementById(a);
1043
1049
  f && f.scrollIntoView({ behavior: "smooth", block: "start", inline: "nearest" });
1044
1050
  };
1045
- return /* @__PURE__ */ o(Ae, { theme: r, mode: g.mode, children: /* @__PURE__ */ b(
1051
+ return /* @__PURE__ */ n(Ae, { theme: r, mode: u.mode, children: /* @__PURE__ */ b(
1046
1052
  st,
1047
1053
  {
1048
1054
  style: {
1049
1055
  background: r.colors.appBackground,
1050
1056
  color: r.colors.text,
1051
- fontFamily: ((fe = (ge = r.fonts) == null ? void 0 : ge.body) == null ? void 0 : fe.family) || "PingFang SC, Microsoft YaHei, Arial, sans-serif"
1057
+ fontFamily: ((fe = (ue = r.fonts) == null ? void 0 : ue.body) == null ? void 0 : fe.family) || "PingFang SC, Microsoft YaHei, Arial, sans-serif"
1052
1058
  },
1053
1059
  children: [
1054
1060
  /* @__PURE__ */ b(
@@ -1060,8 +1066,8 @@ const le = l.div`
1060
1066
  },
1061
1067
  children: [
1062
1068
  /* @__PURE__ */ b(ct, { children: [
1063
- n,
1064
- i && i.length > 0 && /* @__PURE__ */ o(Ct, { children: i.map((a) => /* @__PURE__ */ o(
1069
+ o,
1070
+ i && i.length > 0 && /* @__PURE__ */ n(Ct, { children: i.map((a) => /* @__PURE__ */ n(
1065
1071
  X,
1066
1072
  {
1067
1073
  $active: a.key === p,
@@ -1073,59 +1079,59 @@ const le = l.div`
1073
1079
  )) })
1074
1080
  ] }),
1075
1081
  /* @__PURE__ */ b(ht, { children: [
1076
- /* @__PURE__ */ o("div", { className: "hide-on-desktop", style: { display: "none" } }),
1077
- B && B.length > 0 && /* @__PURE__ */ o(
1078
- ve,
1082
+ /* @__PURE__ */ n("div", { className: "hide-on-desktop", style: { display: "none" } }),
1083
+ B && B.length > 0 && /* @__PURE__ */ n(
1084
+ me,
1079
1085
  {
1080
1086
  onClick: () => {
1081
- const a = ue(B, H);
1087
+ const a = ge(B, H);
1082
1088
  a && (z == null || z(a));
1083
1089
  },
1084
1090
  title: ((xe = B.find((a) => a.key === H)) == null ? void 0 : xe.label) || "Language",
1085
1091
  "aria-label": "language",
1086
1092
  style: { color: r.colors.text },
1087
1093
  children: /* @__PURE__ */ b("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1088
- /* @__PURE__ */ o("path", { d: "M12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9-9 4.03-9 9 4.03 9 9 9Z", stroke: "currentColor", strokeWidth: "1.6" }),
1089
- /* @__PURE__ */ o("path", { d: "M3 12h18M12 3c-2.5 2.5-3.75 5.167-3.75 9S9.5 19.5 12 21c2.5-1.5 3.75-4.167 3.75-8S14.5 5.5 12 3Z", stroke: "currentColor", strokeWidth: "1.6" })
1094
+ /* @__PURE__ */ n("path", { d: "M12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9-9 4.03-9 9 4.03 9 9 9Z", stroke: "currentColor", strokeWidth: "1.6" }),
1095
+ /* @__PURE__ */ n("path", { d: "M3 12h18M12 3c-2.5 2.5-3.75 5.167-3.75 9S9.5 19.5 12 21c2.5-1.5 3.75-4.167 3.75-8S14.5 5.5 12 3Z", stroke: "currentColor", strokeWidth: "1.6" })
1090
1096
  ] })
1091
1097
  }
1092
1098
  ),
1093
- /* @__PURE__ */ o($t, {}),
1094
- s && s.length > 0 && /* @__PURE__ */ o(
1095
- ve,
1099
+ /* @__PURE__ */ n($t, {}),
1100
+ s && s.length > 0 && /* @__PURE__ */ n(
1101
+ me,
1096
1102
  {
1097
1103
  onClick: () => {
1098
- const a = ue(s, K);
1104
+ const a = ge(s, K);
1099
1105
  a && (I == null || I(a));
1100
1106
  },
1101
1107
  title: ((be = s.find((a) => a.key === K)) == null ? void 0 : be.label) || "Theme",
1102
1108
  "aria-label": "theme",
1103
1109
  style: { color: r.colors.text },
1104
- children: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z", stroke: "currentColor", strokeWidth: "1.6" }) })
1110
+ children: /* @__PURE__ */ n("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z", stroke: "currentColor", strokeWidth: "1.6" }) })
1105
1111
  }
1106
1112
  ),
1107
- /* @__PURE__ */ o("div", { className: "mobile-only", style: { display: "none" }, children: /* @__PURE__ */ o(X, { onClick: () => m(!0), title: "\u6253\u5F00\u76EE\u5F55", children: "\u76EE\u5F55" }) })
1113
+ /* @__PURE__ */ n("div", { className: "mobile-only", style: { display: "none" }, children: /* @__PURE__ */ n(X, { onClick: () => v(!0), title: "\u6253\u5F00\u76EE\u5F55", children: "\u76EE\u5F55" }) })
1108
1114
  ] })
1109
1115
  ]
1110
1116
  }
1111
1117
  ),
1112
1118
  (() => {
1113
- const f = (Array.isArray(c) ? c.length : 0) > 1, u = f ? R ? "10px" : "var(--sidebar-width)" : "0px", y = W ? "10px" : "var(--toc-width)", $ = f ? `${u} 1fr ${y}` : `1fr ${y}`;
1119
+ const f = (Array.isArray(c) ? c.length : 0) > 1, g = f ? R ? "10px" : "var(--sidebar-width)" : "0px", y = W ? "10px" : "var(--toc-width)", $ = f ? `${g} 1fr ${y}` : `1fr ${y}`;
1114
1120
  return /* @__PURE__ */ b(pt, { style: { gridTemplateColumns: $ }, children: [
1115
- f && /* @__PURE__ */ b(ut, { children: [
1116
- /* @__PURE__ */ o(gt, { $collapsed: R, children: /* @__PURE__ */ o(xt, { children: c && c.length > 0 && /* @__PURE__ */ o("div", { children: Object.entries(
1117
- c.reduce((h, v) => {
1118
- const x = v.group || "\u6587\u6863";
1119
- return h[x] = h[x] || [], h[x].push(v), h;
1121
+ f && /* @__PURE__ */ b(gt, { children: [
1122
+ /* @__PURE__ */ n(ut, { $collapsed: R, children: /* @__PURE__ */ n(xt, { children: c && c.length > 0 && /* @__PURE__ */ n("div", { children: Object.entries(
1123
+ c.reduce((h, m) => {
1124
+ const x = m.group || "\u6587\u6863";
1125
+ return h[x] = h[x] || [], h[x].push(m), h;
1120
1126
  }, {})
1121
- ).map(([h, v]) => /* @__PURE__ */ b("div", { children: [
1122
- /* @__PURE__ */ o(le, { children: h }),
1123
- /* @__PURE__ */ o("div", { style: { display: "flex", flexDirection: "column", gap: 4, padding: "0 8px 8px 8px" }, children: v.map((x) => /* @__PURE__ */ o(
1127
+ ).map(([h, m]) => /* @__PURE__ */ b("div", { children: [
1128
+ /* @__PURE__ */ n(le, { children: h }),
1129
+ /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4, padding: "0 8px 8px 8px" }, children: m.map((x) => /* @__PURE__ */ n(
1124
1130
  X,
1125
1131
  {
1126
1132
  $active: x.id === N,
1127
1133
  onClick: () => {
1128
- x.href && (x.href.startsWith("#") ? ae(x.href.slice(1)) : window.location.href = x.href), S == null || S(x), m(!1);
1134
+ x.href && (x.href.startsWith("#") ? ae(x.href.slice(1)) : window.location.href = x.href), S == null || S(x), v(!1);
1129
1135
  },
1130
1136
  title: x.label,
1131
1137
  children: x.label
@@ -1133,18 +1139,18 @@ const le = l.div`
1133
1139
  x.id
1134
1140
  )) })
1135
1141
  ] }, h)) }) }) }),
1136
- Y && f && /* @__PURE__ */ o(ft, { onClick: () => E((h) => !h), title: R ? "\u5C55\u5F00\u5DE6\u4FA7\u680F" : "\u6536\u8D77\u5DE6\u4FA7\u680F", "aria-label": "toggle-left", children: R ? /* @__PURE__ */ o("svg", { width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o("path", { d: "M9 6l6 6-6 6", stroke: "currentColor", strokeWidth: "1.6" }) }) : /* @__PURE__ */ o("svg", { width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o("path", { d: "M15 6l-6 6 6 6", stroke: "currentColor", strokeWidth: "1.6" }) }) })
1142
+ Y && f && /* @__PURE__ */ n(ft, { onClick: () => E((h) => !h), title: R ? "\u5C55\u5F00\u5DE6\u4FA7\u680F" : "\u6536\u8D77\u5DE6\u4FA7\u680F", "aria-label": "toggle-left", children: R ? /* @__PURE__ */ n("svg", { width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n("path", { d: "M9 6l6 6-6 6", stroke: "currentColor", strokeWidth: "1.6" }) }) : /* @__PURE__ */ n("svg", { width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n("path", { d: "M15 6l-6 6 6 6", stroke: "currentColor", strokeWidth: "1.6" }) }) })
1137
1143
  ] }),
1138
- /* @__PURE__ */ o(bt, { children: /* @__PURE__ */ o(
1144
+ /* @__PURE__ */ n(bt, { children: /* @__PURE__ */ n(
1139
1145
  wt,
1140
1146
  {
1141
1147
  ref: V,
1142
- children: /* @__PURE__ */ o(kt, { $opacity: Ne, children: Ie })
1148
+ children: /* @__PURE__ */ n(kt, { $opacity: Ne, children: Ie })
1143
1149
  }
1144
1150
  ) }),
1145
- /* @__PURE__ */ o(mt, { children: /* @__PURE__ */ o(vt, { children: /* @__PURE__ */ b(yt, { $collapsed: W, children: [
1146
- /* @__PURE__ */ o(le, { children: "\u672C\u9875\u76EE\u5F55" }),
1147
- /* @__PURE__ */ o("div", { style: { display: "flex", flexDirection: "column", gap: 4, padding: "0 8px 8px 8px", width: "100%", maxWidth: "100%", overflow: "hidden" }, children: ((e.tocItems ?? J) || []).map((h) => /* @__PURE__ */ o(
1151
+ /* @__PURE__ */ n(vt, { children: /* @__PURE__ */ n(mt, { children: /* @__PURE__ */ b(yt, { $collapsed: W, children: [
1152
+ /* @__PURE__ */ n(le, { children: "\u672C\u9875\u76EE\u5F55" }),
1153
+ /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4, padding: "0 8px 8px 8px", width: "100%", maxWidth: "100%", overflow: "hidden" }, children: ((e.tocItems ?? J) || []).map((h) => /* @__PURE__ */ n(
1148
1154
  X,
1149
1155
  {
1150
1156
  $active: (U ? L : ce) === h.id,
@@ -1160,7 +1166,7 @@ const le = l.div`
1160
1166
  ] }) }) })
1161
1167
  ] });
1162
1168
  })(),
1163
- w && /* @__PURE__ */ o(
1169
+ w && /* @__PURE__ */ n(
1164
1170
  "div",
1165
1171
  {
1166
1172
  role: "dialog",
@@ -1172,7 +1178,7 @@ const le = l.div`
1172
1178
  background: "rgba(0,0,0,0.45)",
1173
1179
  display: "flex"
1174
1180
  },
1175
- onClick: () => m(!1),
1181
+ onClick: () => v(!1),
1176
1182
  children: /* @__PURE__ */ b(
1177
1183
  "div",
1178
1184
  {
@@ -1188,26 +1194,26 @@ const le = l.div`
1188
1194
  onClick: (a) => a.stopPropagation(),
1189
1195
  children: [
1190
1196
  /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: 8 }, children: [
1191
- /* @__PURE__ */ o("div", { style: { fontWeight: 600 }, children: "\u76EE\u5F55" }),
1192
- /* @__PURE__ */ o(X, { onClick: () => m(!1), children: "\u5173\u95ED" })
1197
+ /* @__PURE__ */ n("div", { style: { fontWeight: 600 }, children: "\u76EE\u5F55" }),
1198
+ /* @__PURE__ */ n(X, { onClick: () => v(!1), children: "\u5173\u95ED" })
1193
1199
  ] }),
1194
- c && c.length > 0 && /* @__PURE__ */ o("div", { style: { overflow: "auto", height: "calc(100% - 40px)" }, children: Object.entries(
1200
+ c && c.length > 0 && /* @__PURE__ */ n("div", { style: { overflow: "auto", height: "calc(100% - 40px)" }, children: Object.entries(
1195
1201
  c.reduce((a, f) => {
1196
- const u = f.group || "\u6587\u6863";
1197
- return a[u] = a[u] || [], a[u].push(f), a;
1202
+ const g = f.group || "\u6587\u6863";
1203
+ return a[g] = a[g] || [], a[g].push(f), a;
1198
1204
  }, {})
1199
1205
  ).map(([a, f]) => /* @__PURE__ */ b("div", { children: [
1200
- /* @__PURE__ */ o(le, { children: a }),
1201
- /* @__PURE__ */ o("div", { style: { display: "flex", flexDirection: "column", gap: 4, padding: "0 8px 8px 8px" }, children: f.map((u) => /* @__PURE__ */ o(
1206
+ /* @__PURE__ */ n(le, { children: a }),
1207
+ /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4, padding: "0 8px 8px 8px" }, children: f.map((g) => /* @__PURE__ */ n(
1202
1208
  X,
1203
1209
  {
1204
- $active: u.id === N,
1210
+ $active: g.id === N,
1205
1211
  onClick: () => {
1206
- u.href && (u.href.startsWith("#") ? ae(u.href.slice(1)) : window.location.href = u.href), S == null || S(u), m(!1);
1212
+ g.href && (g.href.startsWith("#") ? ae(g.href.slice(1)) : window.location.href = g.href), S == null || S(g), v(!1);
1207
1213
  },
1208
- children: u.label
1214
+ children: g.label
1209
1215
  },
1210
- u.id
1216
+ g.id
1211
1217
  )) })
1212
1218
  ] }, a)) })
1213
1219
  ]
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "style": "assets/style.css",
6
6
  "types": "lib_enter.d.ts",
7
7
  "private": false,
8
- "version": "1.3.13",
8
+ "version": "1.3.15",
9
9
  "author": "hanfeng_Zhang",
10
10
  "type": "module",
11
11
  "scripts": {