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

15 lines
407 B
TypeScript
Raw Permalink 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'
2023-03-10 22:18:22 +08:00
import Antd from '../../../components'
2023-02-26 08:20:18 +08:00
export default {
...DefaultTheme,
enhanceApp(ctx) {
DefaultTheme.enhanceApp?.(ctx)
ctx.app.component('Demo', AntdTheme)
2023-03-10 22:18:22 +08:00
ctx.app.use(Antd)
2023-02-26 08:20:18 +08:00
}
} as Theme