vxe-table 3.5.9 → 3.6.0-beta.2

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 (57) hide show
  1. package/lib/button/style/style.css +1 -58
  2. package/lib/button/style/style.min.css +1 -1
  3. package/lib/edit/src/mixin.js +10 -10
  4. package/lib/edit/src/mixin.min.js +1 -1
  5. package/lib/form/src/form.js +1 -1
  6. package/lib/form/src/form.min.js +1 -1
  7. package/lib/form/style/style.css +0 -3
  8. package/lib/form/style/style.min.css +1 -1
  9. package/lib/icon/style/style.css +377 -518
  10. package/lib/icon/style/style.min.css +1 -1
  11. package/lib/index.css +1 -1
  12. package/lib/index.umd.js +345 -334
  13. package/lib/index.umd.min.js +1 -1
  14. package/lib/input/src/input.js +3 -3
  15. package/lib/input/src/input.min.js +1 -1
  16. package/lib/input/style/style.css +13 -4
  17. package/lib/input/style/style.min.css +1 -1
  18. package/lib/modal/style/style.css +0 -1
  19. package/lib/modal/style/style.min.css +1 -1
  20. package/lib/pager/style/style.css +3 -1
  21. package/lib/pager/style/style.min.css +1 -1
  22. package/lib/select/style/style.css +1 -0
  23. package/lib/select/style/style.min.css +1 -1
  24. package/lib/style.css +1 -1
  25. package/lib/style.min.css +1 -1
  26. package/lib/table/src/cell.js +9 -8
  27. package/lib/table/src/cell.min.js +1 -1
  28. package/lib/table/src/methods.js +281 -270
  29. package/lib/table/src/methods.min.js +1 -1
  30. package/lib/table/style/style.css +5 -5
  31. package/lib/table/style/style.min.css +1 -1
  32. package/lib/toolbar/src/toolbar.js +1 -1
  33. package/lib/toolbar/src/toolbar.min.js +1 -1
  34. package/lib/tools/log.js +1 -1
  35. package/lib/tools/log.min.js +1 -1
  36. package/lib/v-x-e-table/index.js +1 -1
  37. package/lib/v-x-e-table/index.min.js +1 -1
  38. package/lib/v-x-e-table/src/conf.js +38 -39
  39. package/lib/v-x-e-table/src/conf.min.js +1 -1
  40. package/lib/v-x-e-table/style/style.css +365 -482
  41. package/lib/v-x-e-table/style/style.min.css +1 -1
  42. package/package.json +1 -1
  43. package/packages/edit/src/mixin.js +10 -10
  44. package/packages/form/src/form.js +1 -1
  45. package/packages/input/src/input.js +3 -3
  46. package/packages/table/src/cell.js +8 -8
  47. package/packages/table/src/methods.js +50 -42
  48. package/packages/toolbar/src/toolbar.js +1 -1
  49. package/packages/v-x-e-table/src/conf.js +38 -38
  50. package/styles/button.scss +1 -43
  51. package/styles/form.scss +0 -3
  52. package/styles/icon.scss +410 -616
  53. package/styles/input.scss +8 -0
  54. package/styles/modal.scss +0 -1
  55. package/styles/pager.scss +2 -0
  56. package/styles/select.scss +1 -0
  57. package/styles/table.scss +6 -7
@@ -1555,6 +1555,8 @@ var Methods = {
1555
1555
  * 用于多选行,获取已选中的数据
1556
1556
  */
1557
1557
  getCheckboxRecords: function getCheckboxRecords(isFull) {
1558
+ var _this17 = this;
1559
+
1558
1560
  var tableFullData = this.tableFullData,
1559
1561
  afterFullData = this.afterFullData,
1560
1562
  treeConfig = this.treeConfig,
@@ -1586,13 +1588,13 @@ var Methods = {
1586
1588
 
1587
1589
  if (treeConfig) {
1588
1590
  rowList = _xeUtils.default.filterTree(currTableData, function (row) {
1589
- return selection.indexOf(row) > -1;
1591
+ return _this17.findRowIndexOf(selection, row) > -1;
1590
1592
  }, {
1591
1593
  children: transform ? mapChildren : children
1592
1594
  });
1593
1595
  } else {
1594
1596
  rowList = currTableData.filter(function (row) {
1595
- return selection.indexOf(row) > -1;
1597
+ return _this17.findRowIndexOf(selection, row) > -1;
1596
1598
  });
1597
1599
  }
1598
1600
  }
@@ -1637,7 +1639,7 @@ var Methods = {
1637
1639
  * 如果存在筛选条件,继续处理
1638
1640
  */
1639
1641
  updateAfterFullData: function updateAfterFullData() {
1640
- var _this17 = this;
1642
+ var _this18 = this;
1641
1643
 
1642
1644
  var tableFullColumn = this.tableFullColumn,
1643
1645
  tableFullData = this.tableFullData,
@@ -1722,7 +1724,7 @@ var Methods = {
1722
1724
  cellValue: cellValue,
1723
1725
  row: row,
1724
1726
  column: column,
1725
- $table: _this17
1727
+ $table: _this18
1726
1728
  });
1727
1729
  });
1728
1730
  } else if (compFilterMethod) {
@@ -1733,7 +1735,7 @@ var Methods = {
1733
1735
  cellValue: cellValue,
1734
1736
  row: row,
1735
1737
  column: column,
1736
- $table: _this17
1738
+ $table: _this18
1737
1739
  });
1738
1740
  });
1739
1741
  } else if (allFilterMethod) {
@@ -1752,7 +1754,7 @@ var Methods = {
1752
1754
  cellValue: cellValue,
1753
1755
  row: row,
1754
1756
  column: column,
1755
- $table: _this17
1757
+ $table: _this18
1756
1758
  });
1757
1759
  });
1758
1760
  }
@@ -1805,7 +1807,7 @@ var Methods = {
1805
1807
  tableTree = _xeUtils.default.orderBy(tableTree, orderColumns.map(function (_ref2) {
1806
1808
  var column = _ref2.column,
1807
1809
  order = _ref2.order;
1808
- return [getOrderField(_this17, column), order];
1810
+ return [getOrderField(_this18, column), order];
1809
1811
  }));
1810
1812
  }
1811
1813
 
@@ -1829,7 +1831,7 @@ var Methods = {
1829
1831
  tableData = _xeUtils.default.orderBy(tableData, orderColumns.map(function (_ref3) {
1830
1832
  var column = _ref3.column,
1831
1833
  order = _ref3.order;
1832
- return [getOrderField(_this17, column), order];
1834
+ return [getOrderField(_this18, column), order];
1833
1835
  }));
1834
1836
  } else {
1835
1837
  // 兼容 v2,在 v4 中废弃, sortBy 不能为数组
@@ -1844,7 +1846,7 @@ var Methods = {
1844
1846
  tableData = _xeUtils.default.orderBy(tableData, sortByConfs || [firstOrderColumn].map(function (_ref4) {
1845
1847
  var column = _ref4.column,
1846
1848
  order = _ref4.order;
1847
- return [getOrderField(_this17, column), order];
1849
+ return [getOrderField(_this18, column), order];
1848
1850
  }));
1849
1851
  }
1850
1852
  }
