movable-view动态修改direction没效果
<movable-view x="50" y="50" style="width:400rpx;height:400rpx;" direction="{{moveOn?'none':'all'}}"> <view class="move" catchtouchstart="moveS" catchtouchend="moveE"></view></movable-view> |
moveS:function(){ var that = this; that.setData({ moveOn:true });},moveE:function(){ var that = this; that.setData({ moveOn:false });}, |
当 direction为none时 还是可以移动
