diff --git a/components/upload/interface.jsx b/components/upload/interface.jsx index e7c6ac95f..b726e5615 100755 --- a/components/upload/interface.jsx +++ b/components/upload/interface.jsx @@ -47,8 +47,8 @@ export const UploadChangeParam = { }; export const ShowUploadListInterface = PropsTypes.shape({ - showRemoveIcon: PropsTypes.bool, - showPreviewIcon: PropsTypes.bool, + showRemoveIcon: PropsTypes.looseBool, + showPreviewIcon: PropsTypes.looseBool, }).loose; export const UploadLocale = PropsTypes.shape({ @@ -65,24 +65,24 @@ export const UploadProps = { defaultFileList: PropsTypes.arrayOf(PropsTypes.custom(UploadFile)), fileList: PropsTypes.arrayOf(PropsTypes.custom(UploadFile)), action: PropsTypes.oneOfType([PropsTypes.string, PropsTypes.func]), - directory: PropsTypes.bool, + directory: PropsTypes.looseBool, data: PropsTypes.oneOfType([PropsTypes.object, PropsTypes.func]), method: PropsTypes.oneOf(['POST', 'PUT', 'post', 'put']), headers: PropsTypes.object, - showUploadList: PropsTypes.oneOfType([PropsTypes.bool, ShowUploadListInterface]), - multiple: PropsTypes.bool, + showUploadList: PropsTypes.oneOfType([PropsTypes.looseBool, ShowUploadListInterface]), + multiple: PropsTypes.looseBool, accept: PropsTypes.string, beforeUpload: PropsTypes.func, listType: PropsTypes.oneOf(['text', 'picture', 'picture-card']), // className: PropsTypes.string, remove: PropsTypes.func, - supportServerRender: PropsTypes.bool, + supportServerRender: PropsTypes.looseBool, // style: PropsTypes.object, - disabled: PropsTypes.bool, + disabled: PropsTypes.looseBool, prefixCls: PropsTypes.string, customRequest: PropsTypes.func, - withCredentials: PropsTypes.bool, - openFileDialogOnClick: PropsTypes.bool, + withCredentials: PropsTypes.looseBool, + openFileDialogOnClick: PropsTypes.looseBool, locale: UploadLocale, height: PropsTypes.number, id: PropsTypes.string, @@ -107,9 +107,9 @@ export const UploadListProps = { // items: PropsTypes.any, progressAttr: PropsTypes.object, prefixCls: PropsTypes.string, - showRemoveIcon: PropsTypes.bool, - showDownloadIcon: PropsTypes.bool, - showPreviewIcon: PropsTypes.bool, + showRemoveIcon: PropsTypes.looseBool, + showDownloadIcon: PropsTypes.looseBool, + showPreviewIcon: PropsTypes.looseBool, locale: UploadLocale, previewFile: PropsTypes.func, onPreview: PropsTypes.func, diff --git a/components/vc-select/Selector/MultipleSelector.tsx b/components/vc-select/Selector/MultipleSelector.tsx index 7acb6e693..cb009cad1 100644 --- a/components/vc-select/Selector/MultipleSelector.tsx +++ b/components/vc-select/Selector/MultipleSelector.tsx @@ -160,7 +160,7 @@ const SelectSelector = defineComponent({ } const transitionProps = getTransitionGroupProps(choiceTransitionName, { appear: motionAppear, - }) + }); selectionNode.value = ( {...displayValues.map(