Browse Source

fix animation and router type

LiuHao 2 years ago
parent
commit
457b443404
2 changed files with 8 additions and 8 deletions
  1. 7 7
      src/animate.ts
  2. 1 1
      src/types/router.d.ts

+ 7 - 7
src/animate.ts

@@ -21,22 +21,22 @@ const animateList: string[] = [
 	animatePrefix + 'animate__lightSpeedIn'
 ];
 // 关闭随机动画后的默认效果
-const defaultAnimate = animatePrefix + 'animate__bounceIn';
+const defaultAnimate = animatePrefix + 'animate__fadeIn';
 // 搜索隐藏显示动画
 const searchAnimate = {
-	enter: animatePrefix + 'animate__flipInX',
-	leave: animatePrefix + 'animate__bounceOut'
+	enter: '',
+	leave: ''
 };
 
 // 菜单搜索动画
 const menuSearchAnimate = {
-	enter: animatePrefix + 'animate__fadeInLeft',
-	leave: animatePrefix + 'animate__fadeOutLeft'
+	enter: animatePrefix + 'animate__fadeIn',
+	leave: animatePrefix + 'animate__fadeOut'
 };
 // logo动画
 const logoAnimate = {
-	enter: animatePrefix + 'animate__bounceIn',
-	leave: animatePrefix + 'animate__bounceOut'
+	enter: animatePrefix + 'animate__fadeIn',
+	leave: animatePrefix + 'animate__fadeOut'
 };
 
 export default {

+ 1 - 1
src/types/router.d.ts

@@ -11,7 +11,7 @@ declare module 'vue-router' {
 		parentPath?: string;
 		meta?: {
 			title: string;
-			icon?: string;
+			icon: string;
 		};
 	} & RouteRecordRaw;