usingComponents导致movable-area非正常工作
<movable-area class=“mov-time” style=“height: 28px; width:{{width * 0.8 + 40}}px;”>
<movable-view class=“plan-time flex-box-column” direction=“horizontal” bindchange=“move” x="{{x}}" >移动movable-view>
movable-area>
当使用{{}}这种方式动态添加宽度时。xxx.json文件里如果出现“usingComponents”就会拖动无效
<movable-area class=“mov-time” style=“height: 28px; width:375px;”>
<movable-view class=“plan-time flex-box-column” direction=“horizontal” bindchange=“move” x="{{x}}" >移动movable-view>
movable-area>
直接写宽度就不会受影响
3 回复