vxe-table 3.5.1 → 3.5.4

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
@@ -8756,7 +8756,7 @@ var es_array_concat = __webpack_require__("99af");
8756
8756
 
8757
8757
 
8758
8758
  function getLog(message, params) {
8759
- return "[vxe-table v".concat("3.5.1", "] ").concat(conf.i18n(message, params));
8759
+ return "[vxe-table v".concat("3.5.4", "] ").concat(conf.i18n(message, params));
8760
8760
  }
8761
8761
 
8762
8762
  function outLog(type) {
@@ -10025,7 +10025,7 @@ function _t(key, args) {
10025
10025
  var v = 'v3';
10026
10026
  var VXETable = {
10027
10027
  v: v,
10028
- version: "3.5.1",
10028
+ version: "3.5.4",
10029
10029
  reg: reg,
10030
10030
  use: use,
10031
10031
  setup: setup,
@@ -21592,7 +21592,7 @@ var Menu = {
21592
21592
 
21593
21593
 
21594
21594
 
21595
- var mixin_getRowid = utils.getRowid;
21595
+
21596
21596
 
21597
21597
  function insertTreeRow(_vm, newRecords, isAppend) {
21598
21598
  var tableFullTreeData = _vm.tableFullTreeData,
@@ -21607,7 +21607,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21607
21607
  var funcName = isAppend ? 'push' : 'unshift';
21608
21608
  newRecords.forEach(function (item) {
21609
21609
  var parentRowId = item[parentField];
21610
- var rowid = mixin_getRowid(_vm, item);
21610
+ var rowid = getRowid(_vm, item);
21611
21611
  var matchObj = parentRowId ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableFullTreeData, function (item) {
21612
21612
  return parentRowId === item[rowField];
21613
21613
  }, {
@@ -21616,7 +21616,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21616
21616
 
21617
21617
  if (matchObj) {
21618
21618
  var parentRow = matchObj.item;
21619
- var parentRest = fullAllDataRowIdData[mixin_getRowid(_vm, parentRow)];
21619
+ var parentRest = fullAllDataRowIdData[getRowid(_vm, parentRow)];
21620
21620
  var parentLevel = parentRest ? parentRest.level : 0;
21621
21621
  var parentChilds = parentRow[children];
21622
21622
 
@@ -21750,10 +21750,10 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21750
21750
  if (matchObj) {
21751
21751
  var parentRow = matchObj.parent;
21752
21752
  var parentChilds = matchObj.items;
21753
- var parentRest = fullAllDataRowIdData[mixin_getRowid(this, parentRow)];
21753
+ var parentRest = fullAllDataRowIdData[getRowid(this, parentRow)];
21754
21754
  var parentLevel = parentRest ? parentRest.level : 0;
21755
21755
  newRecords.forEach(function (item, i) {
21756
- var rowid = mixin_getRowid(_this, item);
21756
+ var rowid = getRowid(_this, item);
21757
21757
 
21758
21758
  if (false) {}
21759
21759
 
@@ -21904,9 +21904,9 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21904
21904
  // 如果为虚拟树
21905
21905
  if (treeConfig && transform) {
21906
21906
  rows.forEach(function (row) {
21907
- var rowid = mixin_getRowid(_this2, row);
21907
+ var rowid = getRowid(_this2, row);
21908
21908
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableFullTreeData, function (item) {
21909
- return rowid === mixin_getRowid(_this2, item);
21909
+ return rowid === getRowid(_this2, item);
21910
21910
  }, treeOpts);
21911
21911
 
21912
21912
  if (matchObj) {
@@ -22057,9 +22057,9 @@ function insertTreeRow(_vm, newRecords, isAppend) {
22057
22057
  // 如果为虚拟树
22058
22058
  if (treeConfig && treeOpts.transform) {
22059
22059
  insertList.forEach(function (row) {
22060
- var rowid = mixin_getRowid(_this6, row);
22060
+ var rowid = getRowid(_this6, row);
22061
22061
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableFullTreeData, function (item) {
22062
- return rowid === mixin_getRowid(_this6, item);
22062
+ return rowid === getRowid(_this6, item);
22063
22063
  }, treeOpts);
22064
22064
 
22065
22065
  if (matchObj) {
@@ -22155,7 +22155,11 @@ function insertTreeRow(_vm, newRecords, isAppend) {
22155
22155
  }
22156
22156
 
22157
22157
  this.closeTooltip();
22158
- this.clearActived(evnt);
22158
+
22159
+ if (actived.column) {
22160
+ this.clearActived(evnt);
22161
+ }
22162
+
22159
22163
  type = 'edit-actived';
22160
22164
  column.renderHeight = cell.offsetHeight;
22161
22165
  actived.args = params;
@@ -22281,7 +22285,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
22281
22285
  }, evnt);
22282
22286
  }
22283
22287
 
22284
- return (v_x_e_table._valid ? this.clearValidate() : this.$nextTick()).then(this.recalculate);
22288
+ return v_x_e_table._valid ? this.clearValidate() : this.$nextTick();
22285
22289
  },
22286
22290
  _getActiveRecord: function _getActiveRecord() {
22287
22291
  var $el = this.$el,
@@ -32806,7 +32810,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
32806
32810
  if (rest) {
32807
32811
  if (isEnableConf(pagerConfig)) {
32808
32812
  var total = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(rest, proxyProps.total || 'page.total') || 0;
32809
- tablePage.total = total;
32813
+ tablePage.total = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(total);
32810
32814
  _this5.tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(rest, proxyProps.result || 'result') || []; // 检验当前页码,不能超出当前最大页数
32811
32815
 
32812
32816
  var pageCount = Math.max(Math.ceil(total / tablePage.pageSize), 1);
@@ -36761,19 +36765,15 @@ function renderItems(h, _vm, itemList) {
36761
36765
 
36762
36766
  if (!this.preventSubmit) {
36763
36767
  this.clearValidate();
36764
- this.beginValidate(this.getItems()).then(function () {
36765
- _this3.$emit('submit', {
36766
- data: _this3.data,
36767
- $form: _this3,
36768
- $event: evnt
36769
- });
36770
- }).catch(function (errMap) {
36771
- _this3.$emit('submit-invalid', {
36772
- data: _this3.data,
36773
- errMap: errMap,
36774
- $form: _this3,
36775
- $event: evnt
36776
- });
36768
+ this.beginValidate(this.getItems()).then(function (errMap) {
36769
+ if (errMap) {
36770
+ _this3.$emit('submit-invalid', {
36771
+ data: _this3.data,
36772
+ errMap: errMap,
36773
+ $form: _this3,
36774
+ $event: evnt
36775
+ });
36776
+ } else {}
36777
36777
  });
36778
36778
  }
36779
36779
  },