fix: upload not work

pull/3053/head
tanjinzhou 2020-10-21 11:18:09 +08:00
parent f10d0f1e4d
commit 8e12971c2d
2 changed files with 13 additions and 13 deletions

View File

@ -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,

View File

@ -160,7 +160,7 @@ const SelectSelector = defineComponent<SelectorProps>({
}
const transitionProps = getTransitionGroupProps(choiceTransitionName, {
appear: motionAppear,
})
});
selectionNode.value = (
<TransitionGroup {...transitionProps}>
{...displayValues.map(