@mxmweb/zui-layouts 1.3.12 → 1.3.14

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 +173 -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
@@ -145,20 +145,22 @@ const ee = De("ChevronRight", [
145
145
  align-items: flex-start;
146
146
  flex-direction: column;
147
147
  height: 100%;
148
+ min-height: 0;
149
+ flex: 1 1 0;
148
150
  width: 100%;
149
151
  max-width: 100%;
150
152
  position: relative;
151
153
  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";
154
+ var t, o;
155
+ return ((t = e.colors) == null ? void 0 : t.dashboardBackground) ?? ((o = e.colors) == null ? void 0 : o.appBackground) ?? "transparent";
154
156
  }};
155
157
  color: ${({ theme: e }) => {
156
158
  var t;
157
159
  return ((t = e.colors) == null ? void 0 : t.text) || "#1D2129";
158
160
  }};
159
161
  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";
162
+ var t, o;
163
+ return ((o = (t = e.fonts) == null ? void 0 : t.body) == null ? void 0 : o.family) || "PingFang SC, Microsoft YaHei, Arial, sans-serif";
162
164
  }};
163
165
  `, Ye = l.div.attrs({
164
166
  className: "dashboard-container-header"
@@ -215,16 +217,16 @@ const ee = De("ChevronRight", [
215
217
  &:hover svg {
216
218
  transform: translateY(-1px);
217
219
  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";
220
+ var t, o;
221
+ return ((t = e.colors) == null ? void 0 : t.primaryHover) || ((o = e.colors) == null ? void 0 : o.primary) || "#6D86F5";
220
222
  }};
221
223
  }
222
224
 
223
225
  &:active svg {
224
226
  transform: translateY(0);
225
227
  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";
228
+ var t, o;
229
+ return ((t = e.colors) == null ? void 0 : t.primaryActive) || ((o = e.colors) == null ? void 0 : o.primary) || "#2D4BE0";
228
230
  }};
229
231
  }
230
232
  `, Ze = l.div.attrs({
@@ -246,12 +248,12 @@ const ee = De("ChevronRight", [
246
248
  return ((t = e.colors) == null ? void 0 : t.text) || "#1D2129";
247
249
  }};
248
250
  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";
251
+ var t, o;
252
+ return ((o = (t = e.fonts) == null ? void 0 : t.heading) == null ? void 0 : o.size) || "16px";
251
253
  }};
252
254
  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";
255
+ var t, o;
256
+ return ((o = (t = e.fonts) == null ? void 0 : t.heading) == null ? void 0 : o.weight) || "600";
255
257
  }};
256
258
 
257
259
  &:hover {
@@ -273,13 +275,13 @@ const ee = De("ChevronRight", [
273
275
  flex: 1;
274
276
  min-width: 0;
275
277
  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";
278
+ var t, o;
279
+ return ((t = e.colors) == null ? void 0 : t.textSecondary) || ((o = e.colors) == null ? void 0 : o.disabledText) || "#4E5969";
278
280
  }};
279
281
  opacity: 0.7;
280
282
  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";
283
+ var t, o;
284
+ return ((o = (t = e.fonts) == null ? void 0 : t.body) == null ? void 0 : o.size) || "12px";
283
285
  }};
