@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.
@@ -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>) => any;
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,4 @@
1
+ declare const _default: {
2
+ 'components.data-table.pagination.total': string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ 'components.data-table.pagination.total': string;
3
+ };
4
+ export default _default;
@@ -100,4 +100,8 @@ export type RbDataTableProps<DataSource, U, ValueType = 'text'> = {
100
100
  * 粘性布局
101
101
  */
102
102
  sticky?: boolean | TableSticky;
103
+ /**
104
+ * 国际化
105
+ */
106
+ intl: any;
103
107
  };
@@ -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/data-table/index";
2
- import { RbActionType, RbDataTableProps } from "./components/data-table/type";
3
- import DbUtil from "./services/utils/DbUtil";
4
- import ObjectUtil from "./services/utils/ObjectUtil";
5
- import Test from "./Test";
6
- export * from "./components/data-table";
7
- /**
8
- * 组件
9
- */
10
- export { RbDataTable, Test };
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>) => any;
21
- Test: () => any;
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;