Revert "修复首次启动切换年视图无动画的问题"

This reverts commit 216ebbf990555f8282371199b8d1cc4bb86d9b2e.
This commit is contained in:
meyou 2026-05-16 17:02:45 +08:00
parent 216ebbf990
commit c096651e0f

View File

@ -270,7 +270,8 @@ fun CalendarMonthView(
}
}
// 年视图层:始终组合以避免首次进入时的组合延迟导致动画丢失
// 年视图层HorizontalPager 支持左右滑动切年
if (viewModel.isYearView || yearProgress > 0.01f) {
HorizontalPager(
state = yearPagerState,
beyondViewportPageCount = 1,
@ -310,6 +311,7 @@ fun CalendarMonthView(
}
)
}
}
// BottomCard年视图时隐藏
if (yearProgress < 0.01f) {