refactor: ♻️ 使用 Element-Plus 内置过渡动画替换 animate.css 动画库

This commit is contained in:
Ray.Hao
2025-01-04 23:36:58 +08:00
parent c51d3a744b
commit eda105b86f
4 changed files with 13 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
<section class="app-main" :style="{ height: appMainHeight }">
<router-view>
<template #default="{ Component, route }">
<transition enter-active-class="animate__animated animate__fadeIn" mode="out-in">
<transition name="el-fade-in">
<keep-alive :include="cachedViews">
<component :is="Component" :key="route.path" />
</keep-alive>