af-mobile-client-vue3 1.0.84-3 → 1.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -29,15 +29,16 @@ const routeState = useRoute()
|
|
|
29
29
|
|
|
30
30
|
<template>
|
|
31
31
|
<div class="pageLayout">
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
<!-- transition 包裹 router-view 控制台会有警告,router-view在外层会导致动画开始时会闪过一帧上一级页面。先忽略警告这样写 -->
|
|
33
|
+
<transition :name="routeTransitionName">
|
|
34
|
+
<router-view v-slot="{ Component, route }">
|
|
34
35
|
<keep-alive :include="cachedViews">
|
|
35
36
|
<div :key="route.name" class="app-wrapper">
|
|
36
37
|
<component :is="Component" />
|
|
37
38
|
</div>
|
|
38
39
|
</keep-alive>
|
|
39
|
-
</
|
|
40
|
-
</
|
|
40
|
+
</router-view>
|
|
41
|
+
</transition>
|
|
41
42
|
<Tabbar v-show="routeState.meta.index !== undefined" :tabbar-data="tabbarData" />
|
|
42
43
|
</div>
|
|
43
44
|
</template>
|