admin-vben/website/.vitepress/theme/index.ts

21 lines
508 B
TypeScript
Raw Normal View History

2024-05-29 14:13:31 +00:00
// https://vitepress.dev/guide/custom-theme
import './style.css';
import type { Theme } from 'vitepress';
import DefaultTheme from 'vitepress/theme';
import { h } from 'vue';
export default {
Layout: () => {
return h(DefaultTheme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
});
},
// eslint-disable-next-line @typescript-eslint/no-unused-vars
enhanceApp({ app, router, siteData }) {
// ...
},
extends: DefaultTheme,
} satisfies Theme;