@regenbio/regenbio-components-react 1.4.45 → 2026.1.12

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.
@@ -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;
@@ -2,9 +2,6 @@ import React from 'react';
2
2
  import { RbDraggableUploaderProps } from "./type";
3
3
  /**
4
4
  * RB 拖动上传器
5
- *
6
- * @param props
7
- * @constructor
8
5
  */
9
6
  declare const RbDraggableUploader: React.FC<RbDraggableUploaderProps>;
10
7
  export default RbDraggableUploader;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ 'components.draggable-uploader.error-submit-file-uploading': string;
3
+ 'components.draggable-uploader.error-submit-file-failed': string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ 'components.draggable-uploader.error-submit-file-uploading': string;
3
+ 'components.draggable-uploader.error-submit-file-failed': string;
4
+ };
5
+ export default _default;
@@ -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,7 +7,6 @@ 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;
12
11
  handleRemove: () => boolean;
13
12
  handleChange: (info: import("antd/es/upload").UploadChangeParam<UploadFile<any>>) => void;
@@ -2,9 +2,6 @@ import React from 'react';
2
2
  import { RbSingleImageUploaderProps } from "./type";
3
3
  /**
4
4
  * RB 单图片上传器
5
- *
6
- * @param props
7
- * @constructor
8
5
  */
9
6
  declare const RbSingleImageUploader: React.FC<RbSingleImageUploaderProps>;
10
7
  export default RbSingleImageUploader;
@@ -1,4 +1,6 @@
1
1
  declare const _default: {
2
2
  'components.single-image-uploader.upload-button': string;
3
+ 'components.single-image-uploader.error-submit-file-uploading': string;
4
+ 'components.single-image-uploader.error-submit-file-failed': string;
3
5
  };
4
6
  export default _default;
@@ -1,4 +1,6 @@
1
1
  declare const _default: {
2
2
  'components.single-image-uploader.upload-button': string;
3
+ 'components.single-image-uploader.error-submit-file-uploading': string;
4
+ 'components.single-image-uploader.error-submit-file-failed': string;
3
5
  };
4
6
  export default _default;
@@ -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
  /**