mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-07-02 10:03:12 +08:00
feat: add global register
This commit is contained in:
@ -2,11 +2,13 @@ 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
|
||||
|
Reference in New Issue
Block a user