index.ts 662 B

12345678910111213141516171819202122232425
  1. // https://vitepress.dev/guide/custom-theme
  2. import {h} from 'vue'
  3. import Theme from 'vitepress/theme'
  4. import './style.css'
  5. import MyLayout from "./MyLayout.vue";
  6. import Check from "./Check.vue";
  7. import Question from "./Question.vue";
  8. import Close from "./Close.vue";
  9. import Unhappy from "./Unhappy.vue";
  10. import MyEditor from "./MyEditor.vue";
  11. export default {
  12. ...Theme,
  13. Layout: MyLayout,
  14. async enhanceApp({app, router, siteData}) {
  15. app.component('Check', Check)
  16. app.component('Close', Close)
  17. app.component('Question', Question)
  18. app.component('Unhappy', Unhappy)
  19. app.component('MyEditor', MyEditor)
  20. }
  21. }