<view class="dk-tabs-custom-out-view" style="{{'background:'+background}}">
  <view class="slider" style="{{'background:'+sliderBackground+';'+'left: '+(index*120)+'rpx;border-radius:'+(index===0?'27rpx 0 0 27rpx':(index===list.length-1?'0 27rpx 27rpx 0':'0'))}}"></view>
  <view wx:for="{{list}}" wx:key="*this" wx:for-index="listIndex" class="list-item" style="{{index === listIndex?'color:'+sliderTextColor+';':'color:'+textColor+';'}}" data-id="{{item.id}}" data-index="{{listIndex}}" catchtap="changeIndex">{{item.name}}</view>
</view>


