<!--myComponents/table/table.wxml-->
<view class="table-box">
    <view class="table">
        <view class="tr">
            <view class="th" wx:for="{{thead}}" wx:key="index">{{item.name}}</view>
        </view>
        <view class="tr" wx:for="{{data}}" wx:for-item="row" wx:key="index">
            <view class="td" style="{{tdStyle}}" wx:for="{{thead}}" bindtap="onclick" data-row="{{row}}" wx:key="index">{{row[item.key]}}</view>
        </view>
    </view>
</view>
