vxe-table 3.5.0-beta.0 → 3.5.0-beta.3

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.
Files changed (61) hide show
  1. package/helper/vetur/attributes.json +30 -10
  2. package/helper/vetur/tags.json +7 -2
  3. package/lib/form/src/form-item.js +2 -2
  4. package/lib/form/src/form-item.min.js +1 -1
  5. package/lib/form/src/form.js +32 -53
  6. package/lib/form/src/form.min.js +1 -1
  7. package/lib/form/src/render.js +14 -11
  8. package/lib/form/src/render.min.js +1 -1
  9. package/lib/index.css +1 -1
  10. package/lib/index.umd.js +410 -441
  11. package/lib/index.umd.min.js +1 -1
  12. package/lib/select/src/select.js +16 -5
  13. package/lib/select/src/select.min.js +1 -1
  14. package/lib/select/style/style.css +1 -1
  15. package/lib/select/style/style.min.css +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +1 -1
  18. package/lib/table/src/body.js +2 -5
  19. package/lib/table/src/body.min.js +1 -1
  20. package/lib/table/src/cell.js +3 -3
  21. package/lib/table/src/cell.min.js +1 -1
  22. package/lib/table/src/column.js +3 -1
  23. package/lib/table/src/column.min.js +1 -1
  24. package/lib/table/src/columnInfo.js +1 -0
  25. package/lib/table/src/columnInfo.min.js +1 -1
  26. package/lib/table/src/methods.js +184 -188
  27. package/lib/table/src/methods.min.js +1 -1
  28. package/lib/table/src/table.js +42 -73
  29. package/lib/table/src/table.min.js +1 -1
  30. package/lib/table/src/util.js +14 -0
  31. package/lib/table/src/util.min.js +1 -1
  32. package/lib/tools/log.js +1 -1
  33. package/lib/tools/log.min.js +1 -1
  34. package/lib/tools/utils.js +0 -13
  35. package/lib/tools/utils.min.js +1 -1
  36. package/lib/tooltip/src/tooltip.js +51 -28
  37. package/lib/tooltip/src/tooltip.min.js +1 -1
  38. package/lib/tooltip/style/style.css +1 -1
  39. package/lib/tooltip/style/style.min.css +1 -1
  40. package/lib/v-x-e-table/index.js +1 -1
  41. package/lib/v-x-e-table/index.min.js +1 -1
  42. package/lib/v-x-e-table/src/conf.js +13 -8
  43. package/lib/v-x-e-table/src/conf.min.js +1 -1
  44. package/package.json +1 -1
  45. package/packages/form/src/form-item.js +2 -2
  46. package/packages/form/src/form.js +12 -25
  47. package/packages/form/src/render.js +7 -7
  48. package/packages/select/src/select.js +14 -5
  49. package/packages/table/src/body.js +3 -3
  50. package/packages/table/src/cell.js +3 -3
  51. package/packages/table/src/column.js +3 -1
  52. package/packages/table/src/columnInfo.js +1 -0
  53. package/packages/table/src/methods.js +34 -50
  54. package/packages/table/src/table.js +34 -67
  55. package/packages/table/src/util.js +11 -0
  56. package/packages/tools/utils.js +0 -11
  57. package/packages/tooltip/src/tooltip.js +44 -25
  58. package/packages/v-x-e-table/src/conf.js +13 -8
  59. package/styles/select.scss +1 -1
  60. package/styles/tooltip.scss +1 -1
  61. package/types/table.d.ts +6 -6
@@ -49,9 +49,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
49
49
 
50
50
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
51
51
 
52
- var getRowid = _utils.default.getRowid,
53
- getRowkey = _utils.default.getRowkey,
54
- setCellValue = _utils.default.setCellValue,
52
+ var setCellValue = _utils.default.setCellValue,
55
53
  hasChildrenList = _utils.default.hasChildrenList,
56
54
  getColumnList = _utils.default.getColumnList;
57
55
  var calcHeight = _dom.default.calcHeight,
