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
+1 -1
View File
@@ -168,7 +168,7 @@ export default createComponent({
const wrapperStyle = {
transform: `translate3d(${this.offset}px, 0, 0)`,
transition: this.dragging ? 'none' : '.6s cubic-bezier(0.18, 0.89, 0.32, 1)'
transitionDuration: this.dragging ? '0s' : '.6s'
};
return (