Skip to content

Commit 8e12971

Browse files
committed
fix: upload not work
1 parent f10d0f1 commit 8e12971

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

components/upload/interface.jsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export const UploadChangeParam = {
4747
};
4848

4949
export const ShowUploadListInterface = PropsTypes.shape({
50-
showRemoveIcon: PropsTypes.bool,
51-
showPreviewIcon: PropsTypes.bool,
50+
showRemoveIcon: PropsTypes.looseBool,
51+
showPreviewIcon: PropsTypes.looseBool,
5252
}).loose;
5353

5454
export const UploadLocale = PropsTypes.shape({
@@ -65,24 +65,24 @@ export const UploadProps = {
6565
defaultFileList: PropsTypes.arrayOf(PropsTypes.custom(UploadFile)),
6666
fileList: PropsTypes.arrayOf(PropsTypes.custom(UploadFile)),
6767
action: PropsTypes.oneOfType([PropsTypes.string, PropsTypes.func]),
68-
directory: PropsTypes.bool,
68+
directory: PropsTypes.looseBool,
6969
data: PropsTypes.oneOfType([PropsTypes.object, PropsTypes.func]),
7070
method: PropsTypes.oneOf(['POST', 'PUT', 'post', 'put']),
7171
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,
7474
accept: PropsTypes.string,
7575
beforeUpload: PropsTypes.func,
7676
listType: PropsTypes.oneOf(['text', 'picture', 'picture-card']),
7777
// className: PropsTypes.string,
7878
remove: PropsTypes.func,
79-
supportServerRender: PropsTypes.bool,
79+
supportServerRender: PropsTypes.looseBool,
8080
// style: PropsTypes.object,
81-
disabled: PropsTypes.bool,
81+
disabled: PropsTypes.looseBool,
8282
prefixCls: PropsTypes.string,
8383
customRequest: PropsTypes.func,
84-
withCredentials: PropsTypes.bool,
85-
openFileDialogOnClick: PropsTypes.bool,
84+
withCredentials: PropsTypes.looseBool,
85+
openFileDialogOnClick: PropsTypes.looseBool,
8686
locale: UploadLocale,
8787
height: PropsTypes.number,
8888
id: PropsTypes.string,
@@ -107,9 +107,9 @@ export const UploadListProps = {
107107
// items: PropsTypes.any,
108108
progressAttr: PropsTypes.object,
109109
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,
113113
locale: UploadLocale,
114114
previewFile: PropsTypes.func,
115115
onPreview: PropsTypes.func,

components/vc-select/Selector/MultipleSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const SelectSelector = defineComponent<SelectorProps>({
160160
}
161161
const transitionProps = getTransitionGroupProps(choiceTransitionName, {
162162
appear: motionAppear,
163-
})
163+
});
164164
selectionNode.value = (
165165
<TransitionGroup {...transitionProps}>
166166
{...displayValues.map(

0 commit comments

Comments
 (0)