diff --git a/zh-cn/application-dev/ui/arkts-component-animation.md b/zh-cn/application-dev/ui/arkts-component-animation.md index 831132f9b4f194a7f1ebadce6e4f1d0a2c4ce069..3199691f74ccbd41e766ef6d11ec92e258c8e975 100644 --- a/zh-cn/application-dev/ui/arkts-component-animation.md +++ b/zh-cn/application-dev/ui/arkts-component-animation.md @@ -279,7 +279,7 @@ export struct TaskSwitchMainPage { .translate({ x: this.cardOffset }) .animation({ curve: curves.springMotion() }) .zIndex((this.getProgress(index) >= 0.4 && this.getProgress(index) <= 0.6) ? 2 : 1) - }, item => item) + }, item => item.index) } .width((this.cardWidth + this.cardSpace) * (taskDataArr.length + 1)) .height('100%')