<template>
  <view class="zb-table-header" style="display: flex;" >
    <view class="item-tr" >
      <view class='item-td'
            :style="{
	                       width:`${item.width?item.width:'200'}rpx`,
	                       borderRight:`${border?'2rpx solid #e8e8e8':''}`,
	                       textAlign:item.align||'left'
	                      }"
            :key="`${index}`"
            v-for="(item,index) in fixedLeftColumns">
        <template >
          {{sums[index]}}
        </template>
      </view>
    </view>
  </view>

</template>
<script>
import summary from '../js/summary.js'
export default {
  mixins:[summary]
}
</script>
<style lang="scss" scoped>
.zb-table-header {
  overflow: hidden;
  background: #fafafa;
  .item-th{
    padding-left: 8rpx;
    line-height: 78rpx;
    height: 80rpx;
    //display: flex;
    //align-items: center;
    box-sizing: border-box;
  }
}
.item-tr{
  display: flex;
  box-sizing: border-box;
}
.item-td{
  flex-shrink: 0;
  width: 200rpx;
  padding-left:8rpx;
  height: 80rpx;
  line-height: 80rpx;
  padding-right: 8rpx;
  box-sizing: border-box;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  border-bottom: 2rpx solid #e8e8e8;
  background: rgb(250, 250, 250);
}
</style>
