ComponentEmits

探索如何使用 ComponentEmits 组件自动为您的 Vue 组件生成事件(Emits)文档,清晰地呈现事件名称、参数和详细描述。

用法

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

Event Type
changeany[]
deleteany[]
:component-emits{slug="TestApi"}

API

Props

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

获取组件事件的 slug 标识

Changelog

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

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

Copyright © 2024 - 2026