< 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时 还是可以移动
最新版,动态修改没有用:
direction="{{item.uiShowTextContent? 'none':'all'}}"
动态改变这个值没用么