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 14
14
15
15
<ClientOnly >
16
16
<div :style =" { margin: '16px 0' } " >
17
- <PlaygroundLink :component="component" />
17
+ <PlaygroundLink :component="component" />
18
18
</div >
19
19
</ClientOnly >
20
20
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import CodeDemo from '../components/code-demo.md'
5
5
import PlaygroundLink from '../components/PlaygroundLink.vue'
6
6
import '@wsfe/vue-tree/style.css'
7
7
8
- const codeDemoComponents = import . meta. glob ( '../code/*.vue' )
9
-
10
8
export default {
11
9
extends : DefaultTheme ,
12
10
async enhanceApp ( { app } ) {
13
11
// 注册自定义全局组件
14
12
app . component ( 'CodeDemo' , CodeDemo )
15
13
app . component ( 'PlaygroundLink' , PlaygroundLink )
14
+
15
+ const codeDemoComponents = import . meta. glob ( '../code/*.vue' )
16
16
17
17
for ( const path in codeDemoComponents ) {
18
18
const component = await codeDemoComponents [ path ] ( )
Original file line number Diff line number Diff line change 2
2
3
3
## Try It Online {#try-it-online}
4
4
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 >
6
8
7
9
## Install {#install}
8
10
You can’t perform that action at this time.
0 commit comments