mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
Adjusted some animation
This commit is contained in:
parent
a606626053
commit
5a8f2fa2be
@ -2,6 +2,7 @@
|
|||||||
import { RouterView } from 'vue-router'
|
import { RouterView } from 'vue-router'
|
||||||
import {DashboardConfigurationStore} from "@/stores/DashboardConfigurationStore.js";
|
import {DashboardConfigurationStore} from "@/stores/DashboardConfigurationStore.js";
|
||||||
import {computed, watch} from "vue";
|
import {computed, watch} from "vue";
|
||||||
|
import {v4} from "uuid";
|
||||||
const store = DashboardConfigurationStore();
|
const store = DashboardConfigurationStore();
|
||||||
store.initCrossServerConfiguration();
|
store.initCrossServerConfiguration();
|
||||||
if (window.IS_WGDASHBOARD_DESKTOP){
|
if (window.IS_WGDASHBOARD_DESKTOP){
|
||||||
@ -39,7 +40,7 @@ const getActiveCrossServer = computed(() => {
|
|||||||
</nav>
|
</nav>
|
||||||
<Suspense>
|
<Suspense>
|
||||||
<RouterView v-slot="{ Component }">
|
<RouterView v-slot="{ Component }">
|
||||||
<Transition name="app" mode="out-in" type="transition">
|
<Transition name="app" mode="out-in" type="transition" appear>
|
||||||
<Component :is="Component"></Component>
|
<Component :is="Component"></Component>
|
||||||
</Transition>
|
</Transition>
|
||||||
</RouterView>
|
</RouterView>
|
||||||
@ -49,17 +50,13 @@ const getActiveCrossServer = computed(() => {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.app-enter-active,
|
.app-enter-active,
|
||||||
.app-leave-active {
|
.app-leave-active {
|
||||||
transition: all 0.3s cubic-bezier(0.82, 0.58, 0.17, 0.9);
|
transition: all 0.7s cubic-bezier(0.82, 0.58, 0.17, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-enter-from{
|
.app-enter-from,
|
||||||
transform: translateY(20px);
|
.app-leave-to{
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-leave-to {
|
|
||||||
transform: translateY(-20px);
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
transform: scale(1.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 768px) {
|
@media screen and (min-width: 768px) {
|
||||||
|
Loading…
Reference in New Issue
Block a user