|
|
@ -1,4 +1,4 @@
|
|
|
|
import { defineComponent, h } from 'vue'
|
|
|
|
import { defineComponent, h, watch } from 'vue'
|
|
|
|
import { useData, useRoute } from 'vitepress'
|
|
|
|
import { useData, useRoute } from 'vitepress'
|
|
|
|
import { contentUpdatedCallbacks } from '../utils'
|
|
|
|
import { contentUpdatedCallbacks } from '../utils'
|
|
|
|
|
|
|
|
|
|
|
@ -11,7 +11,8 @@ export const Content = defineComponent({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
setup(props) {
|
|
|
|
setup(props) {
|
|
|
|
const route = useRoute()
|
|
|
|
const route = useRoute()
|
|
|
|
const { site } = useData()
|
|
|
|
const { frontmatter, site } = useData()
|
|
|
|
|
|
|
|
watch(frontmatter, runCbs, { deep: true, flush: 'post' })
|
|
|
|
return () =>
|
|
|
|
return () =>
|
|
|
|
h(
|
|
|
|
h(
|
|
|
|
props.as,
|
|
|
|
props.as,
|
|
|
|