ComponentProps 组件自动为您的 Vue 组件生成属性(Props)文档,清晰地展示其名称、类型、默认值和详细说明。在您的 Markdown 文档中使用以下语法:
:component-props{slug="你的组件名称"}
| Prop | Default | Type |
|---|---|---|
slug | route path's last segment | stringThe slug of the component to fetch props for. |
ignore | [
"activeClass",
"inactiveClass",
"exactActiveClass",
"ariaCurrentValue",
"href",
"rel",
"noRel",
"prefetch",
"prefetchOn",
"noPrefetch",
"prefetchedClass",
"replace",
"exact",
"exactQuery",
"exactHash",
"external",
"onClick",
"viewTransition",
"enterKeyHint",
"form",
"formaction",
"formenctype",
"formmethod",
"formnovalidate",
"formtarget"
] | string[]An array of prop names to ignore. |
prose | boolean |