@regenbio/regenbio-components-react 1.1.23 → 1.2.0
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,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 图表操作类型
|
|
3
|
+
*/
|
|
4
|
+
export type RbChartActionType = {
|
|
5
|
+
/**
|
|
6
|
+
* 重新初始化
|
|
7
|
+
*/
|
|
8
|
+
reinit: () => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 数据图表属性
|
|
12
|
+
*/
|
|
13
|
+
export type RbDataChartProps = {
|
|
14
|
+
/**
|
|
15
|
+
* 右边距
|
|
16
|
+
*/
|
|
17
|
+
paddingRight?: number;
|
|
18
|
+
/**
|
|
19
|
+
* 下边距
|
|
20
|
+
*/
|
|
21
|
+
paddingBottom?: number;
|
|
22
|
+
/**
|
|
23
|
+
* 图表ID
|
|
24
|
+
*/
|
|
25
|
+
chartId: string;
|
|
26
|
+
/**
|
|
27
|
+
* 高度
|
|
28
|
+
*/
|
|
29
|
+
height: number;
|
|
30
|
+
/**
|
|
31
|
+
* 图表数据初始化
|
|
32
|
+
*
|
|
33
|
+
* @param chart 图表
|
|
34
|
+
* @param data 数据
|
|
35
|
+
*/
|
|
36
|
+
chartInit: (chart: any, data: any) => void;
|
|
37
|
+
/**
|
|
38
|
+
* 请求数据
|
|
39
|
+
*/
|
|
40
|
+
request?: () => Promise<any>;
|
|
41
|
+
/**
|
|
42
|
+
* 数据
|
|
43
|
+
*/
|
|
44
|
+
data?: any;
|
|
45
|
+
};
|
package/build/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { RbActionBarItemProps, RbActionBarProps } from "./components/ActionBar/t
|
|
|
5
5
|
import RbThemeSetter from "./components/ThemeSetter";
|
|
6
6
|
import RbThemeListener from "./components/ThemeListener";
|
|
7
7
|
import { RbThemeListenerProps } from "./components/ThemeListener/type";
|
|
8
|
+
import RbDataChart from "./components/DataChart";
|
|
9
|
+
import { RbDataChartProps, RbChartActionType } from "./components/DataChart/type";
|
|
8
10
|
import DbUtil from "./services/utils/dbUtil";
|
|
9
11
|
import ObjectUtil from "./services/utils/objectUtil";
|
|
10
12
|
import EventUtil from "./services/utils/eventUtil";
|
|
@@ -21,6 +23,8 @@ export type { RbActionBarItemProps, RbActionBarProps };
|
|
|
21
23
|
export { RbThemeSetter };
|
|
22
24
|
export { RbThemeListener };
|
|
23
25
|
export type { RbThemeListenerProps };
|
|
26
|
+
export { RbDataChart };
|
|
27
|
+
export type { RbDataChartProps, RbChartActionType };
|
|
24
28
|
export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil };
|
|
25
29
|
export { EventEnum, StorageEnum };
|
|
26
30
|
export { zhCN, enUS };
|