agilebuilder-ui 1.1.13-tmp4 → 1.1.13-tmp6

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.
@@ -39,6 +39,7 @@
39
39
  v-if="isShowCard"
40
40
  :selection="selectionTableData"
41
41
  :columns="visibleColumns"
42
+ :listCode="code"
42
43
  :getColumnComponentData="getColumnComponentData"
43
44
  :data="tableDatas"
44
45
  v-model:current-page="currentPage"
@@ -70,7 +71,7 @@
70
71
  :highlight-current-row="true"
71
72
  :span-method="rowSpan"
72
73
  :max-height="maxHeight"
73
- :height="maxHeight && maxHeight >= tableHeight ? maxHeight : tableHeight"
74
+ :height="tableHeight"
74
75
  :class="tableClass"
75
76
  :tree-props="getTreeProps(parentProp, isSql, isLazy, dataSourceType)"
76
77
  @sort-change="handleSortChange"
@@ -3314,4 +3315,9 @@ export default {
3314
3315
  padding: 2px 0 !important;
3315
3316
  }
3316
3317
  }
3318
+ .el-table ::v-deep {
3319
+ & > .el-table__inner-wrapper {
3320
+ height: 100% !important;
3321
+ }
3322
+ }
3317
3323
  </style>
@@ -564,7 +564,7 @@ export function getTableHeight(superGrid, listCode, pageHeight) {
564
564
  if (superGrid) {
565
565
  rect = superGrid.$el.getBoundingClientRect()
566
566
  }
567
- const totalHeight = window.innerHeight - rect.y - 110
567
+ const totalHeight = window.innerHeight - (rect?.y ?? 0) - 110
568
568
  console.log('rect=', rect, 'window.innerHeight=', window.innerHeight, 'totalHeight=', totalHeight)
569
569
  return totalHeight
570
570