docs: 文档添加字段容器功能

This commit is contained in:
SherkeyXD
2025-09-23 02:00:56 +08:00
parent 7371c79cd4
commit b257bc5c5b
2 changed files with 27 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ export default defineUserConfig({
markdown: {
icon: { provider: 'iconify' },
plot: true,
field: true,
},

View File

@@ -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="() => {}"
<Badge type="tip" text="v1.0.0 新增" />
回调函数
:::
::: field name="other" type="string" deprecated
<Badge type="danger" text="v0.9.0 弃用" />
已弃用属性
:::
::::
## 图标
该主题提供了图标支持,你可以在以下地方使用图标: