覆盖组件
用自定义 Vue 组件替换 shadcn-docs-nuxt 组件。
shadcn-docs-nuxt 是一个 Nuxt Layer。您可以通过在项目中创建与原始组件相同路径的自定义 Vue 组件来覆盖 shadcn-docs-nuxt 中的任何组件。确保您的组件包含与原始组件相同的 props。
以下是 shadcn-docs-nuxt 中 components/ 文件夹的简要展示。
Check out the complete file structure on GitHub
例如,如果您想覆盖 Footer 组件,请在项目根目录中创建 /components/layout/Footer.vue。
/components/layout/Footer.vue