@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
@@ -2,28 +2,29 @@ import { lazy as y, createElement as C } from "react";
2
2
  function R(o) {
3
3
  return `/src/pages/${o.replace(/^\/+/, "")}/index.tsx`;
4
4
  }
5
- function v(o, i) {
6
- const d = i[R(o)];
7
- return d ? y(d) : (console.warn(`Module not found for path: ${o}`), y(() => Promise.resolve({ default: () => C("div", null, `Module not found: ${o}`) })));
5
+ function v(o, d) {
6
+ const r = d[R(o)];
7
+ return r ? y(r) : (console.warn(`Module not found for path: ${o}`), y(() => Promise.resolve({ default: () => C("div", null, `Module not found: ${o}`) })));
8
8
  }
9
9
  function w(o) {
10
10
  if (o)
11
11
  return o.startsWith("/") ? o : `/${o}`;
12
12
  }
13
- function T(o, i) {
14
- return (o.sort ?? 0) - (i.sort ?? 0);
13
+ function T(o, d) {
14
+ return (o.sort ?? 0) - (d.sort ?? 0);
15
15
  }
16
- function N(o, i, d) {
16
+ function N(o, d, r) {
17
17
  const p = [...o].sort(T).reduce((e, t) => {
18
18
  const n = t.menuType || 2;
19
19
  return e[n] || (e[n] = []), e[n].push(t), e;
20
20
  }, {}), g = (p[3] || []).filter((e) => e.menuCode).map((e) => e.menuCode), l = [
21
21
  ...p[1] || [],
22
22
  ...p[2] || []
23
- ].sort(T), c = /* @__PURE__ */ new Map(), f = [];
23
+ ].sort(T), u = /* @__PURE__ */ new Map(), f = [];
24
24
  l.forEach((e) => {
25
- const t = e.parentId || "/", n = w(e.path), s = {
25
+ const t = e.parentId || 0, n = w(e.path), s = {
26
26
  id: e.menuId,
27
+ dbId: e.id,
27
28
  path: n,
28
29
  parentId: t,
29
30
  // 将 title、icon 放入 handle 字段
@@ -36,22 +37,22 @@ function N(o, i, d) {
36
37
  }
37
38
  };
38
39
  if (e.menuType === 2 && e.menuCode) {
39
- const r = v(e.menuCode, i);
40
- r && (s.Component = r), e.index && (s.index = !0, delete s.path), e.protected !== !1 && d && (s.loader = d);
40
+ const i = v(e.menuCode, d);
41
+ i && (s.Component = i), e.index && (s.index = !0, delete s.path), e.protected !== !1 && r && (s.loader = r);
41
42
  }
42
- c.set(e.menuId, s);
43
+ u.set(e.id, s);
43
44
  }), l.forEach((e) => {
44
- const t = c.get(e.menuId), n = e.parentId;
45
- if (n && n !== "/") {
46
- const s = c.get(n);
45
+ const t = u.get(e.id), n = e.parentId;
46
+ if (n && n !== 0) {
47
+ const s = u.get(n);
47
48
  s ? (s.children || (s.children = []), s.children.push(t)) : f.push(t);
48
49
  } else
49
50
  f.push(t);
50
51
  });
51
- const a = /* @__PURE__ */ new Map(), h = [], I = l.filter((e) => e.isShowMenu !== !1);
52
- I.forEach((e) => {
53
- const t = c.get(e.menuId), n = t ? (() => {
54
- const { children: r, ...m } = t;
52
+ const a = /* @__PURE__ */ new Map(), h = [], M = l.filter((e) => e.isShowMenu !== !1);
53
+ M.forEach((e) => {
54
+ const t = u.get(e.id), n = t ? (() => {
55
+ const { children: i, ...m } = t;
55
56
  return m;
56
57
  })() : void 0, s = {
57
58
  key: e.menuId,
@@ -61,27 +62,27 @@ function N(o, i, d) {
61
62
  menuType: e.menuType,
62
63
  isIndependentMenu: e.isIndependentMenu
63
64
  };
64
- a.set(e.menuId, s);
65
- }), I.forEach((e) => {
66
- const t = a.get(e.menuId), n = e.parentId;
67
- if (n && n !== "/") {
65
+ a.set(e.id, s);
66
+ }), M.forEach((e) => {
67
+ const t = a.get(e.id), n = e.parentId;
68
+ if (n && n !== 0) {
68
69
  const s = a.get(n);
69
70
  s ? (s.children || (s.children = []), s.children.push(t)) : h.push(t);
70
71
  } else
71
72
  h.push(t);
72
73
  });
73
- function M(e) {
74
+ function I(e) {
74
75
  const t = [];
75
76
  return e.forEach((n) => {
76
- if (n.children && n.children.length > 0 && (n.children = M(n.children)), n.menuType === 1 && n.children && n.children.length > 0) {
77
- const s = n.children.filter((r) => r.isIndependentMenu === !0 && r.menuType === 2 && !r.customType);
77
+ if (n.children && n.children.length > 0 && (n.children = I(n.children)), n.menuType === 1 && n.children && n.children.length > 0) {
78
+ const s = n.children.filter((i) => i.isIndependentMenu === !0 && i.menuType === 2 && !i.customType);
78
79
  if (s.length > 0) {
79
- const r = s.map((u) => ({
80
- ...u,
80
+ const i = s.map((c) => ({
81
+ ...c,
81
82
  customType: "menu-promoted"
82
83
  // 内部标识,表示这个菜单是被提升的
83
- })), m = n.children.filter((u) => !(u.isIndependentMenu === !0 && u.menuType === 2 && !u.customType));
84
- t.push(...r, ...m);
84
+ })), m = n.children.filter((c) => !(c.isIndependentMenu === !0 && c.menuType === 2 && !c.customType));
85
+ t.push(...i, ...m);
85
86
  } else
86
87
  t.push(n);
87
88
  } else
@@ -90,7 +91,7 @@ function N(o, i, d) {
90
91
  }
91
92
  return {
92
93
  routes: f,
93
- menus: M(h),
94
+ menus: I(h),
94
95
  permissions: g
95
96
  };
96
97
  }
@@ -7,11 +7,11 @@ import { STORE_KEY as C } from "../../config/constants.js";
7
7
  import "react-router-dom";
8
8
  import "react";
9
9
  import "../../fe-layouts/context/context.js";
10
- import "nprogress";
11
- import "../../hooks/use-permission.hook/index.js";
12
- import "antd";
13
10
  import "@spacego/turbo-utils";
11
+ import "antd";
12
+ import "../../hooks/use-permission.hook/index.js";
14
13
  /* empty css */
14
+ import "nprogress";
15
15
  import "lodash-es";
16
16
  import "../../fe-form/fe-form-date-range-picker/index.js";
17
17
  import "../../fe-rich-text/index.js";
@@ -26,7 +26,7 @@ import "react-icons/lu";
26
26
  import "react-icons/md";
27
27
  /* empty css */
28
28
  import "../../fe-layouts/basics-layout/index.js";
29
- /* empty css */
29
+ import "../../fe-layouts/layout.js";
30
30
  /* empty css */
31
31
  /* empty css */
32
32
  import "react-draggable";
@@ -8,11 +8,11 @@ import { STORE_KEY as e } from "../../config/constants.js";
8
8
  import "react-router-dom";
9
9
  import "react";
10
10
  import "../../fe-layouts/context/context.js";
11
- import "nprogress";
12
- import "../../hooks/use-permission.hook/index.js";
13
- import "antd";
14
11
  import "@spacego/turbo-utils";
12
+ import "antd";
13
+ import "../../hooks/use-permission.hook/index.js";
15
14
  /* empty css */
15
+ import "nprogress";
16
16
  import "lodash-es";
17
17
  import "../../fe-form/fe-form-date-range-picker/index.js";
18
18
  import "../../fe-rich-text/index.js";
@@ -27,7 +27,7 @@ import "react-icons/lu";
27
27
  import "react-icons/md";
28
28
  /* empty css */
29
29
  import "../../fe-layouts/basics-layout/index.js";
30
- /* empty css */
30
+ import "../../fe-layouts/layout.js";
31
31
  /* empty css */
32
32
  /* empty css */
33
33
  import "react-draggable";
@@ -0,0 +1,4 @@
1
+ import { AutoCompleteProps } from 'antd';
2
+
3
+
4
+ export interface FeAutoCompleteProps extends AutoCompleteProps { }
@@ -1,2 +1,3 @@
1
- import { AutoCompleteProps } from 'antd';
2
- export interface FeAutoCompleteProps extends AutoCompleteProps { }
1
+ import { FeAutoCompleteProps } from './auto-complete.d';
2
+ declare const FeAutoComplete: (props: FeAutoCompleteProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FeAutoComplete;
@@ -0,0 +1,18 @@
1
+ import { ButtonProps } from 'antd';
2
+ import { default as React } from 'react';
3
+ import { IBasicProps, IPermissionProps } from '../typings';
4
+
5
+
6
+ export interface FeButtonProps
7
+ extends ButtonProps, IPermissionProps, Pick<IBasicProps, 'children'> {
8
+ /**
9
+ * 设置按钮最小宽度,支持数字(px)或字符串
10
+ * @default 120px
11
+ */
12
+ minWidth?: number | string;
13
+ /**
14
+ * 禁用状态时的提示内容
15
+ * @description 当按钮被禁用时,显示该提示内容
16
+ */
17
+ disabledTooltip?: string | React.ReactNode;
18
+ }
@@ -1,16 +1,3 @@
1
- import { ButtonProps } from 'antd';
2
- import { default as React } from 'react';
3
- import { IBasicProps, IPermissionProps } from '../typings';
4
- export interface FeButtonProps
5
- extends ButtonProps, IPermissionProps, Pick<IBasicProps, 'children'> {
6
- /**
7
- * 设置按钮最小宽度,支持数字(px)或字符串
8
- * @default 120px
9
- */
10
- minWidth?: number | string;
11
- /**
12
- * 禁用状态时的提示内容
13
- * @description 当按钮被禁用时,显示该提示内容
14
- */
15
- disabledTooltip?: string | React.ReactNode;
16
- }
1
+ import { FeButtonProps } from './button.d';
2
+ declare const FeButton: (props: FeButtonProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FeButton;
@@ -0,0 +1,9 @@
1
+ import { CascaderProps } from 'antd';
2
+
3
+
4
+ export interface FeCascaderProps extends CascaderProps {
5
+ /**
6
+ * @name 多选
7
+ */
8
+ multiple?: false;
9
+ }
@@ -1,7 +1,3 @@
1
- import { CascaderProps } from 'antd';
2
- export interface FeCascaderProps extends CascaderProps {
3
- /**
4
- * @name 多选
5
- */
6
- multiple?: false;
7
- }
1
+ import { FeCascaderProps } from './cascader.d';
2
+ declare const FeCascader: (props: FeCascaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FeCascader;
@@ -0,0 +1,8 @@
1
+ import { CheckboxProps } from 'antd';
2
+ import { default as React } from 'react';
3
+
4
+
5
+ export interface FeCheckboxProps extends CheckboxProps {
6
+ }
7
+
8
+ declare const FeCheckbox: React.ForwardRefExoticComponent<FeCheckboxProps>;
@@ -1,6 +1,3 @@
1
- import { CheckboxProps } from 'antd';
2
- import { default as React } from 'react';
3
- export interface FeCheckboxProps extends CheckboxProps {
4
- }
5
-
6
- declare const FeCheckbox: React.ForwardRefExoticComponent<FeCheckboxProps>;
1
+ import { FeCheckboxProps } from './checkbox.d';
2
+ declare const FeCheckbox: (props: FeCheckboxProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FeCheckbox;
@@ -0,0 +1,7 @@
1
+ import { Checkbox } from 'antd';
2
+
3
+
4
+ type CheckboxGroupProps = Parameters<typeof Checkbox.Group>[0]
5
+
6
+ export interface FeCheckboxGroupProps extends CheckboxGroupProps {
7
+ }
@@ -1,5 +1,3 @@
1
- import { Checkbox } from 'antd';
2
- type CheckboxGroupProps = Parameters<typeof Checkbox.Group>[0]
3
-
4
- export interface FeCheckboxGroupProps extends CheckboxGroupProps {
5
- }
1
+ import { FeCheckboxGroupProps } from './checkbox-group.d';
2
+ declare const FeCheckboxGroup: (props: FeCheckboxGroupProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FeCheckboxGroup;
@@ -0,0 +1,5 @@
1
+ import { DatePickerProps } from 'antd';
2
+
3
+
4
+ export interface FeDatePickerProps extends DatePickerProps {
5
+ }
@@ -1,3 +1,3 @@
1
- import { DatePickerProps } from 'antd';
2
- export interface FeDatePickerProps extends DatePickerProps {
3
- }
1
+ import { FeDatePickerProps } from './date-picker.d';
2
+ declare const FeDatePicker: (props: FeDatePickerProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FeDatePicker;
@@ -0,0 +1,33 @@
1
+ import { IDescriptionsItem, TRenderType } from '../hooks/use-descriptions.hook/use-descriptions.d';
2
+
3
+
4
+ export interface FeDescriptionRenderProps<DataType extends Record<string, any>> {
5
+ /**
6
+ * 值
7
+ */
8
+ value: any;
9
+ /**
10
+ * 原始值
11
+ */
12
+ rawValue: any;
13
+ /**
14
+ * @name 渲染类型
15
+ */
16
+ renderType: TRenderType;
17
+ /**
18
+ * 列宽
19
+ */
20
+ colSpan: IDescriptionsItem<DataType>['colSpan'];
21
+ /**
22
+ * @name tag渲染器参数
23
+ */
24
+ tagRenderParams: IDescriptionsItem<DataType>['tagRenderParams'];
25
+ /**
26
+ * @name link渲染器参数
27
+ */
28
+ linkRenderParams: IDescriptionsItem<DataType>['linkRenderParams'];
29
+ /**
30
+ * @name image渲染器参数
31
+ */
32
+ imageRenderParams: IDescriptionsItem<DataType>['imageRenderParams'];
33
+ }
@@ -1,31 +1,8 @@
1
- import { IDescriptionsItem, TRenderType } from '../hooks/use-descriptions/index.d';
2
- export interface FeDescriptionRenderProps<DataType extends Record<string, any>> {
3
- /**
4
- *
5
- */
6
- value: any;
7
- /**
8
- * 原始值
9
- */
10
- rawValue: any;
11
- /**
12
- * @name 渲染类型
13
- */
14
- renderType: TRenderType;
15
- /**
16
- * 列宽
17
- */
18
- colSpan: IDescriptionsItem<DataType>['colSpan'];
19
- /**
20
- * @name tag渲染器参数
21
- */
22
- tagRenderParams: IDescriptionsItem<DataType>['tagRenderParams'];
23
- /**
24
- * @name link渲染器参数
25
- */
26
- linkRenderParams: IDescriptionsItem<DataType>['linkRenderParams'];
27
- /**
28
- * @name image渲染器参数
29
- */
30
- imageRenderParams: IDescriptionsItem<DataType>['imageRenderParams'];
31
- }
1
+ import { FeDescriptionRenderProps } from './description-render.d';
2
+ /**
3
+ * 描述列表渲染器
4
+ * @param props 渲染属性
5
+ * @returns 渲染结果
6
+ */
7
+ declare function FeDescriptionRender<DataType extends Record<string, any>>({ value, renderType, rawValue, tagRenderParams, linkRenderParams, imageRenderParams }: FeDescriptionRenderProps<DataType>): import("react/jsx-runtime").JSX.Element;
8
+ export default FeDescriptionRender;
@@ -0,0 +1,4 @@
1
+ import { DescriptionsProps } from 'antd';
2
+
3
+
4
+ export interface FeDescriptionsProps extends DescriptionsProps {}
@@ -1,2 +1,3 @@
1
- import { DescriptionsProps } from 'antd';
2
- export interface FeDescriptionsProps extends DescriptionsProps {}
1
+ import { FeDescriptionsProps } from './descriptions.d';
2
+ declare const FeDescriptions: (props: FeDescriptionsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FeDescriptions;
@@ -0,0 +1,4 @@
1
+ import { EmptyProps } from 'antd';
2
+
3
+
4
+ export interface FeEmptyProps extends EmptyProps {}
@@ -1,2 +1,3 @@
1
- import { EmptyProps } from 'antd';
2
- export interface FeEmptyProps extends EmptyProps {}
1
+ import { FeEmptyProps } from './empty.d';
2
+ declare const FeEmpty: (props: FeEmptyProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FeEmpty;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+
3
+
4
+ export interface FeErrorBlockProps {
5
+ children?: ReactNode;
6
+ /** 错误信息 */
7
+ message?: string;
8
+ }
@@ -1,6 +1,3 @@
1
- import { ReactNode } from 'react';
2
- export interface FeErrorBlockProps {
3
- children?: ReactNode;
4
- /** 错误信息 */
5
- message?: string;
6
- }
1
+ import { FeErrorBlockProps } from './error-block.d';
2
+ declare const FeErrorBlock: (props: FeErrorBlockProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FeErrorBlock;