Skip to content

Commit

Permalink
fix: 페이지 트랜지션 없는 현상 고침
Browse files Browse the repository at this point in the history
  • Loading branch information
lavi27 committed Jan 19, 2024
1 parent ea8fff3 commit 4f7ca86
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 34 deletions.
4 changes: 2 additions & 2 deletions assets/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ body {

.page-enter-active,
.page-leave-active {
transition: opacity 0.3s;
transition: opacity 0.1s;
}

.page-enter,
.page-enter-from,
.page-leave-to {
opacity: 0;
}
10 changes: 0 additions & 10 deletions assets/styles/layouts/dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,6 @@ main {
padding-right: 3rem;
}

.contents-enter-active,
.contents-leave-active {
transition: opacity 0.3s;
}

.contents-enter-from,
.contents-leave-to {
opacity: 0;
}

code {
background: #0e0e13;
padding: 3px;
Expand Down
14 changes: 5 additions & 9 deletions assets/styles/layouts/spinerProvider.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
.spiner-enter-active,
.spiner-leave-active,
.connErr-enter-active,
.connErr-leave-active {
transition: opacity 0.3s;
.spinner-contents-enter-active,
.spinner-contents-leave-active {
transition: opacity 0.15s;
}

.spiner-enter-from,
.spiner-leave-to,
.connErr-enter-from,
.connErr-leave-to {
.spinner-contents-enter-from,
.spinner-contents-leave-to {
opacity: 0;
}

Expand Down
2 changes: 1 addition & 1 deletion layouts/spinerWrap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { loadingState } = useLoadingState()
</style>

<template>
<transition name="contents">
<transition name="spinner-contents">
<div v-if="loadingState === LOADING_STATE.Success">
<slot />
</div>
Expand Down
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineNuxtConfig({
devtools: { enabled: true },

app: {
pageTransition: { name: 'page', mode: 'out-in' },
head: {
title: 'NGuard Console',
meta: [
Expand Down
15 changes: 3 additions & 12 deletions pages/dashboard.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
<script setup lang="ts">
const i18n = useI18n()
</script>

<template>
<NuxtLayout>
<div :class="`i18n i18n_${i18n.locale.value}`">
<AppHeader />
<div class="flex w-full h-full min-h-0">
<AppNavBar />
<NuxtLayout name="app-base">
<AppNavBar />

<NuxtPage />
</div>
</div>
<NuxtPage />
</NuxtLayout>
</template>

Expand Down

0 comments on commit 4f7ca86

Please sign in to comment.