Skip to content

Commit

Permalink
fix(demo): try use official demo block instead of custom
Browse files Browse the repository at this point in the history
Related Issue: DevCloudFE#1879
  • Loading branch information
fu050409 committed Jun 21, 2024
1 parent 5dc533c commit e4815e3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/devui-vue/docs/.vitepress/theme/useComponents.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Don't remove this file, because it registers the demo components.
import Demo from 'vitepress-theme-demoblock/dist/client/components/Demo.vue'
import DemoBlock from 'vitepress-theme-demoblock/dist/client/components/DemoBlock.vue'
// import Demo from '../demo/Demo.vue';
// import DemoBlock from '../demo/DemoBlock.vue';

export function useComponents(app) {
app.component('Demo', Demo)
app.component('DemoBlock', DemoBlock)
}

0 comments on commit e4815e3

Please sign in to comment.