From 194b3a843f8b1f179f31f4a14302c182400663ca Mon Sep 17 00:00:00 2001 From: qiang Date: Tue, 4 Jun 2019 15:43:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20movable-view=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20animation=20=E5=B1=9E=E6=80=A7=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/components/movable-view/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/view/components/movable-view/index.vue b/src/core/view/components/movable-view/index.vue index 5a6110840..a290703a6 100644 --- a/src/core/view/components/movable-view/index.vue +++ b/src/core/view/components/movable-view/index.vue @@ -126,6 +126,10 @@ export default { scaleValue: { type: [Number, String], default: 1 + }, + animation: { + type: [Boolean, String], + default: true } }, data () { @@ -566,6 +570,10 @@ export default { var limitXY = this._getLimitXY(x, y) x = limitXY.x y = limitXY.y + if (!this.animation) { + this._setTransform(x, y, scale, source, r, o) + return + } this._STD._springX._solution = null this._STD._springY._solution = null this._STD._springScale._solution = null -- GitLab