
	<wxs src="./helper.wxs" module="helper"/>
	<view class="mc-table__tbody {{ border ? 'has-border' : ''}} {{ stripe ? 'has-stripe' : '' }} is-fixed-{{ fixed }}" style="{{ fixed ? '' : containerWidthStyle  }}; height: {{ height ? height : 'auto' }};">
		<block wx:if="{{ dataSource.length > 0 }}" wx:for-item="row" wx:for-index="index" wx:for="{{ dataSource }}" wx:key="index">
			<view class="mc-table__tbody-tr row-class" style="{{ tBodyTrStyle  }}">
				<block wx:for="{{ columns }}" wx:for-item="column" wx:for-index="$index" wx:key="columnId">
					<view wx:if="{{ !fixed || column.fixed === fixed }}" class="mc-table__tbody-td is-{{ column.align }} cell-class" data-row="{{ dataSource[index] }}" data-row-index="{{ index }}" data-column="{{ column }}" data-column-index="{{ $index }}" style="width: {{ column.realWidth || column.width }}px; {{ column.cellStyle }}; {{ tBodyTdStyle }}; {{ !fixed && column.fixed ? 'opacity: 0;' : '' }} {{  dataSource[index].heightStyle }}" bind:tap="handleRowClick">	
						<text wx:if="{{ column.prefix }}" style="{{ column.prefixStyle }}">{{ column.prefix }}</text>
						<!-- 目前wxs和template不支持传递func -->
						<rich-text wx:if="{{ dataSource[index]._renders.cell[$index] }}" nodes="{{ dataSource[index]._renders.cell[$index] }}"/>
						<mc-table-cell wx:elif="{{ helper.isVNodes(column.renderCell) }}" nodes="{{ column.cellNodes }}" row="{{ dataSource[index] }}" rowIndex="{{ index }}" columnIndex="{{ $index }}" level="{{ 1 }}"/>
						<text wx:else>{{ row[column.prop] }}</text>
						<text wx:if="{{ column.suffix }}" style="{{ column.suffixStyle }}">{{ column.suffix }}</text>
					</view> 
				</block>
			</view>
		</block>
	</view>
