From b257bc5c5bb380149f6d279c523c7252b52257f5 Mon Sep 17 00:00:00 2001 From: SherkeyXD <57581480+SherkeyXD@users.noreply.github.com> Date: Tue, 23 Sep 2025 02:00:56 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=87=E6=A1=A3=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=AE=B9=E5=99=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.ts | 1 + .../zh-cn/develop/documentation-guidelines.md | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index b347d7c5aa..7823815d70 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -96,6 +96,7 @@ export default defineUserConfig({ markdown: { icon: { provider: 'iconify' }, plot: true, + field: true, }, diff --git a/docs/zh-cn/develop/documentation-guidelines.md b/docs/zh-cn/develop/documentation-guidelines.md index 9be887a1a2..7b93fe1378 100644 --- a/docs/zh-cn/develop/documentation-guidelines.md +++ b/docs/zh-cn/develop/documentation-guidelines.md @@ -232,6 +232,32 @@ MaaAssistantArknight 是由 ==很多猪== 开发的 ::: +## 字段容器 + +该语法较为复杂,请参考 [官方文档](https://theme-plume.vuejs.press/guide/markdown/field/) 进行使用 + +效果展示如下 + +:::: field-group +::: field name="theme" type="ThemeConfig" required default="{ base: '/' }" +主题配置 +::: + +::: field name="enabled" type="boolean" optional default="true" +是否启用 +::: + +::: field name="callback" type="(...args: any[]) => void" optional default="() => {}" + +回调函数 +::: + +::: field name="other" type="string" deprecated + +已弃用属性 +::: +:::: + ## 图标 该主题提供了图标支持,你可以在以下地方使用图标: