bug表现
view中设置了float:left时,view中的slider只有最左边的正常显示,除掉最左边的view中slider,其余view设置了float:left的含有slider出现异常,具体体现是其slider的bindchange和bindchanging事件直接变成最小值,不能拖到也不能点
<view style=‘width:375px;height:300px;overflow-x:scroll;’>
<view style=‘width:1875px;height:300px;’>
<view style=‘width:375px;float:left;height:300px;’>
<scroll-view scroll-y style=‘width:375px;height:300px;display:{{demoShowContent1==0?"":“none”}};float:left;’ upper-threshold=“50” lower-threshold=“200” bindscrolltoupper=“displayTwoLines” bindscrolltolower=“loading”>
<view style=‘padding-bottom:80rpx;width:375px;’>
</view>
</scroll-view>
<scroll-view scroll-y style=‘375px;height:300px;display:{{demoShowContent1==1?"":“none”}};float:left;’ upper-threshold=“50” lower-threshold=“200” bindscrolltoupper=“displayTwoLines” bindscrolltolower=“loading”>
<view style=‘padding-bottom:40rpx;width:375px;’>
</view>
</scroll-view>
</view>
<view style=‘width:375px;float:left;’>
<scroll-view scroll-y style=‘375px;height:300px;float:left;’ upper-threshold=“50” lower-threshold=“200”>
<view style=‘width:375pxpx;’>
<view style=‘padding:20px 0;’>
<view class=“body-view”>
<slider catchchanging=“setWordsSize” catchchange=“setWordsSize” step=“1” min=“12” max=“100” value=‘20’/>
</view>
</view>
</view>
</scroll-view>
</view>
<view style=‘width:375px;float:left;height:300px;’>
<scroll-view scroll-y style=‘375px;height:300px;display:{{demoShowContent2==2?"":“none”}};float:left;’ upper-threshold=“50” lower-threshold=“200” bindscrolltoupper=“displayTwoLines” bindscrolltolower=“loading”>
<view style=‘padding-bottom:80rpx;width:375px;’>
</view>
</scroll-view>
</view>
<view style=‘width:375px;float:left;height:300px;’>
<scroll-view scroll-y style=‘375px;height:300px;float:left;’ upper-threshold=“50” lower-threshold=“200” bindscrolltoupper=“displayTwoLines” bindscrolltolower=“loading”>
<view style=‘width:375px;’>
</view>
</scroll-view>
</view>
<view style=‘width:375px;float:left;height:300px;’>
<scroll-view scroll-y style=‘375px;height:{{scrollHeight}}px;float:left;’ upper-threshold=“50” lower-threshold=“200” bindscrolltoupper=“displayTwoLines” bindscrolltolower=“loading”>
<view style=‘width:375px;’>
</view>
</scroll-view>
</view>
</view>
</view>
代码如上,带slider的view放第一个就正常,放其他位置就异常,