AddTabView.wxml
857 Bytes
<!--pages/addTransform/components/AddTabView/AddTabView.wxml-->
<view class='tab-box' id='tabView' style="height:{{height}}">
<scroll-view style="height:100%;" scroll-y class='tab' bindscrolltolower='tabScrollTolower'>
<view>
<block wx:for='{{tabList}}' wx:key='index'>
<view class='tab-item {{count==index?"active":""}}' bindtap="click" data-item='{{item}}' data-index='{{index}}'>
<image webp class="tab-bg" src="{{IMGURL}}addTransform/tab-{{index + 1}}.png?v={{img_version}}" />
<view wx:for="{{item[key]}}" wx:key="index" wx:for-item="subItem">{{subItem}}</view>
</view>
</block>
</view>
</scroll-view>
<view class='view'>
<scroll-view style="height:100%" scroll-y scroll-top='{{scrollTop}}' bindscrolltolower='viewScrollTolower'>
<slot></slot>
</scroll-view>
</view>
</view>