用法
在您的 Markdown 文档中使用 :component-slots 语法:
| Slot | Type |
|---|---|
default | {} |
avatar | {} |
:component-slots{slug="TestApi"}
API
Props
| Prop | Default | Type |
|---|---|---|
slug | 路由路径的最后一段 | string获取组件插槽的 slug 标识 |
Changelog
No recent changes
ComponentProps
ComponentProps 通过 nuxt-component-meta 自动读取 Vue 组件元数据,在 Markdown 文档中一行代码生成包含属性名称、类型、默认值和说明的完整 Props 文档表格,支持通过 slug 属性指定目标组件名称。
ComponentEmits
ComponentEmits 通过 nuxt-component-meta 自动提取 Vue 组件的 defineEmits 定义,在 Markdown 文档中生成包含事件名称、参数类型和说明的 Emits 文档表格,无需手动编写事件 API 说明,与 ComponentProps 和 ComponentSlots 配合使用。