mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-07-02 18:13:13 +08:00
feat: add site demo
This commit is contained in:
12
site/.vitepress/theme/index.ts
Normal file
12
site/.vitepress/theme/index.ts
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
Reference in New Issue
Block a user