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