Files
mintlify__docs/zh/components/expandables.mdx
mintlify[bot] fbdd913d8e Add translation audit tracker (#5055)
* 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>
2026-04-02 10:52:59 -07:00

46 lines
1.3 KiB
Plaintext

---
title: "可展开项"
description: "使用可展开组件在 API 文档中切换嵌套对象属性的显示,展示请求和响应对象的子字段。"
keywords: ["expandables", "nested properties", "expandable fields", "toggle content"]
---
使用可展开项在响应字段中显示或隐藏嵌套内容。它们对在 API 文档中展示复杂对象属性尤其有用。
<ResponseField name="user" type="User Object">
<Expandable title="properties">
<ResponseField name="full_name" type="string">
用户的全名
</ResponseField>
<ResponseField name="is_over_21" type="boolean">
用户是否已满 21 岁
</ResponseField>
</Expandable>
</ResponseField>
```mdx Expandable example
<ResponseField name="user" type="User Object">
<Expandable title="properties">
<ResponseField name="full_name" type="string">
用户的全名
</ResponseField>
<ResponseField name="is_over_21" type="boolean">
用户是否已满 21 岁
</ResponseField>
</Expandable>
</ResponseField>
```
<div id="properties">
## 属性
</div>
<ResponseField name="title" type="string">
正在显示的对象名称。
</ResponseField>
<ResponseField name="defaultOpen" type="boolean" default="false">
设为 `true`,使展开项在页面加载时默认打开。
</ResponseField>