提交 b41df532 编写于 作者: H HelloCrease

update docs

Signed-off-by: NHelloCrease <lian15@huawei.com>
上级 f464596d
...@@ -135,6 +135,8 @@ struct ImageComponent { ...@@ -135,6 +135,8 @@ struct ImageComponent {
.backgroundColor(Color.Red) .backgroundColor(Color.Red)
.onClick(()=> { .onClick(()=> {
let curve = Curves.cubicBezier(0.25, 0.1, 0.25, 1.0); let curve = Curves.cubicBezier(0.25, 0.1, 0.25, 1.0);
this.widthSize = curve.interpolate(0.5) * this.widthSize;
this.heightSize = curve.interpolate(0.5) * this.heightSize;
}) })
.animation({duration: 2000 , curve: Curves.spring(0.25, 0.1, 0.25, 1.0)}) .animation({duration: 2000 , curve: Curves.spring(0.25, 0.1, 0.25, 1.0)})
}.width("100%").height("100%") }.width("100%").height("100%")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册