mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-20 19:09:21 +08:00
perf: 优化路由过渡动画
This commit is contained in:
parent
7cae618b50
commit
857b95043b
@ -14,7 +14,7 @@ const key = computed(() => {
|
||||
<template>
|
||||
<section class="app-main">
|
||||
<router-view v-slot="{ Component }">
|
||||
<transition name="fade-transform" mode="out-in">
|
||||
<transition name="el-fade-in" mode="out-in">
|
||||
<keep-alive :include="tagsViewStore.cachedViews">
|
||||
<component :is="Component" :key="key" />
|
||||
</keep-alive>
|
||||
|
@ -1,4 +1,4 @@
|
||||
// See https://staging-cn.vuejs.org/guide/built-ins/transition.html for detail
|
||||
// See https://cn.vuejs.org/guide/built-ins/transition.html for detail
|
||||
|
||||
// fade-transform
|
||||
.fade-transform-leave-active,
|
||||
|
Loading…
x
Reference in New Issue
Block a user