Skip to content

Commit

Permalink
示例页页面切换动画
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyong90 committed Nov 3, 2017
1 parent b2f5c4e commit 9a8e709
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 5 additions & 6 deletions example/app.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<template>
<router-view></router-view>
<!--<transition :name="$root.transitionName">-->
<!--<keep-alive>-->
<!---->
<!--</keep-alive>-->
<!--</transition>-->
<transition :name="$root.transitionName">
<keep-alive>
<router-view></router-view>
</keep-alive>
</transition>
</template>
3 changes: 3 additions & 0 deletions example/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ router.afterEach((to) => {

new Vue({
el: '#app',

render: h => h(App),

router,

store,

data () {
Expand Down

0 comments on commit 9a8e709

Please sign in to comment.