🐛 修复生命周期悬浮边框与 iOS 风格展开动画

This commit is contained in:
orion committed 2026-09-11 09:16:21 +08:00
1 parent 931b8b9d06
commit 5ed1141b06
1 file changed
+5 -4
+5 -4
View File
@@ -1870,10 +1870,11 @@ const visibleDetailTimeline = computed(() =>
isLifecycleExpanded.value ? detailTimelineRows.value : detailTimelineRows.value.slice(0, 3)
)
const LIFECYCLE_ENTER_MS = 160
const LIFECYCLE_LEAVE_MS = 120
const lifecycleEasing = 'cubic-bezier(0.22, 1, 0.36, 1)'
const lifecycleExitEasing = 'cubic-bezier(0.4, 0, 1, 1)'
// iOS-like motion: a soft spring-feel enter, with a shorter decisive exit.
const LIFECYCLE_ENTER_MS = 360
const LIFECYCLE_LEAVE_MS = 240
const lifecycleEasing = 'cubic-bezier(0.2, 0.8, 0.2, 1)'
const lifecycleExitEasing = 'cubic-bezier(0.4, 0, 0.8, 0.2)'
const reducedMotionQuery = window.matchMedia('(prefers-reduced-motion: reduce)')
const getAnimationDelay = (element: Element) => {