@regenbio/regenbio-components-react 1.2.9 → 1.2.11

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.
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { RbHtmlRenderProps } from "./type";
3
+ /**
4
+ * RB HTML 渲染器
5
+ *
6
+ * @param props 配置参数
7
+ * @constructor
8
+ */
9
+ declare const RbHtmlRender: React.FC<RbHtmlRenderProps>;
10
+ export default RbHtmlRender;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * HTML 渲染器属性
3
+ */
4
+ export type RbHtmlRenderProps = {
5
+ /**
6
+ * 高度
7
+ */
8
+ height?: string | number;
9
+ /**
10
+ * 内容
11
+ */
12
+ content?: string;
13
+ };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { RbPageContainerProps } from "./type";
3
+ /**
4
+ * RB 页面容器
5
+ *
6
+ * @param props 配置参数
7
+ * @constructor
8
+ */
9
+ declare const RbPageContainer: React.FC<RbPageContainerProps>;
10
+ export default RbPageContainer;
@@ -0,0 +1,16 @@
1
+ import { PageContainerProps } from "@ant-design/pro-layout/es/components/PageContainer";
2
+ /**
3
+ * 容器参数
4
+ */
5
+ export type RbPageContainerProps = {
6
+ /**
7
+ * 宽度改变回调
8
+ *
9
+ * @param width 宽度
10
+ */
11
+ onResize?: (width: any) => void;
12
+ /**
13
+ * 水印内容
14
+ */
15
+ watermark?: string | string[];
16
+ } & PageContainerProps;
package/build/index.d.ts CHANGED
@@ -13,6 +13,10 @@ import RbUserCard from "./components/UserCard";
13
13
  import { RbUserCardProps } from "./components/UserCard/type";
14
14
  import RbIconRender from "./components/IconRender";
15
15
  import { RbIconRenderProps } from "./components/IconRender/type";
16
+ import RbHtmlRender from "./components/HtmlRender";
17
+ import { RbHtmlRenderProps } from "./components/HtmlRender/type";
18
+ import RbPageContainer from "./components/PageContainer";
19
+ import { RbPageContainerProps } from "./components/PageContainer/type";
16
20
  import DbUtil from "./services/utils/dbUtil";
17
21
  import ObjectUtil from "./services/utils/objectUtil";
18
22
  import EventUtil from "./services/utils/eventUtil";
@@ -21,9 +25,9 @@ import ResourceUtil from "./services/utils/resourceUtil";
21
25
  import RenderUtil from "./services/utils/renderUtil";
22
26
  import EventEnum from "./services/enums/eventEnum";
23
27
  import StorageEnum from "./services/enums/storageEnum";
24
- import CommonConstant from "@/constants/commonConstant";
25
- import IconConstant from "@/constants/iconConstant";
26
- import { RespDTO, ConstantListItem } from "@/types/commonType";
28
+ import CommonConstant from "./services/constants/commonConstant";
29
+ import IconConstant from "./services/constants/iconConstant";
30
+ import { RespDTO, ConstantListItem } from "./services/types/commonType";
27
31
  import zhCN from "./locales/zh-CN";
28
32
  import enUS from "./locales/en-US";
29
33
  export { RbDataTable };
@@ -41,6 +45,10 @@ export { RbUserCard };
41
45
  export type { RbUserCardProps };
42
46
  export { RbIconRender };
43
47
  export type { RbIconRenderProps };
48
+ export { RbHtmlRender };
49
+ export type { RbHtmlRenderProps };
50
+ export { RbPageContainer };
51
+ export type { RbPageContainerProps };
44
52
  export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil, RenderUtil };
45
53
  export { EventEnum, StorageEnum };
46
54
  export { CommonConstant, IconConstant };
@@ -56,5 +64,6 @@ declare const _default: {
56
64
  RbFileTag: React.FC<RbFileTagProps>;
57
65
  RbUserCard: React.FC<RbUserCardProps>;
58
66
  RbIconRender: React.FC<RbIconRenderProps>;
67
+ RbHtmlRender: React.FC<RbHtmlRenderProps>;
59
68
  };
60
69
  export default _default;