<view class="table-box" style="max-height:{{maxHeight}}">
	<view class="table table-sticky">
		<view class="table-column-group">
			<block wx:for="{{columns}}" wx:key="index">
				<view class="col" style="width: {{item.width}}" />
			</block>
		</view>
		<view class="tr">
			<block wx:if="{{useTheadSlot}}">
				<slot name="thead" />
			</block>
			<block wx:else>
				<block wx:for="{{columns}}" wx:key="index">
					<view class="th">{{item.title}}</view>
				</block>
			</block>
		</view>
	</view>
	<view class="table table-content">
		<view class="table-column-group">
			<block wx:for="{{columns}}" wx:key="index">
				<view class="col" style="width: {{item.width}}" />
			</block>
		</view>
		<block wx:if="{{useTbodySlot}}">
			<slot name="tbody" />
		</block>
		<block wx:else>
			<view wx:if="{{data.length == 0}}" class="tr" style="height: 64rpx" />
			<block wx:for="{{data}}" wx:key="index" wx:for-item="record">
				<view class="tr">
					<block wx:for="{{columns}}" wx:key="index">
						<view class="td">{{record[item.dataIndex]}}</view>
					</block>
				</view>
			</block>
		</block>
	</view>
</view>
<view wx:if="{{!useTbodySlot && data.length == 0}}" class="empty-data">暂无数据</view>