@@ -492,7 +490,7 @@ var Methods = {
492
490
 
493
491
  var tableData = scrollYLoad ? fullList.slice(scrollYStore.startIndex, scrollYStore.endIndex) : fullList.slice(0);
494
492
  tableData.forEach(function (row, $index) {
495
- var rowid = getRowid(_this3, row);
493
+ var rowid = (0, _util.getRowid)(_this3, row);
496
494
  var rest = fullDataRowIdData[rowid];
497
495
 
498
496
  if (rest) {
@@ -819,11 +817,11 @@ var Methods = {
819
817
  tableFullTreeData = this.tableFullTreeData;
820
818
  var fullDataRowIdData = this.fullDataRowIdData,
821
819
  fullAllDataRowIdData = this.fullAllDataRowIdData;
822
- var rowkey = getRowkey(this);
820
+ var rowkey = (0, _util.getRowkey)(this);
823
821
  var isLazy = treeConfig && treeOpts.lazy;
824
822
 
825
823
  var handleCache = function handleCache(row, index, items, path, parent, nodes) {
826
- var rowid = getRowid(_this10, row);
824
+ var rowid = (0, _util.getRowid)(_this10, row);
827
825
  var seq = treeConfig && path ? (0, _util.toTreePathSeq)(path) : index + 1;
828
826
  var level = nodes ? nodes.length - 1 : 0;
829
827
 
@@ -885,14 +883,14 @@ var Methods = {
885
883
  var transform = treeOpts.transform,
886
884
  children = treeOpts.children,
887
885
  mapChildren = treeOpts.mapChildren;
888
- var rest = fullAllDataRowIdData[getRowid(this, row)];
886
+ var rest = fullAllDataRowIdData[(0, _util.getRowid)(this, row)];
889
887
  var parentLevel = rest ? rest.level : 0;
890
888
  return this.createData(childRecords).then(function (rows) {
891
889
  if (keepSource) {
892
- var rowid = getRowid(_this11, row);
890
+ var rowid = (0, _util.getRowid)(_this11, row);
893
891
 
894
892
  var matchObj = _xeUtils.default.findTree(tableSourceData, function (item) {
895
- return rowid === getRowid(_this11, item);
893
+ return rowid === (0, _util.getRowid)(_this11, item);
896
894
  }, treeOpts);
897
895
 
898
896
  if (matchObj) {
@@ -901,7 +899,7 @@ var Methods = {
901
899
  }
902
900
 
903
901
  _xeUtils.default.eachTree(rows, function (childRow, index, items, path, parent, nodes) {
904
- var rowid = getRowid(_this11, childRow);
902
+ var rowid = (0, _util.getRowid)(_this11, childRow);
905
903
  var rest = {
906
904
  row: childRow,
907
905
  rowid: rowid,
@@ -1127,7 +1125,7 @@ var Methods = {
1127
1125
  var fullDataRowIdData = this.fullDataRowIdData;
1128
1126
 
1129
1127
  if (row) {
1130
- var rowid = getRowid(this, row);
1128
+ var rowid = (0, _util.getRowid)(this, row);
1131
1129
  var rest = fullDataRowIdData[rowid];
1132
1130
 
1133
1131
  if (rest) {
@@ -1236,7 +1234,7 @@ var Methods = {
1236
1234
  treeConfig = this.treeConfig,
1237
1235
  treeOpts = this.treeOpts,
1238
1236
  expandOpts = this.expandOpts;
1239
- var rowkey = getRowkey(this);
1237
+ var rowkey = (0, _util.getRowkey)(this);
1240
1238
  this.tableFullColumn.forEach(function (column) {
1241
1239
  var property = column.property,
1242
1240
  editRender = column.editRender;
@@ -1450,7 +1448,7 @@ var Methods = {
1450
1448
 
1451
1449
  if (keepSource) {
1452
1450
  var oRow, property;
1453
- var rowid = getRowid(this, row); // 新增的数据不需要检测
1451
+ var rowid = (0, _util.getRowid)(this, row); // 新增的数据不需要检测
1454
1452
 
1455
1453
  if (!fullDataRowIdData[rowid]) {
1456
1454
  return false;
@@ -1460,7 +1458,7 @@ var Methods = {
1460
1458
  var children = treeOpts.children;
1461
1459
 
1462
1460
  var matchObj = _xeUtils.default.findTree(tableSourceData, function (item) {
1463
- return rowid === getRowid(_this16, item);
1461
+ return rowid === (0, _util.getRowid)(_this16, item);
1464
1462
  }, treeOpts);
1465
1463
 
1466
1464
  row = Object.assign({}, row, _defineProperty({}, children, null));
@@ -1854,7 +1852,7 @@ var Methods = {
1854
1852
 
1855
1853
  if (treeConfig) {
1856
1854
  _xeUtils.default.eachTree(afterTreeFullData, function (row, index, items, path) {
1857
- var rowid = getRowid(_this18, row);
1855
+ var rowid = (0, _util.getRowid)(_this18, row);
1858
1856
  var allrest = fullAllDataRowIdData[rowid];
1859
1857
  var seq = path.map(function (num, i) {
1860
1858
  return i % 2 === 0 ? Number(num) + 1 : '.';
@@ -1883,7 +1881,7 @@ var Methods = {
1883
1881
  });
1884
1882
  } else {
1885
1883
  afterFullData.forEach(function (row, index) {
1886
- var rowid = getRowid(_this18, row);
1884
+ var rowid = (0, _util.getRowid)(_this18, row);
1887
1885
  var allrest = fullAllDataRowIdData[rowid];
1888
1886
  var seq = index + 1;
1889
1887
 
@@ -1922,7 +1920,7 @@ var Methods = {
1922
1920
  if (_xeUtils.default.isString(rowOrRowid)) {
1923
1921
  rowid = rowOrRowid;
1924
1922
  } else {
1925
- rowid = getRowid(this, rowOrRowid);
1923
+ rowid = (0, _util.getRowid)(this, rowOrRowid);
1926
1924
  }
1927
1925
 
1928
1926
  if (rowid) {
@@ -2827,14 +2825,7 @@ var Methods = {
2827
2825
  if (!mergeList.length && !spanMethod && !(keyboardConfig && keyboardOpts.isMerge)) {
2828
2826
  tableColumn = fixedColumn;
2829
2827
  } else {
2830
- tableColumn = visibleColumn; // 检查固定列是否被合并,合并范围是否超出固定列
2831
- // if (mergeList.length && !isMergeLeftFixedExceeded && fixedType === 'left') {
2832
- // tableColumn = fixedColumn
2833
- // } else if (mergeList.length && !isMergeRightFixedExceeded && fixedType === 'right') {
2834
- // tableColumn = fixedColumn
2835
- // } else {
2836
- // tableColumn = visibleColumn
2837
- // }
2828
+ tableColumn = visibleColumn;
2838
2829
  }
2839
2830
  } else {
2840
2831
  tableColumn = visibleColumn;
@@ -2862,14 +2853,7 @@ var Methods = {
2862
2853
  if (!mergeFooterList.length || !footerSpanMethod) {
2863
2854
  tableColumn = fixedColumn;
2864
2855
  } else {
2865
- tableColumn = visibleColumn; // 检查固定列是否被合并,合并范围是否超出固定列
2866
- // if (mergeFooterList.length && !isMergeFooterLeftFixedExceeded && fixedType === 'left') {
2867
- // tableColumn = fixedColumn
2868
- // } else if (mergeFooterList.length && !isMergeFooterRightFixedExceeded && fixedType === 'right') {
2869
- // tableColumn = fixedColumn
2870
- // } else {
2871
- // tableColumn = visibleColumn
2872
- // }
2856
+ tableColumn = visibleColumn;
2873
2857
  }
2874
2858
  } else {
2875
2859
  tableColumn = visibleColumn;
@@ -3164,6 +3148,8 @@ var Methods = {
3164
3148
 
3165
3149
  if (isEsc) {
3166
3150
  this.preventEvent(evnt, 'event.keydown', null, function () {
3151
+ _this27.emitEvent('keydown-start', {}, evnt);
3152
+
3167
3153
  if (keyboardConfig && mouseConfig && mouseOpts.area && _this27.handleKeyboardEvent) {
3168
3154
  _this27.handleKeyboardEvent(evnt);
3169
3155
  } else if (actived.row || filterStore.visible || ctxMenuStore.visible) {
@@ -3191,6 +3177,8 @@ var Methods = {
3191
3177
  }
3192
3178
 
3193
3179
  _this27.emitEvent('keydown', {}, evnt);
3180
+
3181
+ _this27.emitEvent('keydown-end', {}, evnt);
3194
3182
  });
3195
3183
  }
3196
3184
  },
@@ -3513,21 +3501,9 @@ var Methods = {
3513
3501
  this.updateCellAreas();
3514
3502
  this.recalculate(true);
3515
3503
  },
3516
- handleTooltipLeaveMethod: function handleTooltipLeaveMethod() {
3517
- var _this29 = this;
3518
-
3519
- var tooltipOpts = this.tooltipOpts;
3520
- setTimeout(function () {
3521
- if (!_this29.tooltipActive) {
3522
- _this29.closeTooltip();
3523
- }
3524
- }, tooltipOpts.leaveDelay);
3525
- return false;
3526
- },
3527
3504
  handleTargetEnterEvent: function handleTargetEnterEvent(isClear) {
3528
3505
  var $tooltip = this.$refs.tooltip;
3529
3506
  clearTimeout(this.tooltipTimeout);
3530
- this.tooltipActive = true;
3531
3507
 
3532
3508
  if (isClear) {
3533
3509
  this.closeTooltip();
@@ -3538,11 +3514,10 @@ var Methods = {
3538
3514
  }
3539
3515
  },
3540
3516
  handleTargetLeaveEvent: function handleTargetLeaveEvent() {
3541
- var _this30 = this;
3517
+ var _this29 = this;
3542
3518
 
3543
3519
  var tooltipOpts = this.tooltipOpts;
3544
3520
  var $tooltip = this.$refs.tooltip;
3545
- this.tooltipActive = false;
3546
3521
 
3547
3522
  if ($tooltip) {
3548
3523
  $tooltip.setActived(false);
@@ -3550,10 +3525,10 @@ var Methods = {
3550
3525
 
3551
3526
  if (tooltipOpts.enterable) {
3552
3527
  this.tooltipTimeout = setTimeout(function () {
3553
- $tooltip = _this30.$refs.tooltip;
3528
+ $tooltip = _this29.$refs.tooltip;
3554
3529
 
3555
3530
  if ($tooltip && !$tooltip.isActived()) {
3556
- _this30.closeTooltip();
3531
+ _this29.closeTooltip();
3557
3532
  }
3558
3533
  }, tooltipOpts.leaveDelay);
3559
3534
  } else {
@@ -3562,19 +3537,24 @@ var Methods = {
3562
3537
  },
3563
3538
  triggerHeaderHelpEvent: function triggerHeaderHelpEvent(evnt, params) {
3564
3539
  var column = params.column;
3565
- var titleHelp = column.titleHelp;
3540
+ var titlePrefix = column.titlePrefix || column.titleHelp;
3566
3541
 
3567
- if (titleHelp.content || titleHelp.message) {
3542
+ if (titlePrefix.content || titlePrefix.message) {
3568
3543
  var $refs = this.$refs,
3569
3544
  tooltipStore = this.tooltipStore;
3570
- var $tooltip = $refs.tooltip;
3571
- var content = (0, _utils.getFuncText)(titleHelp.content || titleHelp.message);
3545
+ var content = (0, _utils.getFuncText)(titlePrefix.content || titlePrefix.message);
3572
3546
  this.handleTargetEnterEvent(true);
3573
3547
  tooltipStore.visible = true;
3548
+ tooltipStore.currOpts = _objectSpread(_objectSpread({}, titlePrefix), {}, {
3549
+ content: null
3550
+ });
3551
+ this.$nextTick(function () {
3552
+ var $tooltip = $refs.tooltip;
3574
3553
 
3575
- if ($tooltip) {
3576
- $tooltip.open(evnt.currentTarget, content);
3577
- }
3554
+ if ($tooltip) {
3555
+ $tooltip.open(evnt.currentTarget, content);
3556
+ }
3557
+ });
3578
3558
  }
3579
3559
  },
3580
3560
 
@@ -3660,7 +3640,6 @@ var Methods = {
3660
3640
  var showAll = tooltipOpts.showAll,
3661
3641
  enabled = tooltipOpts.enabled,
3662
3642
  contentMethod = tooltipOpts.contentMethod;
3663
- var tooltip = $refs.tooltip;
3664
3643
  var customContent = contentMethod ? contentMethod(params) : null;
3665
3644
  var useCustom = contentMethod && !_xeUtils.default.eqNull(customContent);
3666
3645
  var content = useCustom ? customContent : (column.type === 'html' ? overflowElem.innerText : overflowElem.textContent).trim();
@@ -3670,12 +3649,16 @@ var Methods = {
3670
3649
  Object.assign(tooltipStore, {
3671
3650
  row: row,
3672
3651
  column: column,
3673
- visible: true
3652
+ visible: true,
3653
+ currOpts: null
3674
3654
  });
3655
+ this.$nextTick(function () {
3656
+ var $tooltip = $refs.tooltip;
3675
3657
 
3676
- if (tooltip) {
3677
- tooltip.open(isCellOverflow ? overflowElem : tipElem || overflowElem, _utils.default.formatText(content));
3678
- }
3658
+ if ($tooltip) {
3659
+ $tooltip.open(isCellOverflow ? overflowElem : tipElem || overflowElem, _utils.default.formatText(content));
3660
+ }
3661
+ });
3679
3662
  }
3680
3663
 
3681
3664
  return this.$nextTick();
@@ -3705,7 +3688,8 @@ var Methods = {
3705
3688
  row: null,
3706
3689
  column: null,
3707
3690
  content: null,
3708
- visible: false
3691
+ visible: false,
3692
+ currOpts: null
3709
3693
  });
3710
3694
 
3711
3695
  if (tooltip) {
@@ -3783,14 +3767,14 @@ var Methods = {
3783
3767
  * @param {Boolean} value 是否选中
3784
3768
  */
3785
3769
  setCheckboxRow: function setCheckboxRow(rows, value) {
3786
- var _this31 = this;
3770
+ var _this30 = this;
3787
3771
 
3788
3772
  if (rows && !_xeUtils.default.isArray(rows)) {
3789
3773
  rows = [rows];
3790
3774
  }
3791
3775
 
3792
3776
  rows.forEach(function (row) {
3793
- return _this31.handleSelectRow({
3777
+ return _this30.handleSelectRow({
3794
3778
  row: row
3795
3779
  }, !!value);
3796
3780
  });
@@ -3814,7 +3798,7 @@ var Methods = {
3814
3798
  * value 选中true 不选false 半选-1
3815
3799
  */
3816
3800
  handleSelectRow: function handleSelectRow(_ref6, value) {
3817
- var _this32 = this;
3801
+ var _this31 = this;
3818
3802
 
3819
3803
  var row = _ref6.row;
3820
3804
  var selection = this.selection,
@@ -3847,7 +3831,7 @@ var Methods = {
3847
3831
  return half === item;
3848
3832
  });
3849
3833
 
3850
- _this32.handleCheckboxReserveRow(row, value);
3834
+ _this31.handleCheckboxReserveRow(row, value);
3851
3835
  }
3852
3836
  }, treeOpts);
3853
3837
  } // 如果存在父节点,更新父节点状态
@@ -3921,7 +3905,7 @@ var Methods = {
3921
3905
  return half === item;
3922
3906
  });
3923
3907
 
3924
- _this32.handleCheckboxReserveRow(row, value);
3908
+ _this31.handleCheckboxReserveRow(row, value);
3925
3909
  }
3926
3910
  }, treeOpts);
3927
3911
  } // 如果存在父节点,更新父节点状态
@@ -4025,7 +4009,7 @@ var Methods = {
4025
4009
  * @param {Boolean} value 是否选中
4026
4010
  */
4027
4011
  setAllCheckboxRow: function setAllCheckboxRow(value) {
4028
- var _this33 = this;
4012
+ var _this32 = this;
4029
4013
 
4030
4014
  var afterFullData = this.afterFullData,
4031
4015
  treeConfig = this.treeConfig,
@@ -4138,11 +4122,11 @@ var Methods = {
4138
4122
  if (reserve) {
4139
4123
  if (value) {
4140
4124
  selectRows.forEach(function (row) {
4141
- checkboxReserveRowMap[getRowid(_this33, row)] = row;
4125
+ checkboxReserveRowMap[(0, _util.getRowid)(_this32, row)] = row;
4142
4126
  });
4143
4127
  } else {
4144
4128
  afterFullData.forEach(function (row) {
4145
- return _this33.handleCheckboxReserveRow(row, false);
4129
+ return _this32.handleCheckboxReserveRow(row, false);
4146
4130
  });
4147
4131
  }
4148
4132
  }
@@ -4270,7 +4254,7 @@ var Methods = {
4270
4254
 
4271
4255
 
4272
4256
  if (radioOpts.reserve && radioReserveRow) {
4273
- var rowid = getRowid(this, radioReserveRow);
4257
+ var rowid = (0, _util.getRowid)(this, radioReserveRow);
4274
4258
 
4275
4259
  if (fullDataRowIdData[rowid]) {
4276
4260
  this.setRadioRow(fullDataRowIdData[rowid].row);
@@ -4317,14 +4301,14 @@ var Methods = {
4317
4301
  treeOpts = this.treeOpts;
4318
4302
 
4319
4303
  if (radioOpts.reserve && radioReserveRow) {
4320
- var rowid = getRowid(this, radioReserveRow);
4304
+ var rowid = (0, _util.getRowid)(this, radioReserveRow);
4321
4305
 
4322
4306
  if (isFull) {
4323
4307
  if (!fullDataRowIdData[rowid]) {
4324
4308
  return radioReserveRow;
4325
4309
  }
4326
4310
  } else {
4327
- var rowkey = getRowkey(this);
4311
+ var rowkey = (0, _util.getRowkey)(this);
4328
4312
 
4329
4313
  if (treeConfig) {
4330
4314
  var matchObj = _xeUtils.default.findTree(afterFullData, function (row) {
@@ -4362,7 +4346,7 @@ var Methods = {
4362
4346
  * 获取复选框保留选中的行
4363
4347
  */
4364
4348
  getCheckboxReserveRecords: function getCheckboxReserveRecords(isFull) {
4365
- var _this34 = this;
4349
+ var _this33 = this;
4366
4350
 
4367
4351
  var fullDataRowIdData = this.fullDataRowIdData,
4368
4352
  afterFullData = this.afterFullData,
@@ -4377,11 +4361,11 @@ var Methods = {
4377
4361
 
4378
4362
  if (treeConfig) {
4379
4363
  _xeUtils.default.eachTree(afterFullData, function (row) {
4380
- afterFullIdMaps[getRowid(_this34, row)] = 1;
4364
+ afterFullIdMaps[(0, _util.getRowid)(_this33, row)] = 1;
4381
4365
  }, treeOpts);
4382
4366
  } else {
4383
4367
  afterFullData.forEach(function (row) {
4384
- afterFullIdMaps[getRowid(_this34, row)] = 1;
4368
+ afterFullIdMaps[(0, _util.getRowid)(_this33, row)] = 1;
4385
4369
  });
4386
4370
  }
4387
4371
 
@@ -4411,7 +4395,7 @@ var Methods = {
4411
4395
  checkboxOpts = this.checkboxOpts;
4412
4396
 
4413
4397
  if (checkboxOpts.reserve) {
4414
- var rowid = getRowid(this, row);
4398
+ var rowid = (0, _util.getRowid)(this, row);
4415
4399
 
4416
4400
  if (checked) {
4417
4401
  checkboxReserveRowMap[rowid] = row;
@@ -4447,7 +4431,7 @@ var Methods = {
4447
4431
  * 清空行为不管是否被禁用还是保留记录,都将彻底清空选中状态
4448
4432
  */
4449
4433
  clearCheckboxRow: function clearCheckboxRow() {
4450
- var _this35 = this;
4434
+ var _this34 = this;
4451
4435
 
4452
4436
  var tableFullData = this.tableFullData,
4453
4437
  treeConfig = this.treeConfig,
@@ -4470,7 +4454,7 @@ var Methods = {
4470
4454
 
4471
4455
  if (reserve) {
4472
4456
  tableFullData.forEach(function (row) {
4473
- return _this35.handleCheckboxReserveRow(row, false);
4457
+ return _this34.handleCheckboxReserveRow(row, false);
4474
4458
  });
4475
4459
  }
4476
4460
 
@@ -4496,7 +4480,7 @@ var Methods = {
4496
4480
  }
4497
4481
 
4498
4482
  if (reserve) {
4499
- var rowkey = getRowkey(this);
4483
+ var rowkey = (0, _util.getRowkey)(this);
4500
4484
  this.radioReserveRow = _defineProperty({}, rowkey, rowid);
4501
4485
  }
4502
4486
  }
@@ -4557,7 +4541,7 @@ var Methods = {
4557
4541
 
4558
4542
  if (rowOpts.isCurrent || this.highlightCurrentRow) {
4559
4543
  if ($el) {
4560
- _xeUtils.default.arrayEach($el.querySelectorAll("[rowid=\"".concat(getRowid(this, row), "\"]")), function (elem) {
4544
+ _xeUtils.default.arrayEach($el.querySelectorAll("[rowid=\"".concat((0, _util.getRowid)(this, row), "\"]")), function (elem) {
4561
4545
  return addClass(elem, 'row--current');
4562
4546
  });
4563
4547
  }
@@ -4630,7 +4614,7 @@ var Methods = {
4630
4614
  afterFullData = this.afterFullData;
4631
4615
 
4632
4616
  if (selectRow) {
4633
- var rowid = getRowid(this, selectRow);
4617
+ var rowid = (0, _util.getRowid)(this, selectRow);
4634
4618
 
4635
4619
  if (isFull) {
4636
4620
  if (!fullDataRowIdData[rowid]) {
@@ -4638,7 +4622,7 @@ var Methods = {
4638
4622
  }
4639
4623
  } else {
4640
4624
  if (treeConfig) {
4641
- var rowkey = getRowkey(this);
4625
+ var rowkey = (0, _util.getRowkey)(this);
4642
4626
 
4643
4627
  var matchObj = _xeUtils.default.findTree(afterFullData, function (row) {
4644
4628
  return rowid === _xeUtils.default.get(row, rowkey);
@@ -4667,7 +4651,7 @@ var Methods = {
4667
4651
  },
4668
4652
  setHoverRow: function setHoverRow(row) {
4669
4653
  var $el = this.$el;
4670
- var rowid = getRowid(this, row);
4654
+ var rowid = (0, _util.getRowid)(this, row);
4671
4655
  this.clearHoverRow();
4672
4656
 
4673
4657
  if ($el) {
@@ -4762,13 +4746,13 @@ var Methods = {
4762
4746
  * 如果存在规则,则校验
4763
4747
  */
4764
4748
  handleChangeCell: function handleChangeCell(evnt, params) {
4765
- var _this36 = this;
4749
+ var _this35 = this;
4766
4750
 
4767
4751
  this.checkValidate('blur').catch(function (e) {
4768
4752
  return e;
4769
4753
  }).then(function () {
4770
- _this36.handleActived(params, evnt).then(function () {
4771
- return _this36.checkValidate('change');
4754
+ _this35.handleActived(params, evnt).then(function () {
4755
+ return _this35.checkValidate('change');
4772
4756
  }).catch(function (e) {
4773
4757
  return e;
4774
4758
  });
@@ -4871,7 +4855,7 @@ var Methods = {
4871
4855
  * 如果是双击模式,则激活为编辑状态
4872
4856
  */
4873
4857
  triggerCellDblclickEvent: function triggerCellDblclickEvent(evnt, params) {
4874
- var _this37 = this;
4858
+ var _this36 = this;
4875
4859
 
4876
4860
  var editStore = this.editStore,
4877
4861
  editConfig = this.editConfig,
@@ -4886,15 +4870,15 @@ var Methods = {
4886
4870
  this.checkValidate('blur').catch(function (e) {
4887
4871
  return e;
4888
4872
  }).then(function () {
4889
- _this37.handleActived(params, evnt).then(function () {
4890
- return _this37.checkValidate('change');
4873
+ _this36.handleActived(params, evnt).then(function () {
4874
+ return _this36.checkValidate('change');
4891
4875
  }).catch(function (e) {
4892
4876
  return e;
4893
4877
  });
4894
4878
  });
4895
4879
  } else if (editOpts.mode === 'cell') {
4896
4880
  this.handleActived(params, evnt).then(function () {
4897
- return _this37.checkValidate('change');
4881
+ return _this36.checkValidate('change');
4898
4882
  }).catch(function (e) {
4899
4883
  return e;
4900
4884
  });
@@ -4905,7 +4889,7 @@ var Methods = {
4905
4889
  this.emitEvent('cell-dblclick', params, evnt);
4906
4890
  },
4907
4891
  handleDefaultSort: function handleDefaultSort() {
4908
- var _this38 = this;
4892
+ var _this37 = this;
4909
4893
 
4910
4894
  var sortConfig = this.sortConfig,
4911
4895
  sortOpts = this.sortOpts;
@@ -4922,7 +4906,7 @@ var Methods = {
4922
4906
  order = item.order;
4923
4907
 
4924
4908
  if (field && order) {
4925
- var column = _this38.getColumnByField(field);
4909
+ var column = _this37.getColumnByField(field);
4926
4910
 
4927
4911
  if (column && column.sortable) {
4928
4912
  column.order = order;
@@ -4965,7 +4949,7 @@ var Methods = {
4965
4949
  }
4966
4950
  },
4967
4951
  sort: function sort(sortConfs, sortOrder) {
4968
- var _this39 = this;
4952
+ var _this38 = this;
4969
4953
 
4970
4954
  var sortOpts = this.sortOpts;
4971
4955
  var multiple = sortOpts.multiple,
@@ -4998,7 +4982,7 @@ var Methods = {
4998
4982
  var column = field;
4999
4983
 
5000
4984
  if (_xeUtils.default.isString(field)) {
5001
- column = _this39.getColumnByField(field);
4985
+ column = _this38.getColumnByField(field);
5002
4986
  }
5003
4987
 
5004
4988
  if (column && (column.sortable || column.remoteSort)) {
@@ -5007,7 +4991,7 @@ var Methods = {
5007
4991
  }
5008
4992
 
5009
4993
  if (orders.indexOf(order) === -1) {
5010
- order = getNextSortOrder(_this39, column);
4994
+ order = getNextSortOrder(_this38, column);
5011
4995
  }
5012
4996
 
5013
4997
  if (column.order !== order) {
@@ -5160,7 +5144,7 @@ var Methods = {
5160
5144
  * @param {Row} row 行对象
5161
5145
  */
5162
5146
  reloadRowExpand: function reloadRowExpand(row) {
5163
- var _this40 = this;
5147
+ var _this39 = this;
5164
5148
 
5165
5149
  var expandOpts = this.expandOpts,
5166
5150
  expandLazyLoadeds = this.expandLazyLoadeds;
@@ -5168,7 +5152,7 @@ var Methods = {
5168
5152
 
5169
5153
  if (lazy && expandLazyLoadeds.indexOf(row) === -1) {
5170
5154
  this.clearRowExpandLoaded(row).then(function () {
5171
- return _this40.handleAsyncRowExpand(row);
5155
+ return _this39.handleAsyncRowExpand(row);
5172
5156
  });
5173
5157
  }
5174
5158
 
@@ -5247,29 +5231,29 @@ var Methods = {
5247
5231
  return this.setRowExpand(this.expandOpts.lazy ? this.tableData : this.tableFullData, expanded);
5248
5232
  },
5249
5233
  handleAsyncRowExpand: function handleAsyncRowExpand(row) {
5250
- var _this41 = this;
5234
+ var _this40 = this;
5251
5235
 
5252
5236
  var rest = this.fullAllDataRowMap.get(row);
5253
5237
  return new Promise(function (resolve) {
5254
- _this41.expandLazyLoadeds.push(row);
5238
+ _this40.expandLazyLoadeds.push(row);
5255
5239
 
5256
- _this41.expandOpts.loadMethod({
5257
- $table: _this41,
5240
+ _this40.expandOpts.loadMethod({
5241
+ $table: _this40,
5258
5242
  row: row,
5259
- rowIndex: _this41.getRowIndex(row),
5260
- $rowIndex: _this41.getVMRowIndex(row)
5243
+ rowIndex: _this40.getRowIndex(row),
5244
+ $rowIndex: _this40.getVMRowIndex(row)
5261
5245
  }).catch(function (e) {
5262
5246
  return e;
5263
5247
  }).then(function () {
5264
5248
  rest.expandLoaded = true;
5265
5249
 
5266
- _xeUtils.default.remove(_this41.expandLazyLoadeds, function (item) {
5250
+ _xeUtils.default.remove(_this40.expandLazyLoadeds, function (item) {
5267
5251
  return item === row;
5268
5252
  });
5269
5253
 
5270
- _this41.rowExpandeds.push(row);
5254
+ _this40.rowExpandeds.push(row);
5271
5255
 
5272
- resolve(_this41.$nextTick().then(_this41.recalculate));
5256
+ resolve(_this40.$nextTick().then(_this40.recalculate));
5273
5257
  });
5274
5258
  });
5275
5259
  },
@@ -5282,7 +5266,7 @@ var Methods = {
5282
5266
  * @param {Boolean} expanded 是否展开
5283
5267
  */
5284
5268
  setRowExpand: function setRowExpand(rows, expanded) {
5285
- var _this42 = this;
5269
+ var _this41 = this;
5286
5270
 
5287
5271
  var fullAllDataRowMap = this.fullAllDataRowMap,
5288
5272
  expandLazyLoadeds = this.expandLazyLoadeds,
@@ -5315,8 +5299,8 @@ var Methods = {
5315
5299
  columnIndex: columnIndex,
5316
5300
  $columnIndex: $columnIndex,
5317
5301
  row: row,
5318
- rowIndex: _this42.getRowIndex(row),
5319
- $rowIndex: _this42.getVMRowIndex(row)
5302
+ rowIndex: _this41.getRowIndex(row),
5303
+ $rowIndex: _this41.getVMRowIndex(row)
5320
5304
  });
5321
5305
  }) : rows;
5322
5306
 
@@ -5327,7 +5311,7 @@ var Methods = {
5327
5311
  var isLoad = lazy && !rest.expandLoaded && expandLazyLoadeds.indexOf(row) === -1;
5328
5312
 
5329
5313
  if (isLoad) {
5330
- lazyRests.push(_this42.handleAsyncRowExpand(row));
5314
+ lazyRests.push(_this41.handleAsyncRowExpand(row));
5331
5315
  } else {
5332
5316
  rowExpandeds.push(row);
5333
5317
  }
@@ -5341,7 +5325,7 @@ var Methods = {
5341
5325
 
5342
5326
  if (reserve) {
5343
5327
  validRows.forEach(function (row) {
5344
- return _this42.handleRowExpandReserve(row, expanded);
5328
+ return _this41.handleRowExpandReserve(row, expanded);
5345
5329
  });
5346
5330
  }
5347
5331
  }
@@ -5362,7 +5346,7 @@ var Methods = {
5362
5346
  * 手动清空展开行状态,数据会恢复成未展开的状态
5363
5347
  */
5364
5348
  clearRowExpand: function clearRowExpand() {
5365
- var _this43 = this;
5349
+ var _this42 = this;
5366
5350
 
5367
5351
  var expandOpts = this.expandOpts,
5368
5352
  rowExpandeds = this.rowExpandeds,
@@ -5373,13 +5357,13 @@ var Methods = {
5373
5357
 
5374
5358
  if (reserve) {
5375
5359
  tableFullData.forEach(function (row) {
5376
- return _this43.handleRowExpandReserve(row, false);
5360
+ return _this42.handleRowExpandReserve(row, false);
5377
5361
  });
5378
5362
  }
5379
5363
 
5380
5364
  return this.$nextTick().then(function () {
5381
5365
  if (isExists) {
5382
- _this43.recalculate();
5366
+ _this42.recalculate();
5383
5367
  }
5384
5368
  });
5385
5369
  },
@@ -5392,7 +5376,7 @@ var Methods = {
5392
5376
  expandOpts = this.expandOpts;
5393
5377
 
5394
5378
  if (expandOpts.reserve) {
5395
- var rowid = getRowid(this, row);
5379
+ var rowid = (0, _util.getRowid)(this, row);
5396
5380
 
5397
5381
  if (expanded) {
5398
5382
  rowExpandedReserveRowMap[rowid] = row;
@@ -5459,7 +5443,7 @@ var Methods = {
5459
5443
  * @param {Row} row 行对象
5460
5444
  */
5461
5445
  reloadTreeExpand: function reloadTreeExpand(row) {
5462
- var _this44 = this;
5446
+ var _this43 = this;
5463
5447
 
5464
5448
  var treeOpts = this.treeOpts,
5465
5449
  treeLazyLoadeds = this.treeLazyLoadeds;
@@ -5469,15 +5453,15 @@ var Methods = {
5469
5453
 
5470
5454
  if (lazy && row[hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
5471
5455
  this.clearTreeExpandLoaded(row).then(function () {
5472
- return _this44.handleAsyncTreeExpandChilds(row);
5456
+ return _this43.handleAsyncTreeExpandChilds(row);
5473
5457
  }).then(function () {
5474
5458
  if (transform) {
5475
- _this44.handleVirtualTreeToList();
5459
+ _this43.handleVirtualTreeToList();
5476
5460
 
5477
- return _this44.handleTableData();
5461
+ return _this43.handleTableData();
5478
5462
  }
5479
5463
  }).then(function () {
5480
- return _this44.recalculate();
5464
+ return _this43.recalculate();
5481
5465
  });
5482
5466
  }
5483
5467
 
@@ -5540,7 +5524,7 @@ var Methods = {
5540
5524
  this.setAllTreeExpand(true);
5541
5525
  } else if (expandRowKeys) {
5542
5526
  var defExpandeds = [];
5543
- var rowkey = getRowkey(this);
5527
+ var rowkey = (0, _util.getRowkey)(this);
5544
5528
  expandRowKeys.forEach(function (rowid) {
5545
5529
  var matchObj = _xeUtils.default.findTree(tableFullData, function (item) {
5546
5530
  return rowid === _xeUtils.default.get(item, rowkey);
@@ -5555,7 +5539,7 @@ var Methods = {
5555
5539
  }
5556
5540
  },
5557
5541
  handleAsyncTreeExpandChilds: function handleAsyncTreeExpandChilds(row) {
5558
- var _this45 = this;
5542
+ var _this44 = this;
5559
5543
 
5560
5544
  var fullAllDataRowMap = this.fullAllDataRowMap,
5561
5545
  treeExpandeds = this.treeExpandeds,
@@ -5569,7 +5553,7 @@ var Methods = {
5569
5553
  return new Promise(function (resolve) {
5570
5554
  treeLazyLoadeds.push(row);
5571
5555
  loadMethod({
5572
- $table: _this45,
5556
+ $table: _this44,
5573
5557
  row: row
5574
5558
  }).catch(function () {
5575
5559
  return [];
@@ -5585,29 +5569,29 @@ var Methods = {
5585
5569
  }
5586
5570
 
5587
5571
  if (childRecords) {
5588
- _this45.loadTreeChildren(row, childRecords).then(function (childRows) {
5572
+ _this44.loadTreeChildren(row, childRecords).then(function (childRows) {
5589
5573
  if (childRows.length && treeExpandeds.indexOf(row) === -1) {
5590
5574
  treeExpandeds.push(row);
5591
5575
  } // 如果当前节点已选中,则展开后子节点也被选中
5592
5576
 
5593
5577
 
5594
- if (!checkStrictly && _this45.isCheckedByCheckboxRow(row)) {
5595
- _this45.setCheckboxRow(childRows, true);
5578
+ if (!checkStrictly && _this44.isCheckedByCheckboxRow(row)) {
5579
+ _this44.setCheckboxRow(childRows, true);
5596
5580
  }
5597
5581
 
5598
- _this45.$nextTick().then(function () {
5582
+ _this44.$nextTick().then(function () {
5599
5583
  if (transform) {
5600
- return _this45.handleTableData();
5584
+ return _this44.handleTableData();
5601
5585
  }
5602
5586
  }).then(function () {
5603
- return _this45.recalculate();
5587
+ return _this44.recalculate();
5604
5588
  }).then(function () {
5605
5589
  return resolve();
5606
5590
  });
5607
5591
  });
5608
5592
  } else {
5609
- _this45.$nextTick().then(function () {
5610
- return _this45.recalculate();
5593
+ _this44.$nextTick().then(function () {
5594
+ return _this44.recalculate();
5611
5595
  }).then(function () {
5612
5596
  return resolve();
5613
5597
  });
@@ -5645,7 +5629,7 @@ var Methods = {
5645
5629
  * @returns
5646
5630
  */
5647
5631
  handleBaseTreeExpand: function handleBaseTreeExpand(rows, expanded) {
5648
- var _this46 = this;
5632
+ var _this45 = this;
5649
5633
 
5650
5634
  var fullAllDataRowMap = this.fullAllDataRowMap,
5651
5635
  tableFullData = this.tableFullData,
@@ -5693,7 +5677,7 @@ var Methods = {
5693
5677
  var isLoad = lazy && row[hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1; // 是否使用懒加载
5694
5678
 
5695
5679
  if (isLoad) {
5696
- result.push(_this46.handleAsyncTreeExpandChilds(row));
5680
+ result.push(_this45.handleAsyncTreeExpandChilds(row));
5697
5681
  } else {
5698
5682
  if (row[children] && row[children].length) {
5699
5683
  treeExpandeds.push(row);
@@ -5709,7 +5693,7 @@ var Methods = {
5709
5693
 
5710
5694
  if (reserve) {
5711
5695
  validRows.forEach(function (row) {
5712
- return _this46.handleTreeExpandReserve(row, expanded);
5696
+ return _this45.handleTreeExpandReserve(row, expanded);
5713
5697
  });
5714
5698
  }
5715
5699
 
@@ -5723,14 +5707,14 @@ var Methods = {
5723
5707
  * @returns
5724
5708
  */
5725
5709
  handleVirtualTreeExpand: function handleVirtualTreeExpand(rows, expanded) {
5726
- var _this47 = this;
5710
+ var _this46 = this;
5727
5711
 
5728
5712
  return this.handleBaseTreeExpand(rows, expanded).then(function () {
5729
- _this47.handleVirtualTreeToList();
5713
+ _this46.handleVirtualTreeToList();
5730
5714
 
5731
- return _this47.handleTableData();
5715
+ return _this46.handleTableData();
5732
5716
  }).then(function () {
5733
- return _this47.recalculate();
5717
+ return _this46.recalculate();
5734
5718
  });
5735
5719
  },
5736
5720
 
@@ -5775,7 +5759,7 @@ var Methods = {
5775
5759
  * 手动清空树形节点的展开状态,数据会恢复成未展开的状态
5776
5760
  */
5777
5761
  clearTreeExpand: function clearTreeExpand() {
5778
- var _this48 = this;
5762
+ var _this47 = this;
5779
5763
 
5780
5764
  var treeOpts = this.treeOpts,
5781
5765
  treeExpandeds = this.treeExpandeds,
@@ -5787,19 +5771,19 @@ var Methods = {
5787
5771
 
5788
5772
  if (reserve) {
5789
5773
  _xeUtils.default.eachTree(tableFullData, function (row) {
5790
- return _this48.handleTreeExpandReserve(row, false);
5774
+ return _this47.handleTreeExpandReserve(row, false);
5791
5775
  }, treeOpts);
5792
5776
  }
5793
5777
 
5794
5778
  return this.handleTableData().then(function () {
5795
5779
  if (transform) {
5796
- _this48.handleVirtualTreeToList();
5780
+ _this47.handleVirtualTreeToList();
5797
5781
 
5798
- return _this48.handleTableData();
5782
+ return _this47.handleTableData();
5799
5783
  }
5800
5784
  }).then(function () {
5801
5785
  if (isExists) {
5802
- _this48.recalculate();
5786
+ _this47.recalculate();
5803
5787
  }
5804
5788
  });
5805
5789
  },
@@ -5812,7 +5796,7 @@ var Methods = {
5812
5796
  treeOpts = this.treeOpts;
5813
5797
 
5814
5798
  if (treeOpts.reserve) {
5815
- var rowid = getRowid(this, row);
5799
+ var rowid = (0, _util.getRowid)(this, row);
5816
5800
 
5817
5801
  if (expanded) {
5818
5802
  treeExpandedReserveRowMap[rowid] = row;
@@ -5929,18 +5913,18 @@ var Methods = {
5929
5913
  },
5930
5914
  // 计算可视渲染相关数据
5931
5915
  computeScrollLoad: function computeScrollLoad() {
5932
- var _this49 = this;
5916
+ var _this48 = this;
5933
5917
 
5934
5918
  return this.$nextTick().then(function () {
5935
- var sYOpts = _this49.sYOpts,
5936
- sXOpts = _this49.sXOpts,
5937
- scrollXLoad = _this49.scrollXLoad,
5938
- scrollYLoad = _this49.scrollYLoad,
5939
- scrollXStore = _this49.scrollXStore,
5940
- scrollYStore = _this49.scrollYStore; // 计算 X 逻辑
5919
+ var sYOpts = _this48.sYOpts,
5920
+ sXOpts = _this48.sXOpts,
5921
+ scrollXLoad = _this48.scrollXLoad,
5922
+ scrollYLoad = _this48.scrollYLoad,
5923
+ scrollXStore = _this48.scrollXStore,
5924
+ scrollYStore = _this48.scrollYStore; // 计算 X 逻辑
5941
5925
 
5942
5926
  if (scrollXLoad) {
5943
- var _computeVirtualX3 = computeVirtualX(_this49),
5927
+ var _computeVirtualX3 = computeVirtualX(_this48),
5944
5928
  visibleXSize = _computeVirtualX3.visibleSize;
5945
5929
 
5946
5930
  var offsetXSize = sXOpts.oSize ? _xeUtils.default.toNumber(sXOpts.oSize) : _dom.browse.msie ? 10 : _dom.browse.edge ? 5 : 0;
@@ -5948,13 +5932,13 @@ var Methods = {
5948
5932
  scrollXStore.visibleSize = visibleXSize;
5949
5933
  scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
5950
5934
 
5951
- _this49.updateScrollXData();
5935
+ _this48.updateScrollXData();
5952
5936
  } else {
5953
- _this49.updateScrollXSpace();
5937
+ _this48.updateScrollXSpace();
5954
5938
  } // 计算 Y 逻辑
5955
5939
 
5956
5940
 
5957
- var _computeVirtualY = computeVirtualY(_this49),
5941
+ var _computeVirtualY = computeVirtualY(_this48),
5958
5942
  rowHeight = _computeVirtualY.rowHeight,
5959
5943
  visibleYSize = _computeVirtualY.visibleSize;
5960
5944
 
@@ -5966,14 +5950,14 @@ var Methods = {
5966
5950
  scrollYStore.visibleSize = visibleYSize;
5967
5951
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
5968
5952
 
5969
- _this49.updateScrollYData();
5953
+ _this48.updateScrollYData();
5970
5954
  } else {
5971
- _this49.updateScrollYSpace();
5955
+ _this48.updateScrollYSpace();
5972
5956
  }
5973
5957
 
5974
- _this49.rowHeight = rowHeight;
5958
+ _this48.rowHeight = rowHeight;
5975
5959
 
5976
- _this49.$nextTick(_this49.updateStyle);
5960
+ _this48.$nextTick(_this48.updateStyle);
5977
5961
  });
5978
5962
  },
5979
5963
  handleTableColumn: function handleTableColumn() {
@@ -5983,8 +5967,14 @@ var Methods = {
5983
5967
  this.tableColumn = scrollXLoad ? visibleColumn.slice(scrollXStore.startIndex, scrollXStore.endIndex) : visibleColumn.slice(0);
5984
5968
  },
5985
5969
  updateScrollXData: function updateScrollXData() {
5986
- this.handleTableColumn();
5987
- this.updateScrollXSpace();
5970
+ var _this49 = this;
5971
+
5972
+ this.tableColumn = [];
5973
+ this.$nextTick(function () {
5974
+ _this49.handleTableColumn();
5975
+
5976
+ _this49.updateScrollXSpace();
5977
+ });
5988
5978
  },
5989
5979
  // 更新横向 X 可视渲染上下剩余空间大小
5990
5980
  updateScrollXSpace: function updateScrollXSpace() {
@@ -6040,8 +6030,14 @@ var Methods = {
6040
6030
  }
6041
6031
  },
6042
6032
  updateScrollYData: function updateScrollYData() {
6043
- this.handleTableData();
6044
- this.updateScrollYSpace();
6033
+ var _this50 = this;
6034
+
6035
+ this.tableData = [];
6036
+ this.$nextTick(function () {
6037
+ _this50.handleTableData();
6038
+
6039
+ _this50.updateScrollYSpace();
6040
+ });
6045
6041
  },
6046
6042
  // 更新纵向 Y 可视渲染上下剩余空间大小
6047
6043
  updateScrollYSpace: function updateScrollYSpace() {
@@ -6087,7 +6083,7 @@ var Methods = {
6087
6083
  * @param {Number} scrollTop 上距离
6088
6084
  */
6089
6085
  scrollTo: function scrollTo(scrollLeft, scrollTop) {
6090
- var _this50 = this;
6086
+ var _this51 = this;
6091
6087
 
6092
6088
  var $refs = this.$refs;
6093
6089
  var tableBody = $refs.tableBody,
@@ -6108,7 +6104,7 @@ var Methods = {
6108
6104
  if (this.scrollXLoad || this.scrollYLoad) {
6109
6105
  return new Promise(function (resolve) {
6110
6106
  return setTimeout(function () {
6111
- return resolve(_this50.$nextTick());
6107
+ return resolve(_this51.$nextTick());
6112
6108
  }, 50);
6113
6109
  });
6114
6110
  }
@@ -6159,7 +6155,7 @@ var Methods = {
6159
6155
  * @param {Row} row 行对象
6160
6156
  */
6161
6157
  scrollToTreeRow: function scrollToTreeRow(row) {
6162
- var _this51 = this;
6158
+ var _this52 = this;
6163
6159
 
6164
6160
  var tableFullData = this.tableFullData,
6165
6161
  treeConfig = this.treeConfig,
@@ -6174,15 +6170,15 @@ var Methods = {
6174
6170
  if (matchObj) {
6175
6171
  var nodes = matchObj.nodes;
6176
6172
  nodes.forEach(function (row, index) {
6177
- if (index < nodes.length - 1 && !_this51.isTreeExpandByRow(row)) {
6178
- rests.push(_this51.setTreeExpand(row, true));
6173
+ if (index < nodes.length - 1 && !_this52.isTreeExpandByRow(row)) {
6174
+ rests.push(_this52.setTreeExpand(row, true));
6179
6175
  }
6180
6176
  });
6181
6177
  }
6182
6178
  }
6183
6179
 
6184
6180
  return Promise.all(rests).then(function () {
6185
- return _dom.default.rowToVisible(_this51, row);
6181
+ return _dom.default.rowToVisible(_this52, row);
6186
6182
  });
6187
6183
  },
6188
6184
 
@@ -6246,29 +6242,29 @@ var Methods = {
6246
6242
  * 如果单元格配置了校验规则,则会进行校验
6247
6243
  */
6248
6244
  updateStatus: function updateStatus(scope, cellValue) {
6249
- var _this52 = this;
6245
+ var _this53 = this;
6250
6246
 
6251
6247
  var customVal = !_xeUtils.default.isUndefined(cellValue);
6252
6248
  return this.$nextTick().then(function () {
6253
- var $refs = _this52.$refs,
6254
- editRules = _this52.editRules,
6255
- validStore = _this52.validStore;
6249
+ var $refs = _this53.$refs,
6250
+ editRules = _this53.editRules,
6251
+ validStore = _this53.validStore;
6256
6252
 
6257
6253
  if (scope && $refs.tableBody && editRules) {
6258
6254
  var row = scope.row,
6259
6255
  column = scope.column;
6260
6256
  var type = 'change';
6261
6257
 
6262
- if (_this52.hasCellRules(type, row, column)) {
6263
- var cell = _this52.getCell(row, column);
6258
+ if (_this53.hasCellRules(type, row, column)) {
6259
+ var cell = _this53.getCell(row, column);
6264
6260
 
6265
6261
  if (cell) {
6266
- return _this52.validCellRules(type, row, column, cellValue).then(function () {
6262
+ return _this53.validCellRules(type, row, column, cellValue).then(function () {
6267
6263
  if (customVal && validStore.visible) {
6268
6264
  setCellValue(row, column, cellValue);
6269
6265
  }
6270
6266
 
6271
- _this52.clearValidate();
6267
+ _this53.clearValidate();
6272
6268
  }).catch(function (_ref8) {
6273
6269
  var rule = _ref8.rule;
6274
6270
 
@@ -6276,7 +6272,7 @@ var Methods = {
6276
6272
  setCellValue(row, column, cellValue);
6277
6273
  }
6278
6274
 
6279
- _this52.showValidTooltip({
6275
+ _this53.showValidTooltip({
6280
6276
  rule: rule,
6281
6277
  row: row,
6282
6278
  column: column,
@@ -6297,7 +6293,7 @@ var Methods = {
6297
6293
  * @param {TableMergeConfig[]} merges { row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }
6298
6294
  */
6299
6295
  setMergeCells: function setMergeCells(merges) {
6300
- var _this53 = this;
6296
+ var _this54 = this;
6301
6297
 
6302
6298
  if (this.spanMethod) {
6303
6299
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-cells', 'span-method']);
@@ -6305,7 +6301,7 @@ var Methods = {
6305
6301
 
6306
6302
  setMerges(this, merges, this.mergeList, this.afterFullData);
6307
6303
  return this.$nextTick().then(function () {
6308
- return _this53.updateCellAreas();
6304
+ return _this54.updateCellAreas();
6309
6305
  });
6310
6306
  },
6311
6307
 
@@ -6314,7 +6310,7 @@ var Methods = {
6314
6310
  * @param {TableMergeConfig[]} merges 多个或数组 [{row:Row|number, col:ColumnInfo|number}]
6315
6311
  */
6316
6312
  removeMergeCells: function removeMergeCells(merges) {
6317
- var _this54 = this;
6313
+ var _this55 = this;
6318
6314
 
6319
6315
  if (this.spanMethod) {
6320
6316
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-cells', 'span-method']);
@@ -6322,7 +6318,7 @@ var Methods = {
6322
6318
 
6323
6319
  var rest = removeMerges(this, merges, this.mergeList, this.afterFullData);
6324
6320
  return this.$nextTick().then(function () {
6325
- _this54.updateCellAreas();
6321
+ _this55.updateCellAreas();
6326
6322
 
6327
6323
  return rest;
6328
6324
  });
@@ -6346,7 +6342,7 @@ var Methods = {
6346
6342
  this.setMergeFooterItems(this.mergeFooterItems);
6347
6343
  },
6348
6344
  setMergeFooterItems: function setMergeFooterItems(merges) {
6349
- var _this55 = this;
6345
+ var _this56 = this;
6350
6346
 
6351
6347
  if (this.footerSpanMethod) {
6352
6348
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
@@ -6354,11 +6350,11 @@ var Methods = {
6354
6350
 
6355
6351
  setMerges(this, merges, this.mergeFooterList, null);
6356
6352
  return this.$nextTick().then(function () {
6357
- return _this55.updateCellAreas();
6353
+ return _this56.updateCellAreas();
6358
6354
  });
6359
6355
  },
6360
6356
  removeMergeFooterItems: function removeMergeFooterItems(merges) {
6361
- var _this56 = this;
6357
+ var _this57 = this;
6362
6358
 
6363
6359
  if (this.footerSpanMethod) {
6364
6360
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
@@ -6366,7 +6362,7 @@ var Methods = {
6366
6362
 
6367
6363
  var rest = removeMerges(this, merges, this.mergeFooterList, null);
6368
6364
  return this.$nextTick().then(function () {
6369
- _this56.updateCellAreas();
6365
+ _this57.updateCellAreas();
6370
6366
 
6371
6367
  return rest;
6372
6368
  });
@@ -6433,7 +6429,7 @@ var Methods = {
6433
6429
  *************************/
6434
6430
  getCell: function getCell(row, column) {
6435
6431
  var $refs = this.$refs;
6436
- var rowid = getRowid(this, row);
6432
+ var rowid = (0, _util.getRowid)(this, row);
6437
6433
  var bodyElem = $refs["".concat(column.fixed || 'table', "Body")] || $refs.tableBody;
6438
6434
 
6439
6435
  if (bodyElem && bodyElem.$el) {