update demo

This commit is contained in:
pengfei.zhou
2019-12-14 14:20:05 +08:00
parent aef96614ff
commit 74ee52ed09
2 changed files with 1 additions and 120 deletions

View File

@@ -121,7 +121,7 @@ class StickDemo extends Panel {
}
})
this.indicator.layoutConfig = layoutConfig().exactly().a(Gravity.Bottom).m({ bottom: 13 })
animate(this)({
animate(context)({
animations: () => {
this.indicator.centerX = this.getRootView().width / this.tabs.length * (page + 0.5)
},