Merge 7c256f983e into bbb7670df1
commit
5572daab04
|
|
@ -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>>>(),
|
||||||
|
|
|
||||||
|
|
@ -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 },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue