ComponentSlots

学习如何利用 ComponentSlots 组件为您的 Vue 组件自动生成插槽(Slots)文档,详细展示插槽名称、作用域和说明。

用法

在您的 Markdown 文档中使用以下语法:

md
:component-slots{slug="你的组件名称"}

API

Props

Prop Default Type
slug路由路径的最后一段string

获取组件插槽的 slug 标识

Changelog

4e45d — refactor: 重构组件结构和优化代码组织

586a5 — ✨ feat: 添加 Nuxt 文档主题 layer 核心代码

Copyright © 2024 - 2026