ComponentSlots

GitHub查看源码
ComponentSlots 通过 nuxt-component-meta 自动为 Vue 组件生成完整的 Slot 插槽文档,在 Markdown 中一行代码即可展示所有插槽的名称、作用域变量类型和功能说明,大幅简化手写 API 文档的工作量。

用法

在您的 Markdown 文档中使用 :component-slots 语法:

Slot Type
default{}
avatar{}
:component-slots{slug="TestApi"}

API

Props

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

获取组件插槽的 slug 标识

Changelog

No recent changes
Copyright © 2024 - 2026