@regenbio/regenbio-components-react 1.4.8 → 1.4.10
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/LazyFrame/index.d.ts +9 -0
- package/build/components/DataDisplay/LazyFrame/type.d.ts +22 -0
- package/build/components/DataDisplay/PdfDrawer/{hooks/usePdfDrawer.d.ts → hook.d.ts} +2 -4
- package/build/components/DataDisplay/PdfDrawer/index.d.ts +2 -8
- package/build/components/DataDisplay/PdfDrawer/type.d.ts +0 -21
- package/build/index.d.ts +0 -6
- package/build/index.js +3 -3
- package/build/index.js.LICENSE.txt +0 -22
- package/build/locales/en-US.d.ts +10 -0
- package/build/locales/zh-CN.d.ts +10 -0
- package/package.json +1 -1
- /package/build/components/DataDisplay/{PdfDrawer/hooks/useLazyFrame.d.ts → LazyFrame/hook.d.ts} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* 懒加载模块属性
|
|
4
|
+
*/
|
|
5
|
+
export type RbLazyFrameProps = {
|
|
6
|
+
/**
|
|
7
|
+
* 唯一键
|
|
8
|
+
*/
|
|
9
|
+
key: string;
|
|
10
|
+
/**
|
|
11
|
+
* ID
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* 样式
|
|
16
|
+
*/
|
|
17
|
+
style: React.CSSProperties;
|
|
18
|
+
/**
|
|
19
|
+
* 子节点
|
|
20
|
+
*/
|
|
21
|
+
children: React.ReactNode | React.ReactNode[];
|
|
22
|
+
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { RbLazyFrameProps, RbPdfDrawerProps } from "../type";
|
|
1
|
+
import { RbPdfDrawerProps } from "./type";
|
|
3
2
|
/**
|
|
4
3
|
* PDF抽屉Hook
|
|
5
4
|
*
|
|
6
5
|
* @param props 属性
|
|
7
|
-
* @param LazyFrame 懒加载模块
|
|
8
6
|
*/
|
|
9
|
-
declare const useRbPdfDrawer: (props: RbPdfDrawerProps
|
|
7
|
+
declare const useRbPdfDrawer: (props: RbPdfDrawerProps) => {
|
|
10
8
|
setOrderType: any;
|
|
11
9
|
setPageNum: any;
|
|
12
10
|
setPdfDoc: any;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
|
|
3
3
|
import 'react-pdf/dist/esm/Page/TextLayer.css';
|
|
4
|
-
import {
|
|
5
|
-
/**
|
|
6
|
-
* 懒加载模块
|
|
7
|
-
*
|
|
8
|
-
* @constructor
|
|
9
|
-
*/
|
|
10
|
-
declare const RbLazyFrame: React.FC<RbLazyFrameProps>;
|
|
4
|
+
import { RbPdfDrawerProps } from "./type";
|
|
11
5
|
/**
|
|
12
6
|
* PDF模态框
|
|
13
7
|
*
|
|
14
8
|
* @constructor
|
|
15
9
|
*/
|
|
16
10
|
declare const RbPdfDrawer: React.FC<RbPdfDrawerProps>;
|
|
17
|
-
export
|
|
11
|
+
export default RbPdfDrawer;
|
|
@@ -34,24 +34,3 @@ export type RbPdfDrawerProps = {
|
|
|
34
34
|
*/
|
|
35
35
|
downloadUrl: (guid: string) => null | string;
|
|
36
36
|
};
|
|
37
|
-
/**
|
|
38
|
-
* 懒加载模块属性
|
|
39
|
-
*/
|
|
40
|
-
export type RbLazyFrameProps = {
|
|
41
|
-
/**
|
|
42
|
-
* 唯一键
|
|
43
|
-
*/
|
|
44
|
-
key: string;
|
|
45
|
-
/**
|
|
46
|
-
* ID
|
|
47
|
-
*/
|
|
48
|
-
id: string;
|
|
49
|
-
/**
|
|
50
|
-
* 样式
|
|
51
|
-
*/
|
|
52
|
-
style: React.CSSProperties;
|
|
53
|
-
/**
|
|
54
|
-
* 子节点
|
|
55
|
-
*/
|
|
56
|
-
children: React.ReactNode | React.ReactNode[];
|
|
57
|
-
};
|
package/build/index.d.ts
CHANGED
|
@@ -33,8 +33,6 @@ import { RbCurrentUser, RbCurrentTheme } from "./components/PageLayout/AppLayout
|
|
|
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
|
-
import { RbPdfDrawerProps, RbLazyFrameProps } from "./components/DataDisplay/PdfDrawer/type";
|
|
37
|
-
import { RbLazyFrame, RbPdfDrawer } from "./components/DataDisplay/PdfDrawer/index";
|
|
38
36
|
import { RbBindFrameProps } from "./components/Other/LoginLoad/BindFrame/type";
|
|
39
37
|
import { RbGlobalContext, useGlobalState } from "./components/Other/GlobalContext";
|
|
40
38
|
import DbUtil from "./services/utils/dbUtil";
|
|
@@ -77,8 +75,6 @@ export { RbHtmlRender };
|
|
|
77
75
|
export type { RbHtmlRenderProps };
|
|
78
76
|
export { RbDragTable };
|
|
79
77
|
export type { RbDragTableProps };
|
|
80
|
-
export { RbLazyFrame, RbPdfDrawer };
|
|
81
|
-
export type { RbPdfDrawerProps, RbLazyFrameProps };
|
|
82
78
|
export { RbUserSelector };
|
|
83
79
|
export type { RbUserSelectorProps };
|
|
84
80
|
export { RbAttachmentText };
|
|
@@ -130,7 +126,5 @@ declare const _default: {
|
|
|
130
126
|
RbAuthFrame: React.FC<RbAuthFrameProps>;
|
|
131
127
|
RbBindFrame: React.FC<RbBindFrameProps>;
|
|
132
128
|
RbGlobalContext: Context<RbGlobalStateType>;
|
|
133
|
-
RbLazyFrame: React.FC<RbLazyFrameProps>;
|
|
134
|
-
RbPdfDrawer: React.FC<RbPdfDrawerProps>;
|
|
135
129
|
};
|
|
136
130
|
export default _default;
|