fix: page-transition layout in app-shell
This commit is contained in:
@@ -138,8 +138,7 @@ const tabBarHeightValue = computed(() => toSize(props.tabBarHeight, "52px"));
|
||||
const shellStyle = computed<StyleValue>(() => ({
|
||||
"--tui-rail-width": railWidthValue.value,
|
||||
"--tui-tabbar-height": tabBarHeightValue.value,
|
||||
"--tui-fixed-left": showRail.value ? railWidthValue.value : "0px",
|
||||
"--tui-transition-inset-left": showRail.value ? railWidthValue.value : "0px"
|
||||
"--tui-fixed-left": showRail.value ? railWidthValue.value : "0px"
|
||||
}));
|
||||
|
||||
// ---------- 导航 ----------
|
||||
|
||||
@@ -248,11 +248,11 @@ onUnmounted(() => {
|
||||
:deep(.push-left-leave-active),
|
||||
:deep(.push-right-enter-active),
|
||||
:deep(.push-right-leave-active) {
|
||||
// 转场期间页面脱离文档流铺满视口,用 inset 让出应用外壳的导航区域
|
||||
inset: var(--tui-transition-inset-top, 0) 0 0 var(--tui-transition-inset-left, 0);
|
||||
// 转场页面仍以 PageTransition 容器为定位基准,保留外壳内容区的尺寸。
|
||||
inset: var(--tui-transition-inset-top, 0) 0 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
position: fixed;
|
||||
position: absolute;
|
||||
transition: transform @duration @easing, opacity .2s linear;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user