UNPKG

@knightly/vitepress

Version:

Vite & Vue powered static site generator

12 lines (11 loc) 346 B
import { defineComponent, h } from 'vue'; import { useRoute } from '../router'; export const Content = defineComponent({ name: 'VitePressContent', setup() { const route = useRoute(); return () => h('div', { style: { position: 'relative' } }, [ route.component ? h(route.component) : null ]); } });