hrsass-components 1.7.71 → 1.7.72

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.
@@ -65,7 +65,7 @@ var contentStyle = _interopDefault(require('!!raw-loader!tinymce/skins/content/d
65
65
  var SvgPanZoom = _interopDefault(require('svg-pan-zoom'));
66
66
  var saveSvgAsPng = require('save-svg-as-png');
67
67
 
68
- var version = "1.7.71";
68
+ var version = "1.7.72";
69
69
 
70
70
  /**
71
71
  * 版本号
@@ -7586,13 +7586,18 @@ var HrTableBase = {
7586
7586
  var headHeight = 48,
7587
7587
  toolbarHeight = 32,
7588
7588
  searchHeight = 120,
7589
- layoutPadding = 38,
7589
+ layoutPadding = 60,
7590
7590
  tableHeaderHeight = 68,
7591
- // 根据条件判断是否显示分页组件,如果显示则高度为60,否则为0
7592
- paginationHeight = this.$props.pagination ? 60 : 0;
7591
+ // 根据条件判断是否显示分页组件,如果显示则高度为56.5 ,否则为0
7592
+ paginationHeight = this.$props.pagination ? 56.5 : 0,
7593
+ tableRowHeight = 47.5;
7594
+ this.$refs.tableToolbar && (searchHeight = this.$refs.tableToolbar.$el.clientHeight + 24);
7595
+
7596
+ // 默认高度为窗口高度减去以上所有高度
7593
7597
  var defaultHeight = parseInt(window.innerHeight - headHeight - toolbarHeight - searchHeight - layoutPadding - tableHeaderHeight - paginationHeight);
7594
- if (this.dataList.length > 0 && this.$parent.$parent.$el.clientHeight - tableHeaderHeight - paginationHeight > defaultHeight) {
7595
- return defaultHeight;
7598
+ if (this.dataList.length > 0) {
7599
+ var tableHeight = this.$parent.$parent.$el.clientHeight + tableRowHeight * this.dataList.length - searchHeight - tableHeaderHeight - paginationHeight;
7600
+ return tableHeight - defaultHeight > 0 ? defaultHeight : tableHeight;
7596
7601
  }
7597
7602
  return height;
7598
7603
  },
@@ -7636,6 +7641,7 @@ var HrTableBase = {
7636
7641
  var hasReset = title && (_conditions.length > 0 || typeof $listeners.reset === "function");
7637
7642
  var titleSolt = title && $scopedSlots.title ? this.normalizeTitleSlot($scopedSlots.title()) : null;
7638
7643
  var toolbar = title ? h(Toolbar, [h(TableToolbar, {
7644
+ ref: "tableToolbar",
7639
7645
  attrs: {
7640
7646
  data: _conditions,
7641
7647
  locale: locale,