mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2024-11-10 17:49:18 +08:00
13 lines
346 B
TypeScript
13 lines
346 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'
|
||
|
|
||
|
export default {
|
||
|
...DefaultTheme,
|
||
|
enhanceApp(ctx) {
|
||
|
DefaultTheme.enhanceApp?.(ctx)
|
||
|
ctx.app.component('Demo', AntdTheme)
|
||
|
}
|
||
|
} as Theme
|