fix: 新增侧边栏和首页

This commit is contained in:
MTrun
2021-12-18 22:05:00 +08:00
parent 90e45f6c23
commit c1daa231b6
29 changed files with 451 additions and 86 deletions
-4
View File
@@ -32,9 +32,5 @@ import { LangSelect } from '@/components/LangSelect'
padding: 0 60px;
height: $--header-height;
}
&-divider {
margin: 0;
padding-top: 0;
}
}
</style>
+1 -5
View File
@@ -1,11 +1,7 @@
<template>
<router-view>
<template #default="{ Component, route }">
<transition name="list-complete" mode="out-in" appear>
<keep-alive>
<component :is="Component" :key="route.fullPath" />
</keep-alive>
</transition>
<component :is="Component" :key="route.fullPath" />
</template>
</router-view>
</template>
@@ -0,0 +1,3 @@
import TransitionMain from './index.vue';
export { TransitionMain };
@@ -0,0 +1,18 @@
<template>
<router-view #default="{ Component, route }">
<n-collapse-transition appear>
<component :is="Component" :key="route.fullPath" />
</n-collapse-transition>
<!-- todo 暂时不生效待处理 -->
<!-- <transition name="v-modal" mode="out-in" appear>
<component
v-if="route.noKeepAlive"
:is="Component"
:key="route.fullPath"
/>
<keep-alive v-else>
<component :is="Component" :key="route.fullPath" />
</keep-alive>
</transition> -->
</router-view>
</template>