Skip to content

Commit

Permalink
fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenwenhua committed Dec 2, 2024
1 parent acbd41e commit 9f5819a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,15 @@ export default function useAnimationHooks<T, P> (props: _ViewProps) {
: index > 0
? lastValueMap[key]
: shareValMap[key].value
const animation = getAnimation({ key, value: toVal }, { delay, duration, easing }, needSetCallback ? setTransformOrigin : undefined)
const animation = getAnimation({ key, value: toVal! }, { delay, duration, easing }, needSetCallback ? setTransformOrigin : undefined)
needSetCallback = false
if (!sequence[key]) {
sequence[key] = [animation]
} else {
sequence[key].push(animation)
}
// 更新一下 lastValueMap
lastValueMap[key] = toVal
lastValueMap[key] = toVal!
})
// 赋值驱动动画
animatedKeys.forEach((key) => {
Expand Down

0 comments on commit 9f5819a

Please sign in to comment.