@regenbio/regenbio-components-react 1.3.74 → 1.3.76
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/FileTag/index.d.ts +9 -2
- package/build/components/DataDisplay/UserCard/index.d.ts +9 -2
- package/build/components/PageLayout/AppLayout/type.d.ts +1 -1
- package/build/components/PageLayout/RouteWrapper/hook.d.ts +9 -0
- package/build/components/PageLayout/{HomePage → RouteWrapper}/index.d.ts +4 -4
- package/build/components/PageLayout/{HomePage → RouteWrapper}/type.d.ts +2 -2
- package/build/index.d.ts +7 -7
- package/build/index.js +3 -3
- package/package.json +1 -1
- package/build/components/PageLayout/HomePage/hook.d.ts +0 -9
|
@@ -40,5 +40,5 @@ export type RbAppLayoutProps = {
|
|
|
40
40
|
* 子节点渲染方法
|
|
41
41
|
* @param children 子节点
|
|
42
42
|
*/
|
|
43
|
-
childrenRender?: (children: React.ReactNode | React.ReactNode[]) => React.ReactNode | React.ReactNode[];
|
|
43
|
+
childrenRender?: (children: React.ReactNode | React.ReactNode[], messageHolder: React.ReactElement, notificationHolder: React.ReactElement, globalState: RbGlobalStateType) => React.ReactNode | React.ReactNode[];
|
|
44
44
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { RbRouteWrapperProps } from "./type";
|
|
3
3
|
/**
|
|
4
|
-
* RB
|
|
4
|
+
* RB 路由构造(layout mix布局下)
|
|
5
5
|
* 1. 直接给一级菜单设置component会导致其下二级菜单都无法正常展示
|
|
6
6
|
* 2. 使用redirect重定向到其下的二级菜单会产生循环导致溢出
|
|
7
7
|
* 故使用独立组件处理
|
|
8
8
|
*
|
|
9
9
|
* @constructor
|
|
10
10
|
*/
|
|
11
|
-
declare const
|
|
12
|
-
export default
|
|
11
|
+
declare const RbRouteWrapper: React.FC<RbRouteWrapperProps>;
|
|
12
|
+
export default RbRouteWrapper;
|
package/build/index.d.ts
CHANGED
|
@@ -21,8 +21,8 @@ import RbAttachmentText from "./components/DataEntry/AttachmentText";
|
|
|
21
21
|
import { RbAttachmentTextProps } from "./components/DataEntry/AttachmentText/type";
|
|
22
22
|
import RbPageContainer from "./components/PageLayout/PageContainer";
|
|
23
23
|
import { RbPageContainerProps } from "./components/PageLayout/PageContainer/type";
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
24
|
+
import RbRouteWrapper from "./components/PageLayout/RouteWrapper";
|
|
25
|
+
import { RbRouteWrapperProps } from "./components/PageLayout/RouteWrapper/type";
|
|
26
26
|
import { RbMarkdownEditor, RbMarkdownConverter } from "./components/DataEntry/MarkdownEditor";
|
|
27
27
|
import { RbMarkdownEditorProps } from "./components/DataEntry/MarkdownEditor/type";
|
|
28
28
|
import RbSingleImageUploader from "./components/DataEntry/Uploader/SingleImageUploader";
|
|
@@ -84,8 +84,8 @@ export { RbSingleImageUploader };
|
|
|
84
84
|
export type { RbSingleImageUploaderProps };
|
|
85
85
|
export { RbPageContainer };
|
|
86
86
|
export type { RbPageContainerProps };
|
|
87
|
-
export {
|
|
88
|
-
export type {
|
|
87
|
+
export { RbRouteWrapper };
|
|
88
|
+
export type { RbRouteWrapperProps };
|
|
89
89
|
export { getRbInitialState, getRbAppLayout };
|
|
90
90
|
export type { RbAppLayoutProps };
|
|
91
91
|
export { RbCurrentUser, RbCurrentTheme };
|
|
@@ -108,8 +108,8 @@ declare const _default: {
|
|
|
108
108
|
RbActionBar: React.FC<RbActionBarProps>;
|
|
109
109
|
RbThemeSetter: React.FC<import("./components/Other/ThemeSetter/type").RbThemeProps>;
|
|
110
110
|
RbDataChart: React.FC<RbDataChartProps>;
|
|
111
|
-
RbFileTag:
|
|
112
|
-
RbUserCard:
|
|
111
|
+
RbFileTag: React.FC<RbFileTagProps>;
|
|
112
|
+
RbUserCard: React.FC<RbUserCardProps>;
|
|
113
113
|
RbIconRender: any;
|
|
114
114
|
RbHtmlRender: React.FC<RbHtmlRenderProps>;
|
|
115
115
|
RbDragTable: <DataSource, U, ValueType = "text">(props: RbDragTableProps<DataSource, U, ValueType>) => any;
|
|
@@ -118,7 +118,7 @@ declare const _default: {
|
|
|
118
118
|
};
|
|
119
119
|
RbAttachmentText: React.FC<RbAttachmentTextProps>;
|
|
120
120
|
RbPageContainer: React.FC<RbPageContainerProps>;
|
|
121
|
-
|
|
121
|
+
RbRouteWrapper: React.FC<RbRouteWrapperProps>;
|
|
122
122
|
RbMarkdownConverter: import("showdown").Converter;
|
|
123
123
|
RbMarkdownEditor: React.FC<RbMarkdownEditorProps>;
|
|
124
124
|
RbSingleImageUploader: React.FC<RbSingleImageUploaderProps>;
|