index.wxml 716 B

123456789101112131415
  1. <view class="index-list">
  2. <view wx:if="{{showSidebar}}" class="sidebar l-sidebar-class" catch:tap="onTapSidebar" catch:touchmove="onTouchMove" catch:touchend="onTouchend">
  3. <block wx:for="{{sidebarData}}" wx:for-item="sidebarItem" wx:key="index">
  4. <view class="sidebar-item l-sidebar-item-class {{activeSidebarItem===index?'sidebar-item-active l-selected-class':'l-unselected-class'}}">{{sidebarItem}}</view>
  5. </block>
  6. <view class="tip l-tip-class" style="top:{{tipTop}}px;{{showTip?'':'opacity:0;'}}transform: rotate(-45deg) translateY({{-tipHeight/2-tipHeightOverflow}}px);">
  7. <view class="tip-text l-tip-text-class">{{tipText}}</view>
  8. </view>
  9. </view>
  10. <slot></slot>
  11. </view>