@regenbio/regenbio-components-react 1.3.53 → 1.3.55

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.
@@ -23,6 +23,5 @@ declare const useDataTable: <DataSource, U, ValueType>(props: RbDataTableProps<D
23
23
  columns: ProColumns<DataSource, ValueType>[];
24
24
  dataLength: number;
25
25
  intl: any;
26
- scroll: HTMLElement;
27
26
  };
28
27
  export default useDataTable;
@@ -7,8 +7,6 @@ declare const usePageContainer: (props: RbPageContainerProps) => {
7
7
  mode: "light" | "realDark";
8
8
  loading: boolean;
9
9
  headerHeight: number;
10
- scrollRef: import("react").RefObject<any>;
11
- scrollElement: HTMLElement;
12
10
  initialState: import("../../..").RbInitialStateRespProps;
13
11
  };
14
12
  export default usePageContainer;
@@ -1,13 +1,5 @@
1
- import React, { Context } from 'react';
2
- import { RbContainerStateProps, RbPageContainerProps } from "./type";
3
- /**
4
- * 容器状态上下文
5
- */
6
- declare const RbContainerContext: Context<RbContainerStateProps>;
7
- /**
8
- * 容器状态Hook
9
- */
10
- declare const useContainerState: () => RbContainerStateProps;
1
+ import React from 'react';
2
+ import { RbPageContainerProps } from "./type";
11
3
  /**
12
4
  * RB 页面容器
13
5
  *
@@ -15,4 +7,4 @@ declare const useContainerState: () => RbContainerStateProps;
15
7
  * @constructor
16
8
  */
17
9
  declare const RbPageContainer: React.FC<RbPageContainerProps>;
18
- export { RbPageContainer, useContainerState, RbContainerContext };
10
+ export default RbPageContainer;
@@ -1,4 +1,6 @@
1
1
  import { PageContainerProps } from "@ant-design/pro-layout/es/components/PageContainer";
2
+ import { Ref } from "react";
3
+ import { Scrollbars } from "react-custom-scrollbars";
2
4
  /**
3
5
  * 页面容器属性
4
6
  */
@@ -15,6 +17,10 @@ export type RbPageContainerProps = {
15
17
  * 是否在动画期间控制为Load(影响子节点展示)
16
18
  */
17
19
  loadDuringAnimate?: boolean;
20
+ /**
21
+ * 滚动条Ref
22
+ */
23
+ scrollRef?: Ref<Scrollbars>;
18
24
  } & PageContainerProps;
19
25
  /**
20
26
  * 容器状态属性
package/build/index.d.ts CHANGED
@@ -19,7 +19,7 @@ import RbUserSelector from "./components/DataEntry/UserSelector";
19
19
  import { RbUserSelectorProps } from "./components/DataEntry/UserSelector/type";
20
20
  import RbAttachmentText from "./components/DataEntry/AttachmentText";
21
21
  import { RbAttachmentTextProps } from "./components/DataEntry/AttachmentText/type";
22
- import { RbPageContainer, RbContainerContext } from "./components/PageLayout/PageContainer";
22
+ import RbPageContainer from "./components/PageLayout/PageContainer";
23
23
  import { RbPageContainerProps, RbContainerStateProps } from "./components/PageLayout/PageContainer/type";
24
24
  import RbHomePage from "./components/PageLayout/HomePage";
25
25
  import { RbHomePageProps } from "./components/PageLayout/HomePage/type";
@@ -83,7 +83,7 @@ export { RbMarkdownConverter, RbMarkdownEditor };
83
83
  export type { RbMarkdownEditorProps };
84
84
  export { RbSingleImageUploader };
85
85
  export type { RbSingleImageUploaderProps };
86
- export { RbPageContainer, RbContainerContext };
86
+ export { RbPageContainer };
87
87
  export type { RbPageContainerProps, RbContainerStateProps };
88
88
  export { RbHomePage };
89
89
  export type { RbHomePageProps };
@@ -126,6 +126,5 @@ declare const _default: {
126
126
  RbAuthFrame: import("react").FC<RbAuthFrameProps>;
127
127
  RbBindFrame: import("react").FC<RbBindFrameProps>;
128
128
  RbGlobalContext: import("react").Context<RbGlobalStateType>;
129
- RbContainerContext: import("react").Context<RbContainerStateProps>;
130
129
  };
131
130
  export default _default;