@regenbio/regenbio-components-react 1.2.4 → 1.2.5
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.
- package/build/components/DataChart/index.d.ts +2 -1
- package/build/components/DataChart/type.d.ts +5 -0
- package/build/components/FileTag/index.d.ts +9 -0
- package/build/components/FileTag/locales/en-US.d.ts +5 -0
- package/build/components/FileTag/locales/zh-CN.d.ts +5 -0
- package/build/components/FileTag/type.d.ts +35 -0
- package/build/index.d.ts +6 -1
- package/build/index.js +2 -2
- package/build/index.js.LICENSE.txt +22 -0
- package/build/locales/en-US.d.ts +2 -0
- package/build/locales/zh-CN.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 主题监听器属性
|
|
3
|
+
*/
|
|
4
|
+
export type RbFileTagProps = {
|
|
5
|
+
/**
|
|
6
|
+
* 文件名
|
|
7
|
+
*/
|
|
8
|
+
filename: string;
|
|
9
|
+
/**
|
|
10
|
+
* 文件主键ID
|
|
11
|
+
*/
|
|
12
|
+
guid?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 预览回调
|
|
15
|
+
*
|
|
16
|
+
* @param filename 文件名称
|
|
17
|
+
* @param guid 主键ID
|
|
18
|
+
*/
|
|
19
|
+
onPreview?: (filename: string, guid: string) => void;
|
|
20
|
+
/**
|
|
21
|
+
* 下载回调
|
|
22
|
+
*
|
|
23
|
+
* @param filename 文件名称
|
|
24
|
+
* @param guid 主键ID
|
|
25
|
+
*/
|
|
26
|
+
onDownload?: (filename: string, guid: string) => void;
|
|
27
|
+
/**
|
|
28
|
+
* 标签颜色
|
|
29
|
+
*/
|
|
30
|
+
color?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 国际化
|
|
33
|
+
*/
|
|
34
|
+
intl: any;
|
|
35
|
+
};
|
package/build/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import RbThemeListener from "./components/ThemeListener";
|
|
|
7
7
|
import { RbThemeListenerProps } from "./components/ThemeListener/type";
|
|
8
8
|
import RbDataChart from "./components/DataChart";
|
|
9
9
|
import { RbDataChartProps, RbChartActionType } from "./components/DataChart/type";
|
|
10
|
+
import RbFileTag from "./components/FileTag";
|
|
11
|
+
import { RbFileTagProps } from "./components/FileTag/type";
|
|
10
12
|
import DbUtil from "./services/utils/dbUtil";
|
|
11
13
|
import ObjectUtil from "./services/utils/objectUtil";
|
|
12
14
|
import EventUtil from "./services/utils/eventUtil";
|
|
@@ -25,6 +27,8 @@ export { RbThemeListener };
|
|
|
25
27
|
export type { RbThemeListenerProps };
|
|
26
28
|
export { RbDataChart };
|
|
27
29
|
export type { RbDataChartProps, RbChartActionType };
|
|
30
|
+
export { RbFileTag };
|
|
31
|
+
export type { RbFileTagProps };
|
|
28
32
|
export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil };
|
|
29
33
|
export { EventEnum, StorageEnum };
|
|
30
34
|
export { zhCN, enUS };
|
|
@@ -34,6 +38,7 @@ declare const _default: {
|
|
|
34
38
|
RbActionBar: (props: RbActionBarProps) => any;
|
|
35
39
|
RbThemeSetter: (props: any) => any;
|
|
36
40
|
RbThemeListener: (props: RbThemeListenerProps) => any;
|
|
37
|
-
RbDataChart: any;
|
|
41
|
+
RbDataChart: (props: RbDataChartProps) => any;
|
|
42
|
+
RbFileTag: React.FC<RbFileTagProps>;
|
|
38
43
|
};
|
|
39
44
|
export default _default;
|