@@ -1863,7 +1865,7 @@ var Methods = {
1863
1865
  * 对渲染中的数据提前解析序号及索引。牺牲提前编译耗时换取渲染中额外损耗,使运行时更加流畅
1864
1866
  */
1865
1867
  updateAfterDataIndex: function updateAfterDataIndex() {
1866
- var _this18 = this;
1868
+ var _this19 = this;
1867
1869
 
1868
1870
  var treeConfig = this.treeConfig,
1869
1871
  afterFullData = this.afterFullData,
@@ -1874,7 +1876,7 @@ var Methods = {
1874
1876
 
1875
1877
  if (treeConfig) {
1876
1878
  _xeUtils.default.eachTree(afterTreeFullData, function (row, index, items, path) {
1877
- var rowid = (0, _util.getRowid)(_this18, row);
1879
+ var rowid = (0, _util.getRowid)(_this19, row);
1878
1880
  var allrest = fullAllDataRowIdData[rowid];
1879
1881
  var seq = path.map(function (num, i) {
1880
1882
  return i % 2 === 0 ? Number(num) + 1 : '.';
@@ -1903,7 +1905,7 @@ var Methods = {
1903
1905
  });
1904
1906
  } else {
1905
1907
  afterFullData.forEach(function (row, index) {
1906
- var rowid = (0, _util.getRowid)(_this18, row);
1908
+ var rowid = (0, _util.getRowid)(_this19, row);
1907
1909
  var allrest = fullAllDataRowIdData[rowid];
1908
1910
  var seq = index + 1;
1909
1911
 
@@ -1995,7 +1997,7 @@ var Methods = {
1995
1997
  * 默认执行一次,除非被重置
1996
1998
  */
1997
1999
  handleLoadDefaults: function handleLoadDefaults() {
1998
- var _this19 = this;
2000
+ var _this20 = this;
1999
2001
 
2000
2002
  if (this.checkboxConfig) {
2001
2003
  this.handleDefaultSelectionChecked();
@@ -2022,7 +2024,7 @@ var Methods = {
2022
2024
  }
2023
2025
 
2024
2026
  this.$nextTick(function () {
2025
- return setTimeout(_this19.recalculate);
2027
+ return setTimeout(_this20.recalculate);
2026
2028
  });
2027
2029
  },
2028
2030
 
@@ -2276,12 +2278,12 @@ var Methods = {
2276
2278
  * 刷新列配置
2277
2279
  */
2278
2280
  refreshColumn: function refreshColumn() {
2279
- var _this20 = this;
2281
+ var _this21 = this;
2280
2282
 
2281
2283
  return this.parseColumns().then(function () {
2282
- return _this20.refreshScroll();
2284
+ return _this21.refreshScroll();
2283
2285
  }).then(function () {
2284
- return _this20.recalculate();
2286
+ return _this21.recalculate();
2285
2287
  });
2286
2288
  },
2287
2289
 
@@ -2290,7 +2292,7 @@ var Methods = {
2290
2292
  * 将固定的列左边、右边分别靠边
2291
2293
  */
2292
2294
  parseColumns: function parseColumns() {
2293
- var _this21 = this;
2295
+ var _this22 = this;
2294
2296
 
2295
2297
  var leftList = [];
2296
2298
  var centerList = [];
@@ -2417,11 +2419,11 @@ var Methods = {
2417
2419
  this.visibleColumn = visibleColumn;
2418
2420
  this.handleTableColumn();
2419
2421
  return this.updateFooter().then(function () {
2420
- return _this21.recalculate();
2422
+ return _this22.recalculate();
2421
2423
  }).then(function () {
2422
- _this21.updateCellAreas();
2424
+ _this22.updateCellAreas();
2423
2425
 
2424
- return _this21.recalculate();
2426
+ return _this22.recalculate();
2425
2427
  });
2426
2428
  },
2427
2429
 
@@ -2477,7 +2479,7 @@ var Methods = {
2477
2479
  * 刷新滚动操作,手动同步滚动相关位置(对于某些特殊的操作,比如滚动条错位、固定列不同步)
2478
2480
  */
2479
2481
  refreshScroll: function refreshScroll() {
2480
- var _this22 = this;
2482
+ var _this23 = this;
2481
2483
 
2482
2484
  var lastScrollLeft = this.lastScrollLeft,
2483
2485
  lastScrollTop = this.lastScrollTop;
@@ -2493,7 +2495,7 @@ var Methods = {
2493
2495
  return new Promise(function (resolve) {
2494
2496
  // 还原滚动条位置
2495
2497
  if (lastScrollLeft || lastScrollTop) {
2496
- return (0, _util.restoreScrollLocation)(_this22, lastScrollLeft, lastScrollTop).then(function () {
2498
+ return (0, _util.restoreScrollLocation)(_this23, lastScrollLeft, lastScrollTop).then(function () {
2497
2499
  // 存在滚动行为未结束情况
2498
2500
  setTimeout(resolve, 30);
2499
2501
  });
@@ -2514,7 +2516,7 @@ var Methods = {
2514
2516
  * 支持 width=? width=?px width=?% min-width=? min-width=?px min-width=?%
2515
2517
  */
2516
2518
  recalculate: function recalculate(refull) {
2517
- var _this23 = this;
2519
+ var _this24 = this;
2518
2520
 
2519
2521
  var $refs = this.$refs;
2520
2522
  var tableBody = $refs.tableBody,
@@ -2530,9 +2532,9 @@ var Methods = {
2530
2532
  if (refull === true) {
2531
2533
  // 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
2532
2534
  return this.computeScrollLoad().then(function () {
2533
- _this23.autoCellWidth(headerElem, bodyElem, footerElem);
2535
+ _this24.autoCellWidth(headerElem, bodyElem, footerElem);
2534
2536
 
2535
- return _this23.computeScrollLoad();
2537
+ return _this24.computeScrollLoad();
2536
2538
  });
2537
2539
  }
2538
2540
  }
@@ -2680,7 +2682,7 @@ var Methods = {
2680
2682
  this.customMaxHeight = calcHeight(this, 'maxHeight');
2681
2683
  },
2682
2684
  updateStyle: function updateStyle() {
2683
- var _this24 = this;
2685
+ var _this25 = this;
2684
2686
 
2685
2687
  var $refs = this.$refs,
2686
2688
  isGroup = this.isGroup,
@@ -2784,7 +2786,7 @@ var Methods = {
2784
2786
 
2785
2787
  if (isGroup && listElem) {
2786
2788
  _xeUtils.default.arrayEach(listElem.querySelectorAll('.col--group'), function (thElem) {
2787
- var colNode = _this24.getColumnNode(thElem);
2789
+ var colNode = _this25.getColumnNode(thElem);
2788
2790
 
2789
2791
  if (colNode) {
2790
2792
  var column = colNode.item;
@@ -2951,10 +2953,10 @@ var Methods = {
2951
2953
 
2952
2954
  if (cellElem) {
2953
2955
  if (colspan > 1) {
2954
- var columnIndex = _this24.getColumnIndex(column);
2956
+ var columnIndex = _this25.getColumnIndex(column);
2955
2957
 
2956
2958
  for (var _index = 1; _index < colspan; _index++) {
2957
- var nextColumn = _this24.getColumns(columnIndex + _index);
2959
+ var nextColumn = _this25.getColumns(columnIndex + _index);
2958
2960
 
2959
2961
  if (nextColumn) {
2960
2962
  colWidth += nextColumn.renderWidth;
@@ -3004,7 +3006,7 @@ var Methods = {
3004
3006
  }
3005
3007
  },
3006
3008
  preventEvent: function preventEvent(evnt, type, args, next, end) {
3007
- var _this25 = this;
3009
+ var _this26 = this;
3008
3010
 
3009
3011
  var evntList = _vXETable.default.interceptor.get(type);
3010
3012
 
@@ -3012,8 +3014,8 @@ var Methods = {
3012
3014
 
3013
3015
  if (!evntList.some(function (func) {
3014
3016
  return func(Object.assign({
3015
- $grid: _this25.$xegrid,
3016
- $table: _this25,
3017
+ $grid: _this26.$xegrid,
3018
+ $table: _this26,
3017
3019
  $event: evnt
3018
3020
  }, args)) === false;
3019
3021
  })) {
@@ -3033,7 +3035,7 @@ var Methods = {
3033
3035
  * 全局按下事件处理
3034
3036
  */
3035
3037
  handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
3036
- var _this26 = this;
3038
+ var _this27 = this;
3037
3039
 
3038
3040
  var $el = this.$el,
3039
3041
  $refs = this.$refs,
@@ -3094,7 +3096,7 @@ var Methods = {
3094
3096
  } // 如果固定了高度且点击了行之外的空白处,则清除激活状态
3095
3097
 
3096
3098
 
3097
- if (!isClearActived && _this26.height && !_this26.overflowY) {
3099
+ if (!isClearActived && _this27.height && !_this27.overflowY) {
3098
3100
  var bodyWrapperElem = evnt.target;
3099
3101
 
3100
3102
  if (hasClass(bodyWrapperElem, 'vxe-table--body-wrapper')) {
@@ -3105,7 +3107,7 @@ var Methods = {
3105
3107
  if (isClearActived || // 如果点击了当前表格之外
3106
3108
  !getEventTargetNode(evnt, $el).flag) {
3107
3109
  setTimeout(function () {
3108
- return _this26.clearEdit(evnt);
3110
+ return _this27.clearEdit(evnt);
3109
3111
  });
3110
3112
  }
3111
3113
  });
@@ -3119,9 +3121,9 @@ var Methods = {
3119
3121
 
3120
3122
  if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
3121
3123
  this.preventEvent(evnt, 'event.clearAreas', {}, function () {
3122
- _this26.clearCellAreas();
3124
+ _this27.clearCellAreas();
3123
3125
 
3124
- _this26.clearCopyCellArea();
3126
+ _this27.clearCopyCellArea();
3125
3127
  });
3126
3128
  }
3127
3129
  }
@@ -3156,7 +3158,7 @@ var Methods = {
3156
3158
  * 表格键盘事件
3157
3159
  */
3158
3160
  keydownEvent: function keydownEvent(evnt) {
3159
- var _this27 = this;
3161
+ var _this28 = this;
3160
3162
 
3161
3163
  var filterStore = this.filterStore,
3162
3164
  ctxMenuStore = this.ctxMenuStore,
@@ -3171,37 +3173,37 @@ var Methods = {
3171
3173
 
3172
3174
  if (isEsc) {
3173
3175
  this.preventEvent(evnt, 'event.keydown', null, function () {
3174
- _this27.emitEvent('keydown-start', {}, evnt);
3176
+ _this28.emitEvent('keydown-start', {}, evnt);
3175
3177
 
3176
- if (keyboardConfig && mouseConfig && mouseOpts.area && _this27.handleKeyboardEvent) {
3177
- _this27.handleKeyboardEvent(evnt);
3178
+ if (keyboardConfig && mouseConfig && mouseOpts.area && _this28.handleKeyboardEvent) {
3179
+ _this28.handleKeyboardEvent(evnt);
3178
3180
  } else if (actived.row || filterStore.visible || ctxMenuStore.visible) {
3179
3181
  evnt.stopPropagation(); // 如果按下了 Esc 键,关闭快捷菜单、筛选
3180
3182
 
3181
- _this27.closeFilter();
3183
+ _this28.closeFilter();
3182
3184
 
3183
- _this27.closeMenu();
3185
+ _this28.closeMenu();
3184
3186
 
3185
3187
  if (keyboardConfig && keyboardOpts.isEsc) {
3186
3188
  // 如果是激活编辑状态,则取消编辑
3187
3189
  if (actived.row) {
3188
3190
  var params = actived.args;
3189
3191
 
3190
- _this27.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
3192
+ _this28.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
3191
3193
 
3192
3194
 
3193
3195
  if (mouseConfig && mouseOpts.selected) {
3194
- _this27.$nextTick(function () {
3195
- return _this27.handleSelected(params, evnt);
3196
+ _this28.$nextTick(function () {
3197
+ return _this28.handleSelected(params, evnt);
3196
3198
  });
3197
3199
  }
3198
3200
  }
3199
3201
  }
3200
3202
  }
3201
3203
 
3202
- _this27.emitEvent('keydown', {}, evnt);
3204
+ _this28.emitEvent('keydown', {}, evnt);
3203
3205
 
3204
- _this27.emitEvent('keydown-end', {}, evnt);
3206
+ _this28.emitEvent('keydown-end', {}, evnt);
3205
3207
  });
3206
3208
  }
3207
3209
  },
@@ -3210,27 +3212,27 @@ var Methods = {
3210
3212
  * 全局键盘事件
3211
3213
  */
3212
3214
  handleGlobalKeydownEvent: function handleGlobalKeydownEvent(evnt) {
3213
- var _this28 = this;
3215
+ var _this29 = this;
3214
3216
 
3215
3217
  // 该行为只对当前激活的表格有效
3216
3218
  if (this.isActivated) {
3217
3219
  this.preventEvent(evnt, 'event.keydown', null, function () {
3218
- var filterStore = _this28.filterStore,
3219
- isCtxMenu = _this28.isCtxMenu,
3220
- ctxMenuStore = _this28.ctxMenuStore,
3221
- editStore = _this28.editStore,
3222
- editOpts = _this28.editOpts,
3223
- editConfig = _this28.editConfig,
3224
- mouseConfig = _this28.mouseConfig,
3225
- mouseOpts = _this28.mouseOpts,
3226
- keyboardConfig = _this28.keyboardConfig,
3227
- keyboardOpts = _this28.keyboardOpts,
3228
- treeConfig = _this28.treeConfig,
3229
- treeOpts = _this28.treeOpts,
3230
- highlightCurrentRow = _this28.highlightCurrentRow,
3231
- currentRow = _this28.currentRow,
3232
- bodyCtxMenu = _this28.bodyCtxMenu,
3233
- rowOpts = _this28.rowOpts;
3220
+ var filterStore = _this29.filterStore,
3221
+ isCtxMenu = _this29.isCtxMenu,
3222
+ ctxMenuStore = _this29.ctxMenuStore,
3223
+ editStore = _this29.editStore,
3224
+ editOpts = _this29.editOpts,
3225
+ editConfig = _this29.editConfig,
3226
+ mouseConfig = _this29.mouseConfig,
3227
+ mouseOpts = _this29.mouseOpts,
3228
+ keyboardConfig = _this29.keyboardConfig,
3229
+ keyboardOpts = _this29.keyboardOpts,
3230
+ treeConfig = _this29.treeConfig,
3231
+ treeOpts = _this29.treeOpts,
3232
+ highlightCurrentRow = _this29.highlightCurrentRow,
3233
+ currentRow = _this29.currentRow,
3234
+ bodyCtxMenu = _this29.bodyCtxMenu,
3235
+ rowOpts = _this29.rowOpts;
3234
3236
  var selected = editStore.selected,
3235
3237
  actived = editStore.actived;
3236
3238
  var keyCode = evnt.keyCode;
@@ -3257,7 +3259,7 @@ var Methods = {
3257
3259
 
3258
3260
  if (filterStore.visible) {
3259
3261
  if (isEsc) {
3260
- _this28.closeFilter();
3262
+ _this29.closeFilter();
3261
3263
  }
3262
3264
 
3263
3265
  return;
@@ -3268,20 +3270,20 @@ var Methods = {
3268
3270
  evnt.preventDefault();
3269
3271
 
3270
3272
  if (ctxMenuStore.showChild && hasChildrenList(ctxMenuStore.selected)) {
3271
- _this28.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
3273
+ _this29.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
3272
3274
  } else {
3273
- _this28.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this28.ctxMenuList);
3275
+ _this29.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this29.ctxMenuList);
3274
3276
  }
3275
- } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this28.handleKeyboardEvent) {
3276
- _this28.handleKeyboardEvent(evnt);
3277
+ } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this29.handleKeyboardEvent) {
3278
+ _this29.handleKeyboardEvent(evnt);
3277
3279
  } else if (keyboardConfig && isSpacebar && keyboardOpts.isChecked && selected.row && selected.column && (selected.column.type === 'checkbox' || selected.column.type === 'radio')) {
3278
3280
  // 空格键支持选中复选框
3279
3281
  evnt.preventDefault();
3280
3282
 
3281
3283
  if (selected.column.type === 'checkbox') {
3282
- _this28.handleToggleCheckRowEvent(evnt, selected.args);
3284
+ _this29.handleToggleCheckRowEvent(evnt, selected.args);
3283
3285
  } else {
3284
- _this28.triggerRadioRowEvent(evnt, selected.args);
3286
+ _this29.triggerRadioRowEvent(evnt, selected.args);
3285
3287
  }
3286
3288
  } else if (isF2 && (0, _utils.isEnableConf)(editConfig)) {
3287
3289
  if (!isEditStatus) {
@@ -3290,15 +3292,15 @@ var Methods = {
3290
3292
  evnt.stopPropagation();
3291
3293
  evnt.preventDefault();
3292
3294
 
3293
- _this28.handleActived(selected.args, evnt);
3295
+ _this29.handleActived(selected.args, evnt);
3294
3296
  }
3295
3297
  }
3296
3298
  } else if (isContextMenu) {
3297
3299
  // 如果按下上下文键
3298
- _this28._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
3299
- clearTimeout(_this28.keyCtxTimeout);
3300
- _this28.keyCtxTimeout = setTimeout(function () {
3301
- _this28._keyCtx = false;
3300
+ _this29._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
3301
+ clearTimeout(_this29.keyCtxTimeout);
3302
+ _this29.keyCtxTimeout = setTimeout(function () {
3303
+ _this29._keyCtx = false;
3302
3304
  }, 1000);
3303
3305
  } else if (isEnter && !hasAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow)) {
3304
3306
  // 退出选中
@@ -3307,12 +3309,12 @@ var Methods = {
3307
3309
  if (actived.row) {
3308
3310
  params = actived.args;
3309
3311
 
3310
- _this28.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
3312
+ _this29.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
3311
3313
 
3312
3314
 
3313
3315
  if (mouseConfig && mouseOpts.selected) {
3314
- _this28.$nextTick(function () {
3315
- return _this28.handleSelected(params, evnt);
3316
+ _this29.$nextTick(function () {
3317
+ return _this29.handleSelected(params, evnt);
3316
3318
  });
3317
3319
  }
3318
3320
  }
@@ -3323,15 +3325,15 @@ var Methods = {
3323
3325
 
3324
3326
  if (hasShiftKey) {
3325
3327
  if (keyboardOpts.enterToTab) {
3326
- _this28.moveTabSelected(targetArgs, hasShiftKey, evnt);
3328
+ _this29.moveTabSelected(targetArgs, hasShiftKey, evnt);
3327
3329
  } else {
3328
- _this28.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
3330
+ _this29.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
3329
3331
  }
3330
3332
  } else {
3331
3333
  if (keyboardOpts.enterToTab) {
3332
- _this28.moveTabSelected(targetArgs, hasShiftKey, evnt);
3334
+ _this29.moveTabSelected(targetArgs, hasShiftKey, evnt);
3333
3335
  } else {
3334
- _this28.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
3336
+ _this29.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
3335
3337
  }
3336
3338
  }
3337
3339
  } else if (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
@@ -3342,14 +3344,14 @@ var Methods = {
3342
3344
  evnt.preventDefault();
3343
3345
  var targetRow = childrens[0];
3344
3346
  params = {
3345
- $table: _this28,
3347
+ $table: _this29,
3346
3348
  row: targetRow
3347
3349
  };
3348
3350
 
3349
- _this28.setTreeExpand(currentRow, true).then(function () {
3350
- return _this28.scrollToRow(targetRow);
3351
+ _this29.setTreeExpand(currentRow, true).then(function () {
3352
+ return _this29.scrollToRow(targetRow);
3351
3353
  }).then(function () {
3352
- return _this28.triggerCurrentRowEvent(evnt, params);
3354
+ return _this29.triggerCurrentRowEvent(evnt, params);
3353
3355
  });
3354
3356
  }
3355
3357
  }
@@ -3358,18 +3360,18 @@ var Methods = {
3358
3360
  if (!isEditStatus) {
3359
3361
  // 如果按下了方向键
3360
3362
  if (selected.row && selected.column) {
3361
- _this28.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
3363
+ _this29.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
3362
3364
  } else if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
3363
3365
  // 当前行按键上下移动
3364
- _this28.moveCurrentRow(isUpArrow, isDwArrow, evnt);
3366
+ _this29.moveCurrentRow(isUpArrow, isDwArrow, evnt);
3365
3367
  }
3366
3368
  }
3367
3369
  } else if (isTab && keyboardConfig && keyboardOpts.isTab) {
3368
3370
  // 如果按下了 Tab 键切换
3369
3371
  if (selected.row || selected.column) {
3370
- _this28.moveTabSelected(selected.args, hasShiftKey, evnt);
3372
+ _this29.moveTabSelected(selected.args, hasShiftKey, evnt);
3371
3373
  } else if (actived.row || actived.column) {
3372
- _this28.moveTabSelected(actived.args, hasShiftKey, evnt);
3374
+ _this29.moveTabSelected(actived.args, hasShiftKey, evnt);
3373
3375
  }
3374
3376
  } else if (keyboardConfig && (isDel || (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
3375
3377
  if (!isEditStatus) {
@@ -3380,10 +3382,10 @@ var Methods = {
3380
3382
  if (delMethod) {
3381
3383
  delMethod({
3382
3384
  row: selected.row,
3383
- rowIndex: _this28.getRowIndex(selected.row),
3385
+ rowIndex: _this29.getRowIndex(selected.row),
3384
3386
  column: selected.column,
3385
- columnIndex: _this28.getColumnIndex(selected.column),
3386
- $table: _this28
3387
+ columnIndex: _this29.getColumnIndex(selected.column),
3388
+ $table: _this29
3387
3389
  });
3388
3390
  } else {
3389
3391
  setCellValue(selected.row, selected.column, null);
@@ -3393,21 +3395,21 @@ var Methods = {
3393
3395
  if (backMethod) {
3394
3396
  backMethod({
3395
3397
  row: selected.row,
3396
- rowIndex: _this28.getRowIndex(selected.row),
3398
+ rowIndex: _this29.getRowIndex(selected.row),
3397
3399
  column: selected.column,
3398
- columnIndex: _this28.getColumnIndex(selected.column),
3399
- $table: _this28
3400
+ columnIndex: _this29.getColumnIndex(selected.column),
3401
+ $table: _this29
3400
3402
  });
3401
3403
  } else {
3402
- _this28.handleActived(selected.args, evnt);
3404
+ _this29.handleActived(selected.args, evnt);
3403
3405
  }
3404
3406
  } else if (isDel) {
3405
3407
  // 如果按下 del 键,更新表尾数据
3406
- _this28.updateFooter();
3408
+ _this29.updateFooter();
3407
3409
  }
3408
3410
  } else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
3409
3411
  // 如果树形表格回退键关闭当前行返回父节点
3410
- var _XEUtils$findTree = _xeUtils.default.findTree(_this28.afterFullData, function (item) {
3412
+ var _XEUtils$findTree = _xeUtils.default.findTree(_this29.afterFullData, function (item) {
3411
3413
  return item === currentRow;
3412
3414
  }, treeOpts),
3413
3415
  parentRow = _XEUtils$findTree.parent;
@@ -3415,14 +3417,14 @@ var Methods = {
3415
3417
  if (parentRow) {
3416
3418
  evnt.preventDefault();
3417
3419
  params = {
3418
- $table: _this28,
3420
+ $table: _this29,
3419
3421
  row: parentRow
3420
3422
  };
3421
3423
 
3422
- _this28.setTreeExpand(parentRow, false).then(function () {
3423
- return _this28.scrollToRow(parentRow);
3424
+ _this29.setTreeExpand(parentRow, false).then(function () {
3425
+ return _this29.scrollToRow(parentRow);
3424
3426
  }).then(function () {
3425
- return _this28.triggerCurrentRowEvent(evnt, params);
3427
+ return _this29.triggerCurrentRowEvent(evnt, params);
3426
3428
  });
3427
3429
  }
3428
3430
  }
@@ -3438,26 +3440,26 @@ var Methods = {
3438
3440
  var beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
3439
3441
 
3440
3442
  if (!beforeEditMethod || beforeEditMethod(_objectSpread(_objectSpread({}, selected.args), {}, {
3441
- $table: _this28
3443
+ $table: _this29
3442
3444
  }))) {
3443
3445
  if (editMethod) {
3444
3446
  editMethod({
3445
3447
  row: selected.row,
3446
- rowIndex: _this28.getRowIndex(selected.row),
3448
+ rowIndex: _this29.getRowIndex(selected.row),
3447
3449
  column: selected.column,
3448
- columnIndex: _this28.getColumnIndex(selected.column),
3449
- $table: _this28
3450
+ columnIndex: _this29.getColumnIndex(selected.column),
3451
+ $table: _this29
3450
3452
  });
3451
3453
  } else {
3452
3454
  setCellValue(selected.row, selected.column, null);
3453
3455
 
3454
- _this28.handleActived(selected.args, evnt);
3456
+ _this29.handleActived(selected.args, evnt);
3455
3457
  }
3456
3458
  }
3457
3459
  }
3458
3460
  }
3459
3461
 
3460
- _this28.emitEvent('keydown', {}, evnt);
3462
+ _this29.emitEvent('keydown', {}, evnt);
3461
3463
  });
3462
3464
  }
3463
3465
  },
@@ -3539,7 +3541,7 @@ var Methods = {
3539
3541
  }
3540
3542
  },
3541
3543
  handleTargetLeaveEvent: function handleTargetLeaveEvent() {
3542
- var _this29 = this;
3544
+ var _this30 = this;
3543
3545
 
3544
3546
  var tooltipOpts = this.tooltipOpts;
3545
3547
  var $tooltip = this.$refs.tooltip;
@@ -3550,10 +3552,10 @@ var Methods = {
3550
3552
 
3551
3553
  if (tooltipOpts.enterable) {
3552
3554
  this.tooltipTimeout = setTimeout(function () {
3553
- $tooltip = _this29.$refs.tooltip;
3555
+ $tooltip = _this30.$refs.tooltip;
3554
3556
 
3555
3557
  if ($tooltip && !$tooltip.isActived()) {
3556
- _this29.closeTooltip();
3558
+ _this30.closeTooltip();
3557
3559
  }
3558
3560
  }, tooltipOpts.leaveDelay);
3559
3561
  } else {
@@ -3751,13 +3753,15 @@ var Methods = {
3751
3753
  * 获取复选框半选状态的行数据
3752
3754
  */
3753
3755
  getCheckboxIndeterminateRecords: function getCheckboxIndeterminateRecords(isFull) {
3756
+ var _this31 = this;
3757
+
3754
3758
  var treeConfig = this.treeConfig,
3755
3759
  treeIndeterminates = this.treeIndeterminates,
3756
3760
  afterFullData = this.afterFullData;
3757
3761
 
3758
3762
  if (treeConfig) {
3759
3763
  return isFull ? treeIndeterminates.slice(0) : treeIndeterminates.filter(function (row) {
3760
- return afterFullData.indexOf(row);
3764
+ return _this31.findRowIndexOf(afterFullData, row) > -1;
3761
3765
  });
3762
3766
  }
3763
3767
 
@@ -3792,30 +3796,32 @@ var Methods = {
3792
3796
  * @param {Boolean} value 是否选中
3793
3797
  */
3794
3798
  setCheckboxRow: function setCheckboxRow(rows, value) {
3795
- var _this30 = this;
3799
+ var _this32 = this;
3796
3800
 
3797
3801
  if (rows && !_xeUtils.default.isArray(rows)) {
3798
3802
  rows = [rows];
3799
3803
  }
3800
3804
 
3801
3805
  rows.forEach(function (row) {
3802
- return _this30.handleSelectRow({
3806
+ return _this32.handleSelectRow({
3803
3807
  row: row
3804
3808
  }, !!value);
3805
3809
  });
3806
3810
  return this.$nextTick();
3807
3811
  },
3808
3812
  isCheckedByCheckboxRow: function isCheckedByCheckboxRow(row) {
3813
+ var selection = this.selection;
3809
3814
  var checkField = this.checkboxOpts.checkField;
3810
3815
 
3811
3816
  if (checkField) {
3812
3817
  return _xeUtils.default.get(row, checkField);
3813
3818
  }
3814
3819
 
3815
- return this.selection.indexOf(row) > -1;
3820
+ return this.findRowIndexOf(selection, row) > -1;
3816
3821
  },
3817
3822
  isIndeterminateByCheckboxRow: function isIndeterminateByCheckboxRow(row) {
3818
- return this.treeIndeterminates.indexOf(row) > -1 && !this.isCheckedByCheckboxRow(row);
3823
+ var treeIndeterminates = this.treeIndeterminates;
3824
+ return this.findRowIndexOf(treeIndeterminates, row) > -1 && !this.isCheckedByCheckboxRow(row);
3819
3825
  },
3820
3826
 
3821
3827
  /**
@@ -3823,7 +3829,7 @@ var Methods = {
3823
3829
  * value 选中true 不选false 半选-1
3824
3830
  */
3825
3831
  handleSelectRow: function handleSelectRow(_ref6, value) {
3826
- var _this31 = this;
3832
+ var _this33 = this;
3827
3833
 
3828
3834
  var row = _ref6.row;
3829
3835
  var selection = this.selection,
@@ -3839,7 +3845,7 @@ var Methods = {
3839
3845
  if (checkField) {
3840
3846
  if (treeConfig && !checkStrictly) {
3841
3847
  if (value === -1) {
3842
- if (treeIndeterminates.indexOf(row) === -1) {
3848
+ if (this.findRowIndexOf(treeIndeterminates, row) === -1) {
3843
3849
  treeIndeterminates.push(row);
3844
3850
  }
3845
3851
 
@@ -3847,23 +3853,23 @@ var Methods = {
3847
3853
  } else {
3848
3854
  // 更新子节点状态
3849
3855
  _xeUtils.default.eachTree([row], function (item) {
3850
- if (row === item || !checkMethod || checkMethod({
3856
+ if (_this33.eqRow(item, row) || !checkMethod || checkMethod({
3851
3857
  row: item
3852
3858
  })) {
3853
3859
  _xeUtils.default.set(item, checkField, value);
3854
3860
 
3855
3861
  _xeUtils.default.remove(treeIndeterminates, function (half) {
3856
- return half === item;
3862
+ return _this33.eqRow(half, item);
3857
3863
  });
3858
3864
 
3859
- _this31.handleCheckboxReserveRow(row, value);
3865
+ _this33.handleCheckboxReserveRow(row, value);
3860
3866
  }
3861
3867
  }, treeOpts);
3862
3868
  } // 如果存在父节点,更新父节点状态
3863
3869
 
3864
3870
 
3865
3871
  var matchObj = _xeUtils.default.findTree(afterFullData, function (item) {
3866
- return item === row;
3872
+ return _this33.eqRow(item, row);
3867
3873
  }, treeOpts);
3868
3874
 
3869
3875
  if (matchObj && matchObj.parent) {
@@ -3875,7 +3881,7 @@ var Methods = {
3875
3881
  }) : matchObj.items;
3876
3882
 
3877
3883
  var indeterminatesItem = _xeUtils.default.find(matchObj.items, function (item) {
3878
- return treeIndeterminates.indexOf(item) > -1;
3884
+ return _this33.findRowIndexOf(treeIndeterminates, item) > -1;
3879
3885
  });
3880
3886
 
3881
3887
  if (indeterminatesItem) {
@@ -3885,7 +3891,7 @@ var Methods = {
3885
3891
  return _xeUtils.default.get(item, checkField);
3886
3892
  });
3887
3893
  parentStatus = selectItems.filter(function (item) {
3888
- return vItems.indexOf(item) > -1;
3894
+ return _this33.findRowIndexOf(vItems, item) > -1;
3889
3895
  }).length === vItems.length ? true : selectItems.length || value === -1 ? -1 : false;
3890
3896
  }
3891
3897
 
@@ -3905,39 +3911,39 @@ var Methods = {
3905
3911
  } else {
3906
3912
  if (treeConfig && !checkStrictly) {
3907
3913
  if (value === -1) {
3908
- if (treeIndeterminates.indexOf(row) === -1) {
3914
+ if (this.findRowIndexOf(treeIndeterminates, row) === -1) {
3909
3915
  treeIndeterminates.push(row);
3910
3916
  }
3911
3917
 
3912
3918
  _xeUtils.default.remove(selection, function (item) {
3913
- return item === row;
3919
+ return _this33.eqRow(item, row);
3914
3920
  });
3915
3921
  } else {
3916
3922
  // 更新子节点状态
3917
3923
  _xeUtils.default.eachTree([row], function (item) {
3918
- if (row === item || !checkMethod || checkMethod({
3924
+ if (_this33.eqRow(item, row) || !checkMethod || checkMethod({
3919
3925
  row: item
3920
3926
  })) {
3921
3927
  if (value) {
3922
3928
  selection.push(item);
3923
3929
  } else {
3924
3930
  _xeUtils.default.remove(selection, function (select) {
3925
- return select === item;
3931
+ return _this33.eqRow(select, item);
3926
3932
  });
3927
3933
  }
3928
3934
 
3929
3935
  _xeUtils.default.remove(treeIndeterminates, function (half) {
3930
- return half === item;
3936
+ return _this33.eqRow(half, item);
3931
3937
  });
3932
3938
 
3933
- _this31.handleCheckboxReserveRow(row, value);
3939
+ _this33.handleCheckboxReserveRow(row, value);
3934
3940
  }
3935
3941
  }, treeOpts);
3936
3942
  } // 如果存在父节点,更新父节点状态
3937
3943
 
3938
3944
 
3939
3945
  var _matchObj = _xeUtils.default.findTree(afterFullData, function (item) {
3940
- return item === row;
3946
+ return _this33.eqRow(item, row);
3941
3947
  }, treeOpts);
3942
3948
 
3943
3949
  if (_matchObj && _matchObj.parent) {
@@ -3950,18 +3956,18 @@ var Methods = {
3950
3956
  }) : _matchObj.items;
3951
3957
 
3952
3958
  var _indeterminatesItem = _xeUtils.default.find(_matchObj.items, function (item) {
3953
- return treeIndeterminates.indexOf(item) > -1;
3959
+ return _this33.findRowIndexOf(treeIndeterminates, item) > -1;
3954
3960
  });
3955
3961
 
3956
3962
  if (_indeterminatesItem) {
3957
3963
  _parentStatus = -1;
3958
3964
  } else {
3959
3965
  var _selectItems = _matchObj.items.filter(function (item) {
3960
- return selection.indexOf(item) > -1;
3966
+ return _this33.findRowIndexOf(selection, item) > -1;
3961
3967
  });
3962
3968
 
3963
3969
  _parentStatus = _selectItems.filter(function (item) {
3964
- return _vItems.indexOf(item) > -1;
3970
+ return _this33.findRowIndexOf(_vItems, item) > -1;
3965
3971
  }).length === _vItems.length ? true : _selectItems.length || value === -1 ? -1 : false;
3966
3972
  }
3967
3973
 
@@ -3974,12 +3980,12 @@ var Methods = {
3974
3980
  row: row
3975
3981
  })) {
3976
3982
  if (value) {
3977
- if (selection.indexOf(row) === -1) {
3983
+ if (this.findRowIndexOf(selection, row) === -1) {
3978
3984
  selection.push(row);
3979
3985
  }
3980
3986
  } else {
3981
3987
  _xeUtils.default.remove(selection, function (item) {
3982
- return item === row;
3988
+ return _this33.eqRow(item, row);
3983
3989
  });
3984
3990
  }
3985
3991
 
@@ -3995,7 +4001,7 @@ var Methods = {
3995
4001
  checkboxOpts = this.checkboxOpts;
3996
4002
  var checkField = checkboxOpts.checkField;
3997
4003
  var row = params.row;
3998
- var value = checkField ? !_xeUtils.default.get(row, checkField) : selection.indexOf(row) === -1;
4004
+ var value = checkField ? !_xeUtils.default.get(row, checkField) : this.findRowIndexOf(selection, row) === -1;
3999
4005
 
4000
4006
  if (evnt) {
4001
4007
  this.triggerCheckRowEvent(evnt, params, value);
@@ -4034,7 +4040,7 @@ var Methods = {
4034
4040
  * @param {Boolean} value 是否选中
4035
4041
  */
4036
4042
  setAllCheckboxRow: function setAllCheckboxRow(value) {
4037
- var _this32 = this;
4043
+ var _this34 = this;
4038
4044
 
4039
4045
  var afterFullData = this.afterFullData,
4040
4046
  treeConfig = this.treeConfig,
@@ -4048,7 +4054,7 @@ var Methods = {
4048
4054
  checkMethod = checkboxOpts.checkMethod;
4049
4055
  var selectRows = [];
4050
4056
  var beforeSelection = treeConfig ? [] : selection.filter(function (row) {
4051
- return afterFullData.indexOf(row) === -1;
4057
+ return _this34.findRowIndexOf(afterFullData, row) === -1;
4052
4058
  });
4053
4059
 
4054
4060
  if (checkStrictly) {
@@ -4105,7 +4111,7 @@ var Methods = {
4105
4111
  _xeUtils.default.eachTree(afterFullData, function (row) {
4106
4112
  if (checkMethod({
4107
4113
  row: row
4108
- }) ? 0 : selection.indexOf(row) > -1) {
4114
+ }) ? 0 : _this34.findRowIndexOf(selection, row) > -1) {
4109
4115
  selectRows.push(row);
4110
4116
  }
4111
4117
  }, treeOpts);
@@ -4120,7 +4126,7 @@ var Methods = {
4120
4126
  */
4121
4127
  if (checkMethod) {
4122
4128
  selectRows = afterFullData.filter(function (row) {
4123
- return selection.indexOf(row) > -1 || checkMethod({
4129
+ return _this34.findRowIndexOf(selection, row) > -1 || checkMethod({
4124
4130
  row: row
4125
4131
  });
4126
4132
  });
@@ -4137,7 +4143,7 @@ var Methods = {
4137
4143
  selectRows = afterFullData.filter(function (row) {
4138
4144
  return checkMethod({
4139
4145
  row: row
4140
- }) ? 0 : selection.indexOf(row) > -1;
4146
+ }) ? 0 : _this34.findRowIndexOf(selection, row) > -1;
4141
4147
  });
4142
4148
  }
4143
4149
  }
@@ -4147,11 +4153,11 @@ var Methods = {
4147
4153
  if (reserve) {
4148
4154
  if (value) {
4149
4155
  selectRows.forEach(function (row) {
4150
- checkboxReserveRowMap[(0, _util.getRowid)(_this32, row)] = row;
4156
+ checkboxReserveRowMap[(0, _util.getRowid)(_this34, row)] = row;
4151
4157
  });
4152
4158
  } else {
4153
4159
  afterFullData.forEach(function (row) {
4154
- return _this32.handleCheckboxReserveRow(row, false);
4160
+ return _this34.handleCheckboxReserveRow(row, false);
4155
4161
  });
4156
4162
  }
4157
4163
  }
@@ -4163,6 +4169,8 @@ var Methods = {
4163
4169
  this.checkSelectionStatus();
4164
4170
  },
4165
4171
  checkSelectionStatus: function checkSelectionStatus() {
4172
+ var _this35 = this;
4173
+
4166
4174
  var afterFullData = this.afterFullData,
4167
4175
  selection = this.selection,
4168
4176
  treeIndeterminates = this.treeIndeterminates,
@@ -4203,11 +4211,11 @@ var Methods = {
4203
4211
  if (treeConfig) {
4204
4212
  if (halfField) {
4205
4213
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
4206
- return _xeUtils.default.get(row, checkField) || _xeUtils.default.get(row, halfField) || treeIndeterminates.indexOf(row) > -1;
4214
+ return _xeUtils.default.get(row, checkField) || _xeUtils.default.get(row, halfField) || _this35.findRowIndexOf(treeIndeterminates, row) > -1;
4207
4215
  });
4208
4216
  } else {
4209
4217
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
4210
- return _xeUtils.default.get(row, checkField) || treeIndeterminates.indexOf(row) > -1;
4218
+ return _xeUtils.default.get(row, checkField) || _this35.findRowIndexOf(treeIndeterminates, row) > -1;
4211
4219
  });
4212
4220
  }
4213
4221
  } else {
@@ -4230,24 +4238,24 @@ var Methods = {
4230
4238
  return true;
4231
4239
  }
4232
4240
 
4233
- if (selection.indexOf(row) > -1) {
4241
+ if (_this35.findRowIndexOf(selection, row) > -1) {
4234
4242
  checkRows.push(row);
4235
4243
  return true;
4236
4244
  }
4237
4245
 
4238
4246
  return false;
4239
4247
  } : function (row) {
4240
- return selection.indexOf(row) > -1;
4248
+ return _this35.findRowIndexOf(selection, row) > -1;
4241
4249
  });
4242
4250
  isAllSelected = isAllResolve && afterFullData.length !== disableRows.length;
4243
4251
 
4244
4252
  if (treeConfig) {
4245
4253
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
4246
- return treeIndeterminates.indexOf(row) > -1 || selection.indexOf(row) > -1;
4254
+ return _this35.findRowIndexOf(treeIndeterminates, row) > -1 || _this35.findRowIndexOf(selection, row) > -1;
4247
4255
  });
4248
4256
  } else {
4249
4257
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
4250
- return selection.indexOf(row) > -1;
4258
+ return _this35.findRowIndexOf(selection, row) > -1;
4251
4259
  });
4252
4260
  }
4253
4261
  }
@@ -4371,7 +4379,7 @@ var Methods = {
4371
4379
  * 获取复选框保留选中的行
4372
4380
  */
4373
4381
  getCheckboxReserveRecords: function getCheckboxReserveRecords(isFull) {
4374
- var _this33 = this;
4382
+ var _this36 = this;
4375
4383
 
4376
4384
  var fullDataRowIdData = this.fullDataRowIdData,
4377
4385
  afterFullData = this.afterFullData,
@@ -4386,11 +4394,11 @@ var Methods = {
4386
4394
 
4387
4395
  if (treeConfig) {
4388
4396
  _xeUtils.default.eachTree(afterFullData, function (row) {
4389
- afterFullIdMaps[(0, _util.getRowid)(_this33, row)] = 1;
4397
+ afterFullIdMaps[(0, _util.getRowid)(_this36, row)] = 1;
4390
4398
  }, treeOpts);
4391
4399
  } else {
4392
4400
  afterFullData.forEach(function (row) {
4393
- afterFullIdMaps[(0, _util.getRowid)(_this33, row)] = 1;
4401
+ afterFullIdMaps[(0, _util.getRowid)(_this36, row)] = 1;
4394
4402
  });
4395
4403
  }
4396
4404
 
@@ -4456,7 +4464,7 @@ var Methods = {
4456
4464
  * 清空行为不管是否被禁用还是保留记录,都将彻底清空选中状态
4457
4465
  */
4458
4466
  clearCheckboxRow: function clearCheckboxRow() {
4459
- var _this34 = this;
4467
+ var _this37 = this;
4460
4468
 
4461
4469
  var tableFullData = this.tableFullData,
4462
4470
  treeConfig = this.treeConfig,
@@ -4479,7 +4487,7 @@ var Methods = {
4479
4487
 
4480
4488
  if (reserve) {
4481
4489
  tableFullData.forEach(function (row) {
4482
- return _this34.handleCheckboxReserveRow(row, false);
4490
+ return _this37.handleCheckboxReserveRow(row, false);
4483
4491
  });
4484
4492
  }
4485
4493
 
@@ -4771,13 +4779,13 @@ var Methods = {
4771
4779
  * 如果存在规则,则校验
4772
4780
  */
4773
4781
  handleChangeCell: function handleChangeCell(evnt, params) {
4774
- var _this35 = this;
4782
+ var _this38 = this;
4775
4783
 
4776
4784
  this.checkValidate('blur').catch(function (e) {
4777
4785
  return e;
4778
4786
  }).then(function () {
4779
- _this35.handleActived(params, evnt).then(function () {
4780
- return _this35.checkValidate('change');
4787
+ _this38.handleActived(params, evnt).then(function () {
4788
+ return _this38.checkValidate('change');
4781
4789
  }).catch(function (e) {
4782
4790
  return e;
4783
4791
  });
@@ -4880,7 +4888,7 @@ var Methods = {
4880
4888
  * 如果是双击模式,则激活为编辑状态
4881
4889
  */
4882
4890
  triggerCellDblclickEvent: function triggerCellDblclickEvent(evnt, params) {
4883
- var _this36 = this;
4891
+ var _this39 = this;
4884
4892
 
4885
4893
  var editStore = this.editStore,
4886
4894
  editConfig = this.editConfig,
@@ -4895,15 +4903,15 @@ var Methods = {
4895
4903
  this.checkValidate('blur').catch(function (e) {
4896
4904
  return e;
4897
4905
  }).then(function () {
4898
- _this36.handleActived(params, evnt).then(function () {
4899
- return _this36.checkValidate('change');
4906
+ _this39.handleActived(params, evnt).then(function () {
4907
+ return _this39.checkValidate('change');
4900
4908
  }).catch(function (e) {
4901
4909
  return e;
4902
4910
  });
4903
4911
  });
4904
4912
  } else if (editOpts.mode === 'cell') {
4905
4913
  this.handleActived(params, evnt).then(function () {
4906
- return _this36.checkValidate('change');
4914
+ return _this39.checkValidate('change');
4907
4915
  }).catch(function (e) {
4908
4916
  return e;
4909
4917
  });
@@ -4914,7 +4922,7 @@ var Methods = {
4914
4922
  this.emitEvent('cell-dblclick', params, evnt);
4915
4923
  },
4916
4924
  handleDefaultSort: function handleDefaultSort() {
4917
- var _this37 = this;
4925
+ var _this40 = this;
4918
4926
 
4919
4927
  var sortConfig = this.sortConfig,
4920
4928
  sortOpts = this.sortOpts;
@@ -4931,7 +4939,7 @@ var Methods = {
4931
4939
  order = item.order;
4932
4940
 
4933
4941
  if (field && order) {
4934
- var column = _this37.getColumnByField(field);
4942
+ var column = _this40.getColumnByField(field);
4935
4943
 
4936
4944
  if (column && column.sortable) {
4937
4945
  column.order = order;
@@ -4977,7 +4985,7 @@ var Methods = {
4977
4985
  }
4978
4986
  },
4979
4987
  sort: function sort(sortConfs, sortOrder) {
4980
- var _this38 = this;
4988
+ var _this41 = this;
4981
4989
 
4982
4990
  var sortOpts = this.sortOpts;
4983
4991
  var multiple = sortOpts.multiple,
@@ -5010,7 +5018,7 @@ var Methods = {
5010
5018
  var column = field;
5011
5019
 
5012
5020
  if (_xeUtils.default.isString(field)) {
5013
- column = _this38.getColumnByField(field);
5021
+ column = _this41.getColumnByField(field);
5014
5022
  }
5015
5023
 
5016
5024
  if (column && (column.sortable || column.remoteSort)) {
@@ -5019,7 +5027,7 @@ var Methods = {
5019
5027
  }
5020
5028
 
5021
5029
  if (orders.indexOf(order) === -1) {
5022
- order = getNextSortOrder(_this38, column);
5030
+ order = getNextSortOrder(_this41, column);
5023
5031
  }
5024
5032
 
5025
5033
  if (column.order !== order) {
@@ -5162,6 +5170,8 @@ var Methods = {
5162
5170
  return rest && rest.expandLoaded;
5163
5171
  },
5164
5172
  clearRowExpandLoaded: function clearRowExpandLoaded(row) {
5173
+ var _this42 = this;
5174
+
5165
5175
  var expandOpts = this.expandOpts,
5166
5176
  expandLazyLoadeds = this.expandLazyLoadeds,
5167
5177
  fullAllDataRowMap = this.fullAllDataRowMap;
@@ -5172,7 +5182,7 @@ var Methods = {
5172
5182
  rest.expandLoaded = false;
5173
5183
 
5174
5184
  _xeUtils.default.remove(expandLazyLoadeds, function (item) {
5175
- return row === item;
5185
+ return _this42.eqRow(item, row);
5176
5186
  });
5177
5187
  }
5178
5188
 
@@ -5184,15 +5194,15 @@ var Methods = {
5184
5194
  * @param {Row} row 行对象
5185
5195
  */
5186
5196
  reloadRowExpand: function reloadRowExpand(row) {
5187
- var _this39 = this;
5197
+ var _this43 = this;
5188
5198
 
5189
5199
  var expandOpts = this.expandOpts,
5190
5200
  expandLazyLoadeds = this.expandLazyLoadeds;
5191
5201
  var lazy = expandOpts.lazy;
5192
5202
 
5193
- if (lazy && expandLazyLoadeds.indexOf(row) === -1) {
5203
+ if (lazy && this.findRowIndexOf(expandLazyLoadeds, row) === -1) {
5194
5204
  this.clearRowExpandLoaded(row).then(function () {
5195
- return _this39.handleAsyncRowExpand(row);
5205
+ return _this43.handleAsyncRowExpand(row);
5196
5206
  });
5197
5207
  }
5198
5208
 
@@ -5217,7 +5227,7 @@ var Methods = {
5217
5227
  var row = params.row;
5218
5228
  var lazy = expandOpts.lazy;
5219
5229
 
5220
- if (!lazy || expandLazyLoadeds.indexOf(row) === -1) {
5230
+ if (!lazy || this.findRowIndexOf(expandLazyLoadeds, row) === -1) {
5221
5231
  var expanded = !this.isExpandByRow(row);
5222
5232
  var columnIndex = this.getColumnIndex(column);
5223
5233
  var $columnIndex = this.getVMColumnIndex(column);
@@ -5271,29 +5281,29 @@ var Methods = {
5271
5281
  return this.setRowExpand(this.expandOpts.lazy ? this.tableData : this.tableFullData, expanded);
5272
5282
  },
5273
5283
  handleAsyncRowExpand: function handleAsyncRowExpand(row) {
5274
- var _this40 = this;
5284
+ var _this44 = this;
5275
5285
 
5276
5286
  var rest = this.fullAllDataRowMap.get(row);
5277
5287
  return new Promise(function (resolve) {
5278
- _this40.expandLazyLoadeds.push(row);
5288
+ _this44.expandLazyLoadeds.push(row);
5279
5289
 
5280
- _this40.expandOpts.loadMethod({
5281
- $table: _this40,
5290
+ _this44.expandOpts.loadMethod({
5291
+ $table: _this44,
5282
5292
  row: row,
5283
- rowIndex: _this40.getRowIndex(row),
5284
- $rowIndex: _this40.getVMRowIndex(row)
5293
+ rowIndex: _this44.getRowIndex(row),
5294
+ $rowIndex: _this44.getVMRowIndex(row)
5285
5295
  }).then(function () {
5286
5296
  rest.expandLoaded = true;
5287
5297
 
5288
- _this40.rowExpandeds.push(row);
5298
+ _this44.rowExpandeds.push(row);
5289
5299
  }).catch(function () {
5290
5300
  rest.expandLoaded = false;
5291
5301
  }).finally(function () {
5292
- _xeUtils.default.remove(_this40.expandLazyLoadeds, function (item) {
5293
- return item === row;
5302
+ _xeUtils.default.remove(_this44.expandLazyLoadeds, function (item) {
5303
+ return _this44.eqRow(item, row);
5294
5304
  });
5295
5305
 
5296
- resolve(_this40.$nextTick().then(_this40.recalculate));
5306
+ resolve(_this44.$nextTick().then(_this44.recalculate));
5297
5307
  });
5298
5308
  });
5299
5309
  },
@@ -5306,7 +5316,7 @@ var Methods = {
5306
5316
  * @param {Boolean} expanded 是否展开
5307
5317
  */
5308
5318
  setRowExpand: function setRowExpand(rows, expanded) {
5309
- var _this41 = this;
5319
+ var _this45 = this;
5310
5320
 
5311
5321
  var fullAllDataRowMap = this.fullAllDataRowMap,
5312
5322
  expandLazyLoadeds = this.expandLazyLoadeds,
@@ -5339,19 +5349,19 @@ var Methods = {
5339
5349
  columnIndex: columnIndex,
5340
5350
  $columnIndex: $columnIndex,
5341
5351
  row: row,
5342
- rowIndex: _this41.getRowIndex(row),
5343
- $rowIndex: _this41.getVMRowIndex(row)
5352
+ rowIndex: _this45.getRowIndex(row),
5353
+ $rowIndex: _this45.getVMRowIndex(row)
5344
5354
  });
5345
5355
  }) : rows;
5346
5356
 
5347
5357
  if (expanded) {
5348
5358
  validRows.forEach(function (row) {
5349
- if (rowExpandeds.indexOf(row) === -1) {
5359
+ if (_this45.findRowIndexOf(rowExpandeds, row) === -1) {
5350
5360
  var rest = fullAllDataRowMap.get(row);
5351
- var isLoad = lazy && !rest.expandLoaded && expandLazyLoadeds.indexOf(row) === -1;
5361
+ var isLoad = lazy && !rest.expandLoaded && _this45.findRowIndexOf(expandLazyLoadeds, row) === -1;
5352
5362
 
5353
5363
  if (isLoad) {
5354
- lazyRests.push(_this41.handleAsyncRowExpand(row));
5364
+ lazyRests.push(_this45.handleAsyncRowExpand(row));
5355
5365
  } else {
5356
5366
  rowExpandeds.push(row);
5357
5367
  }
@@ -5359,13 +5369,13 @@ var Methods = {
5359
5369
  });
5360
5370
  } else {
5361
5371
  _xeUtils.default.remove(rowExpandeds, function (row) {
5362
- return validRows.indexOf(row) > -1;
5372
+ return _this45.findRowIndexOf(validRows, row) > -1;
5363
5373
  });
5364
5374
  }
5365
5375
 
5366
5376
  if (reserve) {
5367
5377
  validRows.forEach(function (row) {
5368
- return _this41.handleRowExpandReserve(row, expanded);
5378
+ return _this45.handleRowExpandReserve(row, expanded);
5369
5379
  });
5370
5380
  }
5371
5381
  }
@@ -5379,14 +5389,15 @@ var Methods = {
5379
5389
  * @param {Row} row 行对象
5380
5390
  */
5381
5391
  isExpandByRow: function isExpandByRow(row) {
5382
- return this.rowExpandeds.indexOf(row) > -1;
5392
+ var rowExpandeds = this.rowExpandeds;
5393
+ return this.findRowIndexOf(rowExpandeds, row) > -1;
5383
5394
  },
5384
5395
 
5385
5396
  /**
5386
5397
  * 手动清空展开行状态,数据会恢复成未展开的状态
5387
5398
  */
5388
5399
  clearRowExpand: function clearRowExpand() {
5389
- var _this42 = this;
5400
+ var _this46 = this;
5390
5401
 
5391
5402
  var expandOpts = this.expandOpts,
5392
5403
  rowExpandeds = this.rowExpandeds,
@@ -5397,13 +5408,13 @@ var Methods = {
5397
5408
 
5398
5409
  if (reserve) {
5399
5410
  tableFullData.forEach(function (row) {
5400
- return _this42.handleRowExpandReserve(row, false);
5411
+ return _this46.handleRowExpandReserve(row, false);
5401
5412
  });
5402
5413
  }
5403
5414
 
5404
5415
  return this.$nextTick().then(function () {
5405
5416
  if (isExists) {
5406
- _this42.recalculate();
5417
+ _this46.recalculate();
5407
5418
  }
5408
5419
  });
5409
5420
  },
@@ -5483,7 +5494,7 @@ var Methods = {
5483
5494
  * @param {Row} row 行对象
5484
5495
  */
5485
5496
  reloadTreeExpand: function reloadTreeExpand(row) {
5486
- var _this43 = this;
5497
+ var _this47 = this;
5487
5498
 
5488
5499
  var treeOpts = this.treeOpts,
5489
5500
  treeLazyLoadeds = this.treeLazyLoadeds;
@@ -5493,15 +5504,15 @@ var Methods = {
5493
5504
 
5494
5505
  if (lazy && row[hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
5495
5506
  this.clearTreeExpandLoaded(row).then(function () {
5496
- return _this43.handleAsyncTreeExpandChilds(row);
5507
+ return _this47.handleAsyncTreeExpandChilds(row);
5497
5508
  }).then(function () {
5498
5509
  if (transform) {
5499
- _this43.handleVirtualTreeToList();
5510
+ _this47.handleVirtualTreeToList();
5500
5511
 
5501
- return _this43.handleTableData();
5512
+ return _this47.handleTableData();
5502
5513
  }
5503
5514
  }).then(function () {
5504
- return _this43.recalculate();
5515
+ return _this47.recalculate();
5505
5516
  });
5506
5517
  }
5507
5518
 
@@ -5579,7 +5590,7 @@ var Methods = {
5579
5590
  }
5580
5591
  },
5581
5592
  handleAsyncTreeExpandChilds: function handleAsyncTreeExpandChilds(row) {
5582
- var _this44 = this;
5593
+ var _this48 = this;
5583
5594
 
5584
5595
  var fullAllDataRowMap = this.fullAllDataRowMap,
5585
5596
  treeExpandeds = this.treeExpandeds,
@@ -5593,7 +5604,7 @@ var Methods = {
5593
5604
  return new Promise(function (resolve) {
5594
5605
  treeLazyLoadeds.push(row);
5595
5606
  loadMethod({
5596
- $table: _this44,
5607
+ $table: _this48,
5597
5608
  row: row
5598
5609
  }).then(function (childRecords) {
5599
5610
  // 响应成功后则展开行,并将子节点挂载到该节点下
@@ -5608,19 +5619,19 @@ var Methods = {
5608
5619
  }
5609
5620
 
5610
5621
  if (childRecords) {
5611
- return _this44.loadTreeChildren(row, childRecords).then(function (childRows) {
5622
+ return _this48.loadTreeChildren(row, childRecords).then(function (childRows) {
5612
5623
  if (childRows.length && treeExpandeds.indexOf(row) === -1) {
5613
5624
  treeExpandeds.push(row);
5614
5625
  } // 如果当前节点已选中,则展开后子节点也被选中
5615
5626
 
5616
5627
 
5617
- if (!checkStrictly && _this44.isCheckedByCheckboxRow(row)) {
5618
- _this44.setCheckboxRow(childRows, true);
5628
+ if (!checkStrictly && _this48.isCheckedByCheckboxRow(row)) {
5629
+ _this48.setCheckboxRow(childRows, true);
5619
5630
  }
5620
5631
 
5621
- return _this44.$nextTick().then(function () {
5632
+ return _this48.$nextTick().then(function () {
5622
5633
  if (transform) {
5623
- return _this44.handleTableData();
5634
+ return _this48.handleTableData();
5624
5635
  }
5625
5636
  });
5626
5637
  });
@@ -5633,8 +5644,8 @@ var Methods = {
5633
5644
  return item === row;
5634
5645
  });
5635
5646
  }).finally(function () {
5636
- _this44.$nextTick().then(function () {
5637
- return _this44.recalculate();
5647
+ _this48.$nextTick().then(function () {
5648
+ return _this48.recalculate();
5638
5649
  }).then(function () {
5639
5650
  return resolve();
5640
5651
  });
@@ -5671,7 +5682,7 @@ var Methods = {
5671
5682
  * @returns
5672
5683
  */
5673
5684
  handleBaseTreeExpand: function handleBaseTreeExpand(rows, expanded) {
5674
- var _this45 = this;
5685
+ var _this49 = this;
5675
5686
 
5676
5687
  var fullAllDataRowMap = this.fullAllDataRowMap,
5677
5688
  tableFullData = this.tableFullData,
@@ -5719,7 +5730,7 @@ var Methods = {
5719
5730
  var isLoad = lazy && row[hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1; // 是否使用懒加载
5720
5731
 
5721
5732
  if (isLoad) {
5722
- result.push(_this45.handleAsyncTreeExpandChilds(row));
5733
+ result.push(_this49.handleAsyncTreeExpandChilds(row));
5723
5734
  } else {
5724
5735
  if (row[children] && row[children].length) {
5725
5736
  treeExpandeds.push(row);
@@ -5735,7 +5746,7 @@ var Methods = {
5735
5746
 
5736
5747
  if (reserve) {
5737
5748
  validRows.forEach(function (row) {
5738
- return _this45.handleTreeExpandReserve(row, expanded);
5749
+ return _this49.handleTreeExpandReserve(row, expanded);
5739
5750
  });
5740
5751
  }
5741
5752
 
@@ -5749,14 +5760,14 @@ var Methods = {
5749
5760
  * @returns
5750
5761
  */
5751
5762
  handleVirtualTreeExpand: function handleVirtualTreeExpand(rows, expanded) {
5752
- var _this46 = this;
5763
+ var _this50 = this;
5753
5764
 
5754
5765
  return this.handleBaseTreeExpand(rows, expanded).then(function () {
5755
- _this46.handleVirtualTreeToList();
5766
+ _this50.handleVirtualTreeToList();
5756
5767
 
5757
- return _this46.handleTableData();
5768
+ return _this50.handleTableData();
5758
5769
  }).then(function () {
5759
- return _this46.recalculate();
5770
+ return _this50.recalculate();
5760
5771
  });
5761
5772
  },
5762
5773
 
@@ -5801,7 +5812,7 @@ var Methods = {
5801
5812
  * 手动清空树形节点的展开状态,数据会恢复成未展开的状态
5802
5813
  */
5803
5814
  clearTreeExpand: function clearTreeExpand() {
5804
- var _this47 = this;
5815
+ var _this51 = this;
5805
5816
 
5806
5817
  var treeOpts = this.treeOpts,
5807
5818
  treeExpandeds = this.treeExpandeds,
@@ -5813,19 +5824,19 @@ var Methods = {
5813
5824
 
5814
5825
  if (reserve) {
5815
5826
  _xeUtils.default.eachTree(tableFullData, function (row) {
5816
- return _this47.handleTreeExpandReserve(row, false);
5827
+ return _this51.handleTreeExpandReserve(row, false);
5817
5828
  }, treeOpts);
5818
5829
  }
5819
5830
 
5820
5831
  return this.handleTableData().then(function () {
5821
5832
  if (transform) {
5822
- _this47.handleVirtualTreeToList();
5833
+ _this51.handleVirtualTreeToList();
5823
5834
 
5824
- return _this47.handleTableData();
5835
+ return _this51.handleTableData();
5825
5836
  }
5826
5837
  }).then(function () {
5827
5838
  if (isExists) {
5828
- _this47.recalculate();
5839
+ _this51.recalculate();
5829
5840
  }
5830
5841
  });
5831
5842
  },
@@ -5955,18 +5966,18 @@ var Methods = {
5955
5966
  },
5956
5967
  // 计算可视渲染相关数据
5957
5968
  computeScrollLoad: function computeScrollLoad() {
5958
- var _this48 = this;
5969
+ var _this52 = this;
5959
5970
 
5960
5971
  return this.$nextTick().then(function () {
5961
- var sYOpts = _this48.sYOpts,
5962
- sXOpts = _this48.sXOpts,
5963
- scrollXLoad = _this48.scrollXLoad,
5964
- scrollYLoad = _this48.scrollYLoad,
5965
- scrollXStore = _this48.scrollXStore,
5966
- scrollYStore = _this48.scrollYStore; // 计算 X 逻辑
5972
+ var sYOpts = _this52.sYOpts,
5973
+ sXOpts = _this52.sXOpts,
5974
+ scrollXLoad = _this52.scrollXLoad,
5975
+ scrollYLoad = _this52.scrollYLoad,
5976
+ scrollXStore = _this52.scrollXStore,
5977
+ scrollYStore = _this52.scrollYStore; // 计算 X 逻辑
5967
5978
 
5968
5979
  if (scrollXLoad) {
5969
- var _computeVirtualX3 = computeVirtualX(_this48),
5980
+ var _computeVirtualX3 = computeVirtualX(_this52),
5970
5981
  visibleXSize = _computeVirtualX3.visibleSize;
5971
5982
 
5972
5983
  var offsetXSize = sXOpts.oSize ? _xeUtils.default.toNumber(sXOpts.oSize) : _dom.browse.msie ? 10 : _dom.browse.edge ? 5 : 0;
@@ -5974,13 +5985,13 @@ var Methods = {
5974
5985
  scrollXStore.visibleSize = visibleXSize;
5975
5986
  scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
5976
5987
 
5977
- _this48.updateScrollXData();
5988
+ _this52.updateScrollXData();
5978
5989
  } else {
5979
- _this48.updateScrollXSpace();
5990
+ _this52.updateScrollXSpace();
5980
5991
  } // 计算 Y 逻辑
5981
5992
 
5982
5993
 
5983
- var _computeVirtualY = computeVirtualY(_this48),
5994
+ var _computeVirtualY = computeVirtualY(_this52),
5984
5995
  rowHeight = _computeVirtualY.rowHeight,
5985
5996
  visibleYSize = _computeVirtualY.visibleSize;
5986
5997
 
@@ -5992,14 +6003,14 @@ var Methods = {
5992
6003
  scrollYStore.visibleSize = visibleYSize;
5993
6004
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
5994
6005
 
5995
- _this48.updateScrollYData();
6006
+ _this52.updateScrollYData();
5996
6007
  } else {
5997
- _this48.updateScrollYSpace();
6008
+ _this52.updateScrollYSpace();
5998
6009
  }
5999
6010
 
6000
- _this48.rowHeight = rowHeight;
6011
+ _this52.rowHeight = rowHeight;
6001
6012
 
6002
- _this48.$nextTick(_this48.updateStyle);
6013
+ _this52.$nextTick(_this52.updateStyle);
6003
6014
  });
6004
6015
  },
6005
6016
  handleTableColumn: function handleTableColumn() {
@@ -6009,13 +6020,13 @@ var Methods = {
6009
6020
  this.tableColumn = scrollXLoad ? visibleColumn.slice(scrollXStore.startIndex, scrollXStore.endIndex) : visibleColumn.slice(0);
6010
6021
  },
6011
6022
  updateScrollXData: function updateScrollXData() {
6012
- var _this49 = this;
6023
+ var _this53 = this;
6013
6024
 
6014
6025
  // this.tableColumn = []
6015
6026
  this.$nextTick(function () {
6016
- _this49.handleTableColumn();
6027
+ _this53.handleTableColumn();
6017
6028
 
6018
- _this49.updateScrollXSpace();
6029
+ _this53.updateScrollXSpace();
6019
6030
  });
6020
6031
  },
6021
6032
  // 更新横向 X 可视渲染上下剩余空间大小
@@ -6072,13 +6083,13 @@ var Methods = {
6072
6083
  }
6073
6084
  },
6074
6085
  updateScrollYData: function updateScrollYData() {
6075
- var _this50 = this;
6086
+ var _this54 = this;
6076
6087
 
6077
6088
  // this.tableData = []
6078
6089
  this.$nextTick(function () {
6079
- _this50.handleTableData();
6090
+ _this54.handleTableData();
6080
6091
 
6081
- _this50.updateScrollYSpace();
6092
+ _this54.updateScrollYSpace();
6082
6093
  });
6083
6094
  },
6084
6095
  // 更新纵向 Y 可视渲染上下剩余空间大小
@@ -6125,7 +6136,7 @@ var Methods = {
6125
6136
  * @param {Number} scrollTop 上距离
6126
6137
  */
6127
6138
  scrollTo: function scrollTo(scrollLeft, scrollTop) {
6128
- var _this51 = this;
6139
+ var _this55 = this;
6129
6140
 
6130
6141
  var $refs = this.$refs;
6131
6142
  var tableBody = $refs.tableBody,
@@ -6146,7 +6157,7 @@ var Methods = {
6146
6157
  if (this.scrollXLoad || this.scrollYLoad) {
6147
6158
  return new Promise(function (resolve) {
6148
6159
  return setTimeout(function () {
6149
- return resolve(_this51.$nextTick());
6160
+ return resolve(_this55.$nextTick());
6150
6161
  }, 50);
6151
6162
  });
6152
6163
  }
@@ -6197,7 +6208,7 @@ var Methods = {
6197
6208
  * @param {Row} row 行对象
6198
6209
  */
6199
6210
  scrollToTreeRow: function scrollToTreeRow(row) {
6200
- var _this52 = this;
6211
+ var _this56 = this;
6201
6212
 
6202
6213
  var tableFullData = this.tableFullData,
6203
6214
  treeConfig = this.treeConfig,
@@ -6212,15 +6223,15 @@ var Methods = {
6212
6223
  if (matchObj) {
6213
6224
  var nodes = matchObj.nodes;
6214
6225
  nodes.forEach(function (row, index) {
6215
- if (index < nodes.length - 1 && !_this52.isTreeExpandByRow(row)) {
6216
- rests.push(_this52.setTreeExpand(row, true));
6226
+ if (index < nodes.length - 1 && !_this56.isTreeExpandByRow(row)) {
6227
+ rests.push(_this56.setTreeExpand(row, true));
6217
6228
  }
6218
6229
  });
6219
6230
  }
6220
6231
  }
6221
6232
 
6222
6233
  return Promise.all(rests).then(function () {
6223
- return (0, _util.rowToVisible)(_this52, row);
6234
+ return (0, _util.rowToVisible)(_this56, row);
6224
6235
  });
6225
6236
  },
6226
6237
 
@@ -6284,29 +6295,29 @@ var Methods = {
6284
6295
  * 如果单元格配置了校验规则,则会进行校验
6285
6296
  */
6286
6297
  updateStatus: function updateStatus(scope, cellValue) {
6287
- var _this53 = this;
6298
+ var _this57 = this;
6288
6299
 
6289
6300
  var customVal = !_xeUtils.default.isUndefined(cellValue);
6290
6301
  return this.$nextTick().then(function () {
6291
- var $refs = _this53.$refs,
6292
- editRules = _this53.editRules,
6293
- validStore = _this53.validStore;
6302
+ var $refs = _this57.$refs,
6303
+ editRules = _this57.editRules,
6304
+ validStore = _this57.validStore;
6294
6305
 
6295
6306
  if (scope && $refs.tableBody && editRules) {
6296
6307
  var row = scope.row,
6297
6308
  column = scope.column;
6298
6309
  var type = 'change';
6299
6310
 
6300
- if (_this53.hasCellRules(type, row, column)) {
6301
- var cell = _this53.getCell(row, column);
6311
+ if (_this57.hasCellRules(type, row, column)) {
6312
+ var cell = _this57.getCell(row, column);
6302
6313
 
6303
6314
  if (cell) {
6304
- return _this53.validCellRules(type, row, column, cellValue).then(function () {
6315
+ return _this57.validCellRules(type, row, column, cellValue).then(function () {
6305
6316
  if (customVal && validStore.visible) {
6306
6317
  setCellValue(row, column, cellValue);
6307
6318
  }
6308
6319
 
6309
- _this53.clearValidate();
6320
+ _this57.clearValidate();
6310
6321
  }).catch(function (_ref8) {
6311
6322
  var rule = _ref8.rule;
6312
6323
 
@@ -6314,7 +6325,7 @@ var Methods = {
6314
6325
  setCellValue(row, column, cellValue);
6315
6326
  }
6316
6327
 
6317
- _this53.showValidTooltip({
6328
+ _this57.showValidTooltip({
6318
6329
  rule: rule,
6319
6330
  row: row,
6320
6331
  column: column,
@@ -6335,7 +6346,7 @@ var Methods = {
6335
6346
  * @param {TableMergeConfig[]} merges { row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }
6336
6347
  */
6337
6348
  setMergeCells: function setMergeCells(merges) {
6338
- var _this54 = this;
6349
+ var _this58 = this;
6339
6350
 
6340
6351
  if (this.spanMethod) {
6341
6352
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-cells', 'span-method']);
@@ -6343,7 +6354,7 @@ var Methods = {
6343
6354
 
6344
6355
  setMerges(this, merges, this.mergeList, this.afterFullData);
6345
6356
  return this.$nextTick().then(function () {
6346
- return _this54.updateCellAreas();
6357
+ return _this58.updateCellAreas();
6347
6358
  });
6348
6359
  },
6349
6360
 
@@ -6352,7 +6363,7 @@ var Methods = {
6352
6363
  * @param {TableMergeConfig[]} merges 多个或数组 [{row:Row|number, col:ColumnInfo|number}]
6353
6364
  */
6354
6365
  removeMergeCells: function removeMergeCells(merges) {
6355
- var _this55 = this;
6366
+ var _this59 = this;
6356
6367
 
6357
6368
  if (this.spanMethod) {
6358
6369
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-cells', 'span-method']);
@@ -6360,7 +6371,7 @@ var Methods = {
6360
6371
 
6361
6372
  var rest = removeMerges(this, merges, this.mergeList, this.afterFullData);
6362
6373
  return this.$nextTick().then(function () {
6363
- _this55.updateCellAreas();
6374
+ _this59.updateCellAreas();
6364
6375
 
6365
6376
  return rest;
6366
6377
  });
@@ -6384,7 +6395,7 @@ var Methods = {
6384
6395
  this.setMergeFooterItems(this.mergeFooterItems);
6385
6396
  },
6386
6397
  setMergeFooterItems: function setMergeFooterItems(merges) {
6387
- var _this56 = this;
6398
+ var _this60 = this;
6388
6399
 
6389
6400
  if (this.footerSpanMethod) {
6390
6401
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
@@ -6392,11 +6403,11 @@ var Methods = {
6392
6403
 
6393
6404
  setMerges(this, merges, this.mergeFooterList, null);
6394
6405
  return this.$nextTick().then(function () {
6395
- return _this56.updateCellAreas();
6406
+ return _this60.updateCellAreas();
6396
6407
  });
6397
6408
  },
6398
6409
  removeMergeFooterItems: function removeMergeFooterItems(merges) {
6399
- var _this57 = this;
6410
+ var _this61 = this;
6400
6411
 
6401
6412
  if (this.footerSpanMethod) {
6402
6413
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
@@ -6404,7 +6415,7 @@ var Methods = {
6404
6415
 
6405
6416
  var rest = removeMerges(this, merges, this.mergeFooterList, null);
6406
6417
  return this.$nextTick().then(function () {
6407
- _this57.updateCellAreas();
6418
+ _this61.updateCellAreas();
6408
6419
 
6409
6420
  return rest;
6410
6421
  });
@@ -6539,10 +6550,10 @@ var Methods = {
6539
6550
  return cellLabel;
6540
6551
  },
6541
6552
  findRowIndexOf: function findRowIndexOf(list, row) {
6542
- var _this58 = this;
6553
+ var _this62 = this;
6543
6554
 
6544
6555
  return row ? _xeUtils.default.findIndexOf(list, function (item) {
6545
- return _this58.eqRow(item, row);
6556
+ return _this62.eqRow(item, row);
6546
6557
  }) : -1;
6547
6558
  },
6548
6559
  eqRow: function eqRow(row1, row2) {