fix: set transition on router-view

This commit is contained in:
woothu
2019-05-31 16:23:23 +02:00
parent fb7bf628ad
commit 5fb7be44fa
+13
View File
@@ -6,7 +6,9 @@
<main class="c-main">
<CBreadcrumbRouter/>
<CContainer fluid>
<transition name="fade">
<router-view></router-view>
</transition>
</CContainer>
</main>
<TheAside/>
@@ -31,3 +33,14 @@ export default {
}
}
</script>
<style scoped>
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.3s;
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}
</style>