hlyc-web-pack 3.6.44 → 3.6.46
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/lib/Upload/index.d.ts +14 -3
- package/lib/index.js +3 -3
- package/package.json +1 -1
package/lib/Upload/index.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { UploadProps } from 'antd/es/upload';
|
|
2
3
|
import { UploadFile } from 'antd/es/upload/interface';
|
|
3
4
|
import { AnyObjectType } from '../brother/typings';
|
|
4
5
|
import './index.less';
|
|
6
|
+
export interface UploadCallType {
|
|
7
|
+
/** 设置文件列表 */
|
|
8
|
+
setFileList: (data: UploadProps['fileList']) => void;
|
|
9
|
+
}
|
|
5
10
|
export declare type PropsType = {
|
|
6
11
|
/** 选择文件按钮 */
|
|
7
12
|
children: JSX.Element;
|
|
@@ -10,6 +15,12 @@ export declare type PropsType = {
|
|
|
10
15
|
/** 上传成功回调 */
|
|
11
16
|
uploadSuccess?: (data: UploadFile<any>[]) => void;
|
|
12
17
|
} & UploadProps;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
declare const _default: React.ForwardRefExoticComponent<{
|
|
19
|
+
/** 选择文件按钮 */
|
|
20
|
+
children: JSX.Element;
|
|
21
|
+
/** 设置上传的请求头部 */
|
|
22
|
+
headers?: AnyObjectType | undefined;
|
|
23
|
+
/** 上传成功回调 */
|
|
24
|
+
uploadSuccess?: ((data: UploadFile<any>[]) => void) | undefined;
|
|
25
|
+
} & UploadProps<any> & React.RefAttributes<unknown>>;
|
|
26
|
+
export default _default;
|