<wxs src="./table.wxs" module="tools" />
<view class="container" style="grid-template-columns: repeat({{columns.length +','+ 100/columns.length}}%);grid-template-rows: repeat({{(row.length) +','+ 100/(row.length)}}%);">
    <view wx:for="{{columns.length * row.length}}" bind:tap="selectBlank" class="{{BlankId == index ? 'blank-selected':''}}" data-id="{{index}}" style="width:100%;height:50px;line-height: 50px;text-align: center;">
        {{BlankId == index ? '+':''}}
    </view>
    <view wx:for="{{dataSource}}" wx:key="index" class="flex-item kcb-item {{editTableId == item.subject_id ? 'kcb-selected':''}}" catch:tap="editTable" data-statu="open" data-id="{{item.subject_id}}" style="margin-left:{{(item.days-1)*98}}rpx;margin-top:{{(item.nums-1)*50}}px;height:{{(item.enum - item.nums + 1)*50}}px;background-color:{{colorList[item.subject_id%8]}};border: 1px solid {{colorList[item.subject_id%8]}};box-shadow:0px 3px 6px {{tools.hexToRgbA(colorList[item.subject_id%8])}};">
        <view class="smalltext">{{item.sname}}</view>
        <view class="room">@{{item.classroom}}</view>
    </view>
</view>