yusijie
2 天以前 54bc7c37dacf4ce520b2cb992d6d21462db10459
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<template>
  <view class="zb-table-header" style="display: flex;" >
    <view class="item-tr" >
      <view class='item-td'
            :style="{
                           width:`${item.width?item.width:'100'}px`,
                           borderRight:`${border?'1px solid #e8e8e8':''}`,
                           textAlign:item.align||'left'
                          }"
            :key="`15255966555${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: 8px;
    line-height: 39px;
    height: 40px;
    //display: flex;
    //align-items: center;
    box-sizing: border-box;
  }
}
.item-tr{
  display: flex;
  box-sizing: border-box;
}
.item-td{
  flex-shrink: 0;
  width: 100px;
  padding-left: 8px;
  height: 40px;
  line-height: 40px;
  padding-right: 20px;
  box-sizing: border-box;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  border-bottom: 1px solid #e8e8e8;
  background: rgb(250, 250, 250);
}
</style>