<view class="l-grid l-class" bindtap="tapGrid">
    <view bindtap="tapGridItem" class="l-grid-item l-class-grid {{index%rowNum !== rowNum-1 &&(showBorder||showColBorder) ? 'side-grid':''}} {{(index<gridItems.length-(gridItems.length%rowNum||rowNum)) &&(showBorder||showRowBorder)? 'center-grid':''}}" wx:for="{{gridItems}}" wx:key="{{item.key}}" style="min-width:{{100/rowNum}}%;" data-index="{{index}}">
        <slot name="{{item.key}}"></slot>
    </view>
</view>