@regenbio/regenbio-components-react 1.3.34 → 1.3.36
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/DataDisplay/DataChart/hook.d.ts +10 -0
- package/build/components/DataDisplay/DataChart/type.d.ts +2 -1
- package/build/components/DataDisplay/DataTable/type.d.ts +3 -0
- package/build/components/DataDisplay/UserCard/type.d.ts +0 -20
- package/build/components/DataEntry/AttachmentText/type.d.ts +0 -5
- package/build/components/DataEntry/Uploader/SingleImageUploader/type.d.ts +0 -10
- package/build/components/PageLayout/AppLayout/type.d.ts +5 -7
- package/build/index.d.ts +7 -6
- package/build/index.js +3 -3
- package/build/services/hooks/useRbAuthorize.d.ts +7 -0
- package/build/services/hooks/useRbDictionary.d.ts +13 -0
- package/build/services/hooks/useRbValueEnum.d.ts +9 -0
- package/build/services/types/commonType.d.ts +44 -1
- package/package.json +1 -1
- package/build/services/utils/dictUtil.d.ts +0 -14
- package/build/services/utils/renderUtil.d.ts +0 -6
- package/build/services/utils/resourceUtil.d.ts +0 -12
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Ref } from "react";
|
|
2
|
+
import { Chart } from "@antv/g2";
|
|
2
3
|
/**
|
|
3
4
|
* 图表操作类型
|
|
4
5
|
*/
|
|
@@ -34,7 +35,7 @@ export type RbDataChartProps = {
|
|
|
34
35
|
* @param chart 图表
|
|
35
36
|
* @param data 数据
|
|
36
37
|
*/
|
|
37
|
-
chartInit: (chart:
|
|
38
|
+
chartInit: (chart: Chart, data: any) => void;
|
|
38
39
|
/**
|
|
39
40
|
* 请求数据
|
|
40
41
|
*/
|
|
@@ -126,5 +126,8 @@ export type RbDataTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
126
126
|
alert: React.ReactNode | undefined;
|
|
127
127
|
table: React.ReactNode | undefined;
|
|
128
128
|
}) => React.ReactNode;
|
|
129
|
+
/**
|
|
130
|
+
* 配置展开属性
|
|
131
|
+
*/
|
|
129
132
|
expandable?: ExpandableConfig<DataSource>;
|
|
130
133
|
};
|
|
@@ -27,24 +27,4 @@ export type RbUserCardProps = {
|
|
|
27
27
|
* 子节点
|
|
28
28
|
*/
|
|
29
29
|
children?: React.ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* 获取用户详情方法
|
|
32
|
-
*
|
|
33
|
-
* @param id 用户主键ID
|
|
34
|
-
*/
|
|
35
|
-
getUserDetail: (id: string, options?: {
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
}) => Promise<any>;
|
|
38
|
-
/**
|
|
39
|
-
* 获取头像预览URL方法
|
|
40
|
-
*
|
|
41
|
-
* @param guid 头像文件主键ID
|
|
42
|
-
*/
|
|
43
|
-
getPreviewUrl: (guid: any) => null | string;
|
|
44
|
-
/**
|
|
45
|
-
* 请求远程用户数据的方法
|
|
46
|
-
*
|
|
47
|
-
* @param guid 用户主键ID
|
|
48
|
-
*/
|
|
49
|
-
request?: (guid: string) => Promise<any>;
|
|
50
30
|
};
|
|
@@ -30,16 +30,6 @@ export type RbSingleImageUploaderProps = {
|
|
|
30
30
|
*/
|
|
31
31
|
clientId?: string;
|
|
32
32
|
};
|
|
33
|
-
/**
|
|
34
|
-
* 文件上传链接渲染方法
|
|
35
|
-
* @param configCode 配置编码
|
|
36
|
-
*/
|
|
37
|
-
uploadUrl: (configCode: string) => string;
|
|
38
|
-
/**
|
|
39
|
-
* 文件预览链接渲染方法
|
|
40
|
-
* @param guid 文件主键ID
|
|
41
|
-
*/
|
|
42
|
-
previewUrl: (guid: any) => null | string;
|
|
43
33
|
/**
|
|
44
34
|
* 规则
|
|
45
35
|
*/
|
|
@@ -20,12 +20,6 @@ export type RbAppLayoutProps = {
|
|
|
20
20
|
* 设置全局初始化状态
|
|
21
21
|
*/
|
|
22
22
|
setInitialState: (initialState: RbInitialStateRespProps) => void;
|
|
23
|
-
/**
|
|
24
|
-
* 获取头像预览URL方法
|
|
25
|
-
*
|
|
26
|
-
* @param guid 头像文件主键ID
|
|
27
|
-
*/
|
|
28
|
-
getPreviewUrl: (guid: any) => null | string;
|
|
29
23
|
/**
|
|
30
24
|
* 语言组件
|
|
31
25
|
*/
|
|
@@ -38,4 +32,8 @@ export type RbAppLayoutProps = {
|
|
|
38
32
|
* 头像下拉
|
|
39
33
|
*/
|
|
40
34
|
avatarDropdown: React.ReactNode;
|
|
41
|
-
|
|
35
|
+
/**
|
|
36
|
+
* 全局状态
|
|
37
|
+
*/
|
|
38
|
+
globalState: RbGlobalStateType;
|
|
39
|
+
};
|
package/build/index.d.ts
CHANGED
|
@@ -39,21 +39,21 @@ import DbUtil from "./services/utils/dbUtil";
|
|
|
39
39
|
import ObjectUtil from "./services/utils/objectUtil";
|
|
40
40
|
import EventUtil from "./services/utils/eventUtil";
|
|
41
41
|
import StorageUtil from "./services/utils/storageUtil";
|
|
42
|
-
import ResourceUtil from "./services/utils/resourceUtil";
|
|
43
|
-
import RenderUtil from "./services/utils/renderUtil";
|
|
44
42
|
import StringUtil from "./services/utils/stringUtil";
|
|
45
43
|
import NumberUtil from "./services/utils/numberUtil";
|
|
46
44
|
import RandomUtil from "./services/utils/randomUtil";
|
|
47
45
|
import UnicodeUtil from "./services/utils/unicodeUtil";
|
|
48
46
|
import UploadUtil from "./services/utils/uploadUtil";
|
|
49
47
|
import RequestUtil from "./services/utils/requestUtil";
|
|
50
|
-
import DictUtil from "./services/utils/dictUtil";
|
|
51
48
|
import EventEnum from "./services/enums/eventEnum";
|
|
52
49
|
import StorageEnum from "./services/enums/storageEnum";
|
|
50
|
+
import useRbDictionary from "./services/hooks/useRbDictionary";
|
|
51
|
+
import useRbValueEnum from "./services/hooks/useRbValueEnum";
|
|
52
|
+
import useRbAuthorize from "./services/hooks/useRbAuthorize";
|
|
53
53
|
import CommonConstant from "./services/constants/commonConstant";
|
|
54
54
|
import IconConstant from "./services/constants/iconConstant";
|
|
55
55
|
import DbConstant from "./services/constants/dbConstant";
|
|
56
|
-
import { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateRespProps, RbInitialStateReqProps, RbGlobalStateType } from "./services/types/commonType";
|
|
56
|
+
import { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateRespProps, RbInitialStateReqProps, RbGlobalStateType, RbGlobalFunctionType } from "./services/types/commonType";
|
|
57
57
|
import { BaseDO, BaseRelativeDO } from "./services/interfaces/commonInterface";
|
|
58
58
|
import { TokenDO } from "./services/interfaces/oauth2Interface";
|
|
59
59
|
import zhCN from "./locales/zh-CN";
|
|
@@ -93,11 +93,12 @@ export { RbThemeSetter };
|
|
|
93
93
|
export { RbAuthFrame, RbBindFrame };
|
|
94
94
|
export type { RbAuthFrameProps, RbBindFrameProps };
|
|
95
95
|
export { RbGlobalContext };
|
|
96
|
-
export { DbUtil, ObjectUtil, EventUtil, StorageUtil,
|
|
96
|
+
export { DbUtil, ObjectUtil, EventUtil, StorageUtil, StringUtil, NumberUtil, RandomUtil, UnicodeUtil, UploadUtil, RequestUtil };
|
|
97
97
|
export { EventEnum, StorageEnum };
|
|
98
98
|
export { CommonConstant, IconConstant, DbConstant };
|
|
99
|
-
export { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType };
|
|
99
|
+
export { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType, RbGlobalFunctionType };
|
|
100
100
|
export { BaseDO, BaseRelativeDO, TokenDO };
|
|
101
|
+
export { useRbDictionary, useRbValueEnum, useRbAuthorize };
|
|
101
102
|
export { zhCN, enUS };
|
|
102
103
|
declare const _default: {
|
|
103
104
|
RbDataTable: <DataSource, U, ValueType = "text">(props: RbDataTableProps<DataSource, U, ValueType>) => any;
|