Closed shiouhoo closed 7 months ago
在 .vitepress/theme/index.js 中可以覆盖的。 默认是
import Demo from 'vitepress-theme-demoblock/dist/client/components/Demo.vue' import DemoBlock from 'vitepress-theme-demoblock/dist/client/components/DemoBlock.vue' export function useComponents(app) { app.component('Demo', Demo) app.component('DemoBlock', DemoBlock) }
你可以自己编写 Demo 组件,然后注册 app.component('Demo', CustomDemo).
Demo
app.component('Demo', CustomDemo)
在 .vitepress/theme/index.js 中可以覆盖的。 默认是
你可以自己编写
Demo
组件,然后注册app.component('Demo', CustomDemo)
.