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 },