@regenbio/regenbio-components-react 1.0.8 → 1.0.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/{data-table → DataTable}/index.d.ts +1 -1
- package/build/components/DataTable/locales/en-US.d.ts +4 -0
- package/build/components/DataTable/locales/zh-CN.d.ts +4 -0
- package/build/components/{data-table → DataTable}/type.d.ts +4 -0
- package/build/components/PdfPreviewer/index.d.ts +12 -0
- package/build/components/PdfPreviewer/locales/en-US.d.ts +13 -0
- package/build/components/PdfPreviewer/locales/zh-CN.d.ts +13 -0
- package/build/components/PdfPreviewer/type.d.ts +30 -0
- package/build/index.d.ts +18 -19
- package/build/index.js +2 -2
- package/build/index.js.LICENSE.txt +34 -0
- package/build/locales/en-US.d.ts +4 -0
- package/build/locales/zh-CN.d.ts +4 -0
- package/package.json +9 -5
- package/build/Test.d.ts +0 -2
- /package/build/components/{data-table → DataTable}/constant.d.ts +0 -0
- /package/build/services/utils/{DbUtil.d.ts → dbUtil.d.ts} +0 -0
- /package/build/services/utils/{ObjectUtil.d.ts → objectUtil.d.ts} +0 -0
|
@@ -4,5 +4,5 @@ import { RbDataTableProps } from "./type";
|
|
|
4
4
|
* @param props 参数配置
|
|
5
5
|
* @constructor
|
|
6
6
|
*/
|
|
7
|
-
declare const RbDataTable: <DataSource, U, ValueType = "text">(props: RbDataTableProps<DataSource, U, ValueType>) =>
|
|
7
|
+
declare const RbDataTable: <DataSource, U, ValueType = "text">(props: RbDataTableProps<DataSource, U, ValueType>) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default RbDataTable;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
|
|
3
|
+
import 'react-pdf/dist/esm/Page/TextLayer.css';
|
|
4
|
+
import { RbPdfPreviewerProps } from "./type";
|
|
5
|
+
/**
|
|
6
|
+
* PDF预览器
|
|
7
|
+
*
|
|
8
|
+
* @param props 参数配置
|
|
9
|
+
* @constructor
|
|
10
|
+
*/
|
|
11
|
+
declare const RbPdfPreviewer: React.FC<RbPdfPreviewerProps>;
|
|
12
|
+
export default RbPdfPreviewer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'components.pdf-previewer.error.load-pdf': string;
|
|
3
|
+
'components.pdf-modal.operation.exit': string;
|
|
4
|
+
'components.pdf-modal.operation.download': string;
|
|
5
|
+
'components.pdf-modal.operation.view': string;
|
|
6
|
+
'components.pdf-modal.operation.order': string;
|
|
7
|
+
'components.pdf-modal.operation.zoom-in': string;
|
|
8
|
+
'components.pdf-modal.operation.zoom-out': string;
|
|
9
|
+
'components.pdf-modal.operation.next-page': string;
|
|
10
|
+
'components.pdf-modal.operation.last-page': string;
|
|
11
|
+
'components.pdf-modal.operation.sidebar': string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'components.pdf-previewer.error.load-pdf': string;
|
|
3
|
+
'components.pdf-modal.operation.exit': string;
|
|
4
|
+
'components.pdf-modal.operation.download': string;
|
|
5
|
+
'components.pdf-modal.operation.view': string;
|
|
6
|
+
'components.pdf-modal.operation.order': string;
|
|
7
|
+
'components.pdf-modal.operation.zoom-in': string;
|
|
8
|
+
'components.pdf-modal.operation.zoom-out': string;
|
|
9
|
+
'components.pdf-modal.operation.next-page': string;
|
|
10
|
+
'components.pdf-modal.operation.last-page': string;
|
|
11
|
+
'components.pdf-modal.operation.sidebar': string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* PDF预览器属性
|
|
4
|
+
*/
|
|
5
|
+
export type RbPdfPreviewerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* 文件名
|
|
8
|
+
*/
|
|
9
|
+
fileName?: string;
|
|
10
|
+
/**
|
|
11
|
+
* PDF地址
|
|
12
|
+
*/
|
|
13
|
+
url?: null | string;
|
|
14
|
+
/**
|
|
15
|
+
* 取消回调
|
|
16
|
+
*/
|
|
17
|
+
onCancel: ((e: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* 展示状态
|
|
20
|
+
*/
|
|
21
|
+
showStatus: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 层级
|
|
24
|
+
*/
|
|
25
|
+
zIndex?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 国际化
|
|
28
|
+
*/
|
|
29
|
+
intl: any;
|
|
30
|
+
};
|
package/build/index.d.ts
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import RbDataTable from "./components/
|
|
2
|
-
import
|
|
3
|
-
import DbUtil from "./services/utils/
|
|
4
|
-
import ObjectUtil from "./services/utils/
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
|
|
14
|
-
export type { RbActionType, RbDataTableProps };
|
|
15
|
-
/**
|
|
16
|
-
* 工具方法
|
|
17
|
-
*/
|
|
1
|
+
import RbDataTable from "./components/DataTable/index";
|
|
2
|
+
import RbPdfPreviewer from "./components/PdfPreviewer/index";
|
|
3
|
+
import DbUtil from "./services/utils/dbUtil";
|
|
4
|
+
import ObjectUtil from "./services/utils/objectUtil";
|
|
5
|
+
import zhCN from "./locales/zh-CN";
|
|
6
|
+
import enUS from "./locales/en-US";
|
|
7
|
+
export * from "./components/DataTable";
|
|
8
|
+
export * from "./components/PdfPreviewer";
|
|
9
|
+
export { RbDataTable, RbPdfPreviewer };
|
|
10
|
+
export type * from "./components/DataTable/type";
|
|
11
|
+
export type * from "./components/PdfPreviewer/type";
|
|
12
|
+
export * from "./services/utils/dbUtil";
|
|
13
|
+
export * from "./services/utils/objectUtil";
|
|
18
14
|
export { DbUtil, ObjectUtil };
|
|
15
|
+
export * from "./locales/zh-CN";
|
|
16
|
+
export * from "./locales/en-US";
|
|
17
|
+
export { zhCN, enUS };
|
|
19
18
|
declare const _default: {
|
|
20
|
-
RbDataTable: <DataSource, U, ValueType = "text">(props: RbDataTableProps<DataSource, U, ValueType>) =>
|
|
21
|
-
|
|
19
|
+
RbDataTable: <DataSource, U, ValueType = "text">(props: import("./components/DataTable/type").RbDataTableProps<DataSource, U, ValueType>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
RbPdfPreviewer: import("react").FC<import("./components/PdfPreviewer/type").RbPdfPreviewerProps>;
|
|
22
21
|
};
|
|
23
22
|
export default _default;
|