antd-tiny-vue/site/.vitepress/theme/index.ts

13 lines
346 B
TypeScript
Raw Normal View History

2023-02-26 08:20:18 +08:00
import type { Theme } from 'vitepress'
// eslint-disable-next-line import/no-named-as-default
import DefaultTheme from 'vitepress/theme'
import { AntdTheme } from 'vite-plugin-vitepress-demo/theme'
export default {
...DefaultTheme,
enhanceApp(ctx) {
DefaultTheme.enhanceApp?.(ctx)
ctx.app.component('Demo', AntdTheme)
}
} as Theme