mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2024-11-14 07:29:15 +08:00
15 lines
407 B
TypeScript
15 lines
407 B
TypeScript
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'
|
|
import Antd from '../../../components'
|
|
|
|
export default {
|
|
...DefaultTheme,
|
|
enhanceApp(ctx) {
|
|
DefaultTheme.enhanceApp?.(ctx)
|
|
ctx.app.component('Demo', AntdTheme)
|
|
ctx.app.use(Antd)
|
|
}
|
|
} as Theme
|