From 7c256f983e631ac39adea279d0991e32eb7b791d Mon Sep 17 00:00:00 2001 From: ningyanshan Date: Tue, 30 Sep 2025 11:47:38 +0800 Subject: [PATCH] fix(upload): add "null" to the TypeScript type of "capture" --- components/upload/interface.tsx | 2 +- components/vc-upload/interface.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/upload/interface.tsx b/components/upload/interface.tsx index f89857fad6..a33e05a6ce 100755 --- a/components/upload/interface.tsx +++ b/components/upload/interface.tsx @@ -96,7 +96,7 @@ type BeforeUploadValueType = void | boolean | string | Blob | FileType; function uploadProps() { return { - capture: someType([Boolean, String]), + capture: someType([Boolean, String]), type: stringType(), name: String, defaultFileList: arrayType>>(), diff --git a/components/vc-upload/interface.tsx b/components/vc-upload/interface.tsx index 46609a4822..24fee538c7 100644 --- a/components/vc-upload/interface.tsx +++ b/components/vc-upload/interface.tsx @@ -6,7 +6,7 @@ export type Action = string | ((file: RcFile) => string | PromiseLike); export const uploadProps = () => { return { - capture: [Boolean, String] as PropType, + capture: [Boolean, String] as PropType, multipart: { type: Boolean, default: undefined }, name: String, disabled: { type: Boolean, default: undefined },