ComponentSlots

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

用法

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

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

API

Props

Prop Default Type
slug

route path's last segment

string

The slug of the component to fetch slots for.

Copyright © 2024 - 2025