如何改变antd Upload拖拽的大小?

问题描述 投票:0回答:1

我使用Antd上传图片。我不知道如何更新上传组件

的样式

我想更改拖放框的宽度和大小,但我没有看到该选项。

提前致谢,

upload antd
1个回答
0
投票

您可以直接在

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>
© www.soinside.com 2019 - 2024. All rights reserved.