未验证 提交 be0898ea 编写于 作者: L LiAn 提交者: Gitee

update zh-cn/application-dev/ui/arkts-component-animation.md.

Signed-off-by: LiAn <lian15@huawei.com> 
Signed-off-by: NLiAn <lian15@huawei.com>
上级 b0bd301c
...@@ -279,7 +279,7 @@ export struct TaskSwitchMainPage { ...@@ -279,7 +279,7 @@ export struct TaskSwitchMainPage {
.translate({ x: this.cardOffset }) .translate({ x: this.cardOffset })
.animation({ curve: curves.springMotion() }) .animation({ curve: curves.springMotion() })
.zIndex((this.getProgress(index) >= 0.4 && this.getProgress(index) <= 0.6) ? 2 : 1) .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)) .width((this.cardWidth + this.cardSpace) * (taskDataArr.length + 1))
.height('100%') .height('100%')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册