mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 21:28:09 +08:00
437 B
437 B
order | title | ||||
---|---|---|---|---|---|
6 |
|
zh-CN
支持上传一个文件夹里的所有文件。
en-US
You can select and upload a whole directory.
import { Upload, Button, Icon } from 'antd';
ReactDOM.render(
<Upload action="//jsonplaceholder.typicode.com/posts/" directory>
<Button>
<Icon type="upload" /> Upload Directory
</Button>
</Upload>,
mountNode
);