@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.
- package/README.md +37 -37
- package/lib/fe-form/fe-form-select/index.js +26 -30
- package/lib/fe-layouts/auth-layout/index.js +4 -4
- package/lib/fe-layouts/basics-layout/components/utils/index.js +8 -8
- package/lib/fe-layouts/basics-layout/index.js +5 -3
- package/lib/fe-layouts/layout.js +25 -23
- package/lib/fe-table/fe-edit-table-cell/index.js +4 -4
- package/lib/fe-table/fe-normal-table/index.js +3 -3
- package/lib/fe-table/fe-table-link/index.js +3 -3
- package/lib/fe-table/fe-table-toolbar/index.js +4 -4
- package/lib/fe-table/use-table/index.js +3 -3
- package/lib/index.css +1 -1
- package/lib/index.js +165 -163
- package/lib/node_modules/.pnpm/@rc-component_pagination@1.2.0_nnrd3gsncyragczmpvfhocinkq/node_modules/@rc-component/pagination/es/locale/zh_CN.js +18 -0
- package/lib/node_modules/.pnpm/@rc-component_picker@1.9.0_xrdeekns7he6t7xjrt27lnhvge/node_modules/@rc-component/picker/es/locale/common.js +9 -0
- package/lib/node_modules/.pnpm/@rc-component_picker@1.9.0_xrdeekns7he6t7xjrt27lnhvge/node_modules/@rc-component/picker/es/locale/zh_CN.js +78 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/calendar/locale/zh_CN.js +4 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/date-picker/locale/zh_CN.js +24 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/locale/zh_CN.js +146 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/time-picker/locale/zh_CN.js +7 -0
- package/lib/router/utils.js +31 -30
- package/lib/store/modules/layout-config.store.js +4 -4
- package/lib/store/modules/theme.store.js +4 -4
- package/lib/types/fe-auto-complete/auto-complete.d.ts +4 -0
- package/lib/types/fe-auto-complete/index.d.ts +3 -2
- package/lib/types/fe-button/button.d.ts +18 -0
- package/lib/types/fe-button/index.d.ts +3 -16
- package/lib/types/fe-cascader/cascader.d.ts +9 -0
- package/lib/types/fe-cascader/index.d.ts +3 -7
- package/lib/types/fe-checkbox/checkbox.d.ts +8 -0
- package/lib/types/fe-checkbox/index.d.ts +3 -6
- package/lib/types/fe-checkbox-group/checkbox-group.d.ts +7 -0
- package/lib/types/fe-checkbox-group/index.d.ts +3 -5
- package/lib/types/fe-date-picker/date-picker.d.ts +5 -0
- package/lib/types/fe-date-picker/index.d.ts +3 -3
- package/lib/types/fe-description-render/description-render.d.ts +33 -0
- package/lib/types/fe-description-render/index.d.ts +8 -31
- package/lib/types/fe-descriptions/descriptions.d.ts +4 -0
- package/lib/types/fe-descriptions/index.d.ts +3 -2
- package/lib/types/fe-empty/empty.d.ts +4 -0
- package/lib/types/fe-empty/index.d.ts +3 -2
- package/lib/types/fe-error-block/error-block.d.ts +8 -0
- package/lib/types/fe-error-block/index.d.ts +3 -6
- package/lib/types/fe-form/fe-form/form.d.ts +356 -0
- package/lib/types/fe-form/fe-form/index.d.ts +3 -354
- package/lib/types/fe-form/fe-form-auto-complete/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-btn-group/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-cascader/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-checkbox-group/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-date-picker/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-date-range-picker/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-input/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-input-input/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-input-number/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-item/form-item.d.ts +68 -0
- package/lib/types/fe-form/fe-form-item/index.d.ts +3 -66
- package/lib/types/fe-form/fe-form-label/form-label.d.ts +45 -0
- package/lib/types/fe-form/fe-form-label/index.d.ts +3 -43
- package/lib/types/fe-form/fe-form-radio/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-render/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-rich-text/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-select/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-switch/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-text/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-text-area/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-time-picker/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-upload/index.d.ts +1 -1
- package/lib/types/fe-form/index.d.ts +4 -4
- package/lib/types/fe-form/utils/index.d.ts +1 -1
- package/lib/types/fe-input/index.d.ts +3 -12
- package/lib/types/fe-input/input.d.ts +14 -0
- package/lib/types/fe-input-number/index.d.ts +3 -2
- package/lib/types/fe-input-number/input-number.d.ts +4 -0
- package/lib/types/fe-layouts/basics-layout/components/utils/index.d.ts +7 -6
- package/lib/types/fe-layouts/context/global-context.d.ts +240 -238
- package/lib/types/fe-link/index.d.ts +3 -6
- package/lib/types/fe-link/link.d.ts +8 -0
- package/lib/types/fe-loading/index.d.ts +1 -1
- package/lib/types/fe-map/index.d.ts +3 -73
- package/lib/types/fe-map/map.d.ts +73 -0
- package/lib/types/fe-modal/index.d.ts +3 -20
- package/lib/types/fe-modal/modal.d.ts +22 -0
- package/lib/types/fe-pagination/index.d.ts +3 -2
- package/lib/types/fe-pagination/pagination.d.ts +4 -0
- package/lib/types/fe-panel/index.d.ts +3 -61
- package/lib/types/fe-panel/panel-toolbar.d.ts +6 -4
- package/lib/types/fe-panel/panel.d.ts +63 -0
- package/lib/types/fe-permission/index.d.ts +3 -10
- package/lib/types/fe-permission/permission.d.ts +12 -0
- package/lib/types/fe-permission-provider/index.d.ts +3 -8
- package/lib/types/fe-permission-provider/permission-provider.d.ts +10 -0
- package/lib/types/fe-radio/index.d.ts +3 -2
- package/lib/types/fe-radio/radio.d.ts +4 -0
- package/lib/types/fe-radio-group/index.d.ts +3 -2
- package/lib/types/fe-radio-group/radio-group.d.ts +4 -0
- package/lib/types/fe-rich-text/index.d.ts +3 -167
- package/lib/types/fe-rich-text/rich-text.d.ts +169 -0
- package/lib/types/fe-select/index.d.ts +3 -8
- package/lib/types/fe-select/select.d.ts +10 -0
- package/lib/types/fe-switch/index.d.ts +3 -2
- package/lib/types/fe-switch/switch.d.ts +4 -0
- package/lib/types/fe-table/fe-table-link/index.d.ts +3 -10
- package/lib/types/fe-table/fe-table-link/table-link.d.ts +12 -0
- package/lib/types/fe-table/fe-table-render/index.d.ts +3 -11
- package/lib/types/fe-table/fe-table-render/table-render.d.ts +13 -0
- package/lib/types/fe-table/fe-table-toolbar/index.d.ts +3 -16
- package/lib/types/fe-table/fe-table-toolbar/table-toolbar.d.ts +18 -0
- package/lib/types/fe-table/type/table-context.d.ts +60 -60
- package/lib/types/fe-table/type/table.d.ts +789 -787
- package/lib/types/fe-text-area/index.d.ts +3 -4
- package/lib/types/fe-text-area/text-area.d.ts +6 -0
- package/lib/types/fe-time-picker/index.d.ts +3 -3
- package/lib/types/fe-time-picker/time-picker.d.ts +5 -0
- package/lib/types/fe-upload/index.d.ts +3 -85
- package/lib/types/fe-upload/upload.d.ts +87 -0
- package/lib/types/fe-upload-atomic/index.d.ts +3 -2
- package/lib/types/fe-upload-atomic/upload-atomic.d.ts +4 -0
- package/lib/types/fe-upload-crop/index.d.ts +2 -2
- package/lib/types/hooks/index.d.ts +1 -0
- package/lib/types/hooks/{use-descriptions → use-descriptions.hook}/index.d.ts +1 -1
- package/lib/types/hooks/use-descriptions.hook/use-descriptions.d.ts +153 -0
- package/lib/types/hooks/use-form.hook/index.d.ts +3 -0
- package/lib/types/hooks/{use-form/index.d.ts → use-form.hook/use-form.d.ts} +14 -12
- package/lib/types/hooks/use-permission.hook/index.d.ts +10 -10
- package/lib/types/hooks/use-permission.hook/use-permission.d.ts +10 -0
- package/lib/types/index.d.ts +30 -1
- package/lib/types/router/utils.d.ts +2 -1
- package/lib/types/typings/index.d.ts +98 -98
- package/lib/types/typings/shims-axios.d.ts +38 -38
- package/package.json +3 -3
- /package/lib/hooks/{use-form → use-form.hook}/index.js +0 -0
package/lib/router/utils.js
CHANGED
|
@@ -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,
|
|
6
|
-
const
|
|
7
|
-
return
|
|
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,
|
|
14
|
-
return (o.sort ?? 0) - (
|
|
13
|
+
function T(o, d) {
|
|
14
|
+
return (o.sort ?? 0) - (d.sort ?? 0);
|
|
15
15
|
}
|
|
16
|
-
function N(o,
|
|
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),
|
|
23
|
+
].sort(T), u = /* @__PURE__ */ new Map(), f = [];
|
|
24
24
|
l.forEach((e) => {
|
|
25
|
-
const t = e.parentId ||
|
|
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
|
|
40
|
-
|
|
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
|
-
|
|
43
|
+
u.set(e.id, s);
|
|
43
44
|
}), l.forEach((e) => {
|
|
44
|
-
const t =
|
|
45
|
-
if (n && n !==
|
|
46
|
-
const s =
|
|
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 = [],
|
|
52
|
-
|
|
53
|
-
const t =
|
|
54
|
-
const { children:
|
|
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.
|
|
65
|
-
}),
|
|
66
|
-
const t = a.get(e.
|
|
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
|
|
74
|
+
function I(e) {
|
|
74
75
|
const t = [];
|
|
75
76
|
return e.forEach((n) => {
|
|
76
|
-
if (n.children && n.children.length > 0 && (n.children =
|
|
77
|
-
const s = n.children.filter((
|
|
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
|
|
80
|
-
...
|
|
80
|
+
const i = s.map((c) => ({
|
|
81
|
+
...c,
|
|
81
82
|
customType: "menu-promoted"
|
|
82
83
|
// 内部标识,表示这个菜单是被提升的
|
|
83
|
-
})), m = n.children.filter((
|
|
84
|
-
t.push(...
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
30
|
+
import "../../fe-layouts/layout.js";
|
|
31
31
|
/* empty css */
|
|
32
32
|
/* empty css */
|
|
33
33
|
import "react-draggable";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
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;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
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;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FeDescriptionsProps } from './descriptions.d';
|
|
2
|
+
declare const FeDescriptions: (props: FeDescriptionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeDescriptions;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FeEmptyProps } from './empty.d';
|
|
2
|
+
declare const FeEmpty: (props: FeEmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeEmpty;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
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;
|