mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
fbdd913d8e
* Add translation tracker for stale translations audit Generated-By: mintlify-agent * translations: add missing pages and update content for es, fr, zh Phase 1: Add translations for 4 new API analytics pages (feedback-by-page, searches, views, visitors) in es, fr, and zh. Phase 2: Update 3 pages with content changes: - agent/workflows: add "Disable a workflow" subsection - ai/skillmd: add 24-hour generation note - editor/publish: add AI PR title tip, reformat publishing workflows, promote "Publish your changes" heading from h3 to h2 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * update descriptions * translations * translations * translations * Delete TRANSLATION_TRACKER.md * translations * a * a * translations * translations * translations * translations * translations * translations * translations * translations * Update use-cases.mdx * translations * translations * Update ai-native.mdx * Update accordions.mdx * Update accordions.mdx * Update accordions.mdx * translations * translations * Update fonts.mdx * translations * translations: update SEO descriptions for es, fr, zh (150 pages) Update the description: frontmatter field across 150 pages × 3 languages to match the current English descriptions updated on 2026-03-31. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
116 lines
3.1 KiB
Plaintext
116 lines
3.1 KiB
Plaintext
---
|
||
title: "折叠面板"
|
||
description: "使用折叠面板组件在文档中显示和隐藏内容区块、组织相关信息,并实现渐进式信息披露。"
|
||
keywords: ["accordions", "collapsible content", "expandable sections", "progressive disclosure"]
|
||
---
|
||
|
||
import IconsOptional from "/snippets/zh/icons-optional.mdx";
|
||
|
||
折叠面板允许用户展开和收起内容区块。将折叠面板用于循序渐进地呈现信息,并帮助组织内容。
|
||
|
||
当你打开一个折叠面板时,URL 的哈希值会更新,这样你就可以分享指向特定折叠面板区域的直接链接。
|
||
|
||
<div id="single-accordion">
|
||
## 单个折叠面板
|
||
</div>
|
||
|
||
<Accordion title="我是一个折叠面板。">
|
||
你可以在这里放入任何内容,包括其他组件,例如代码:
|
||
|
||
```java HelloWorld.java
|
||
class HelloWorld {
|
||
public static void main(String[] args) {
|
||
System.out.println("Hello, World!");
|
||
}
|
||
}
|
||
```
|
||
</Accordion>
|
||
|
||
````mdx Accordion example
|
||
<Accordion title="我是一个折叠面板。">
|
||
您可以在这里放置任何内容,包括其他组件,比如代码:
|
||
|
||
```java HelloWorld.java
|
||
class HelloWorld {
|
||
public static void main(String[] args) {
|
||
System.out.println("Hello, World!");
|
||
}
|
||
}
|
||
```
|
||
</Accordion>
|
||
````
|
||
|
||
<div id="accordion-groups">
|
||
## 折叠面板分组
|
||
</div>
|
||
|
||
使用 `<AccordionGroup>` 将相关折叠面板组合在一起。这样可构成一个连贯的区块,每个面板都可单独展开或收起。
|
||
|
||
<AccordionGroup>
|
||
<Accordion title="入门">
|
||
你可以在折叠面板中嵌入其他组件。
|
||
|
||
```java HelloWorld.java
|
||
class HelloWorld {
|
||
public static void main(String[] args) {
|
||
System.out.println("Hello, World!");
|
||
}
|
||
}
|
||
```
|
||
</Accordion>
|
||
|
||
<Accordion title="高级功能" icon="bot">
|
||
添加图标可让折叠面板更易区分并便于快速浏览。
|
||
</Accordion>
|
||
|
||
<Accordion title="故障排除">
|
||
将相关内容归类到同一分组中。
|
||
</Accordion>
|
||
</AccordionGroup>
|
||
|
||
````mdx Accordion Group Example
|
||
<AccordionGroup>
|
||
<Accordion title="入门指南">
|
||
您可以在折叠面板内放置其他组件。
|
||
|
||
```java HelloWorld.java
|
||
class HelloWorld {
|
||
public static void main(String[] args) {
|
||
System.out.println("Hello, World!");
|
||
}
|
||
}
|
||
```
|
||
</Accordion>
|
||
|
||
<Accordion title="高级功能" icon="alien-8bit">
|
||
添加图标可以让折叠面板更具视觉区分度和易于浏览。
|
||
</Accordion>
|
||
|
||
<Accordion title="故障排除">
|
||
将相关内容组织成组。
|
||
</Accordion>
|
||
</AccordionGroup>
|
||
````
|
||
|
||
|
||
<div id="properties">
|
||
## 属性
|
||
</div>
|
||
|
||
<ResponseField name="title" type="string" required>
|
||
折叠面板预览中的标题。
|
||
</ResponseField>
|
||
|
||
<ResponseField name="description" type="string">
|
||
折叠面板预览中标题下方的说明。
|
||
</ResponseField>
|
||
|
||
<ResponseField name="defaultOpen" type="boolean" default="false">
|
||
折叠面板默认是否展开。
|
||
</ResponseField>
|
||
|
||
<ResponseField name="id" type="string">
|
||
用于锚点链接的折叠面板自定义 ID。若省略,则默认与 `title` 的值相同。
|
||
</ResponseField>
|
||
|
||
<IconsOptional /> |