fix: 路由过渡去掉transform,只保留opacity淡入淡出
transform 会创建新的 containing block,破坏 gxnlpt 侧边栏 的 JS fixed 定位计算(_applySidebarSticky 依赖精确的 getBoundingClientRect 值)。纯 opacity 过渡不影响布局。 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
075402aab6
commit
e51fb0fdd8
@ -460,17 +460,13 @@ export default {
|
||||
</style>
|
||||
|
||||
<style>
|
||||
/* 页面路由过渡动画 — 非 scoped,作用在 transition 内部元素上 */
|
||||
/* 页面路由过渡动画 — 纯 opacity 淡入淡出,不用 transform 避免破坏 fixed 定位 */
|
||||
.page-fade-enter-active,
|
||||
.page-fade-leave-active {
|
||||
transition: opacity 0.18s ease, transform 0.18s ease;
|
||||
}
|
||||
.page-fade-enter {
|
||||
opacity: 0;
|
||||
transform: translateY(8px);
|
||||
transition: opacity 0.18s ease;
|
||||
}
|
||||
.page-fade-enter,
|
||||
.page-fade-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user