@regenbio/regenbio-components-react 1.3.33 → 1.3.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/DataDisplay/DataTable/type.d.ts +0 -4
- package/build/components/DataDisplay/FileTag/type.d.ts +0 -4
- package/build/components/DataDisplay/UserCard/type.d.ts +0 -8
- package/build/components/DataEntry/AttachmentText/type.d.ts +0 -4
- package/build/components/DataEntry/MarkdownEditor/type.d.ts +0 -4
- package/build/components/DataEntry/Uploader/SingleImageUploader/type.d.ts +0 -4
- package/build/components/DataEntry/UserSelector/type.d.ts +0 -4
- package/build/components/Other/ActionBar/type.d.ts +0 -4
- package/build/components/Other/GlobalContext/index.d.ts +3 -1
- package/build/components/Other/LoginLoad/AuthFrame/type.d.ts +1 -9
- package/build/components/Other/LoginLoad/BindFrame/type.d.ts +0 -4
- package/build/components/PageLayout/AppLayout/index.d.ts +2 -1
- package/build/components/PageLayout/AppLayout/type.d.ts +2 -79
- package/build/index.d.ts +7 -7
- package/build/index.js +3 -3
- package/build/services/types/commonType.d.ts +76 -2
- package/package.json +1 -1
|
@@ -13,10 +13,6 @@ export type RbActionBarProps = {
|
|
|
13
13
|
* 操作栏子项
|
|
14
14
|
*/
|
|
15
15
|
children: React.ReactElement<typeof RbActionBarItem> | React.ReactElement<typeof RbActionBarItem>[];
|
|
16
|
-
/**
|
|
17
|
-
* 全局变量,用来判断当前用户是否携带对应的权限标识
|
|
18
|
-
*/
|
|
19
|
-
initialState?: any;
|
|
20
16
|
/**
|
|
21
17
|
* 表格的扩展操作 Ref,传入后可以联动数据表格的 Loading 状态
|
|
22
18
|
*/
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Context } from 'react';
|
|
2
|
+
import { RbGlobalStateType } from "../../../services/types/commonType";
|
|
1
3
|
/**
|
|
2
4
|
* 全局状态上下文
|
|
3
5
|
*/
|
|
4
|
-
export declare const
|
|
6
|
+
export declare const RbGlobalContext: Context<RbGlobalStateType>;
|
|
5
7
|
/**
|
|
6
8
|
* 全局状态Hook
|
|
7
9
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RbInitialStateRespProps } from "
|
|
1
|
+
import { RbInitialStateRespProps } from "../../../../services/types/commonType";
|
|
2
2
|
/**
|
|
3
3
|
* Rb 授权组件属性
|
|
4
4
|
*/
|
|
@@ -10,18 +10,10 @@ export type RbAuthFrameProps = {
|
|
|
10
10
|
* @param state 路由参数
|
|
11
11
|
*/
|
|
12
12
|
onFinish: (to: string, state: any) => void;
|
|
13
|
-
/**
|
|
14
|
-
* 全局初始化状态
|
|
15
|
-
*/
|
|
16
|
-
initialState: RbInitialStateRespProps;
|
|
17
13
|
/**
|
|
18
14
|
* 设置全局初始化状态
|
|
19
15
|
*/
|
|
20
16
|
setInitialState: (initialState: RbInitialStateRespProps) => void;
|
|
21
|
-
/**
|
|
22
|
-
* 国际化
|
|
23
|
-
*/
|
|
24
|
-
intl: any;
|
|
25
17
|
/**
|
|
26
18
|
* 查询路由参数
|
|
27
19
|
*/
|
|
@@ -1,78 +1,5 @@
|
|
|
1
|
-
import type { Settings as LayoutSettings } from '@ant-design/pro-components';
|
|
2
1
|
import React from "react";
|
|
3
|
-
import {
|
|
4
|
-
/**
|
|
5
|
-
* 全局初始化状态相请求参数
|
|
6
|
-
*/
|
|
7
|
-
export type RbInitialStateReqProps = {
|
|
8
|
-
/**
|
|
9
|
-
* 当前国际化语言
|
|
10
|
-
*/
|
|
11
|
-
locale: string;
|
|
12
|
-
/**
|
|
13
|
-
* 路由
|
|
14
|
-
*/
|
|
15
|
-
history: any;
|
|
16
|
-
/**
|
|
17
|
-
* 默认配置
|
|
18
|
-
*/
|
|
19
|
-
defaultSettings: Partial<LayoutSettings>;
|
|
20
|
-
/**
|
|
21
|
-
* 登录加载路径
|
|
22
|
-
*/
|
|
23
|
-
loginLoadPath: string;
|
|
24
|
-
/**
|
|
25
|
-
* 获取用户初始化详情
|
|
26
|
-
*
|
|
27
|
-
* @param options 参数
|
|
28
|
-
*/
|
|
29
|
-
getUserInitDetail: (options?: {
|
|
30
|
-
[p: string]: any;
|
|
31
|
-
}) => Promise<any>;
|
|
32
|
-
/**
|
|
33
|
-
* 获取当前主题详情
|
|
34
|
-
*
|
|
35
|
-
* @param options 参数
|
|
36
|
-
*/
|
|
37
|
-
getCurrentThemeDetail: (options?: {
|
|
38
|
-
[p: string]: any;
|
|
39
|
-
}) => Promise<any>;
|
|
40
|
-
/**
|
|
41
|
-
* 获取头像预览URL方法
|
|
42
|
-
*
|
|
43
|
-
* @param guid 头像文件主键ID
|
|
44
|
-
*/
|
|
45
|
-
getPreviewUrl: (guid: any) => null | string;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* 全局初始化状态相响应参数
|
|
49
|
-
*/
|
|
50
|
-
export type RbInitialStateRespProps = {
|
|
51
|
-
/**
|
|
52
|
-
* 配置信息
|
|
53
|
-
*/
|
|
54
|
-
settings?: Partial<LayoutSettings>;
|
|
55
|
-
/**
|
|
56
|
-
* 当前用户信息
|
|
57
|
-
*/
|
|
58
|
-
currentUser?: RbCurrentUser;
|
|
59
|
-
/**
|
|
60
|
-
* 当前主题信息
|
|
61
|
-
*/
|
|
62
|
-
currentTheme?: RbCurrentTheme;
|
|
63
|
-
/**
|
|
64
|
-
* 加载状态
|
|
65
|
-
*/
|
|
66
|
-
loading?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* 触发远程用户信息的方法
|
|
69
|
-
*/
|
|
70
|
-
fetchUserInfo: () => Promise<RbCurrentUser>;
|
|
71
|
-
/**
|
|
72
|
-
* 触发远程主题信息的方法
|
|
73
|
-
*/
|
|
74
|
-
fetchThemeInfo: () => Promise<RbCurrentTheme>;
|
|
75
|
-
};
|
|
2
|
+
import { RbGlobalStateType, RbInitialStateRespProps } from "../../../services/types/commonType";
|
|
76
3
|
/**
|
|
77
4
|
* 应用布局属性
|
|
78
5
|
*/
|
|
@@ -89,10 +16,6 @@ export type RbAppLayoutProps = {
|
|
|
89
16
|
* 客户端ID
|
|
90
17
|
*/
|
|
91
18
|
clientId: string;
|
|
92
|
-
/**
|
|
93
|
-
* 全局初始化状态
|
|
94
|
-
*/
|
|
95
|
-
initialState: RbInitialStateRespProps;
|
|
96
19
|
/**
|
|
97
20
|
* 设置全局初始化状态
|
|
98
21
|
*/
|
|
@@ -115,4 +38,4 @@ export type RbAppLayoutProps = {
|
|
|
115
38
|
* 头像下拉
|
|
116
39
|
*/
|
|
117
40
|
avatarDropdown: React.ReactNode;
|
|
118
|
-
};
|
|
41
|
+
} & RbGlobalStateType;
|
package/build/index.d.ts
CHANGED
|
@@ -28,13 +28,13 @@ import { RbMarkdownEditorProps } from "./components/DataEntry/MarkdownEditor/typ
|
|
|
28
28
|
import RbSingleImageUploader from "./components/DataEntry/Uploader/SingleImageUploader";
|
|
29
29
|
import { RbSingleImageUploaderProps } from "./components/DataEntry/Uploader/SingleImageUploader/type";
|
|
30
30
|
import { getRbInitialState, getRbAppLayout } from "./components/PageLayout/AppLayout";
|
|
31
|
-
import {
|
|
31
|
+
import { RbAppLayoutProps } from "./components/PageLayout/AppLayout/type";
|
|
32
32
|
import { RbCurrentUser, RbCurrentTheme } from "./components/PageLayout/AppLayout/interface";
|
|
33
33
|
import RbAuthFrame from "./components/Other/LoginLoad/AuthFrame";
|
|
34
34
|
import { RbAuthFrameProps } from "./components/Other/LoginLoad/AuthFrame/type";
|
|
35
35
|
import RbBindFrame from "./components/Other/LoginLoad/BindFrame";
|
|
36
36
|
import { RbBindFrameProps } from "./components/Other/LoginLoad/BindFrame/type";
|
|
37
|
-
import {
|
|
37
|
+
import { RbGlobalContext } from "./components/Other/GlobalContext";
|
|
38
38
|
import DbUtil from "./services/utils/dbUtil";
|
|
39
39
|
import ObjectUtil from "./services/utils/objectUtil";
|
|
40
40
|
import EventUtil from "./services/utils/eventUtil";
|
|
@@ -53,7 +53,7 @@ import StorageEnum from "./services/enums/storageEnum";
|
|
|
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 } from "./services/types/commonType";
|
|
56
|
+
import { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateRespProps, RbInitialStateReqProps, RbGlobalStateType } 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";
|
|
@@ -85,18 +85,18 @@ export type { RbPageContainerProps };
|
|
|
85
85
|
export { RbHomePage };
|
|
86
86
|
export type { RbHomePageProps };
|
|
87
87
|
export { getRbInitialState, getRbAppLayout };
|
|
88
|
-
export type {
|
|
88
|
+
export type { RbAppLayoutProps };
|
|
89
89
|
export { RbCurrentUser, RbCurrentTheme };
|
|
90
90
|
export { RbActionBarItem, RbActionBar };
|
|
91
91
|
export type { RbActionBarItemProps, RbActionBarProps };
|
|
92
92
|
export { RbThemeSetter };
|
|
93
93
|
export { RbAuthFrame, RbBindFrame };
|
|
94
94
|
export type { RbAuthFrameProps, RbBindFrameProps };
|
|
95
|
-
export {
|
|
95
|
+
export { RbGlobalContext };
|
|
96
96
|
export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil, RenderUtil, StringUtil, NumberUtil, RandomUtil, UnicodeUtil, UploadUtil, RequestUtil, DictUtil };
|
|
97
97
|
export { EventEnum, StorageEnum };
|
|
98
98
|
export { CommonConstant, IconConstant, DbConstant };
|
|
99
|
-
export { RespDTO, ConstantListItem, DictListItem, PageParams };
|
|
99
|
+
export { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType };
|
|
100
100
|
export { BaseDO, BaseRelativeDO, TokenDO };
|
|
101
101
|
export { zhCN, enUS };
|
|
102
102
|
declare const _default: {
|
|
@@ -121,6 +121,6 @@ declare const _default: {
|
|
|
121
121
|
RbSingleImageUploader: React.FC<RbSingleImageUploaderProps>;
|
|
122
122
|
RbAuthFrame: React.FC<RbAuthFrameProps>;
|
|
123
123
|
RbBindFrame: React.FC<RbBindFrameProps>;
|
|
124
|
-
|
|
124
|
+
RbGlobalContext: Context<RbGlobalStateType>;
|
|
125
125
|
};
|
|
126
126
|
export default _default;
|