tab.wxml 796 B

123456789
  1. <!--pages/index/tab.wxml-->
  2. <scroll-view class='component cus' scroll-x="{{ isScroll }}" style='{{ scrollStyle }}'>
  3. <view class='content'>
  4. <view class='item' data-cus="{{ dataCus[index] }}" data-index="{{ index }}" wx:for="{{ items }}" wx:key="index" style='min-width: {{ itemWidth }}rpx; height: {{ height }}rpx' catchtap='onItemTap' >
  5. <text class='text' style='color: {{ mSelected == index ? selectColor : textColor }};font-size: {{ textSize }}rpx;'>{{ item }}</text>
  6. </view>
  7. <view class='bottom-bar {{ theme == "smallBar" ? "small" : "" }}' style='background-color: {{ selectColor }}; left: {{ left }}px; right: {{ right }}px; bottom: {{ bottom }}rpx; transition: {{ transition }}; border-shadow: 0rpx 0rpx 10rpx 0rpx {{ selectColor }};'></view>
  8. </view>
  9. </scroll-view>