您可以直接在
style
组件上使用 Dragger
属性:
<Dragger
{...props}
style={{
width: 100,
height: 1000,
minHeight: 300
... etc
}}
>
<p className="ant-upload-drag-icon">
<InboxOutlined />
</p>
<p className="ant-upload-text">Click or drag file to this area to upload</p>
<p className="ant-upload-hint">
Support for a single or bulk upload. Strictly prohibited from uploading company data or other banned files.
</p>
</Dragger>