File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1414
1515<ClientOnly >
1616 <div :style =" { margin: '16px 0' } " >
17- <PlaygroundLink :component="component" />
17+ <PlaygroundLink :component="component" />
1818 </div >
1919</ClientOnly >
2020
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import CodeDemo from '../components/code-demo.md'
55import PlaygroundLink from '../components/PlaygroundLink.vue'
66import '@wsfe/vue-tree/style.css'
77
8- const codeDemoComponents = import . meta. glob ( '../code/*.vue' )
9-
108export default {
119 extends : DefaultTheme ,
1210 async enhanceApp ( { app } ) {
1311 // 注册自定义全局组件
1412 app . component ( 'CodeDemo' , CodeDemo )
1513 app . component ( 'PlaygroundLink' , PlaygroundLink )
14+
15+ const codeDemoComponents = import . meta. glob ( '../code/*.vue' )
1616
1717 for ( const path in codeDemoComponents ) {
1818 const component = await codeDemoComponents [ path ] ( )
Original file line number Diff line number Diff line change 22
33## Try It Online {#try-it-online}
44
5- <div >Refer to <PlaygroundLink component =" DataDisplay " text =" Playground " /> to try it online</div >
5+ <ClientOnly >
6+ <div >Refer to <PlaygroundLink component =" DataDisplay " text =" Playground " /> to try it online</div >
7+ </ClientOnly >
68
79## Install {#install}
810
You can’t perform that action at this time.
0 commit comments