index.wxml 1.2 KB

12345678910111213141516
  1. <view class="wux-class {{ classes.wrap }}" style="{{ extStyle }}">
  2. <scroll-view scroll-y scroll-top="{{ scrollTop }}" bindscroll="onScroll" style="{{ extStyle }}">
  3. <slot></slot>
  4. </scroll-view>
  5. <view class="{{ classes.nav }}" wx:if="{{ children.length > 0 }}" catchtouchstart="onTouchStart" catchtouchmove="onTouchMove" catchtouchend="onTouchEnd">
  6. <view class="{{ classes.navRow }}">
  7. <block wx:for="{{ children }}" wx:key="index">
  8. <view class="{{ classes.navCol }}" data-index="{{ index }}" data-name="{{ item.name }}" data-brief="{{ item.brief }}">
  9. <view class="{{ classes.navItem }} {{ index === current ? classes.navItem + '--current' : '' }}" data-index="{{ index }}" data-name="{{ item.name }}" data-brief="{{ item.brief }}">{{ item.brief }}</view>
  10. </view>
  11. </block>
  12. </view>
  13. <view class="{{ classes.indicator }}" wx:if="{{ indicatorPosition === 'right' && showIndicator && moving }}" style="{{ indicatorStyle }}">{{ currentBrief }}</view>
  14. </view>
  15. <view class="{{ classes.indicator }}" wx:if="{{ indicatorPosition === 'center' && showIndicator && moving }}">{{ currentBrief }}</view>
  16. </view>