feat:remove setRotation,change to just change the property Rotation

This commit is contained in:
pengfei.zhou
2019-12-02 19:15:43 +08:00
parent 489ac668cc
commit 93bb374a94
3 changed files with 2 additions and 17 deletions

View File

@@ -32,7 +32,7 @@ class RefreshableDemo extends Panel {
log('stopAnimation')
},
setProgressRotation: (rotation: number) => {
refreshImage.setRotation(context, rotation)
refreshImage.rotation = rotation
},
}),
content: (vlayout([

View File

@@ -66,7 +66,7 @@ export function rotatedArrow(context: BridgeContext) {
log('stopAnimation')
},
setProgressRotation: (rotation: number) => {
refreshImage.setRotation(context, rotation)
refreshImage.rotation = rotation
},
})
}