ant-design-vue/components/upload/demo/directory.md

21 lines
360 B
Markdown

<cn>
#### 文件夹上传
支持上传一个文件夹里的所有文件。
</cn>
<us>
#### Upload directory
You can select and upload a whole directory.
</us>
```html
<template>
<a-upload action="//jsonplaceholder.typicode.com/posts/" directory>
<a-button>
<a-icon type="upload" /> Upload Directory
</a-button>
</a-upload>
</template>
```