Skip to content

Conversation

@wenwenhua
Copy link
Collaborator

No description provided.

@wenwenhua wenwenhua changed the title transition 动画支持 【开发中】transition 动画支持 May 9, 2025
@wenwenhua wenwenhua changed the title 【开发中】transition 动画支持 transition 动画支持 Jun 3, 2025
if (value !== lastStyleRef.current[key]) {
lastStyleRef.current[key] = value
isUpdate = 1
return isUpdate
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return不出去的啊

if (!animationDeps.current) {
animationDeps.current = 1
// 更新 lastStyleRef
updateStyleVal()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥需要分步,不能在updateStyleVal中直接更新shareValMap

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有必要保留你在AnimationAPI中设定的那些步骤,transition场景下一步就可以完成赋值驱动动画

// 更新 shareVale & 获取动画key
const { animatedKeysRef, animatedKeysShareVal } = getAnimatedInfo()
animatedKeys.current = animatedKeysRef
animatedStyleKeys.value = animatedKeysShareVal
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这两个keys的作用是啥?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants