index.ts 515 B

123456789101112131415161718
  1. // https://vitepress.dev/guide/custom-theme
  2. import type { Theme } from "vitepress";
  3. import DefaultTheme from "vitepress/theme";
  4. import ElementPlus from 'element-plus'
  5. import CustomLayout from "../../components/CustomLayout.vue";
  6. import i18n from "../../plugins/i18n";
  7. import 'element-plus/dist/index.css'
  8. import "./style.css";
  9. export default {
  10. extends: DefaultTheme,
  11. Layout: CustomLayout,
  12. enhanceApp({ app, router, siteData }) {
  13. app.use(i18n);
  14. app.use(ElementPlus)
  15. // ...
  16. },
  17. } satisfies Theme;