ComponentSlots

ComponentSlots automatically generates complete slot documentation for Vue components via nuxt-component-meta, displaying every slot's name, scoped variable types, and description in a single line of Markdown, greatly reducing the effort of writing API documentation by hand.

Usage

Use the :component-slots syntax in your Markdown documentation:

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

API

Props

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

获取组件插槽的 slug 标识

Changelog

No recent changes
Copyright © 2024 - 2026