tabView.wxml 1.04 KB
<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 {{count==index?"active":""}}' bindtap="click" data-item='{{item}}' data-index='{{index}}'>{{item.name}}</view>
			</block>
		</view>
	</scroll-view>
	<view class='view'>
		<slot name='sticky'></slot>
		<view style="height:calc(100% - {{sticky?'48px':'0px'}});margin-top:{{sticky?'48px':'0'}};">
			<scroll-view  style="height:100%" scroll-y scroll-top='{{scrollTop}}' bindscrolltolower='viewScrollTolower'  refresher-enabled='{{refresherEnabled}}' refresher-triggered='{{triggered}}' bindrefresherrefresh='bindrefresherrefresh'>
				<view class='refresherEnabled' wx:if='{{refresherEnabled}}'>
					<block wx:for='{{20}}' wx:key='index'>
						<view>{{item}}</view>
					</block>
				</view>
				<view class='content'>
					<slot name='content'></slot>
				</view>
			</scroll-view>
		</view>
	</view>
</view>