TabView.wxml 926 Bytes
<view class="tab-box" id="tabView" style="height:calc(100vh - {{height}}px)">
  <scroll-view style="height:100%;" scroll-y class="tab" bindscrolltolower="tabScrollTolower">
    <view>
      <block wx:for="{{tabList}}" wx:key="index">
        <view class="tab-item {{tagIndex==index?'active':''}}" bindtap="click" data-item="{{item}}" data-index="{{index}}">
          <view class="text">{{item.directoryName}}</view>
        </view>
      </block>
    </view>
  </scroll-view>
  <view class="view">
    <view style="height:100%;">
      <scroll-view style="height:100%" scroll-y scroll-top="{{scrollTop}}" bindscrolltolower="viewScrollTolower" refresher-enabled="{{refresherEnabled}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="bindrefresherrefresh" bindscroll="viewScroll">
        <view class="content">
          <slot name="content"></slot>
        </view>
      </scroll-view>
    </view>
  </view>
</view>