@regenbio/regenbio-components-react 1.3.34 → 1.3.35

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.
@@ -126,5 +126,8 @@ export type RbDataTableProps<DataSource, U, ValueType = 'text'> = {
126
126
  alert: React.ReactNode | undefined;
127
127
  table: React.ReactNode | undefined;
128
128
  }) => React.ReactNode;
129
+ /**
130
+ * 配置展开属性
131
+ */
129
132
  expandable?: ExpandableConfig<DataSource>;
130
133
  };
@@ -27,24 +27,4 @@ export type RbUserCardProps = {
27
27
  * 子节点
28
28
  */
29
29
  children?: React.ReactNode;
30
- /**
31
- * 获取用户详情方法
32
- *
33
- * @param id 用户主键ID
34
- */
35
- getUserDetail: (id: string, options?: {
36
- [key: string]: any;
37
- }) => Promise<any>;
38
- /**
39
- * 获取头像预览URL方法
40
- *
41
- * @param guid 头像文件主键ID
42
- */
43
- getPreviewUrl: (guid: any) => null | string;
44
- /**
45
- * 请求远程用户数据的方法
46
- *
47
- * @param guid 用户主键ID
48
- */
49
- request?: (guid: string) => Promise<any>;
50
30
  };
@@ -42,9 +42,4 @@ export type RbAttachmentTextProps = {
42
42
  * 访问令牌
43
43
  */
44
44
  accessToken?: string;
45
- /**
46
- * 文件上传连接渲染方法
47
- * @param configCode 配置编码
48
- */
49
- uploadUrl: (configCode: string) => string;
50
45
  };
@@ -30,16 +30,6 @@ export type RbSingleImageUploaderProps = {
30
30
  */
31
31
  clientId?: string;
32
32
  };
33
- /**
34
- * 文件上传链接渲染方法
35
- * @param configCode 配置编码
36
- */
37
- uploadUrl: (configCode: string) => string;
38
- /**
39
- * 文件预览链接渲染方法
40
- * @param guid 文件主键ID
41
- */
42
- previewUrl: (guid: any) => null | string;
43
33
  /**
44
34
  * 规则
45
35
  */
@@ -38,4 +38,8 @@ export type RbAppLayoutProps = {
38
38
  * 头像下拉
39
39
  */
40
40
  avatarDropdown: React.ReactNode;
41
- } & RbGlobalStateType;
41
+ /**
42
+ * 全局状态
43
+ */
44
+ globalState: RbGlobalStateType;
45
+ };
package/build/index.d.ts CHANGED
@@ -39,21 +39,21 @@ import DbUtil from "./services/utils/dbUtil";
39
39
  import ObjectUtil from "./services/utils/objectUtil";
40
40
  import EventUtil from "./services/utils/eventUtil";
41
41
  import StorageUtil from "./services/utils/storageUtil";
42
- import ResourceUtil from "./services/utils/resourceUtil";
43
- import RenderUtil from "./services/utils/renderUtil";
44
42
  import StringUtil from "./services/utils/stringUtil";
45
43
  import NumberUtil from "./services/utils/numberUtil";
46
44
  import RandomUtil from "./services/utils/randomUtil";
47
45
  import UnicodeUtil from "./services/utils/unicodeUtil";
48
46
  import UploadUtil from "./services/utils/uploadUtil";
49
47
  import RequestUtil from "./services/utils/requestUtil";
50
- import DictUtil from "./services/utils/dictUtil";
51
48
  import EventEnum from "./services/enums/eventEnum";
52
49
  import StorageEnum from "./services/enums/storageEnum";
50
+ import useDictionary from "./services/hooks/useDictionary";
51
+ import useValueEnum from "./services/hooks/useValueEnum";
52
+ import useAuthorize from "./services/hooks/useAuthorize";
53
53
  import CommonConstant from "./services/constants/commonConstant";
54
54
  import IconConstant from "./services/constants/iconConstant";
55
55
  import DbConstant from "./services/constants/dbConstant";
56
- import { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateRespProps, RbInitialStateReqProps, RbGlobalStateType } from "./services/types/commonType";
56
+ import { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateRespProps, RbInitialStateReqProps, RbGlobalStateType, RbGlobalFunctionType } from "./services/types/commonType";
57
57
  import { BaseDO, BaseRelativeDO } from "./services/interfaces/commonInterface";
58
58
  import { TokenDO } from "./services/interfaces/oauth2Interface";
59
59
  import zhCN from "./locales/zh-CN";
@@ -93,11 +93,12 @@ export { RbThemeSetter };
93
93
  export { RbAuthFrame, RbBindFrame };
94
94
  export type { RbAuthFrameProps, RbBindFrameProps };
95
95
  export { RbGlobalContext };
96
- export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil, RenderUtil, StringUtil, NumberUtil, RandomUtil, UnicodeUtil, UploadUtil, RequestUtil, DictUtil };
96
+ export { DbUtil, ObjectUtil, EventUtil, StorageUtil, StringUtil, NumberUtil, RandomUtil, UnicodeUtil, UploadUtil, RequestUtil };
97
97
  export { EventEnum, StorageEnum };
98
98
  export { CommonConstant, IconConstant, DbConstant };
99
- export { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType };
99
+ export { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType, RbGlobalFunctionType };
100
100
  export { BaseDO, BaseRelativeDO, TokenDO };
101
+ export { useDictionary, useValueEnum, useAuthorize };
101
102
  export { zhCN, enUS };
102
103
  declare const _default: {
103
104
  RbDataTable: <DataSource, U, ValueType = "text">(props: RbDataTableProps<DataSource, U, ValueType>) => any;