feat: 引入 animate.css 动画库,移除自定义的 transtion 自定义动画样式文件

This commit is contained in:
郝先瑞
2024-02-21 18:17:57 +08:00
parent b1210cf2b8
commit 41234e7e57
7 changed files with 11 additions and 84 deletions

View File

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

View File

@@ -1,6 +1,6 @@
<template>
<div class="logo-container">
<transition name="logo-transition">
<transition enter-active-class="animate__animated animate__fadeInLeft">
<router-link v-if="collapse" class="wh-full flex-center" to="/">
<img v-if="settingsStore.sidebarLogo" :src="logo" class="logo-image" />
</router-link>
@@ -41,6 +41,7 @@ const logo = ref(new URL(`../../../../assets/logo.png`, import.meta.url).href);
}
.logo-title {
flex-shrink: 0; /* 防止容器在空间不足时缩小 */
margin-left: 10px;
font-size: 14px;
font-weight: bold;