- <scroll-view wx:if="{{list.length > 2}}" class="scroll-box" scroll-x scroll-left='{{scrollLeft}}' scroll-with-animation enable-passive enhanced show-scrollbar='{{false}}'>
- <view class="box box-class">
- <view wx:for="{{list}}" class="item tab-class {{active==index?'active active-class':''}}" id='{{"active"+index}}' wx:key="index" data-item="{{item}}" data-index="{{index}}" bindtap="onClick">
- {{language[item[name]]||item[name]}}
- </view>
- </view>
- </scroll-view>
|