@regenbio/regenbio-components-react 1.3.35 → 1.3.36

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 { RbDataChartProps } from "./type";
2
+ /**
3
+ * 数据表格Hook
4
+ * @param props 参数
5
+ */
6
+ declare const useDataChart: (props: RbDataChartProps) => {
7
+ emptyStatus: any;
8
+ loading: any;
9
+ };
10
+ export default useDataChart;
@@ -1,4 +1,5 @@
1
1
  import { Ref } from "react";
2
+ import { Chart } from "@antv/g2";
2
3
  /**
3
4
  * 图表操作类型
4
5
  */
@@ -34,7 +35,7 @@ export type RbDataChartProps = {
34
35
  * @param chart 图表
35
36
  * @param data 数据
36
37
  */
37
- chartInit: (chart: any, data: any) => void;
38
+ chartInit: (chart: Chart, data: any) => void;
38
39
  /**
39
40
  * 请求数据
40
41
  */
@@ -20,12 +20,6 @@ export type RbAppLayoutProps = {
20
20
  * 设置全局初始化状态
21
21
  */
22
22
  setInitialState: (initialState: RbInitialStateRespProps) => void;
23
- /**
24
- * 获取头像预览URL方法
25
- *
26
- * @param guid 头像文件主键ID
27
- */
28
- getPreviewUrl: (guid: any) => null | string;
29
23
  /**
30
24
  * 语言组件
31
25
  */
package/build/index.d.ts CHANGED
@@ -47,9 +47,9 @@ import UploadUtil from "./services/utils/uploadUtil";
47
47
  import RequestUtil from "./services/utils/requestUtil";
48
48
  import EventEnum from "./services/enums/eventEnum";
49
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";
50
+ import useRbDictionary from "./services/hooks/useRbDictionary";
51
+ import useRbValueEnum from "./services/hooks/useRbValueEnum";
52
+ import useRbAuthorize from "./services/hooks/useRbAuthorize";
53
53
  import CommonConstant from "./services/constants/commonConstant";
54
54
  import IconConstant from "./services/constants/iconConstant";
55
55
  import DbConstant from "./services/constants/dbConstant";
@@ -98,7 +98,7 @@ export { EventEnum, StorageEnum };
98
98
  export { CommonConstant, IconConstant, DbConstant };
99
99
  export { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType, RbGlobalFunctionType };
100
100
  export { BaseDO, BaseRelativeDO, TokenDO };
101
- export { useDictionary, useValueEnum, useAuthorize };
101
+ export { useRbDictionary, useRbValueEnum, useRbAuthorize };
102
102
  export { zhCN, enUS };
103
103
  declare const _default: {
104
104
  RbDataTable: <DataSource, U, ValueType = "text">(props: RbDataTableProps<DataSource, U, ValueType>) => any;