@ctzy-web-client/plugin-component-vue 1.0.62 → 1.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,6 +36,40 @@
36
36
  height: 0;
37
37
  }
38
38
 
39
+ // height="auto":高度完全交给 CSS,不再依赖业务侧 JS 计算后传数值
40
+ @include m(auto) {
41
+ --bwa-datatable-pager-h: 56px;
42
+
43
+ display: flex;
44
+ flex-direction: column;
45
+ min-height: 0;
46
+ overflow: hidden;
47
+
48
+ > .el-table {
49
+ flex: 0 1 auto;
50
+ height: auto;
51
+ max-height: 100% !important;
52
+ }
53
+
54
+ // 有分页时从表格上限中扣掉分页高度,分页始终紧跟表格且留在视口内
55
+ &.is-paged > .el-table {
56
+ max-height: calc(100% - var(--bwa-datatable-pager-h)) !important;
57
+ }
58
+
59
+ // element-plus 在 max-height 为百分比时会再减一次表头高度,导致底部空白和少数据滚动条
60
+ .el-table__body-wrapper .el-scrollbar__wrap {
61
+ max-height: 100% !important;
62
+ }
63
+
64
+ @include e(pagination) {
65
+ flex: 0 0 auto;
66
+ height: var(--bwa-datatable-pager-h);
67
+ box-sizing: border-box;
68
+ align-items: center;
69
+ padding-top: 0;
70
+ }
71
+ }
72
+
39
73
  @include e(drag) {
40
74
  text-align: center;
41
75
  cursor: grab;
File without changes
File without changes