feat: add global page toggling animation

This commit is contained in:
chenghx
2018-09-03 14:20:04 +08:00
parent a514bb4197
commit bf932950d6
4 changed files with 19 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
<template>
<global-layout>
<transition name="page-toggle">
<router-view />
</transition>
</global-layout>
</template>

View File

@@ -3,7 +3,9 @@
<div slot="extra" class="extraImg">
<img :src="extraImage"/>
</div>
<router-view ref="page"/>
<transition name="page-toggle">
<router-view ref="page"/>
</transition>
</page-layout>
</template>

View File

@@ -1,5 +1,7 @@
<template>
<transition name="page-toggle">
<router-view />
</transition>
</template>
<script>