eoss-ui 0.4.68 → 0.4.70

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.
package/lib/data-table.js CHANGED
@@ -2925,8 +2925,8 @@ module.exports = require("vue");
2925
2925
  // ESM COMPAT FLAG
2926
2926
  __webpack_require__.r(__webpack_exports__);
2927
2927
 
2928
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=0cfc4a8c&
2929
- var mainvue_type_template_id_0cfc4a8c_render = function () {
2928
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=40481d3e&
2929
+ var mainvue_type_template_id_40481d3e_render = function () {
2930
2930
  var _vm = this
2931
2931
  var _h = _vm.$createElement
2932
2932
  var _c = _vm._self._c || _h
@@ -3262,10 +3262,10 @@ var mainvue_type_template_id_0cfc4a8c_render = function () {
3262
3262
  )
3263
3263
  }
3264
3264
  var staticRenderFns = []
3265
- mainvue_type_template_id_0cfc4a8c_render._withStripped = true
3265
+ mainvue_type_template_id_40481d3e_render._withStripped = true
3266
3266
 
3267
3267
 
3268
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=0cfc4a8c&
3268
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=40481d3e&
3269
3269
 
3270
3270
  // EXTERNAL MODULE: ./src/config/api.js
3271
3271
  var api = __webpack_require__(2);
@@ -6695,10 +6695,12 @@ var mainvue_type_script_lang_js_components;
6695
6695
  this.getTableData({ where: obj && obj.where ? obj.where : {}, first: first });
6696
6696
  }
6697
6697
  },
6698
- resetHeight: function resetHeight() {
6699
- //this.$nextTick(() => {
6698
+ resetHeight: function resetHeight(warn) {
6699
+ var _this9 = this;
6700
+
6700
6701
  if (this.full && !this.height && !this.maxHeight) {
6701
- var height = this.$el.parentNode.offsetHeight - parseInt(util["a" /* default */].getStyle(this.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(this.$el.parentNode, 'padding-bottom'), 10);
6702
+ var height = parseInt(util["a" /* default */].getStyle(this.$el.parentNode, 'height'), 10);
6703
+ height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(this.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(this.$el.parentNode, 'padding-bottom'), 10);
6702
6704
  for (var i = 0; i < this.$el.parentNode.childNodes.length; i++) {
6703
6705
  var ele = this.$el.parentNode.childNodes[i];
6704
6706
  if (ele !== this.$el && ele.offsetHeight !== undefined) {
@@ -6719,8 +6721,12 @@ var mainvue_type_script_lang_js_components;
6719
6721
  }
6720
6722
  if (height > 1 && height - eht > 1) {
6721
6723
  this.tableHeight = height;
6722
- } else {
6724
+ } else if (warn) {
6723
6725
  console.warn(this.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
6726
+ } else {
6727
+ this.$nextTick(function () {
6728
+ _this9.resetHeight(true);
6729
+ });
6724
6730
  }
6725
6731
  }
6726
6732
  },
@@ -6746,12 +6752,12 @@ var mainvue_type_script_lang_js_components;
6746
6752
  this.$emit('sort-change', res);
6747
6753
  },
6748
6754
  mergeThead: function mergeThead(res) {
6749
- var _this9 = this;
6755
+ var _this10 = this;
6750
6756
 
6751
6757
  this.theadData = res;
6752
6758
  this.icon = true;
6753
6759
  setTimeout(function () {
6754
- _this9.show = true;
6760
+ _this10.show = true;
6755
6761
  }, 100);
6756
6762
  }
6757
6763
  }
@@ -6768,7 +6774,7 @@ var mainvue_type_script_lang_js_components;
6768
6774
 
6769
6775
  var main_component = Object(componentNormalizer["a" /* default */])(
6770
6776
  src_mainvue_type_script_lang_js_,
6771
- mainvue_type_template_id_0cfc4a8c_render,
6777
+ mainvue_type_template_id_40481d3e_render,
6772
6778
  staticRenderFns,
6773
6779
  false,
6774
6780
  null,