Skip to content

Commit

Permalink
fix upload.card onchange TS (#1457)
Browse files Browse the repository at this point in the history
fix(Typescript): update upload d.ts
  • Loading branch information
baoliehua authored and youluna committed Dec 19, 2019
1 parent 8fe69f9 commit 72f0006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/upload/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export interface CardProps extends HTMLAttributesWeak, CommonProps {
/**
* 改变时候的回调
*/
onChange?: () => void;
onChange?: (value: File[]) => void;

/**
* 可选参数, 用于校验文件,afterSelect仅在 autoUpload=false 的时候生效,autoUpload=true时,可以使用beforeUpload完全可以替代该功能.
Expand Down Expand Up @@ -379,7 +379,7 @@ export interface UploadProps extends HTMLAttributesWeak, CommonProps {
/**
* 上传文件改变时的状态
*/
onChange?: (info: {}) => void;
onChange?: (value: File[]) => void;

/**
* 可选参数, 用于校验文件,afterSelect仅在 autoUpload=false 的时候生效,autoUpload=true时,可以使用beforeUpload完全可以替代该功能.
Expand Down

0 comments on commit 72f0006

Please sign in to comment.