File tree 2 files changed +16
-7
lines changed
pages/[page-config-category]
2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,7 @@ watch(() => breakpoints.smDown, (newValue: boolean) => {
55
55
})
56
56
57
57
const { afterEach } = useRouter ()
58
- const { scrollToElement } = useDocsScroll ()
59
58
afterEach (() => {
60
- scrollToElement ()
61
59
isSidebarVisible .value = ! breakpoints .smDown
62
60
isOptionsVisible .value = false
63
61
})
@@ -76,7 +74,7 @@ const onMouseMove = (e: MouseEvent) => {
76
74
}
77
75
78
76
onMounted (() => {
79
- scrollToElement ()
77
+
80
78
isSidebarVisible .value = ! breakpoints .smDown
81
79
setTimeout (() => {
82
80
doShowLoader .value = false
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" page-config" >
3
- <PageConfig
4
- v-if =" !isLoading && config"
3
+ <PageConfig
4
+ v-if =" !isLoading && config"
5
5
:page-config =" config"
6
6
/>
7
7
<PageConfigSkeleton v-else />
12
12
import { type ConcreteBlock } from ' ../../modules/page-config/runtime' ;
13
13
14
14
definePageMeta ({
15
+ pageTransition: { name: ' page' , mode: ' out-in' },
15
16
layout: ' default' ,
16
17
scrollToTop: true ,
17
18
// See: https://github.com/nuxt/nuxt/issues/13309
@@ -31,9 +32,9 @@ const tabTitlePrefix = 'Vuestic UI'
31
32
32
33
const router = useRouter ()
33
34
watch (config , () => {
34
- if (! config .value ) {
35
+ if (! config .value ) {
35
36
router .push (' /404' )
36
- }
37
+ }
37
38
}, { immediate: true })
38
39
39
40
watchEffect (() => {
@@ -50,6 +51,16 @@ watchEffect(() => {
50
51
</script >
51
52
52
53
<style lang="scss">
54
+ .page-enter-active ,
55
+ .page-leave-active {
56
+ transition : all 0.2s ;
57
+ }
58
+ .page-enter-from ,
59
+ .page-leave-to {
60
+ opacity : 0 ;
61
+ filter : blur (1rem );
62
+ }
63
+
53
64
.page-config-title ,
54
65
.page-config-subtitle ,
55
66
.page-config-headline {
You can’t perform that action at this time.
0 commit comments