@spacego/fe-components 0.2.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/README.md +37 -37
  2. package/lib/fe-form/fe-form-select/index.js +26 -30
  3. package/lib/fe-layouts/auth-layout/index.js +4 -4
  4. package/lib/fe-layouts/basics-layout/components/utils/index.js +8 -8
  5. package/lib/fe-layouts/basics-layout/index.js +5 -3
  6. package/lib/fe-layouts/layout.js +25 -23
  7. package/lib/fe-table/fe-edit-table-cell/index.js +4 -4
  8. package/lib/fe-table/fe-normal-table/index.js +3 -3
  9. package/lib/fe-table/fe-table-link/index.js +3 -3
  10. package/lib/fe-table/fe-table-toolbar/index.js +4 -4
  11. package/lib/fe-table/use-table/index.js +3 -3
  12. package/lib/index.css +1 -1
  13. package/lib/index.js +165 -163
  14. package/lib/node_modules/.pnpm/@rc-component_pagination@1.2.0_nnrd3gsncyragczmpvfhocinkq/node_modules/@rc-component/pagination/es/locale/zh_CN.js +18 -0
  15. package/lib/node_modules/.pnpm/@rc-component_picker@1.9.0_xrdeekns7he6t7xjrt27lnhvge/node_modules/@rc-component/picker/es/locale/common.js +9 -0
  16. package/lib/node_modules/.pnpm/@rc-component_picker@1.9.0_xrdeekns7he6t7xjrt27lnhvge/node_modules/@rc-component/picker/es/locale/zh_CN.js +78 -0
  17. package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/calendar/locale/zh_CN.js +4 -0
  18. package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/date-picker/locale/zh_CN.js +24 -0
  19. package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/locale/zh_CN.js +146 -0
  20. package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/time-picker/locale/zh_CN.js +7 -0
  21. package/lib/router/utils.js +31 -30
  22. package/lib/store/modules/layout-config.store.js +4 -4
  23. package/lib/store/modules/theme.store.js +4 -4
  24. package/lib/types/fe-auto-complete/auto-complete.d.ts +4 -0
  25. package/lib/types/fe-auto-complete/index.d.ts +3 -2
  26. package/lib/types/fe-button/button.d.ts +18 -0
  27. package/lib/types/fe-button/index.d.ts +3 -16
  28. package/lib/types/fe-cascader/cascader.d.ts +9 -0
  29. package/lib/types/fe-cascader/index.d.ts +3 -7
  30. package/lib/types/fe-checkbox/checkbox.d.ts +8 -0
  31. package/lib/types/fe-checkbox/index.d.ts +3 -6
  32. package/lib/types/fe-checkbox-group/checkbox-group.d.ts +7 -0
  33. package/lib/types/fe-checkbox-group/index.d.ts +3 -5
  34. package/lib/types/fe-date-picker/date-picker.d.ts +5 -0
  35. package/lib/types/fe-date-picker/index.d.ts +3 -3
  36. package/lib/types/fe-description-render/description-render.d.ts +33 -0
  37. package/lib/types/fe-description-render/index.d.ts +8 -31
  38. package/lib/types/fe-descriptions/descriptions.d.ts +4 -0
  39. package/lib/types/fe-descriptions/index.d.ts +3 -2
  40. package/lib/types/fe-empty/empty.d.ts +4 -0
  41. package/lib/types/fe-empty/index.d.ts +3 -2
  42. package/lib/types/fe-error-block/error-block.d.ts +8 -0
  43. package/lib/types/fe-error-block/index.d.ts +3 -6
  44. package/lib/types/fe-form/fe-form/form.d.ts +356 -0
  45. package/lib/types/fe-form/fe-form/index.d.ts +3 -354
  46. package/lib/types/fe-form/fe-form-auto-complete/index.d.ts +1 -1
  47. package/lib/types/fe-form/fe-form-btn-group/index.d.ts +1 -1
  48. package/lib/types/fe-form/fe-form-cascader/index.d.ts +1 -1
  49. package/lib/types/fe-form/fe-form-checkbox-group/index.d.ts +1 -1
  50. package/lib/types/fe-form/fe-form-date-picker/index.d.ts +1 -1
  51. package/lib/types/fe-form/fe-form-date-range-picker/index.d.ts +1 -1
  52. package/lib/types/fe-form/fe-form-input/index.d.ts +1 -1
  53. package/lib/types/fe-form/fe-form-input-input/index.d.ts +1 -1
  54. package/lib/types/fe-form/fe-form-input-number/index.d.ts +1 -1
  55. package/lib/types/fe-form/fe-form-item/form-item.d.ts +68 -0
  56. package/lib/types/fe-form/fe-form-item/index.d.ts +3 -66
  57. package/lib/types/fe-form/fe-form-label/form-label.d.ts +45 -0
  58. package/lib/types/fe-form/fe-form-label/index.d.ts +3 -43
  59. package/lib/types/fe-form/fe-form-radio/index.d.ts +1 -1
  60. package/lib/types/fe-form/fe-form-render/index.d.ts +1 -1
  61. package/lib/types/fe-form/fe-form-rich-text/index.d.ts +1 -1
  62. package/lib/types/fe-form/fe-form-select/index.d.ts +1 -1
  63. package/lib/types/fe-form/fe-form-switch/index.d.ts +1 -1
  64. package/lib/types/fe-form/fe-form-text/index.d.ts +1 -1
  65. package/lib/types/fe-form/fe-form-text-area/index.d.ts +1 -1
  66. package/lib/types/fe-form/fe-form-time-picker/index.d.ts +1 -1
  67. package/lib/types/fe-form/fe-form-upload/index.d.ts +1 -1
  68. package/lib/types/fe-form/index.d.ts +4 -4
  69. package/lib/types/fe-form/utils/index.d.ts +1 -1
  70. package/lib/types/fe-input/index.d.ts +3 -12
  71. package/lib/types/fe-input/input.d.ts +14 -0
  72. package/lib/types/fe-input-number/index.d.ts +3 -2
  73. package/lib/types/fe-input-number/input-number.d.ts +4 -0
  74. package/lib/types/fe-layouts/basics-layout/components/utils/index.d.ts +7 -6
  75. package/lib/types/fe-layouts/context/global-context.d.ts +240 -238
  76. package/lib/types/fe-link/index.d.ts +3 -6
  77. package/lib/types/fe-link/link.d.ts +8 -0
  78. package/lib/types/fe-loading/index.d.ts +1 -1
  79. package/lib/types/fe-map/index.d.ts +3 -73
  80. package/lib/types/fe-map/map.d.ts +73 -0
  81. package/lib/types/fe-modal/index.d.ts +3 -20
  82. package/lib/types/fe-modal/modal.d.ts +22 -0
  83. package/lib/types/fe-pagination/index.d.ts +3 -2
  84. package/lib/types/fe-pagination/pagination.d.ts +4 -0
  85. package/lib/types/fe-panel/index.d.ts +3 -61
  86. package/lib/types/fe-panel/panel-toolbar.d.ts +6 -4
  87. package/lib/types/fe-panel/panel.d.ts +63 -0
  88. package/lib/types/fe-permission/index.d.ts +3 -10
  89. package/lib/types/fe-permission/permission.d.ts +12 -0
  90. package/lib/types/fe-permission-provider/index.d.ts +3 -8
  91. package/lib/types/fe-permission-provider/permission-provider.d.ts +10 -0
  92. package/lib/types/fe-radio/index.d.ts +3 -2
  93. package/lib/types/fe-radio/radio.d.ts +4 -0
  94. package/lib/types/fe-radio-group/index.d.ts +3 -2
  95. package/lib/types/fe-radio-group/radio-group.d.ts +4 -0
  96. package/lib/types/fe-rich-text/index.d.ts +3 -167
  97. package/lib/types/fe-rich-text/rich-text.d.ts +169 -0
  98. package/lib/types/fe-select/index.d.ts +3 -8
  99. package/lib/types/fe-select/select.d.ts +10 -0
  100. package/lib/types/fe-switch/index.d.ts +3 -2
  101. package/lib/types/fe-switch/switch.d.ts +4 -0
  102. package/lib/types/fe-table/fe-table-link/index.d.ts +3 -10
  103. package/lib/types/fe-table/fe-table-link/table-link.d.ts +12 -0
  104. package/lib/types/fe-table/fe-table-render/index.d.ts +3 -11
  105. package/lib/types/fe-table/fe-table-render/table-render.d.ts +13 -0
  106. package/lib/types/fe-table/fe-table-toolbar/index.d.ts +3 -16
  107. package/lib/types/fe-table/fe-table-toolbar/table-toolbar.d.ts +18 -0
  108. package/lib/types/fe-table/type/table-context.d.ts +60 -60
  109. package/lib/types/fe-table/type/table.d.ts +789 -787
  110. package/lib/types/fe-text-area/index.d.ts +3 -4
  111. package/lib/types/fe-text-area/text-area.d.ts +6 -0
  112. package/lib/types/fe-time-picker/index.d.ts +3 -3
  113. package/lib/types/fe-time-picker/time-picker.d.ts +5 -0
  114. package/lib/types/fe-upload/index.d.ts +3 -85
  115. package/lib/types/fe-upload/upload.d.ts +87 -0
  116. package/lib/types/fe-upload-atomic/index.d.ts +3 -2
  117. package/lib/types/fe-upload-atomic/upload-atomic.d.ts +4 -0
  118. package/lib/types/fe-upload-crop/index.d.ts +2 -2
  119. package/lib/types/hooks/index.d.ts +1 -0
  120. package/lib/types/hooks/{use-descriptions → use-descriptions.hook}/index.d.ts +1 -1
  121. package/lib/types/hooks/use-descriptions.hook/use-descriptions.d.ts +153 -0
  122. package/lib/types/hooks/use-form.hook/index.d.ts +3 -0
  123. package/lib/types/hooks/{use-form/index.d.ts → use-form.hook/use-form.d.ts} +14 -12
  124. package/lib/types/hooks/use-permission.hook/index.d.ts +10 -10
  125. package/lib/types/hooks/use-permission.hook/use-permission.d.ts +10 -0
  126. package/lib/types/index.d.ts +30 -1
  127. package/lib/types/router/utils.d.ts +2 -1
  128. package/lib/types/typings/index.d.ts +98 -98
  129. package/lib/types/typings/shims-axios.d.ts +38 -38
  130. package/package.json +3 -3
  131. /package/lib/hooks/{use-form → use-form.hook}/index.js +0 -0
