File tree 2 files changed +20
-6
lines changed
src/client/theme-default/components
2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import { defineAsyncComponent } from ' vue'
3
2
import { useData } from ' ../composables/data.js'
4
3
import VPDocAsideOutline from ' ./VPDocAsideOutline.vue'
4
+ import VPDocAsideCarbonAds from ' ./VPDocAsideCarbonAds.vue'
5
5
6
6
const { theme } = useData ()
7
-
8
- const VPCarbonAds = __CARBON__
9
- ? defineAsyncComponent (() => import (' ./VPCarbonAds.vue' ))
10
- : () => null
11
7
</script >
12
8
13
9
<template >
@@ -21,7 +17,7 @@ const VPCarbonAds = __CARBON__
21
17
<div class =" spacer" />
22
18
23
19
<slot name =" aside-ads-before" />
24
- <VPCarbonAds v-if =" theme.carbonAds" :carbonAds =" theme.carbonAds" />
20
+ <VPDocAsideCarbonAds v-if =" theme.carbonAds" :carbon-ads =" theme.carbonAds" />
25
21
<slot name =" aside-ads-after" />
26
22
27
23
<slot name =" aside-bottom" />
Original file line number Diff line number Diff line change
1
+ <script setup lang="ts">
2
+ import { defineAsyncComponent } from ' vue'
3
+ import type { DefaultTheme } from ' vitepress/theme'
4
+
5
+ defineProps <{
6
+ carbonAds: DefaultTheme .CarbonAdsOptions
7
+ }>()
8
+
9
+ const VPCarbonAds = __CARBON__
10
+ ? defineAsyncComponent (() => import (' ./VPCarbonAds.vue' ))
11
+ : () => null
12
+ </script >
13
+
14
+ <template >
15
+ <div class =" VPDocAsideCarbonAds" >
16
+ <VPCarbonAds :carbon-ads =" carbonAds" />
17
+ </div >
18
+ </template >
You can’t perform that action at this time.
0 commit comments