vehicle-monitor/src/App.vue

29 lines
733 B
Vue
Raw Normal View History

2025-02-24 18:23:33 +08:00
<template>
2025-03-01 20:52:06 +08:00
<router-view v-slot="{ Component, route }">
2025-05-11 21:32:19 +08:00
<transition
:enter-active-class="
route.meta.transition?.enter
? `animate__animated ${route.meta.transition.enter}`
: 'animate__animated animate__fadeInLeft animate__faster'
"
:leave-active-class="
route.meta.transition?.leave
? `animate__animated ${route.meta.transition.leave}`
: 'animate__animated animate__fadeOutLeft animate__faster'
"
mode="out-in"
>
2025-03-01 20:52:06 +08:00
<component :is="Component" :key="route.path" />
</transition>
</router-view>
2025-02-24 18:23:33 +08:00
</template>
2025-05-11 21:32:19 +08:00
<script lang="ts" setup></script>
2025-03-13 23:01:44 +08:00
<style lang="scss">
2025-02-25 23:14:50 +08:00
#app {
width: 100%;
2025-04-03 18:10:57 +08:00
//height: 1080px;
height: 100%;
2025-02-24 18:23:33 +08:00
}
</style>