@regenbio/regenbio-components-react 1.2.5 → 1.2.7

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.
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { RbActionBarItemProps, RbActionBarProps } from "./type";
2
3
  /**
3
4
  * RB 操作栏子项
@@ -5,12 +6,12 @@ import { RbActionBarItemProps, RbActionBarProps } from "./type";
5
6
  * @param props 参数配置
6
7
  * @constructor
7
8
  */
8
- declare const RbActionBarItem: (props: RbActionBarItemProps) => any;
9
+ declare const RbActionBarItem: React.FC<RbActionBarItemProps>;
9
10
  /**
10
11
  * RB 操作栏
11
12
  *
12
13
  * @param props 参数配置
13
14
  * @constructor
14
15
  */
15
- declare const RbActionBar: (props: RbActionBarProps) => any;
16
+ declare const RbActionBar: React.FC<RbActionBarProps>;
16
17
  export { RbActionBarItem, RbActionBar };
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import { RbDataChartProps } from "./type";
2
3
  /**
3
4
  * RB 数据图表
4
5
  */
5
- declare const RbDataChart: (props: RbDataChartProps) => any;
6
+ declare const RbDataChart: React.FC<RbDataChartProps>;
6
7
  export default RbDataChart;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { RbThemeListenerProps } from "./type";
2
3
  /**
3
4
  * RB 主题监听器
@@ -5,5 +6,5 @@ import { RbThemeListenerProps } from "./type";
5
6
  * @param props 配置参数
6
7
  * @constructor
7
8
  */
8
- declare const RbThemeListener: (props: RbThemeListenerProps) => any;
9
+ declare const RbThemeListener: React.FC<RbThemeListenerProps>;
9
10
  export default RbThemeListener;
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  /**
2
3
  * RB 主题设置器
3
4
  *
4
5
  * @param props 配置参数
5
6
  * @constructor
6
7
  */
7
- declare const RbThemeSetter: (props: any) => any;
8
+ declare const RbThemeSetter: React.FC;
8
9
  export default RbThemeSetter;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { RbUserCardProps } from "./type";
3
+ /**
4
+ * RB 用户卡片
5
+ *
6
+ * @constructor
7
+ */
8
+ declare const RbUserCard: React.FC<RbUserCardProps>;
9
+ export default RbUserCard;
@@ -0,0 +1,52 @@
1
+ import React from "react";
2
+ /**
3
+ * 用户卡片属性
4
+ */
5
+ export type RbUserCardProps = {
6
+ /**
7
+ * 展示需要的权限表示
8
+ */
9
+ sign: string;
10
+ /**
11
+ * 实体类
12
+ */
13
+ entity?: any;
14
+ /**
15
+ * 头像字段
16
+ */
17
+ avatarField?: string;
18
+ /**
19
+ * 用户名字段
20
+ */
21
+ nameField?: string;
22
+ /**
23
+ * 用户主键ID字段
24
+ */
25
+ guidField?: string;
26
+ /**
27
+ * 子节点
28
+ */
29
+ children?: React.ReactNode;
30
+ /**
31
+ * 国际化
32
+ */
33
+ intl: any;
34
+ /**
35
+ * 全局变量,用来判断当前用户是否携带对应的权限标识
36
+ */
37
+ initialState?: any;
38
+ /**
39
+ * 获取用户详情方法
40
+ *
41
+ * @param id 用户主键ID
42
+ */
43
+ getUserDetail: (id: string, options?: {
44
+ [key: string]: any;
45
+ }) => Promise<any>;
46
+ /**
47
+ * 获取头像预览URL方法
48
+ *
49
+ * @param guid 头像文件主键ID
50
+ */
51
+ getPreviewUrl: (guid: any) => null | string;
52
+ };
package/build/index.d.ts CHANGED
@@ -9,13 +9,18 @@ import RbDataChart from "./components/DataChart";
9
9
  import { RbDataChartProps, RbChartActionType } from "./components/DataChart/type";
10
10
  import RbFileTag from "./components/FileTag";
11
11
  import { RbFileTagProps } from "./components/FileTag/type";
12
+ import RbUserCard from "./components/UserCard";
13
+ import { RbUserCardProps } from "./components/UserCard/type";
12
14
  import DbUtil from "./services/utils/dbUtil";
13
15
  import ObjectUtil from "./services/utils/objectUtil";
14
16
  import EventUtil from "./services/utils/eventUtil";
15
17
  import StorageUtil from "./services/utils/storageUtil";
16
18
  import ResourceUtil from "./services/utils/resourceUtil";
19
+ import RenderUtil from "./services/utils/renderUtil";
17
20
  import EventEnum from "./services/enums/eventEnum";
18
21
  import StorageEnum from "./services/enums/storageEnum";
22
+ import Common from "./services/constants/common";
23
+ import { RespDTO, ConstantListItem } from "./services/types/common";
19
24
  import zhCN from "./locales/zh-CN";
20
25
  import enUS from "./locales/en-US";
21
26
  export { RbDataTable };
@@ -29,16 +34,21 @@ export { RbDataChart };
29
34
  export type { RbDataChartProps, RbChartActionType };
30
35
  export { RbFileTag };
31
36
  export type { RbFileTagProps };
32
- export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil };
37
+ export { RbUserCard };
38
+ export type { RbUserCardProps };
39
+ export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil, RenderUtil };
33
40
  export { EventEnum, StorageEnum };
41
+ export { Common };
42
+ export { RespDTO, ConstantListItem };
34
43
  export { zhCN, enUS };
35
44
  declare const _default: {
36
45
  RbDataTable: <DataSource, U, ValueType = "text">(props: RbDataTableProps<DataSource, U, ValueType>) => any;
37
- RbActionBarItem: (props: RbActionBarItemProps) => any;
38
- RbActionBar: (props: RbActionBarProps) => any;
39
- RbThemeSetter: (props: any) => any;
40
- RbThemeListener: (props: RbThemeListenerProps) => any;
41
- RbDataChart: (props: RbDataChartProps) => any;
46
+ RbActionBarItem: React.FC<RbActionBarItemProps>;
47
+ RbActionBar: React.FC<RbActionBarProps>;
48
+ RbThemeSetter: React.FC;
49
+ RbThemeListener: React.FC<RbThemeListenerProps>;
50
+ RbDataChart: React.FC<RbDataChartProps>;
42
51
  RbFileTag: React.FC<RbFileTagProps>;
52
+ RbUserCard: React.FC<RbUserCardProps>;
43
53
  };
44
54
  export default _default;