@regenbio/regenbio-components-react 1.2.32 → 1.2.34
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/build/components/AttachmentText/index.d.ts +10 -0
- package/build/components/AttachmentText/locales/en-US.d.ts +4 -0
- package/build/components/AttachmentText/locales/zh-CN.d.ts +4 -0
- package/build/components/AttachmentText/type.d.ts +54 -0
- package/build/components/HomePage/index.d.ts +12 -0
- package/build/components/HomePage/type.d.ts +22 -0
- package/build/components/PageContainer/index.d.ts +10 -0
- package/build/components/PageContainer/type.d.ts +15 -0
- package/build/index.d.ts +19 -1
- package/build/index.js +3 -3
- package/build/locales/en-US.d.ts +1 -0
- package/build/locales/zh-CN.d.ts +1 -0
- package/build/services/utils/numberUtil.d.ts +4 -0
- package/build/services/utils/randomUtil.d.ts +4 -0
- package/build/services/utils/unicodeUtil.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { UploadFile } from "antd";
|
|
2
|
+
/**
|
|
3
|
+
* 附件文本域属性
|
|
4
|
+
*/
|
|
5
|
+
export type RbAttachmentTextProps = {
|
|
6
|
+
/**
|
|
7
|
+
* 最大文本长度
|
|
8
|
+
*/
|
|
9
|
+
maxLength: number;
|
|
10
|
+
/**
|
|
11
|
+
* 默认文件列表
|
|
12
|
+
*/
|
|
13
|
+
defaultFileList?: UploadFile[];
|
|
14
|
+
/**
|
|
15
|
+
* 文件上传配置编码
|
|
16
|
+
*/
|
|
17
|
+
configCode: string;
|
|
18
|
+
/**
|
|
19
|
+
* 最大文件数
|
|
20
|
+
*/
|
|
21
|
+
maxFile: number;
|
|
22
|
+
/**
|
|
23
|
+
* 占位文本
|
|
24
|
+
*/
|
|
25
|
+
placeholder: string;
|
|
26
|
+
/**
|
|
27
|
+
* 输入框改变回调
|
|
28
|
+
* @param value 值
|
|
29
|
+
*/
|
|
30
|
+
onInputChange: (value: string | undefined) => void;
|
|
31
|
+
/**
|
|
32
|
+
* 文件上传改变回调
|
|
33
|
+
* @param file 文件
|
|
34
|
+
*/
|
|
35
|
+
onFileChange: (file: UploadFile) => void;
|
|
36
|
+
/**
|
|
37
|
+
* 文件移除回调
|
|
38
|
+
* @param file 文件
|
|
39
|
+
*/
|
|
40
|
+
onFileRemove: (file: UploadFile) => void;
|
|
41
|
+
/**
|
|
42
|
+
* 访问令牌
|
|
43
|
+
*/
|
|
44
|
+
accessToken?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 国际化
|
|
47
|
+
*/
|
|
48
|
+
intl: any;
|
|
49
|
+
/**
|
|
50
|
+
* 文件上传连接渲染方法
|
|
51
|
+
* @param configCode 配置编码
|
|
52
|
+
*/
|
|
53
|
+
uploadUrl: (configCode: string) => string;
|
|
54
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RbHomePageProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* RB 主页(layout mix布局下)
|
|
5
|
+
* 1. 直接给一级菜单设置component会导致其下二级菜单都无法正常展示
|
|
6
|
+
* 2. 使用redirect重定向到其下的二级菜单会产生循环导致溢出
|
|
7
|
+
* 故使用独立组件处理
|
|
8
|
+
*
|
|
9
|
+
* @constructor
|
|
10
|
+
*/
|
|
11
|
+
declare const RbHomePage: React.FC<RbHomePageProps>;
|
|
12
|
+
export default RbHomePage;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 主页属性
|
|
4
|
+
*/
|
|
5
|
+
export type RbHomePageProps = {
|
|
6
|
+
/**
|
|
7
|
+
* 应该展示主页时的路径
|
|
8
|
+
*/
|
|
9
|
+
path: string;
|
|
10
|
+
/**
|
|
11
|
+
* 子页展示内容
|
|
12
|
+
*/
|
|
13
|
+
children: React.ReactElement;
|
|
14
|
+
/**
|
|
15
|
+
* 页面URL
|
|
16
|
+
*/
|
|
17
|
+
location: string;
|
|
18
|
+
/**
|
|
19
|
+
* 主页展示内容
|
|
20
|
+
*/
|
|
21
|
+
home: React.ReactElement;
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PageContainerProps } from "@ant-design/pro-layout/es/components/PageContainer";
|
|
2
|
+
/**
|
|
3
|
+
* 页面容器属性
|
|
4
|
+
*/
|
|
5
|
+
export type RbPageContainerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* 宽度改变回调
|
|
8
|
+
* @param width 宽度
|
|
9
|
+
*/
|
|
10
|
+
onResize?: (width: any) => void;
|
|
11
|
+
/**
|
|
12
|
+
* 水印内容
|
|
13
|
+
*/
|
|
14
|
+
watermark?: string | string[];
|
|
15
|
+
} & PageContainerProps;
|
package/build/index.d.ts
CHANGED
|
@@ -19,6 +19,12 @@ import RbDragTable from "./components/DragTable";
|
|
|
19
19
|
import { RbDragTableProps } from "./components/DragTable/type";
|
|
20
20
|
import RbUserSelector from "./components/UserSelector";
|
|
21
21
|
import { RbUserSelectorProps } from "./components/UserSelector/type";
|
|
22
|
+
import RbAttachmentText from "./components/AttachmentText";
|
|
23
|
+
import { RbAttachmentTextProps } from "./components/AttachmentText/type";
|
|
24
|
+
import RbPageContainer from "./components/PageContainer";
|
|
25
|
+
import { RbPageContainerProps } from "./components/PageContainer/type";
|
|
26
|
+
import RbHomePage from "./components/HomePage";
|
|
27
|
+
import { RbHomePageProps } from "./components/HomePage/type";
|
|
22
28
|
import DbUtil from "./services/utils/dbUtil";
|
|
23
29
|
import ObjectUtil from "./services/utils/objectUtil";
|
|
24
30
|
import EventUtil from "./services/utils/eventUtil";
|
|
@@ -26,6 +32,9 @@ import StorageUtil from "./services/utils/storageUtil";
|
|
|
26
32
|
import ResourceUtil from "./services/utils/resourceUtil";
|
|
27
33
|
import RenderUtil from "./services/utils/renderUtil";
|
|
28
34
|
import StringUtil from "./services/utils/stringUtil";
|
|
35
|
+
import NumberUtil from "./services/utils/numberUtil";
|
|
36
|
+
import RandomUtil from "./services/utils/randomUtil";
|
|
37
|
+
import UnicodeUtil from "./services/utils/unicodeUtil";
|
|
29
38
|
import EventEnum from "./services/enums/eventEnum";
|
|
30
39
|
import StorageEnum from "./services/enums/storageEnum";
|
|
31
40
|
import CommonConstant from "./services/constants/commonConstant";
|
|
@@ -56,7 +65,13 @@ export { RbDragTable };
|
|
|
56
65
|
export type { RbDragTableProps };
|
|
57
66
|
export { RbUserSelector };
|
|
58
67
|
export type { RbUserSelectorProps };
|
|
59
|
-
export {
|
|
68
|
+
export { RbAttachmentText };
|
|
69
|
+
export type { RbAttachmentTextProps };
|
|
70
|
+
export { RbPageContainer };
|
|
71
|
+
export type { RbPageContainerProps };
|
|
72
|
+
export { RbHomePage };
|
|
73
|
+
export type { RbHomePageProps };
|
|
74
|
+
export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil, RenderUtil, StringUtil, NumberUtil, RandomUtil, UnicodeUtil };
|
|
60
75
|
export { EventEnum, StorageEnum };
|
|
61
76
|
export { CommonConstant, IconConstant, DbConstant, LocaleConstant };
|
|
62
77
|
export { RespDTO, ConstantListItem };
|
|
@@ -76,5 +91,8 @@ declare const _default: {
|
|
|
76
91
|
RbUserSelector: (<T, OptionType extends import("rc-cascader").BaseOptionType = any>(props: RbUserSelectorProps<T, OptionType>) => React.ReactElement) & {
|
|
77
92
|
SearchSelect: <T, OptionType extends import("rc-cascader").BaseOptionType = any>(props: RbUserSelectorProps<T, OptionType>) => React.ReactElement;
|
|
78
93
|
};
|
|
94
|
+
RbAttachmentText: React.FC<RbAttachmentTextProps>;
|
|
95
|
+
RbPageContainer: React.FC<RbPageContainerProps>;
|
|
96
|
+
RbHomePage: React.FC<RbHomePageProps>;
|
|
79
97
|
};
|
|
80
98
|
export default _default;
|