mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fix: Upload types (#16360)
* fix: Upload types * fix: ci * fix: ci * fix: ci * fix: ci
This commit is contained in:
parent
5469bbaa73
commit
59856a093b
@ -1,7 +1,7 @@
|
||||
import Upload from './Upload';
|
||||
import Dragger from './Dragger';
|
||||
|
||||
export { UploadProps, UploadListProps, UploadChangeParam } from './interface';
|
||||
export { UploadProps, UploadListProps, UploadChangeParam, RcFile } from './interface';
|
||||
export { DraggerProps } from './Dragger';
|
||||
|
||||
Upload.Dragger = Dragger;
|
||||
|
@ -29,8 +29,9 @@ export interface UploadFile {
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface UploadChangeParam {
|
||||
file: UploadFile;
|
||||
export interface UploadChangeParam<T extends object = UploadFile> {
|
||||
// https://github.com/ant-design/ant-design/issues/14420
|
||||
file: T;
|
||||
fileList: Array<UploadFile>;
|
||||
event?: { percent: number };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user