ComponentProps

了解如何使用 ComponentProps 组件自动为您的 Vue 组件生成属性(Props)文档,清晰地展示其名称、类型、默认值和详细说明。

用法

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

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

API

Props

Prop Default Type
slug

route path's last segment

string

The slug of the component to fetch props for.

ignore

[]

string[]

An array of prop names to ignore.

Copyright © 2024 - 2025