vxe-table 3.6.12-beta.8 → 3.6.12

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/index.umd.js CHANGED
@@ -11033,7 +11033,7 @@ var es_array_concat = __webpack_require__(2222);
11033
11033
 
11034
11034
 
11035
11035
  function getLog(message, params) {
11036
- return "[vxe-table v".concat("3.6.12-beta.6", "] ").concat(conf.i18n(message, params));
11036
+ return "[vxe-table v".concat("3.6.12-beta.9", "] ").concat(conf.i18n(message, params));
11037
11037
  }
11038
11038
  function outLog(type) {
11039
11039
  return function (message, params) {
@@ -12220,7 +12220,7 @@ function _t(key, args) {
12220
12220
  var v = 'v3';
12221
12221
  var VXETable = {
12222
12222
  v: v,
12223
- version: "3.6.12-beta.6",
12223
+ version: "3.6.12-beta.9",
12224
12224
  reg: reg,
12225
12225
  use: use,
12226
12226
  setup: setup,
@@ -16990,6 +16990,28 @@ var Methods = {
16990
16990
  }
16991
16991
  return this.handleCustom();
16992
16992
  },
16993
+ setColumnWidth: function setColumnWidth(fieldOrColumn, width) {
16994
+ var column = handleFieldOrColumn(this, fieldOrColumn);
16995
+ if (column) {
16996
+ var colWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(width);
16997
+ var rdWidth = colWidth;
16998
+ if (dom.isScale(width)) {
16999
+ var tableBody = this.$refs.tableBody;
17000
+ var tableBodyElem = tableBody ? tableBody.$el : null;
17001
+ var bodyWidth = tableBodyElem ? tableBodyElem.clientWidth - 1 : 0;
17002
+ rdWidth = Math.floor(colWidth * bodyWidth);
17003
+ }
17004
+ column.renderWidth = rdWidth;
17005
+ }
17006
+ return this.$nextTick();
17007
+ },
17008
+ getColumnWidth: function getColumnWidth(fieldOrColumn) {
17009
+ var column = handleFieldOrColumn(this, fieldOrColumn);
17010
+ if (column) {
17011
+ return column.renderWidth;
17012
+ }
17013
+ return 0;
17014
+ },
16993
17015
  /**
16994
17016
  * 手动重置列的显示隐藏、列宽拖动的状态;
16995
17017
  * 如果为 true 则重置所有状态
@@ -33551,6 +33573,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
33551
33573
  status: true
33552
33574
  };
33553
33575
  })["catch"](function () {
33576
+ _this5.tableLoading = false;
33554
33577
  return {
33555
33578
  status: false
33556
33579
  };