package/README.md CHANGED
@@ -1,37 +1,37 @@
1
- <!--
2
- * @Author: dushuai
3
- * @Date: 2025-08-30 17:23:07
4
- * @LastEditors: dushuai
5
- * @LastEditTime: 2026-01-30 20:22:56
6
- * @description: 心平气和
7
- -->
8
- # @spacego/fe-components
9
-
10
- `@spacego/fe-components` 是一个完全基于 `typescript` + `antd` 的UI组件库,提供了一些常用的组件和我的默认Layout模版等。
11
-
12
- ## ✨ Features
13
-
14
- - Easy to learn and use.
15
- - Contains common hooks and encapsulates common apis.
16
- - Written in TypeScript with predictable static types.
17
- - High performance.
18
-
19
- ## 📦 Install
20
-
21
- ```bash
22
- $ npm install --save @spacego/fe-components
23
- # or
24
- $ pnpm add @spacego/fe-components `推荐`
25
- # or
26
- $ yarn add @spacego/fe-components
27
- ```
28
-
29
- ## 🔨 Usage
30
-
31
- ```ts
32
- import { FeButton ... } from '@spacego/fe-components';
33
- ```
34
-
35
- ## 🚀 API
36
-
37
- ...
1
+ <!--
2
+ * @Author: dushuai
3
+ * @Date: 2025-08-30 17:23:07
4
+ * @LastEditors: dushuai
5
+ * @LastEditTime: 2026-01-30 20:22:56
6
+ * @description: 心平气和
7
+ -->
8
+ # @spacego/fe-components
9
+
10
+ `@spacego/fe-components` 是一个完全基于 `typescript` + `antd` 的UI组件库,提供了一些常用的组件和我的默认Layout模版等。
11
+
12
+ ## ✨ Features
13
+
14
+ - Easy to learn and use.
15
+ - Contains common hooks and encapsulates common apis.
16
+ - Written in TypeScript with predictable static types.
17
+ - High performance.
18
+
19
+ ## 📦 Install
20
+
21
+ ```bash
22
+ $ npm install --save @spacego/fe-components
23
+ # or
24
+ $ pnpm add @spacego/fe-components `推荐`
25
+ # or
26
+ $ yarn add @spacego/fe-components
27
+ ```
28
+
29
+ ## 🔨 Usage
30
+
31
+ ```ts
32
+ import { FeButton ... } from '@spacego/fe-components';
33
+ ```
34
+
35
+ ## 🚀 API
36
+
37
+ ...
@@ -1,47 +1,43 @@
1
- import { jsxs as x, Fragment as v, jsx as n } from "react/jsx-runtime";
2
- import { Divider as T, Tooltip as w, Form as A, Checkbox as I } from "antd";
3
- import { useMemo as c } from "react";
4
- import C from "../../fe-select/index.js";
1
+ import { jsxs as x, Fragment as T, jsx as n } from "react/jsx-runtime";
2
+ import { Divider as v, Tooltip as w, Form as A, Checkbox as C } from "antd";
3
+ import { useMemo as u } from "react";
4
+ import I from "../../fe-select/index.js";
5
5
  import P from "../fe-form-item/index.js";
