> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 多文件 ZIP 下载

`<Download>` 组件现在支持使用新的 `sources` 属性将多个文件打包成单个 ZIP 下载。当您希望用户下载一组相关资源（如品牌徽标、SDK 文件或配置模板）而无需托管预构建的 ZIP 文件时，这非常有用。

向 `sources` 传递一个公开可访问的 URL 数组，组件会在客户端获取每个文件并将它们打包成 ZIP 归档：

**`Markdown`**

```jsx Markdown
<Download
  sources={[
    "https://example.com/assets/logo-dark.svg",
    "https://example.com/assets/logo-light.svg",
    "https://example.com/assets/icon.svg"
  ]}
  filename="brand-assets.zip"
>
  <Button intent="primary">下载品牌资源</Button>
</Download>
```

阅读文档

## 折叠部分的 `open-by-default` 选项

侧边栏导航中的部分和文件夹支持新的 `collapsed: open-by-default` 值。使用此值配置的部分默认展开，但显示切换按钮以便用户可以折叠它们。

**`docs.yml`**

```yaml docs.yml {3}
navigation:
  - section: API 指南
    collapsed: open-by-default
    contents:
      - page: 认证
        path: ./pages/api/auth.mdx
      - page: 分页
        path: ./pages/api/pagination.mdx
```

阅读文档