mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 13:28:32 +08:00
Merge branch 'Tencent:develop' into develop
This commit is contained in:
commit
8ef288a460
|
@ -32,7 +32,7 @@
|
||||||
"tdesign-icons-vue-next": "^0.2.2",
|
"tdesign-icons-vue-next": "^0.2.2",
|
||||||
"tdesign-vue-next": "^1.6.8",
|
"tdesign-vue-next": "^1.6.8",
|
||||||
"tvision-color": "^1.6.0",
|
"tvision-color": "^1.6.0",
|
||||||
"vue": "^3.3.8",
|
"vue": "~3.3.8",
|
||||||
"vue-i18n": "^9.6.5",
|
"vue-i18n": "^9.6.5",
|
||||||
"vue-router": "~4.2.4"
|
"vue-router": "~4.2.4"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<t-config-provider :global-config="getComponentsLocale">
|
<t-config-provider :global-config="getComponentsLocale">
|
||||||
<router-view :key="locale" :class="[mode]"
|
<router-view :key="locale" :class="[mode]" />
|
||||||
/></t-config-provider>
|
</t-config-provider>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<router-view v-if="!isRefreshing" v-slot="{ Component }">
|
<router-view v-if="!isRefreshing" v-slot="{ Component }">
|
||||||
<transition name="fade">
|
<transition name="fade" mode="out-in">
|
||||||
<keep-alive :include="aliveViews">
|
<keep-alive :include="aliveViews">
|
||||||
<component :is="Component" />
|
<component :is="Component" />
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
|
@ -54,7 +54,7 @@ const isRefreshing = computed(() => {
|
||||||
transition: opacity @anim-duration-slow @anim-time-fn-easing;
|
transition: opacity @anim-duration-slow @anim-time-fn-easing;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-enter,
|
.fade-enter-from,
|
||||||
.fade-leave-to {
|
.fade-leave-to {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user