From 72f00064bc68f1f5275edd77e574755b2a9176ee Mon Sep 17 00:00:00 2001 From: baoliehua Date: Thu, 19 Dec 2019 19:16:39 +0800 Subject: [PATCH] fix upload.card onchange TS (#1457) fix(Typescript): update upload d.ts --- types/upload/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/upload/index.d.ts b/types/upload/index.d.ts index f3d8c0dbc7..e3b05c6acf 100644 --- a/types/upload/index.d.ts +++ b/types/upload/index.d.ts @@ -144,7 +144,7 @@ export interface CardProps extends HTMLAttributesWeak, CommonProps { /** * 改变时候的回调 */ - onChange?: () => void; + onChange?: (value: File[]) => void; /** * 可选参数, 用于校验文件,afterSelect仅在 autoUpload=false 的时候生效,autoUpload=true时,可以使用beforeUpload完全可以替代该功能. @@ -379,7 +379,7 @@ export interface UploadProps extends HTMLAttributesWeak, CommonProps { /** * 上传文件改变时的状态 */ - onChange?: (info: {}) => void; + onChange?: (value: File[]) => void; /** * 可选参数, 用于校验文件,afterSelect仅在 autoUpload=false 的时候生效,autoUpload=true时,可以使用beforeUpload完全可以替代该功能.