提交 194b3a84 编写于 作者: Q qiang

feat: movable-view 组件增加 animation 属性设置

上级 6d66e01d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册