@regenbio/regenbio-components-react 1.4.29 → 1.4.31
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.
|
@@ -6,5 +6,5 @@ import React from "react";
|
|
|
6
6
|
* @param props 配置参数
|
|
7
7
|
* @constructor
|
|
8
8
|
*/
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
9
|
+
declare const RbAttachmentText2: React.FC<RbAttachmentTextProps>;
|
|
10
|
+
export default RbAttachmentText2;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* 附件文本域属性
|
|
4
4
|
*/
|
|
5
5
|
export type RbAttachmentTextProps = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 内容字段
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
contentName: string;
|
|
10
|
+
/**
|
|
11
|
+
* 文件字段
|
|
12
|
+
*/
|
|
13
|
+
fileName: string;
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* 最大文本长度
|
|
12
16
|
*/
|
|
13
|
-
|
|
17
|
+
maxLength: number;
|
|
14
18
|
/**
|
|
15
19
|
* 文件上传配置编码
|
|
16
20
|
*/
|
|
@@ -24,22 +28,37 @@ export type RbAttachmentTextProps = {
|
|
|
24
28
|
*/
|
|
25
29
|
placeholder: string;
|
|
26
30
|
/**
|
|
27
|
-
*
|
|
28
|
-
|
|
31
|
+
* 上传成功回调
|
|
32
|
+
*/
|
|
33
|
+
afterSuccess?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* 上传失败回调
|
|
36
|
+
* @param msg 失败消息
|
|
29
37
|
*/
|
|
30
|
-
|
|
38
|
+
afterFail?: (msg: string) => void;
|
|
31
39
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @param file 文件
|
|
40
|
+
* 样式
|
|
34
41
|
*/
|
|
35
|
-
|
|
42
|
+
style?: CSSProperties | undefined;
|
|
36
43
|
/**
|
|
37
|
-
*
|
|
38
|
-
* @param file 文件
|
|
44
|
+
* 类
|
|
39
45
|
*/
|
|
40
|
-
|
|
46
|
+
className?: string | undefined;
|
|
41
47
|
/**
|
|
42
|
-
*
|
|
48
|
+
* 请求头
|
|
43
49
|
*/
|
|
44
|
-
|
|
50
|
+
headers?: {
|
|
51
|
+
/**
|
|
52
|
+
* 访问令牌
|
|
53
|
+
*/
|
|
54
|
+
accessToken?: string;
|
|
55
|
+
/**
|
|
56
|
+
* 语言
|
|
57
|
+
*/
|
|
58
|
+
locale?: string;
|
|
59
|
+
/**
|
|
60
|
+
* 客户端ID
|
|
61
|
+
*/
|
|
62
|
+
clientId?: string;
|
|
63
|
+
};
|
|
45
64
|
};
|
|
@@ -42,11 +42,11 @@ export type RbDraggableUploaderProps = {
|
|
|
42
42
|
/**
|
|
43
43
|
* 展示字段名称
|
|
44
44
|
*/
|
|
45
|
-
label
|
|
45
|
+
label?: React.ReactNode;
|
|
46
46
|
/**
|
|
47
47
|
* 占位符
|
|
48
48
|
*/
|
|
49
|
-
placeholder
|
|
49
|
+
placeholder?: React.ReactNode;
|
|
50
50
|
/**
|
|
51
51
|
* 气泡提示
|
|
52
52
|
*/
|
|
@@ -89,4 +89,12 @@ export type RbDraggableUploaderProps = {
|
|
|
89
89
|
* @param msg 失败消息
|
|
90
90
|
*/
|
|
91
91
|
afterFail?: (msg: string) => void;
|
|
92
|
+
/**
|
|
93
|
+
* 子节点
|
|
94
|
+
*/
|
|
95
|
+
children?: React.ReactNode;
|
|
96
|
+
/**
|
|
97
|
+
* 最大文件数量
|
|
98
|
+
*/
|
|
99
|
+
maxCount?: number;
|
|
92
100
|
};
|