@regenbio/regenbio-components-react 1.3.51 → 1.3.52

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,6 @@ declare const useDataTable: <DataSource, U, ValueType>(props: RbDataTableProps<D
23
23
  columns: ProColumns<DataSource, ValueType>[];
24
24
  dataLength: number;
25
25
  intl: any;
26
- containerScroll: HTMLElement;
26
+ scroll: HTMLElement;
27
27
  };
28
28
  export default useDataTable;
@@ -6,5 +6,9 @@ import { RbPageContainerProps } from "./type";
6
6
  declare const usePageContainer: (props: RbPageContainerProps) => {
7
7
  mode: "light" | "realDark";
8
8
  loading: boolean;
9
+ headerHeight: number;
10
+ scrollRef: import("react").RefObject<any>;
11
+ scrollElement: HTMLElement;
12
+ initialState: import("../../..").RbInitialStateRespProps;
9
13
  };
10
14
  export default usePageContainer;
@@ -1,5 +1,13 @@
1
- import React from 'react';
2
- import { RbPageContainerProps } from "./type";
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;
3
11
  /**
4
12
  * RB 页面容器
5
13
  *
@@ -7,4 +15,4 @@ import { RbPageContainerProps } from "./type";
7
15
  * @constructor
8
16
  */
9
17
  declare const RbPageContainer: React.FC<RbPageContainerProps>;
10
- export default RbPageContainer;
18
+ export { RbPageContainer, useContainerState, RbContainerContext };
@@ -16,3 +16,12 @@ export type RbPageContainerProps = {
16
16
  */
17
17
  loadDuringAnimate?: boolean;
18
18
  } & PageContainerProps;
19
+ /**
20
+ * 容器状态属性
21
+ */
22
+ export type RbContainerStateProps = {
23
+ /**
24
+ * 滚动条Ref
25
+ */
26
+ scroll?: HTMLElement;
27
+ };
package/build/index.d.ts CHANGED
@@ -19,8 +19,8 @@ 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 from "./components/PageLayout/PageContainer";
23
- import { RbPageContainerProps } from "./components/PageLayout/PageContainer/type";
22
+ import { RbPageContainer, RbContainerContext } from "./components/PageLayout/PageContainer";
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";
26
26
  import { RbMarkdownEditor, RbMarkdownConverter } from "./components/DataEntry/MarkdownEditor";
@@ -83,8 +83,8 @@ export { RbMarkdownConverter, RbMarkdownEditor };
83
83
  export type { RbMarkdownEditorProps };
84
84
  export { RbSingleImageUploader };
85
85
  export type { RbSingleImageUploaderProps };
86
- export { RbPageContainer };
87
- export type { RbPageContainerProps };
86
+ export { RbPageContainer, RbContainerContext };
87
+ export type { RbPageContainerProps, RbContainerStateProps };
88
88
  export { RbHomePage };
89
89
  export type { RbHomePageProps };
90
90
  export { getRbInitialState, getRbAppLayout };
@@ -126,5 +126,6 @@ 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>;
129
130
  };
130
131
  export default _default;