mirror of https://github.com/vuejs/vitepress
parent
57d6a7bd72
commit
0cacee70d0
@ -1,18 +1,12 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { DefaultTheme, useData } from 'vitepress'
|
import { DefaultTheme } from '../config'
|
||||||
import { isActive } from '../support/utils'
|
|
||||||
import VPFlyout from './VPFlyout.vue'
|
import VPFlyout from './VPFlyout.vue'
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
item: DefaultTheme.NavItemWithChildren
|
item: DefaultTheme.NavItemWithChildren
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const { page } = useData()
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VPFlyout
|
<VPFlyout :button="item.text" :items="item.items" />
|
||||||
:button="item.text"
|
|
||||||
:items="item.items"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
// so that users can do `import DefaultTheme from 'vitepress/theme'`
|
// so that users can do `import DefaultTheme from 'vitepress/theme'`
|
||||||
import { ComponentOptions } from 'vue'
|
import { ComponentOptions } from 'vue'
|
||||||
|
|
||||||
declare const defaultTheme: {
|
export const VPHomeHero = ComponentOptions
|
||||||
|
export const VPHomeFeatures = ComponentOptions
|
||||||
|
export const VPHomeSponsors = ComponentOptions
|
||||||
|
|
||||||
|
declare const theme: {
|
||||||
Layout: ComponentOptions
|
Layout: ComponentOptions
|
||||||
NotFound: ComponentOptions
|
NotFound: ComponentOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defaultTheme
|
export default theme
|
||||||
|
Loading…
Reference in new issue