Skip to content

Commit e4815e3

Browse files
committed
fix(demo): try use official demo block instead of custom
Related Issue: DevCloudFE#1879
1 parent 5dc533c commit e4815e3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Don't remove this file, because it registers the demo components.
2+
import Demo from 'vitepress-theme-demoblock/dist/client/components/Demo.vue'
3+
import DemoBlock from 'vitepress-theme-demoblock/dist/client/components/DemoBlock.vue'
4+
// import Demo from '../demo/Demo.vue';
5+
// import DemoBlock from '../demo/DemoBlock.vue';
6+
7+
export function useComponents(app) {
8+
app.component('Demo', Demo)
9+
app.component('DemoBlock', DemoBlock)
10+
}

0 commit comments

Comments
 (0)