284
286
  `, ke = l.div.attrs({
285
287
  className: "dashboard-container-breadcrumb"
@@ -298,12 +300,12 @@ const ee = De("ChevronRight", [
298
300
  align-items: center;
299
301
  gap: 4px;
300
302
  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";
303
+ var t, o;
304
+ return ((o = (t = e.fonts) == null ? void 0 : t.body) == null ? void 0 : o.size) || "14px";
303
305
  }};
304
306
  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";
307
+ var o, d, i;
308
+ 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
309
  }};
308
310
  font-weight: ${({ $isLast: e }) => e ? "600" : "normal"};
309
311
  cursor: ${({ $isClickable: e }) => e ? "pointer" : "default"};
@@ -315,8 +317,8 @@ const ee = De("ChevronRight", [
315
317
 
316
318
  &:hover {
317
319
  color: ${({ $isLast: e, theme: t }) => {
318
- var n;
319
- return e ? ((n = t.colors) == null ? void 0 : n.primary) || "#4E6EF2" : "inherit";
320
+ var o;
321
+ return e ? ((o = t.colors) == null ? void 0 : o.primary) || "#4E6EF2" : "inherit";
320
322
  }};
321
323
  }
322
324
  `, oe = l.div.attrs({
@@ -325,8 +327,8 @@ const ee = De("ChevronRight", [
325
327
  display: flex;
326
328
  align-items: center;
327
329
  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";
330
+ var t, o;
331
+ return ((t = e.colors) == null ? void 0 : t.textSecondary) || ((o = e.colors) == null ? void 0 : o.disabledText) || "#6c757d";
330
332
  }};
331
333
  margin: 0 2px;
332
334
  `, Je = l.div.attrs({
@@ -335,6 +337,11 @@ const ee = De("ChevronRight", [
335
337
  display: flex;
336
338
  flex-direction: column;
337
339
  width: 100%;
340
+ /* 使用 !important 覆盖全局 * { padding: 0 },确保 theme.space.dashboardContentPadding 生效 */
341
+ padding: ${({ theme: e }) => {
342
+ var t, o;
343
+ 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) ?? "16px";
344
+ }} !important;
338
345
  height: ${({ theme: e }) => {
339
346
  var D, B;
340
347
  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 +351,22 @@ const ee = De("ChevronRight", [
344
351
  min-height: 420px;
345
352
  overflow: auto;
346
353
  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";
354
+ var t, o;
355
+ return ((t = e.colors) == null ? void 0 : t.dashboardBackground) || ((o = e.colors) == null ? void 0 : o.background) || "#FFFFFF";
349
356
  }};
350
357
  /* 优先使用 dashboardBorder,如果没有则使用 border 颜色构建默认 border */
351
358
  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";
359
+ var t, o;
360
+ 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
361
  }};
355
362
  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";
363
+ var t, o, d;
364
+ 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
365
  }};
359
366
  /* 优先使用 dashboardShadow,如果没有则使用 shadow */
360
367
  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";
368
+ var t, o;
369
+ return ((t = e.colors) == null ? void 0 : t.dashboardShadow) || ((o = e.colors) == null ? void 0 : o.shadow) || "none";
363
370
  }};
364
371
  `, Qe = l.div.attrs({
365
372
  className: "dashboard-container-nav"
@@ -371,7 +378,8 @@ const ee = De("ChevronRight", [
371
378
  })`
372
379
  display: flex;
373
380
  flex-direction: column;
374
- flex: 1;
381
+ flex: 1 1 0;
382
+ min-height: 0;
375
383
  min-width: 0;
376
384
  background: ${({ theme: e }) => {
377
385
  var t;
@@ -381,6 +389,8 @@ const ee = De("ChevronRight", [
381
389
  className: "dashboard-container-main-layout"
382
390
  })`
383
391
  height: 100%;
392
+ min-height: 0;
393
+ flex: 1 1 0;
384
394
  display: flex;
385
395
  width: 100%;
386
396
  gap: ${({ theme: e }) => {
@@ -390,7 +400,7 @@ const ee = De("ChevronRight", [
390
400
  `, Ft = ({
391
401
  children: e,
392
402
  goBack: t,
393
- title: n,
403
+ title: o,
394
404
  description: d,
395
405
  breadcrumbs: i,
396
406
  dockItems: p,
@@ -410,19 +420,19 @@ const ee = De("ChevronRight", [
410
420
  s != null && s.onGoBack ? s.onGoBack() : t && t();
411
421
  }, L = () => {
412
422
  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);
423
+ }, A = (u, r) => {
424
+ s != null && s.onBreadcrumbClick ? s.onBreadcrumbClick(u, r) : u.onClick && u.onClick();
425
+ }, Y = (u, r) => {
426
+ s != null && s.onDockItemClick && s.onDockItemClick(u, r);
417
427
  }, j = () => {
418
428
  if (!i || i.length === 0) return null;
419
- const [g, r] = k.useState({ start: 0, end: i.length, showEllipsis: !1 }), R = k.useCallback(() => {
429
+ const [u, r] = k.useState({ start: 0, end: i.length, showEllipsis: !1 }), R = k.useCallback(() => {
420
430
  if (!N.current || i.length <= 3) {
421
431
  r({ start: 0, end: i.length, showEllipsis: !1 });
422
432
  return;
423
433
  }
424
- const m = N.current.offsetWidth * 0.5;
425
- let V = Math.floor((m - 30) / (120 + 20));
434
+ const v = N.current.offsetWidth * 0.5;
435
+ let V = Math.floor((v - 30) / (120 + 20));
426
436
  if (V < 2 && (V = 2), V >= i.length) {
427
437
  r({ start: 0, end: i.length, showEllipsis: !1 });
428
438
  return;
@@ -443,39 +453,39 @@ const ee = De("ChevronRight", [
443
453
  w.disconnect();
444
454
  };
445
455
  }, [R]), i.length <= 3)
446
- return /* @__PURE__ */ o(ke, { theme: c, children: i.map((w, m) => /* @__PURE__ */ b(k.Fragment, { children: [
447
- /* @__PURE__ */ o(
456
+ return /* @__PURE__ */ n(ke, { theme: c, children: i.map((w, v) => /* @__PURE__ */ b(k.Fragment, { children: [
457
+ /* @__PURE__ */ n(
448
458
  te,
449
459
  {
450
- $isLast: m === i.length - 1,
451
- $isClickable: !!(m < i.length - 1 || w.onClick),
452
- onClick: () => A(w, m),
460
+ $isLast: v === i.length - 1,
461
+ $isClickable: !!(v < i.length - 1 || w.onClick),
462
+ onClick: () => A(w, v),
453
463
  theme: c,
454
464
  title: w.label,
455
465
  children: w.label
456
466
  }
457
467
  ),
458
- m < i.length - 1 && /* @__PURE__ */ o(oe, { theme: c, children: /* @__PURE__ */ o(ee, { size: 14 }) })
468
+ v < i.length - 1 && /* @__PURE__ */ n(oe, { theme: c, children: /* @__PURE__ */ n(ee, { size: 14 }) })
459
469
  ] }, w.id)) });
460
- const { start: E, end: W, showEllipsis: re } = g;
470
+ const { start: E, end: W, showEllipsis: re } = u;
461
471
  return /* @__PURE__ */ b(ke, { theme: c, children: [
462
- i.slice(E, W).map((w, m) => /* @__PURE__ */ b(k.Fragment, { children: [
463
- /* @__PURE__ */ o(
472
+ i.slice(E, W).map((w, v) => /* @__PURE__ */ b(k.Fragment, { children: [
473
+ /* @__PURE__ */ n(
464
474
  te,
465
475
  {
466
- $isLast: m === W - E - 1 && !re,
467
- $isClickable: !!(m < W - E - 1 || w.onClick),
468
- onClick: () => A(w, E + m),
476
+ $isLast: v === W - E - 1 && !re,
477
+ $isClickable: !!(v < W - E - 1 || w.onClick),
478
+ onClick: () => A(w, E + v),
469
479
  theme: c,
470
480
  title: w.label,
471
481
  children: w.label
472
482
  }
473
483
  ),
474
- m < W - E - 1 && /* @__PURE__ */ o(oe, { theme: c, children: /* @__PURE__ */ o(ee, { size: 14 }) })
484
+ v < W - E - 1 && /* @__PURE__ */ n(oe, { theme: c, children: /* @__PURE__ */ n(ee, { size: 14 }) })
475
485
  ] }, w.id)),
476
486
  re && /* @__PURE__ */ b(ye, { children: [
477
- /* @__PURE__ */ o(oe, { theme: c, children: /* @__PURE__ */ o(ee, { size: 14 }) }),
478
- /* @__PURE__ */ o(
487
+ /* @__PURE__ */ n(oe, { theme: c, children: /* @__PURE__ */ n(ee, { size: 14 }) }),
488
+ /* @__PURE__ */ n(
479
489
  te,
480
490
  {
481
491
  $isLast: !1,
@@ -489,8 +499,8 @@ const ee = De("ChevronRight", [
489
499
  children: "..."
490
500
  }
491
501
  ),
492
- /* @__PURE__ */ o(oe, { theme: c, children: /* @__PURE__ */ o(ee, { size: 14 }) }),
493
- /* @__PURE__ */ o(
502
+ /* @__PURE__ */ n(oe, { theme: c, children: /* @__PURE__ */ n(ee, { size: 14 }) }),
503
+ /* @__PURE__ */ n(
494
504
  te,
495
505
  {
496
506
  $isLast: !0,
@@ -504,39 +514,39 @@ const ee = De("ChevronRight", [
504
514
  ] })
505
515
  ] });
506
516
  }, [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(
517
+ return /* @__PURE__ */ n(Ke, { theme: c, children: /* @__PURE__ */ b(et, { theme: c, children: [
518
+ p && p.length > 0 && /* @__PURE__ */ n(Qe, { $isOpen: P, theme: c, children: /* @__PURE__ */ n(
509
519
  Te,
510
520
  {
511
521
  items: p,
512
522
  open: P,
513
523
  onOpenChange: q,
514
- onItemClick: (g) => Y({ id: String(g.key), label: g.name }, 0),
524
+ onItemClick: (u) => Y({ id: String(u.key), label: u.name }, 0),
515
525
  defaultOpen: !0
516
526
  }
517
527
  ) }),
518
528
  /* @__PURE__ */ b(Ue, { theme: c, children: [
519
- (n || d || t || i) && /* @__PURE__ */ b(Ye, { ref: N, theme: c, children: [
520
- t && /* @__PURE__ */ o(
529
+ (o || d || t || i) && /* @__PURE__ */ b(Ye, { ref: N, theme: c, children: [
530
+ t && /* @__PURE__ */ n(
521
531
  qe,
522
532
  {
523
533
  onClick: S,
524
534
  theme: c,
525
535
  title: "\u8FD4\u56DE",
526
- children: /* @__PURE__ */ o(Ge, { size: 18 })
536
+ children: /* @__PURE__ */ n(Ge, { size: 18 })
527
537
  }
528
538
  ),
529
539
  j(),
530
- n && /* @__PURE__ */ o(
540
+ o && /* @__PURE__ */ n(
531
541
  Ze,
532
542
  {
533
543
  onClick: L,
534
544
  theme: c,
535
- title: n,
536
- children: n
545
+ title: o,
546
+ children: o
537
547
  }
538
548
  ),
539
- d && /* @__PURE__ */ o(
549
+ d && /* @__PURE__ */ n(
540
550
  Xe,
541
551
  {
542
552
  theme: c,
@@ -545,7 +555,7 @@ const ee = De("ChevronRight", [
545
555
  }
546
556
  )
547
557
  ] }),
548
- /* @__PURE__ */ o(Je, { theme: c, children: e || /* @__PURE__ */ o(Pe, {}) })
558
+ /* @__PURE__ */ n(Je, { theme: c, children: e || /* @__PURE__ */ n(Pe, {}) })
549
559
  ] })
550
560
  ] }) });
551
561
  }, tt = l.div.withConfig({
@@ -603,18 +613,18 @@ const ee = De("ChevronRight", [
603
613
  &::-webkit-scrollbar-thumb:hover {
604
614
  background: rgba(255, 255, 255, 0.5);
605
615
  }
606
- `, ne = 16, it = 48, at = it + ne * 2, me = at + ne * 2, lt = l.div.withConfig({
616
+ `, ne = 16, it = 48, at = it + ne * 2, ve = at + ne * 2, lt = l.div.withConfig({
607
617
  shouldForwardProp: (e) => !["dockPosition"].includes(e)
608
618
  })`
609
619
  ${(e) => e.dockPosition === "left" || e.dockPosition === "right" ? `
610
- width: ${me}px;
620
+ width: ${ve}px;
611
621
  height: 100%;
612
622
  display: flex;
613
623
  align-items: center;
614
624
  justify-content: center;
615
625
  padding: ${ne}px;
616
626
  ` : `
617
- height: ${me}px;
627
+ height: ${ve}px;
618
628
  width: 100%;
619
629
  display: flex;
620
630
  align-items: ${e.dockPosition === "top" ? "flex-start" : "flex-end"};
@@ -627,7 +637,7 @@ const ee = De("ChevronRight", [
627
637
  `, zt = ({
628
638
  children: e,
629
639
  backgroundImage: t,
630
- backgroundColor: n,
640
+ backgroundColor: o,
631
641
  header: d,
632
642
  dockItems: i,
633
643
  dockPosition: p = "bottom",
@@ -643,15 +653,15 @@ const ee = De("ChevronRight", [
643
653
  G({ theme: F, mode: "light" }, K),
644
654
  // 最高层:用户手动传入的styles
645
655
  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);
656
+ ), c = (I == null ? void 0 : I.theme) || F, N = (u, r) => {
657
+ s != null && s.onDockItemClick ? s.onDockItemClick(u, r) : u.onClick && u.onClick();
658
+ }, S = (u, r) => {
659
+ s != null && s.onDockActiveChange && s.onDockActiveChange(u, r);
660
+ }, L = (u, r) => {
661
+ s != null && s.onDockActiveChangeMultiple && s.onDockActiveChangeMultiple(u, r);
652
662
  }, A = p === "left" || p === "right", Y = /* @__PURE__ */ b(ye, { children: [
653
- d && /* @__PURE__ */ o(nt, { children: d }),
654
- /* @__PURE__ */ o(
663
+ d && /* @__PURE__ */ n(nt, { children: d }),
664
+ /* @__PURE__ */ n(
655
665
  rt,
656
666
  {
657
667
  style: {
@@ -661,7 +671,7 @@ const ee = De("ChevronRight", [
661
671
  children: e
662
672
  }
663
673
  )
664
- ] }), j = i && i.length > 0 && /* @__PURE__ */ o(lt, { dockPosition: p, children: /* @__PURE__ */ o(
674
+ ] }), j = i && i.length > 0 && /* @__PURE__ */ n(lt, { dockPosition: p, children: /* @__PURE__ */ n(
665
675
  Fe,
666
676
  {
667
677
  items: i,
@@ -683,12 +693,12 @@ const ee = De("ChevronRight", [
683
693
  tt,
684
694
  {
685
695
  backgroundImage: t,
686
- backgroundColor: n,
696
+ backgroundColor: o,
687
697
  dockPosition: p,
688
698
  children: [
689
699
  p === "top" && j,
690
700
  p === "left" && j,
691
- A ? /* @__PURE__ */ o(ot, { children: Y }) : Y,
701
+ A ? /* @__PURE__ */ n(ot, { children: Y }) : Y,
692
702
  (p === "bottom" || p === "right") && j
693
703
  ]
694
704
  }
@@ -727,7 +737,7 @@ const ee = De("ChevronRight", [
727
737
  display: flex;
728
738
  align-items: center;
729
739
  gap: 8px;
730
- `, ve = l.button`
740
+ `, me = l.button`
731
741
  display: inline-flex;
732
742
  align-items: center;
733
743
  justify-content: center;
@@ -762,9 +772,9 @@ const ee = De("ChevronRight", [
762
772
  gap: 12px;
763
773
  padding: 12px 12px 20px 12px;
764
774
  }
765
- `, ut = l.aside`
775
+ `, gt = l.aside`
766
776
  position: relative;
767
- `, gt = l.div`
777
+ `, ut = l.div`
768
778
  height: 100%;
769
779
  overflow: hidden;
770
780
  padding-right: 8px;
@@ -809,12 +819,12 @@ const ee = De("ChevronRight", [
809
819
  height: 100%;
810
820
  transition: opacity .5s ease;
811
821
  opacity: ${(e) => e.$opacity};
812
- `, mt = l.aside`
822
+ `, vt = l.aside`
813
823
  position: relative;
814
824
  z-index: 1;
815
825
  height: 100%;
816
826
  overflow: hidden;
817
- `, vt = l.div`
827
+ `, mt = l.div`
818
828
  /* 右侧目录独立滚动 */
819
829
  position: relative;
820
830
  height: 100%;
@@ -931,10 +941,10 @@ const le = l.div`
931
941
  },
932
942
  mode: "dark"
933
943
  }, Mt = (e) => {
934
- var ge, fe, xe, be;
944
+ var ue, fe, xe, be;
935
945
  const {
936
946
  children: t,
937
- headerLogo: n,
947
+ headerLogo: o,
938
948
  contentKey: d,
939
949
  modules: i,
940
950
  activeModuleKey: p,
@@ -952,13 +962,13 @@ const le = l.div`
952
962
  onTocItemClick: A,
953
963
  collapsibleSidebar: Y = !0,
954
964
  styles: j
955
- } = e, P = de(), q = e.activeThemeKey === "dark" ? Dt : Bt, g = G(
965
+ } = e, P = de(), q = e.activeThemeKey === "dark" ? Dt : Bt, u = G(
956
966
  G(
957
967
  G({ theme: F, mode: "light" }, P),
958
968
  q
959
969
  ),
960
970
  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);
971
+ ), 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
972
  k.useEffect(() => {
963
973
  if (d === void 0) {
964
974
  he(t);
@@ -970,15 +980,15 @@ const le = l.div`
970
980
  }, 120);
971
981
  return () => clearTimeout(a);
972
982
  }, [d, t]), k.useMemo(() => {
973
- var a, f, u, y, $, h, v, x, _, C, M, Z, Q;
983
+ var a, f, g, y, $, h, m, x, _, C, M, Z, Q;
974
984
  return {
975
985
  primaryColor: (a = r == null ? void 0 : r.colors) == null ? void 0 : a.primary,
976
986
  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,
987
+ backgroundColor: (g = r == null ? void 0 : r.colors) == null ? void 0 : g.appBackground,
978
988
  textColor: (y = r == null ? void 0 : r.colors) == null ? void 0 : y.text,
979
989
  borderColor: ($ = r == null ? void 0 : r.colors) == null ? void 0 : $.border,
980
990
  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,
991
+ borderRadius: (m = r == null ? void 0 : r.space) == null ? void 0 : m.radius,
982
992
  padding: (x = r == null ? void 0 : r.space) == null ? void 0 : x.padding,
983
993
  margin: (_ = r == null ? void 0 : r.space) == null ? void 0 : _.margin,
984
994
  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 +1000,19 @@ const le = l.div`
990
1000
  d !== void 0 && O(void 0);
991
1001
  let a = 0;
992
1002
  const f = 10;
993
- let u = null, y = null;
1003
+ let g = null, y = null;
994
1004
  const $ = () => {
995
1005
  const h = V.current;
996
1006
  if (!h) {
997
- a < f ? (a++, u = setTimeout($, 200)) : O([]);
1007
+ a < f ? (a++, g = setTimeout($, 200)) : O([]);
998
1008
  return;
999
1009
  }
1000
- const v = Array.from(h.querySelectorAll("h1, h2, h3"));
1001
- if (v.length === 0) {
1002
- a < f ? (a++, u = setTimeout($, 200)) : O([]);
1010
+ const m = Array.from(h.querySelectorAll("h1, h2, h3"));
1011
+ if (m.length === 0) {
1012
+ a < f ? (a++, g = setTimeout($, 200)) : O([]);
1003
1013
  return;
1004
1014
  }
1005
- const x = /* @__PURE__ */ new Map(), _ = v.map((C) => {
1015
+ const x = /* @__PURE__ */ new Map(), _ = m.map((C) => {
1006
1016
  var we;
1007
1017
  const M = C.id || ((we = C.textContent) == null ? void 0 : we.trim().replace(/\s+/g, "-").toLowerCase()) || "", Z = x.get(M) || 0;
1008
1018
  x.set(M, Z + 1);
@@ -1014,9 +1024,9 @@ const le = l.div`
1014
1024
  O(_);
1015
1025
  };
1016
1026
  return y = requestAnimationFrame(() => {
1017
- u = setTimeout($, 100);
1027
+ g = setTimeout($, 100);
1018
1028
  }), () => {
1019
- y !== null && cancelAnimationFrame(y), u !== null && clearTimeout(u);
1029
+ y !== null && cancelAnimationFrame(y), g !== null && clearTimeout(g);
1020
1030
  };
1021
1031
  }
1022
1032
  }, [t, e.tocItems, d]), k.useEffect(() => {
@@ -1024,31 +1034,31 @@ const le = l.div`
1024
1034
  const f = ((e.tocItems ?? J) || []).map((h) => h.id).filter(Boolean);
1025
1035
  if (f.length === 0) return;
1026
1036
  ie(void 0);
1027
- const u = { root: null, rootMargin: "0px 0px -70% 0px", threshold: 0 }, y = (h) => {
1037
+ const g = { root: null, rootMargin: "0px 0px -70% 0px", threshold: 0 }, y = (h) => {
1028
1038
  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);
1039
+ const m = h.filter((C) => C.isIntersecting).sort((C, M) => C.boundingClientRect.top - M.boundingClientRect.top);
1040
+ (_ = (x = m[0]) == null ? void 0 : x.target) != null && _.id && ie(m[0].target.id);
1041
+ }, $ = new IntersectionObserver(y, g);
1032
1042
  return f.forEach((h) => {
1033
- const v = document.getElementById(h);
1034
- v && $.observe(v);
1043
+ const m = document.getElementById(h);
1044
+ m && $.observe(m);
1035
1045
  }), () => $.disconnect();
1036
1046
  }, [J, U, e.tocItems, d]);
1037
- const ue = (a, f) => {
1047
+ const ge = (a, f) => {
1038
1048
  if (!a || a.length === 0) return;
1039
- const u = Math.max(0, a.findIndex(($) => $.key === f)), y = a[(u + 1) % a.length];
1049
+ const g = Math.max(0, a.findIndex(($) => $.key === f)), y = a[(g + 1) % a.length];
1040
1050
  return y == null ? void 0 : y.key;
1041
1051
  }, ae = (a) => {
1042
1052
  const f = document.getElementById(a);
1043
1053
  f && f.scrollIntoView({ behavior: "smooth", block: "start", inline: "nearest" });
1044
1054
  };
1045
- return /* @__PURE__ */ o(Ae, { theme: r, mode: g.mode, children: /* @__PURE__ */ b(
1055
+ return /* @__PURE__ */ n(Ae, { theme: r, mode: u.mode, children: /* @__PURE__ */ b(
1046
1056
  st,
1047
1057
  {
1048
1058
  style: {
1049
1059
  background: r.colors.appBackground,
1050
1060
  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"
1061
+ fontFamily: ((fe = (ue = r.fonts) == null ? void 0 : ue.body) == null ? void 0 : fe.family) || "PingFang SC, Microsoft YaHei, Arial, sans-serif"
1052
1062
  },
1053
1063
  children: [
1054
1064
  /* @__PURE__ */ b(
@@ -1060,8 +1070,8 @@ const le = l.div`
1060
1070
  },
1061
1071
  children: [
1062
1072
  /* @__PURE__ */ b(ct, { children: [
1063
- n,
1064
- i && i.length > 0 && /* @__PURE__ */ o(Ct, { children: i.map((a) => /* @__PURE__ */ o(
1073
+ o,
1074
+ i && i.length > 0 && /* @__PURE__ */ n(Ct, { children: i.map((a) => /* @__PURE__ */ n(
1065
1075
  X,
1066
1076
  {
1067
1077
  $active: a.key === p,
@@ -1073,59 +1083,59 @@ const le = l.div`
1073
1083
  )) })
1074
1084
  ] }),
1075
1085
  /* @__PURE__ */ b(ht, { children: [
1076
- /* @__PURE__ */ o("div", { className: "hide-on-desktop", style: { display: "none" } }),
1077
- B && B.length > 0 && /* @__PURE__ */ o(
1078
- ve,
1086
+ /* @__PURE__ */ n("div", { className: "hide-on-desktop", style: { display: "none" } }),
1087
+ B && B.length > 0 && /* @__PURE__ */ n(
1088
+ me,
1079
1089
  {
1080
1090
  onClick: () => {
1081
- const a = ue(B, H);
1091
+ const a = ge(B, H);
1082
1092
  a && (z == null || z(a));
1083
1093
  },
1084
1094
  title: ((xe = B.find((a) => a.key === H)) == null ? void 0 : xe.label) || "Language",
1085
1095
  "aria-label": "language",
1086
1096
  style: { color: r.colors.text },
1087
1097
  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" })
1098
+ /* @__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" }),
1099
+ /* @__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
1100
  ] })
1091
1101
  }
1092
1102
  ),
1093
- /* @__PURE__ */ o($t, {}),
1094
- s && s.length > 0 && /* @__PURE__ */ o(
1095
- ve,
1103
+ /* @__PURE__ */ n($t, {}),
1104
+ s && s.length > 0 && /* @__PURE__ */ n(
1105
+ me,
1096
1106
  {
1097
1107
  onClick: () => {
1098
- const a = ue(s, K);
1108
+ const a = ge(s, K);
1099
1109
  a && (I == null || I(a));
1100
1110
  },
1101
1111
  title: ((be = s.find((a) => a.key === K)) == null ? void 0 : be.label) || "Theme",
1102
1112
  "aria-label": "theme",
1103
1113
  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" }) })
1114
+ 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
1115
  }
1106
1116
  ),
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" }) })
1117
+ /* @__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
1118
  ] })
1109
1119
  ]
1110
1120
  }
1111
1121
  ),
1112
1122
  (() => {
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}`;
1123
+ 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
1124
  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;
1125
+ f && /* @__PURE__ */ b(gt, { children: [
1126
+ /* @__PURE__ */ n(ut, { $collapsed: R, children: /* @__PURE__ */ n(xt, { children: c && c.length > 0 && /* @__PURE__ */ n("div", { children: Object.entries(
1127
+ c.reduce((h, m) => {
1128
+ const x = m.group || "\u6587\u6863";
1129
+ return h[x] = h[x] || [], h[x].push(m), h;
1120
1130
  }, {})
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(
1131
+ ).map(([h, m]) => /* @__PURE__ */ b("div", { children: [
1132
+ /* @__PURE__ */ n(le, { children: h }),
1133
+ /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4, padding: "0 8px 8px 8px" }, children: m.map((x) => /* @__PURE__ */ n(
1124
1134
  X,
1125
1135
  {
1126
1136
  $active: x.id === N,
1127
1137
  onClick: () => {
1128
- x.href && (x.href.startsWith("#") ? ae(x.href.slice(1)) : window.location.href = x.href), S == null || S(x), m(!1);
1138
+ x.href && (x.href.startsWith("#") ? ae(x.href.slice(1)) : window.location.href = x.href), S == null || S(x), v(!1);
1129
1139
  },
1130
1140
  title: x.label,
1131
1141
  children: x.label
@@ -1133,18 +1143,18 @@ const le = l.div`
1133
1143
  x.id
1134
1144
  )) })
1135
1145
  ] }, 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" }) }) })
1146
+ 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
1147
  ] }),
1138
- /* @__PURE__ */ o(bt, { children: /* @__PURE__ */ o(
1148
+ /* @__PURE__ */ n(bt, { children: /* @__PURE__ */ n(
1139
1149
  wt,
1140
1150
  {
1141
1151
  ref: V,
1142
- children: /* @__PURE__ */ o(kt, { $opacity: Ne, children: Ie })
1152
+ children: /* @__PURE__ */ n(kt, { $opacity: Ne, children: Ie })
1143
1153
  }
1144
1154
  ) }),
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(
1155
+ /* @__PURE__ */ n(vt, { children: /* @__PURE__ */ n(mt, { children: /* @__PURE__ */ b(yt, { $collapsed: W, children: [
1156
+ /* @__PURE__ */ n(le, { children: "\u672C\u9875\u76EE\u5F55" }),
1157
+ /* @__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
1158
  X,
1149
1159
  {
1150
1160
  $active: (U ? L : ce) === h.id,
@@ -1160,7 +1170,7 @@ const le = l.div`
1160
1170
  ] }) }) })
1161
1171
  ] });
1162
1172
  })(),
1163
- w && /* @__PURE__ */ o(
1173
+ w && /* @__PURE__ */ n(
1164
1174
  "div",
1165
1175
  {
1166
1176
  role: "dialog",
@@ -1172,7 +1182,7 @@ const le = l.div`
1172
1182
  background: "rgba(0,0,0,0.45)",
1173
1183
  display: "flex"
1174
1184
  },
1175
- onClick: () => m(!1),
1185
+ onClick: () => v(!1),
1176
1186
  children: /* @__PURE__ */ b(
1177
1187
  "div",
1178
1188
  {
@@ -1188,26 +1198,26 @@ const le = l.div`
1188
1198
  onClick: (a) => a.stopPropagation(),
1189
1199
  children: [
1190
1200
  /* @__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" })
1201
+ /* @__PURE__ */ n("div", { style: { fontWeight: 600 }, children: "\u76EE\u5F55" }),
1202
+ /* @__PURE__ */ n(X, { onClick: () => v(!1), children: "\u5173\u95ED" })
1193
1203
  ] }),
1194
- c && c.length > 0 && /* @__PURE__ */ o("div", { style: { overflow: "auto", height: "calc(100% - 40px)" }, children: Object.entries(
1204
+ c && c.length > 0 && /* @__PURE__ */ n("div", { style: { overflow: "auto", height: "calc(100% - 40px)" }, children: Object.entries(
1195
1205
  c.reduce((a, f) => {
1196
- const u = f.group || "\u6587\u6863";
1197
- return a[u] = a[u] || [], a[u].push(f), a;
1206
+ const g = f.group || "\u6587\u6863";
1207
+ return a[g] = a[g] || [], a[g].push(f), a;
1198
1208
  }, {})
1199
1209
  ).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(
1210
+ /* @__PURE__ */ n(le, { children: a }),
1211
+ /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4, padding: "0 8px 8px 8px" }, children: f.map((g) => /* @__PURE__ */ n(
1202
1212
  X,
1203
1213
  {
1204
- $active: u.id === N,
1214
+ $active: g.id === N,
1205
1215
  onClick: () => {
1206
- u.href && (u.href.startsWith("#") ? ae(u.href.slice(1)) : window.location.href = u.href), S == null || S(u), m(!1);
1216
+ g.href && (g.href.startsWith("#") ? ae(g.href.slice(1)) : window.location.href = g.href), S == null || S(g), v(!1);
1207
1217
  },
1208
- children: u.label
1218
+ children: g.label
1209
1219
  },
1210
- u.id
1220
+ g.id
1211
1221
  )) })
1212
1222
  ] }, a)) })
1213
1223
  ]
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.12",
8
+ "version": "1.3.14",
9
9
  "author": "hanfeng_Zhang",
10
10
  "type": "module",
11
11
  "scripts": {