mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
26 lines
476 B
Markdown
26 lines
476 B
Markdown
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 文件夹上传
|
|
en-US: Upload directory
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
支持上传一个文件夹里的所有文件。
|
|
|
|
## en-US
|
|
|
|
You can select and upload a whole directory.
|
|
|
|
```jsx
|
|
import { Upload, Button } from 'antd';
|
|
import { UploadOutlined } from '@ant-design/icons';
|
|
|
|
export default () => (
|
|
<Upload action="https://www.mocky.io/v2/5cc8019d300000980a055e76" directory>
|
|
<Button icon={<UploadOutlined />}>Upload Directory</Button>
|
|
</Upload>
|
|
);
|
|
```
|