|
@ -15,57 +15,46 @@ const transition = computed(() => { |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
|
<section class="app-main"> |
|
|
<section class="app-main"> |
|
|
<router-view> |
|
|
|
|
|
<template #default="{ Component, route }"> |
|
|
|
|
|
<transition |
|
|
|
|
|
:name=" |
|
|
|
|
|
transition(route) && route.meta.transition.enterTransition |
|
|
|
|
|
? 'pure-classes-transition' |
|
|
|
|
|
: (transition(route) && route.meta.transition.name) || |
|
|
|
|
|
'fade-transform' |
|
|
|
|
|
" |
|
|
|
|
|
:enter-active-class=" |
|
|
|
|
|
transition(route) && |
|
|
|
|
|
`animate__animated ${route.meta.transition.enterTransition}` |
|
|
|
|
|
" |
|
|
|
|
|
:leave-active-class=" |
|
|
|
|
|
transition(route) && |
|
|
|
|
|
`animate__animated ${route.meta.transition.leaveTransition}` |
|
|
|
|
|
" |
|
|
|
|
|
mode="out-in" |
|
|
|
|
|
appear |
|
|
|
|
|
> |
|
|
|
|
|
<keep-alive |
|
|
|
|
|
v-if="keepAlive" |
|
|
|
|
|
:include="usePermissionStoreHook().cachePageList" |
|
|
|
|
|
|
|
|
<el-scrollbar> |
|
|
|
|
|
<router-view> |
|
|
|
|
|
<template #default="{ Component, route }"> |
|
|
|
|
|
<transition |
|
|
|
|
|
:name=" |
|
|
|
|
|
transition(route) && route.meta.transition.enterTransition |
|
|
|
|
|
? 'pure-classes-transition' |
|
|
|
|
|
: (transition(route) && route.meta.transition.name) || |
|
|
|
|
|
'fade-transform' |
|
|
|
|
|
" |
|
|
|
|
|
:enter-active-class=" |
|
|
|
|
|
transition(route) && |
|
|
|
|
|
`animate__animated ${route.meta.transition.enterTransition}` |
|
|
|
|
|
" |
|
|
|
|
|
:leave-active-class=" |
|
|
|
|
|
transition(route) && |
|
|
|
|
|
`animate__animated ${route.meta.transition.leaveTransition}` |
|
|
|
|
|
" |
|
|
|
|
|
mode="out-in" |
|
|
|
|
|
appear |
|
|
> |
|
|
> |
|
|
<component :is="Component" :key="route.fullPath" /> |
|
|
|
|
|
</keep-alive> |
|
|
|
|
|
<component v-else :is="Component" :key="route.fullPath" /> |
|
|
|
|
|
</transition> |
|
|
|
|
|
</template> |
|
|
|
|
|
</router-view> |
|
|
|
|
|
|
|
|
<keep-alive |
|
|
|
|
|
v-if="keepAlive" |
|
|
|
|
|
:include="usePermissionStoreHook().cachePageList" |
|
|
|
|
|
> |
|
|
|
|
|
<component :is="Component" :key="route.fullPath" /> |
|
|
|
|
|
</keep-alive> |
|
|
|
|
|
<component v-else :is="Component" :key="route.fullPath" /> |
|
|
|
|
|
</transition> |
|
|
|
|
|
</template> |
|
|
|
|
|
</router-view> |
|
|
|
|
|
</el-scrollbar> |
|
|
</section> |
|
|
</section> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
.app-main { |
|
|
.app-main { |
|
|
min-height: calc(100vh - 70px); |
|
|
|
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 90vh; |
|
|
|
|
|
|
|
|
height: 100vh; |
|
|
position: relative; |
|
|
position: relative; |
|
|
overflow-x: hidden; |
|
|
overflow-x: hidden; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.fixed-header + .app-main { |
|
|
|
|
|
padding-top: 50px; |
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
|
|
.el-popup-parent--hidden { |
|
|
|
|
|
.fixed-header { |
|
|
|
|
|
padding-right: 15px; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|
</style> |