@regenbio/regenbio-components-react 1.4.45 → 2026.1.12-2
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/DataEntry/Uploader/DraggableUploader/hook.d.ts +0 -2
- package/build/components/DataEntry/Uploader/DraggableUploader/index.d.ts +0 -3
- package/build/components/DataEntry/Uploader/DraggableUploader/locales/en-US.d.ts +5 -0
- package/build/components/DataEntry/Uploader/DraggableUploader/locales/zh-CN.d.ts +5 -0
- package/build/components/DataEntry/Uploader/DraggableUploader/type.d.ts +3 -1
- package/build/components/DataEntry/Uploader/SingleImageUploader/hook.d.ts +5 -1
- package/build/components/DataEntry/Uploader/SingleImageUploader/index.d.ts +0 -3
- package/build/components/DataEntry/Uploader/SingleImageUploader/locales/en-US.d.ts +2 -0
- package/build/components/DataEntry/Uploader/SingleImageUploader/locales/zh-CN.d.ts +2 -0
- package/build/components/DataEntry/Uploader/SingleImageUploader/type.d.ts +2 -1
- package/build/index.js +2 -2
- package/build/locales/en-US.d.ts +4 -0
- package/build/locales/zh-CN.d.ts +4 -0
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@ import { DragEndEvent } from "@dnd-kit/core";
|
|
|
3
3
|
import { RbDraggableUploaderExtraProps, RbDraggableUploaderProps, RbDraggableUploadListItemProps } from "./type";
|
|
4
4
|
/**
|
|
5
5
|
* RB 拖动上传器Hook
|
|
6
|
-
* @param props 属性
|
|
7
6
|
*/
|
|
8
7
|
export declare const useDraggableUploader: (props: RbDraggableUploaderProps & RbDraggableUploaderExtraProps) => {
|
|
9
8
|
fileList: any;
|
|
@@ -14,7 +13,6 @@ export declare const useDraggableUploader: (props: RbDraggableUploaderProps & Rb
|
|
|
14
13
|
};
|
|
15
14
|
/**
|
|
16
15
|
* RB 拖动列表项Hook
|
|
17
|
-
* @param props 属性
|
|
18
16
|
*/
|
|
19
17
|
export declare const useDraggableListItem: (props: RbDraggableUploadListItemProps) => {
|
|
20
18
|
setNodeRef: (node: HTMLElement | null) => void;
|
|
@@ -21,18 +21,20 @@ export type RbDraggableUploadListItemProps = {
|
|
|
21
21
|
export type RbDraggableUploaderExtraProps = {
|
|
22
22
|
/**
|
|
23
23
|
* 值
|
|
24
|
+
* 注意:这里增加了 status 可选字段,用于 Form 校验逻辑判断文件状态
|
|
24
25
|
*/
|
|
25
26
|
value: {
|
|
26
27
|
name: string;
|
|
27
28
|
guid: string;
|
|
29
|
+
status?: string;
|
|
28
30
|
}[];
|
|
29
31
|
/**
|
|
30
32
|
* 值改变监听
|
|
31
|
-
* @param value 新值
|
|
32
33
|
*/
|
|
33
34
|
onChange: (value: {
|
|
34
35
|
name: string;
|
|
35
36
|
guid: string;
|
|
37
|
+
status?: string;
|
|
36
38
|
}[]) => void;
|
|
37
39
|
};
|
|
38
40
|
/**
|
|
@@ -7,9 +7,13 @@ import type { UploadFile } from "antd";
|
|
|
7
7
|
declare const useSingleImageUploader: (props: RbSingleImageUploaderProps & RbSingleImageUploaderExtraProps) => {
|
|
8
8
|
intl: any;
|
|
9
9
|
globalFunctions: any;
|
|
10
|
-
loading: any;
|
|
11
10
|
fileList: any;
|
|
11
|
+
previewOpen: any;
|
|
12
|
+
previewImage: any;
|
|
13
|
+
previewTitle: any;
|
|
12
14
|
handleRemove: () => boolean;
|
|
13
15
|
handleChange: (info: import("antd/es/upload").UploadChangeParam<UploadFile<any>>) => void;
|
|
16
|
+
handlePreview: (file: UploadFile) => Promise<void>;
|
|
17
|
+
handleCancelPreview: () => any;
|
|
14
18
|
};
|
|
15
19
|
export default useSingleImageUploader;
|
|
@@ -14,6 +14,7 @@ export type RbSingleImageUploaderExtraProps = {
|
|
|
14
14
|
onChange: (value: any) => void;
|
|
15
15
|
/**
|
|
16
16
|
* 值
|
|
17
|
+
* 注意:为了支持上传状态拦截,value 可能会包含临时状态对象
|
|
17
18
|
*/
|
|
18
19
|
value: any;
|
|
19
20
|
};
|
|
@@ -26,7 +27,7 @@ export type RbSingleImageUploaderProps = {
|
|
|
26
27
|
*/
|
|
27
28
|
listType?: UploadListType;
|
|
28
29
|
/**
|
|
29
|
-
* 纯净模式
|
|
30
|
+
* 纯净模式 (true: value是guid字符串; false: value是对象数组)
|
|
30
31
|
*/
|
|
31
32
|
purity?: boolean;
|
|
32
33
|
/**
|