movable-view,在js中通过setdata改变damping的值,不起作用
<movable-area>
<movable-view x="{{x}}" y="{{y}}" direction="all" damping="{{damping}}">text</movable-view>
</movable-area>
Page({
data: {
x: 0,
y: 0,
damping:50
},
onLoad:function(){
this.setData({
damping:10
})
},
})
2 回复