pull/8379/merge
nys013 2025-09-30 12:02:51 +08:00 committed by GitHub
commit 5572daab04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ type BeforeUploadValueType = void | boolean | string | Blob | FileType;
function uploadProps<T = any>() { function uploadProps<T = any>() {
return { return {
capture: someType<boolean | 'user' | 'environment'>([Boolean, String]), capture: someType<boolean | 'user' | 'environment' | null>([Boolean, String]),
type: stringType<UploadType>(), type: stringType<UploadType>(),
name: String, name: String,
defaultFileList: arrayType<Array<UploadFile<T>>>(), defaultFileList: arrayType<Array<UploadFile<T>>>(),

View File

@ -6,7 +6,7 @@ export type Action = string | ((file: RcFile) => string | PromiseLike<string>);
export const uploadProps = () => { export const uploadProps = () => {
return { return {
capture: [Boolean, String] as PropType<boolean | 'user' | 'environment'>, capture: [Boolean, String] as PropType<boolean | 'user' | 'environment' | null>,
multipart: { type: Boolean, default: undefined }, multipart: { type: Boolean, default: undefined },
name: String, name: String,
disabled: { type: Boolean, default: undefined }, disabled: { type: Boolean, default: undefined },