From 4cd5ee7b67a9adfdf8fe54a1aa5e004e9c0e8de1 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Wed, 11 Dec 2019 14:43:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(v3):=20=E4=BF=AE=E5=A4=8DApp=E7=AB=AFH5?= =?UTF-8?q?=E7=AB=AFcreateAnimation=E5=8A=A8=E7=94=BB=E4=B8=8D=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E7=9A=84Bug=20askID:84862?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/mixins/animation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/view/mixins/animation.js b/src/core/view/mixins/animation.js index 45ebc6753..7b71c9267 100644 --- a/src/core/view/mixins/animation.js +++ b/src/core/view/mixins/animation.js @@ -35,7 +35,7 @@ function getStyle (action) { } else if (type.startsWith('translate')) { args = args.map(converPx) } - if (animateTypes2.indexOf(type)) { + if (animateTypes2.indexOf(type) >= 0) { args.length = 1 } transform.push(`${type}(${args.join(',')})`) -- GitLab