11<script setup lang="ts">
2- import { defaultDocument } from " @vueuse/core" ;
3- import mediumZoom from " medium-zoom" ;
4- import { useRoute } from " vitepress" ;
5- import { nextTick , onMounted , watch } from " vue" ;
6- import ButtonVerticalNavigation from " ./components/ButtonVerticalNavigation.vue" ;
7- import PageContent from " ./components/PageContent.vue" ;
8- import PageFooter from " ./components/PageFooter.vue" ;
9- import PageLogo from " ./components/PageLogo.vue" ;
2+ import { defaultDocument } from ' @vueuse/core'
3+ import mediumZoom from ' medium-zoom'
4+ import { useRoute } from ' vitepress'
5+ import { nextTick , onMounted , watch } from ' vue'
6+ import ButtonVerticalNavigation from ' ./components/ButtonVerticalNavigation.vue'
7+ import PageContent from ' ./components/PageContent.vue'
8+ import PageFooter from ' ./components/PageFooter.vue'
9+ import PageLogo from ' ./components/PageLogo.vue'
1010
11- import PageNav from " ./components/PageNav.vue" ;
11+ import PageNav from ' ./components/PageNav.vue'
1212
13- const route = useRoute ();
13+ const route = useRoute ()
1414
1515function initZoom() {
16- mediumZoom (" #content figure img" , {
16+ mediumZoom (' #content figure img' , {
1717 margin: 24 ,
18- background: " var(--image-mask-bg)" ,
18+ background: ' var(--image-mask-bg)' ,
1919 container: defaultDocument ! .body ,
20- });
20+ })
2121}
2222
2323onMounted (() => {
24- initZoom ();
25- });
24+ initZoom ()
25+ })
2626
2727watch (
2828 () => route .path ,
2929 () => nextTick (() => initZoom ()),
30- );
30+ )
3131 </script >
3232
3333<template >
@@ -40,7 +40,10 @@ watch(
4040 <PageLogo />
4141 <PageNav />
4242 <PageContent :key =" route.path" />
43- <ButtonVerticalNavigation un-hidden un-md:flex />
43+ <ButtonVerticalNavigation
44+ un-hidden
45+ un-md:flex
46+ />
4447 <PageFooter />
4548 </div >
4649</template >
0 commit comments