6
6
  import { getFormItemProps as V, getLabelProps as k } from "../utils/index.js";
7
7
  const _ = (e) => {
8
- var f;
9
- const { valueType: m, ...u } = V(e), i = c(() => !e.selectAttributes || !e.selectAttributes.options ? [] : e.selectAttributes.options.map((l) => ({
10
- label: l.label,
11
- value: l.dataIndex,
12
- disabled: l.disabled || !1
13
- })), [e.selectAttributes]), s = c(() => i.filter((l) => !l.disabled), [i]), t = c(() => {
8
+ var b;
9
+ const { valueType: m, ...o } = V(e), i = u(() => !e.selectAttributes || !e.selectAttributes.options ? [] : e.selectAttributes.options, [e.selectAttributes]), s = u(() => i.filter((l) => !l.disabled), [i]), t = u(() => {
14
10
  if (!e.selectAttributes) return {};
15
- const { selectType: l, options: a, showSelectAll: r, onSelectAll: d, ...g } = e.selectAttributes, y = { ...g };
16
- return l === "multiple" && r && (y.popupRender = (F) => /* @__PURE__ */ x(v, { children: [
11
+ const { selectType: l, options: c, showSelectAll: r, onSelectAll: d, ...g } = e.selectAttributes, y = { ...g };
12
+ return l === "multiple" && r && (y.popupRender = (F) => /* @__PURE__ */ x(T, { children: [
17
13
  /* @__PURE__ */ n(
18
- p,
14
+ q,
19
15
  {
20
16
  dataIndex: e.dataIndex,
21
17
  selectableOptions: s,
22
18
  onSelectAll: d
23
19
  }
24
20
  ),
25
- /* @__PURE__ */ n(T, { style: { margin: "4px 0" } }),
21
+ /* @__PURE__ */ n(v, { style: { margin: "4px 0" } }),
26
22
  F
27
23
  ] })), y;
28
- }, [e.dataIndex, e.selectAttributes, s]), o = c(() => e.selectAttributes && e.selectAttributes.selectType === "multiple" ? "array" : "string", [e]), h = c(() => {
24
+ }, [e.dataIndex, e.selectAttributes, s]), a = u(() => e.selectAttributes && e.selectAttributes.selectType === "multiple" ? "array" : "string", [e]), h = u(() => {
29
25
  var l;
30
26
  return ((l = e.selectAttributes) == null ? void 0 : l.selectType) !== "multiple" ? {} : {
31
27
  maxTagCount: "responsive",
32
- maxTagPlaceholder: (a) => /* @__PURE__ */ n(
28
+ maxTagPlaceholder: (c) => /* @__PURE__ */ n(
33
29
  w,
34
30
  {
35
31
  styles: { root: { pointerEvents: "none" } },
36
- title: a.map(({ label: r }) => r).join(", "),
32
+ title: c.map(({ label: r }) => r).join(", "),
37
33
  children: /* @__PURE__ */ x("span", { children: [
38
34
  "+",
39
- a.length
35
+ c.length
40
36
  ] })
41
37
  }
42
38
  )
43
39
  };
44
- }, [e]), b = c(() => t != null && t.showSearch ? typeof (t == null ? void 0 : t.showSearch) == "boolean" ? {
40
+ }, [e]), f = u(() => t != null && t.showSearch ? typeof (t == null ? void 0 : t.showSearch) == "boolean" ? {
45
41
  showSearch: {
46
42
  optionFilterProp: "label"
47
43
  }
@@ -56,36 +52,36 @@ const _ = (e) => {
56
52
  required: e.required ?? !1,
57
53
  type: e.type,
58
54
  rules: e.rules,
59
- valueType: m ?? o,
55
+ valueType: m ?? a,
60
56
  requiredMessage: e.requiredMessage,
61
57
  ...k(e),
62
- ...u,
58
+ ...o,
63
59
  attributes: { ...e.attributes || {} },
64
60
  children: /* @__PURE__ */ n(
65
- C,
61
+ I,
66
62
  {
67
63
  allowClear: !0,
68
64
  options: i,
69
65
  placeholder: e.placeholder ?? `请选择${e.label}`,
70
- mode: ((f = e.selectAttributes) == null ? void 0 : f.selectType) === "multiple" ? "multiple" : void 0,
66
+ mode: ((b = e.selectAttributes) == null ? void 0 : b.selectType) === "multiple" ? "multiple" : void 0,
71
67
  ...h,
72
68
  ...t,
73
- ...b
69
+ ...f
74
70
  }
75
71
  )
76
72
  }
77
73
  );
78
- }, p = ({
74
+ }, q = ({
79
75
  dataIndex: e,
80
76
  selectableOptions: m,
81
- onSelectAll: u
77
+ onSelectAll: o
82
78
  // 新增回调
83
79
  }) => {
84
- const i = A.useFormInstance(), s = A.useWatch(e, i) || [], t = m.map((l) => l.value), o = s.filter((l) => t.includes(l)).length, h = o === t.length && t.length > 0, b = o > 0 && o < t.length;
85
- return /* @__PURE__ */ n("div", { style: { padding: "8px 12px" }, children: /* @__PURE__ */ n(I, { checked: h, indeterminate: b, onChange: (l) => {
86
- const a = l.target.checked;
80
+ const i = A.useFormInstance(), s = A.useWatch(e, i) || [], t = m.map((l) => l.value), a = s.filter((l) => t.includes(l)).length, h = a === t.length && t.length > 0, f = a > 0 && a < t.length;
81
+ return /* @__PURE__ */ n("div", { style: { padding: "8px 12px" }, children: /* @__PURE__ */ n(C, { checked: h, indeterminate: f, onChange: (l) => {
82
+ const c = l.target.checked;
87
83
  let r;
88
- a ? r = [...s.filter((g) => !t.includes(g)), ...t] : r = s.filter((d) => !t.includes(d)), u == null || u(a, r), i.setFieldValue(e, r);
84
+ c ? r = [...s.filter((g) => !t.includes(g)), ...t] : r = s.filter((d) => !t.includes(d)), o == null || o(c, r), i.setFieldValue(e, r);
89
85
  }, children: "全选" }) });
90
86
  };
91
87
  export {
@@ -13,11 +13,11 @@ import "../../store/modules/layout-config.store.js";
13
13
  import { useThemeStore as M } from "../../store/modules/theme.store.js";
14
14
  import { THEME_COLORS as j } from "../../config/theme.js";
15
15
  import { useGlobal as O } from "../context/context.js";
16
- import "nprogress";
17
- import "../../hooks/use-permission.hook/index.js";
18
- import "antd";
19
16
  import "@spacego/turbo-utils";
17
+ import "antd";
18
+ import "../../hooks/use-permission.hook/index.js";
20
19
  /* empty css */
20
+ import "nprogress";
21
21
  import "lodash-es";
22
22
  import "../../fe-form/fe-form-date-range-picker/index.js";
23
23
  import "../../fe-rich-text/index.js";
@@ -27,7 +27,7 @@ import "../../fe-text-area/index.js";
27
27
  /* empty css */
28
28
  /* empty css */
29
29
  import "../basics-layout/index.js";
30
- /* empty css */
30
+ import "../layout.js";
31
31
  /* empty css */
32
32
  /* empty css */
33
33
  import "react-draggable";
@@ -1,11 +1,11 @@
1
1
  function d(e) {
2
2
  return e ? e === "/" ? "/" : e.replace(/\/+$/, "") : "";
3
3
  }
4
- function f(e, i) {
4
+ function o(e, i) {
5
5
  const t = d(e);
6
6
  for (const n of i) {
7
7
  if (n.children && n.children.length > 0) {
8
- const u = f(e, n.children);
8
+ const u = o(e, n.children);
9
9
  if (u) return u;
10
10
  }
11
11
  if (n.id === "Home" && t === "/")
@@ -19,20 +19,20 @@ function f(e, i) {
19
19
  function s(e) {
20
20
  const i = /* @__PURE__ */ new Map(), t = (n) => {
21
21
  n.forEach((r) => {
22
- r.id && i.set(r.id, r), r.children && r.children.length > 0 && t(r.children);
22
+ r.dbId !== void 0 && i.set(r.dbId, r), r.children && r.children.length > 0 && t(r.children);
23
23
  });
24
24
  };
25
25
  return t(e), i;
26
26
  }
27
- function o(e, i) {
27
+ function f(e, i) {
28
28
  return i.get(e) || null;
29
29
  }
30
30
  function a(e, i) {
31
31
  var r;
32
32
  const t = [e];
33
33
  let n = e;
34
- for (; n.parentId && n.parentId !== "/"; ) {
35
- const u = o(n.parentId, i);
34
+ for (; n.parentId && n.parentId !== 0; ) {
35
+ const u = f(n.parentId, i);
36
36
  if (u)
37
37
  ((r = n.handle) == null ? void 0 : r.isIndependentMenu) === !0 || t.unshift(u), n = u;
38
38
  else
@@ -66,7 +66,7 @@ export {
66
66
  l as findMenuByKey,
67
67
  c as findMenuParentKeys,
68
68
  a as findParentRoutes,
69
- f as findRouteByPath,
70
- o as getRouteById,
69
+ o as findRouteByPath,
70
+ f as getRouteById,
71
71
  d as normalizePath
72
72
  };
@@ -4,8 +4,10 @@ import { Layout as g, Spin as Z } from "antd";
4
4
  import { useMemo as d, useEffect as $ } from "react";
5
5
  import { useLocation as ee, useNavigate as te, Outlet as oe } from "react-router-dom";
6
6
  import { useAuth as ne } from "../../hooks/use-auth.hook/index.js";
7
- import "nprogress";
7
+ import "@spacego/turbo-utils";
8
8
  import "../../hooks/use-permission.hook/index.js";
9
+ /* empty css */
10
+ import "nprogress";
9
11
  import { useLayoutConfigStore as re } from "../../store/modules/layout-config.store.js";
10
12
  import { useThemeStore as ae } from "../../store/modules/theme.store.js";
11
13
  import { useGlobal as se } from "../context/context.js";
@@ -15,7 +17,7 @@ import ce from "./components/basics-layout/tabs.js";
15
17
  import { findRouteByPath as b, findMenuParentKeys as ue, buildRouteMap as fe, findParentRoutes as de, findMenuByKey as me } from "./components/utils/index.js";
16
18
  /* empty css */
17
19
  const { Content: he } = g;
18
- function Ke() {
20
+ function Ne() {
19
21
  const r = ee(), m = te(), { logout: R } = ne(), {
20
22
  token: T,
21
23
  menus: a = [],
@@ -134,5 +136,5 @@ function Ke() {
134
136
  ] });
135
137
  }
136
138
  export {
137
- Ke as default
139
+ Ne as default
138
140
  };
@@ -1,19 +1,20 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
+ import { dayjs as h } from "@spacego/turbo-utils";
2
3
  import { useSelector as i } from "@spacego/zustand";
3
- import { theme as p, ConfigProvider as c, App as u, Spin as g } from "antd";
4
- import { useMemo as d } from "react";
4
+ import { theme as p, ConfigProvider as u, App as d, Spin as g } from "antd";
5
+ import C from "../node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/locale/zh_CN.js";
6
+ import { useMemo as y } from "react";
5
7
  import "@ant-design/icons";
6
- import { getRealTheme as C } from "../utils/theme.js";
7
- import { useLayoutConfigStore as y } from "../store/modules/layout-config.store.js";
8
- import { useThemeStore as k } from "../store/modules/theme.store.js";
8
+ import { getRealTheme as k } from "../utils/theme.js";
9
+ import { useLayoutConfigStore as L } from "../store/modules/layout-config.store.js";
10
+ import { useThemeStore as M } from "../store/modules/theme.store.js";
9
11
  import n from "../config/theme.js";
10
12
  import "react-router-dom";
11
13
  import "./context/context.js";
12
- import L from "./context/global-context.provider.js";
13
- import { useNProgress as M } from "../hooks/use-nprogress.hook/index.js";
14
+ import T from "./context/global-context.provider.js";
14
15
  import "../hooks/use-permission.hook/index.js";
15
- import "@spacego/turbo-utils";
16
16
  /* empty css */
17
+ import { useNProgress as b } from "../hooks/use-nprogress.hook/index.js";
17
18
  import "lodash-es";
18
19
  import "../fe-form/fe-form-date-range-picker/index.js";
19
20
  import "../fe-rich-text/index.js";
@@ -21,10 +22,9 @@ import "../fe-text-area/index.js";
21
22
  /* empty css */
22
23
  /* empty css */
23
24
  /* empty css */
24
- import T from "./auth-layout/index.js";
25
- import b from "./basics-layout/index.js";
26
- import w from "./blank-layout/index.js";
27
- /* empty css */
25
+ import w from "./auth-layout/index.js";
26
+ import x from "./basics-layout/index.js";
27
+ import P from "./blank-layout/index.js";
28
28
  /* empty css */
29
29
  /* empty css */
30
30
  import "react-draggable";
@@ -34,17 +34,19 @@ import "../_virtual/index.js";
34
34
  import "../fe-table/fe-edit-table-cell/index.js";
35
35
  import "ahooks";
36
36
  import "../fe-table/fe-table-setting/index.js";
37
- function ao(a) {
38
- const { layoutType: r, ...s } = a, { loadingConfig: l } = y(i(["loadingConfig"])), { theme: t, themeColor: m } = k(i(["theme", "themeColor"]));
39
- M();
40
- const f = d(() => {
41
- const h = C(t);
37
+ /* empty css */
38
+ h.locale("zh-cn");
39
+ function co(a) {
40
+ const { layoutType: r, ...s } = a, { loadingConfig: l } = L(i(["loadingConfig"])), { theme: t, themeColor: m } = M(i(["theme", "themeColor"]));
41
+ b();
42
+ const c = y(() => {
43
+ const f = k(t);
42
44
  return {
43
45
  cssVar: {
44
46
  prefix: "ant"
45
47
  },
46
48
  // 启用 CSS 变量模式,生成 --ant-color-primary 等变量
47
- algorithm: h === "dark" ? p.darkAlgorithm : p.defaultAlgorithm,
49
+ algorithm: f === "dark" ? p.darkAlgorithm : p.defaultAlgorithm,
48
50
  token: {
49
51
  colorPrimary: m,
50
52
  ...n.token
@@ -54,11 +56,11 @@ function ao(a) {
54
56
  }
55
57
  };
56
58
  }, [t, m]), e = (/* @__PURE__ */ new Map([
57
- ["blank", w],
58
- ["basic", b],
59
- ["auth", T]
59
+ ["blank", P],
60
+ ["basic", x],
61
+ ["auth", w]
60
62
  ])).get(r);
61
- return /* @__PURE__ */ o(c, { theme: f, children: /* @__PURE__ */ o(u, { children: /* @__PURE__ */ o(L, { ...s, children: /* @__PURE__ */ o(
63
+ return /* @__PURE__ */ o(u, { theme: c, locale: C, children: /* @__PURE__ */ o(d, { children: /* @__PURE__ */ o(T, { ...s, children: /* @__PURE__ */ o(
62
64
  g,
63
65
  {
64
66
  spinning: l.show && r !== "basic",
@@ -68,5 +70,5 @@ function ao(a) {
68
70
  ) }) }) });
69
71
  }
70
72
  export {
71
- ao as default
73
+ co as default
72
74
  };
@@ -5,11 +5,11 @@ import "../../store/modules/layout-config.store.js";
5
5
  import "../../store/modules/theme.store.js";
6
6
  import "react-router-dom";
7
7
  import "../../fe-layouts/context/context.js";
8
- import "nprogress";
9
- import "../../hooks/use-permission.hook/index.js";
10
- import "antd";
11
8
  import "@spacego/turbo-utils";
9
+ import "antd";
10
+ import "../../hooks/use-permission.hook/index.js";
12
11
  /* empty css */
12
+ import "nprogress";
13
13
  import "lodash-es";
14
14
  import "../../fe-form/fe-form-date-range-picker/index.js";
15
15
  import y from "../../fe-form/fe-form-input/index.js";
@@ -28,7 +28,7 @@ import "react-icons/lu";
28
28
  import "react-icons/md";
29
29
  /* empty css */
30
30
  import "../../fe-layouts/basics-layout/index.js";
31
- /* empty css */
31
+ import "../../fe-layouts/layout.js";
32
32
  /* empty css */
33
33
  /* empty css */
34
34
  import "react-draggable";
@@ -7,10 +7,10 @@ import "../../store/modules/layout-config.store.js";
7
7
  import "../../store/modules/theme.store.js";
8
8
  import "react-router-dom";
9
9
  import "../../fe-layouts/context/context.js";
10
- import "nprogress";
11
- import "../../hooks/use-permission.hook/index.js";
12
10
  import "@spacego/turbo-utils";
11
+ import "../../hooks/use-permission.hook/index.js";
13
12
  /* empty css */
13
+ import "nprogress";
14
14
  import "lodash-es";
15
15
  import "../../fe-form/fe-form-date-range-picker/index.js";
16
16
  import "../../fe-rich-text/index.js";
@@ -25,7 +25,7 @@ import "react-icons/lu";
25
25
  import "react-icons/md";
26
26
  /* empty css */
27
27
  import "../../fe-layouts/basics-layout/index.js";
28
- /* empty css */
28
+ import "../../fe-layouts/layout.js";
29
29
  /* empty css */
30
30
  /* empty css */
31
31
  import "react-draggable";
@@ -6,10 +6,10 @@ import "../../store/modules/theme.store.js";
6
6
  import "react-router-dom";
7
7
  import "react";
8
8
  import "../../fe-layouts/context/context.js";
9
- import "nprogress";
10
- import "../../hooks/use-permission.hook/index.js";
11
9
  import "@spacego/turbo-utils";
12
10
  import d from "../../fe-link/index.js";
11
+ import "nprogress";
12
+ import "../../hooks/use-permission.hook/index.js";
13
13
  import "lodash-es";
14
14
  import "../../fe-form/fe-form-date-range-picker/index.js";
15
15
  import "../../fe-rich-text/index.js";
@@ -24,7 +24,7 @@ import "react-icons/lu";
24
24
  import "react-icons/md";
25
25
  /* empty css */
26
26
  import "../../fe-layouts/basics-layout/index.js";
27
- /* empty css */
27
+ import "../../fe-layouts/layout.js";
28
28
  /* empty css */
29
29
  /* empty css */
30
30
  import "react-draggable";
@@ -6,11 +6,11 @@ import "../../store/modules/theme.store.js";
6
6
  import "react-router-dom";
7
7
  import "react";
8
8
  import "../../fe-layouts/context/context.js";
9
- import "nprogress";
10
- import "../../hooks/use-permission.hook/index.js";
11
- import a from "../../fe-button/index.js";
12
9
  import "@spacego/turbo-utils";
10
+ import "../../hooks/use-permission.hook/index.js";
13
11
  /* empty css */
12
+ import "nprogress";
13
+ import a from "../../fe-button/index.js";
14
14
  import "lodash-es";
15
15
  import "../../fe-form/fe-form-date-range-picker/index.js";
16
16
  import "../../fe-rich-text/index.js";
@@ -25,7 +25,7 @@ import "react-icons/lu";
25
25
  import "react-icons/md";
26
26
  /* empty css */
27
27
  import "../../fe-layouts/basics-layout/index.js";
28
- /* empty css */
28
+ import "../../fe-layouts/layout.js";
29
29
  /* empty css */
30
30
  /* empty css */
31
31
  import "react-draggable";
@@ -6,10 +6,10 @@ import "../../store/modules/layout-config.store.js";
6
6
  import "../../store/modules/theme.store.js";
7
7
  import "react-router-dom";
8
8
  import "../../fe-layouts/context/context.js";
9
- import "nprogress";
10
- import { usePermission as L } from "../../hooks/use-permission.hook/index.js";
11
9
  import "@spacego/turbo-utils";
10
+ import { usePermission as L } from "../../hooks/use-permission.hook/index.js";
12
11
  /* empty css */
12
+ import "nprogress";
13
13
  import "lodash-es";
14
14
  import "../../fe-form/fe-form-date-range-picker/index.js";
15
15
  import "../../fe-rich-text/index.js";
@@ -24,7 +24,7 @@ import "react-icons/lu";
24
24
  import "react-icons/md";
25
25
  /* empty css */
26
26
  import "../../fe-layouts/basics-layout/index.js";
27
- /* empty css */
27
+ import "../../fe-layouts/layout.js";
28
28
  /* empty css */
29
29
  /* empty css */
30
30
  import "react-draggable";