wtt
2025-09-17 c41f5fe7fd28520935c31022c348238f75ab96f7
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<template>
  <view class="table-h5-footer top-header-uni" :style="{paddingRight:`${scrollbarSize}px`}">
    <scroll-view class="zb-table-headers"
                 @scroll="handleFooterTableScrollLeft"
                 scroll-x="true"
                 scroll-y="false"
                 id="tableFooterHeaders"
                 scroll-anchoring="true"
                 :scroll-left="headerFooterTableLeft"
                 style="padding-bottom: 0px;
                        background: #fafafa;height: 100%">
      <view class="zb-table-fixed" >
        <view class="zb-table-thead" style="position: relative;" >
          <view class="item-tr">
            <view
                class="item-th"
                :style="{
                                  width:`${item.width?item.width:'100'}px`,
                                                              flex:index===transColumns.length-1?1:'none',
                                                              minWidth:`${item.width?item.width:'100'}px`,
                                                              borderRight:`${border?'1px solid #e8e8e8':''}`,
                                                              borderTop:`${border?'1px solid #e8e8e8':''}`,
                                                              textAlign:item.align||'left'
                                                          }"
                v-for="(item,index) in transColumns" :key="index">
              {{ sums[index] }}
            </view>
          </view>
        </view>
      </view>
    </scroll-view>
  </view>
</template>
<script>
import summary from '../js/summary.js'
export default {
  name:'table-footer',
  mixins:[summary],
}
</script>
<style lang="scss" scoped>
.table-h5-footer {
  background: #fafafa;
  /*每个页面公共css */
  scroll-view ::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    -webkit-appearance: none;
    background: transparent;
  }
  //第二种
  ::-webkit-scrollbar{
    display: none;
  }
  .item-tr{
    display: flex;
  }
  .item-th{
    padding-left: 8px;
    line-height: 39px;
    height: 40px;
    //display: flex;
    //align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100px;
    padding-right: 20px;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    border-bottom: 1px solid #e8e8e8;
  }
 
}
</style>