<scroll-view wx:if="{{mode=='default'}}" scroll-x enable-flex class="scroll" scroll-into-view='{{"active"+active}}' scroll-into-view-offset='-20' scroll-with-animation enable-passive>
    <view class="item {{active==index?'active':''}}" id="{{'active'+index}}" wx:for="{{list}}" wx:key="index" data-index="{{index}}" bindtap="tabsChenge">
        <view class="icon" wx:if="{{item.icon}}">
            <text class="iconfont {{item.icon}}" />
        </view>
        <view wx:else class="num line-1">{{item.num}}</view>
        <view class="label line-1">{{language[item.label]||item.label}}</view>
    </view>
</scroll-view>
<scroll-view wx:elif="{{mode=='buts'}}" class='buts-scroll' scroll-x scroll-into-view='{{"active"+active}}' scroll-into-view-offset='-20' enable-flex scroll-with-animation enable-passive>
    <view class="buts-box" id="{{'active'+index}}" wx:for="{{list}}" wx:key="index" data-index="{{index}}" bindtap="tabsChenge">
        <view class="but-item {{active==index?'active':''}}" hover-class="navigator-hover">
            <view class="label line-1">{{language[item.label]||item.label}}</view>
        </view>
    </view>
</scroll-view>
<view class="slot-box" bindtouchstart="myTouchStart" bindtouchmove="myTouchMove">
    <slot name='padtop' />
    <slot name='{{list[active].label}}' />
    <slot />
</view>
<view wx:if="{{safety}}" class="safety" />