perf: add transition-property (#4389)

This commit is contained in:
neverland
2019-09-06 19:50:12 +08:00
committed by GitHub
parent 33652b1e84
commit b4371a52d4
18 changed files with 41 additions and 31 deletions

View File

@@ -88,7 +88,7 @@ export default createComponent({
imageStyle() {
const { scale } = this;
const style = {
transition: this.zooming || this.moving ? '' : '.3s all'
transitionDuration: this.zooming || this.moving ? '0s' : '.3s'
};
if (scale !== 1) {