feat:set rotation as view's prop

This commit is contained in:
pengfei.zhou
2019-11-29 15:16:15 +08:00
parent 4e596642f2
commit 3a89571f42
7 changed files with 42 additions and 13 deletions

View File

@@ -71,6 +71,16 @@ class AnimatorDemo extends Panel {
});
}
}),
thisLabel('Rotation').apply({
onClick: () => {
animate(this)({
animations: () => {
view.rotation = view.rotation || 0 + 0.5
},
duration: 3000,
});
}
}),
]).apply({ space: 10 } as IHLayout),
]
).apply({ space: 10 } as IVLayout),