@@ -773,6 +773,7 @@ class UploadFoundation<P = Record<string, any>, S = Record<string, any>> extends
if (!disabled) {
if (directory) {
this.handleDirectoryDrop(e);
+ return;
}
const files: File[] = Array.from(e.dataTransfer.files);
this.handleChange(files);
@@ -581,6 +581,7 @@ export const Draggable = () => (
<Upload
{...commonProps}
style={{ marginTop: 10, height: 300 }}
+ // directory
draggable={true}
dragMainText={'点击上传文件或拖拽文件到这里'}
></Upload>