@@ -47,8 +47,8 @@ export const UploadChangeParam = {
47
47
} ;
48
48
49
49
export const ShowUploadListInterface = PropsTypes . shape ( {
50
- showRemoveIcon : PropsTypes . bool ,
51
- showPreviewIcon : PropsTypes . bool ,
50
+ showRemoveIcon : PropsTypes . looseBool ,
51
+ showPreviewIcon : PropsTypes . looseBool ,
52
52
} ) . loose ;
53
53
54
54
export const UploadLocale = PropsTypes . shape ( {
@@ -65,24 +65,24 @@ export const UploadProps = {
65
65
defaultFileList : PropsTypes . arrayOf ( PropsTypes . custom ( UploadFile ) ) ,
66
66
fileList : PropsTypes . arrayOf ( PropsTypes . custom ( UploadFile ) ) ,
67
67
action : PropsTypes . oneOfType ( [ PropsTypes . string , PropsTypes . func ] ) ,
68
- directory : PropsTypes . bool ,
68
+ directory : PropsTypes . looseBool ,
69
69
data : PropsTypes . oneOfType ( [ PropsTypes . object , PropsTypes . func ] ) ,
70
70
method : PropsTypes . oneOf ( [ 'POST' , 'PUT' , 'post' , 'put' ] ) ,
71
71
headers : PropsTypes . object ,
72
- showUploadList : PropsTypes . oneOfType ( [ PropsTypes . bool , ShowUploadListInterface ] ) ,
73
- multiple : PropsTypes . bool ,
72
+ showUploadList : PropsTypes . oneOfType ( [ PropsTypes . looseBool , ShowUploadListInterface ] ) ,
73
+ multiple : PropsTypes . looseBool ,
74
74
accept : PropsTypes . string ,
75
75
beforeUpload : PropsTypes . func ,
76
76
listType : PropsTypes . oneOf ( [ 'text' , 'picture' , 'picture-card' ] ) ,
77
77
// className: PropsTypes.string,
78
78
remove : PropsTypes . func ,
79
- supportServerRender : PropsTypes . bool ,
79
+ supportServerRender : PropsTypes . looseBool ,
80
80
// style: PropsTypes.object,
81
- disabled : PropsTypes . bool ,
81
+ disabled : PropsTypes . looseBool ,
82
82
prefixCls : PropsTypes . string ,
83
83
customRequest : PropsTypes . func ,
84
- withCredentials : PropsTypes . bool ,
85
- openFileDialogOnClick : PropsTypes . bool ,
84
+ withCredentials : PropsTypes . looseBool ,
85
+ openFileDialogOnClick : PropsTypes . looseBool ,
86
86
locale : UploadLocale ,
87
87
height : PropsTypes . number ,
88
88
id : PropsTypes . string ,
@@ -107,9 +107,9 @@ export const UploadListProps = {
107
107
// items: PropsTypes.any,
108
108
progressAttr : PropsTypes . object ,
109
109
prefixCls : PropsTypes . string ,
110
- showRemoveIcon : PropsTypes . bool ,
111
- showDownloadIcon : PropsTypes . bool ,
112
- showPreviewIcon : PropsTypes . bool ,
110
+ showRemoveIcon : PropsTypes . looseBool ,
111
+ showDownloadIcon : PropsTypes . looseBool ,
112
+ showPreviewIcon : PropsTypes . looseBool ,
113
113
locale : UploadLocale ,
114
114
previewFile : PropsTypes . func ,
115
115
onPreview : PropsTypes . func ,
0 commit comments