vxe-table 3.5.9 → 3.6.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.umd.js CHANGED
@@ -12787,10 +12787,10 @@ var Cell = {
12787
12787
  }
12788
12788
 
12789
12789
  if (!isHidden) {
12790
- isAceived = treeExpandeds.indexOf(row) > -1;
12790
+ isAceived = $table.findRowIndexOf(treeExpandeds, row) > -1;
12791
12791
 
12792
12792
  if (lazy) {
12793
- isLazyLoaded = treeLazyLoadeds.indexOf(row) > -1;
12793
+ isLazyLoaded = $table.findRowIndexOf(treeLazyLoadeds, row) > -1;
12794
12794
  hasLazyChilds = row[hasChild];
12795
12795
  }
12796
12796
  }
@@ -13002,7 +13002,8 @@ var Cell = {
13002
13002
  column = params.column,
13003
13003
  isHidden = params.isHidden;
13004
13004
  var treeConfig = $table.treeConfig,
13005
- treeIndeterminates = $table.treeIndeterminates;
13005
+ treeIndeterminates = $table.treeIndeterminates,
13006
+ selection = $table.selection;
13006
13007
  var _$table$checkboxOpts = $table.checkboxOpts,
13007
13008
  labelField = _$table$checkboxOpts.labelField,
13008
13009
  checkMethod = _$table$checkboxOpts.checkMethod,
@@ -13019,7 +13020,7 @@ var Cell = {
13019
13020
  var on;
13020
13021
 
13021
13022
  if (!isHidden) {
13022
- isChecked = $table.selection.indexOf(row) > -1;
13023
+ isChecked = $table.findRowIndexOf(selection, row) > -1;
13023
13024
  on = {
13024
13025
  click: function click(evnt) {
13025
13026
  if (!isDisabled && isVisible) {
@@ -13035,7 +13036,7 @@ var Cell = {
13035
13036
  }
13036
13037
 
13037
13038
  if (treeConfig) {
13038
- indeterminate = treeIndeterminates.indexOf(row) > -1;
13039
+ indeterminate = $table.findRowIndexOf(treeIndeterminates, row) > -1;
13039
13040
  }
13040
13041
  }
13041
13042
 
@@ -13121,7 +13122,7 @@ var Cell = {
13121
13122
  }
13122
13123
 
13123
13124
  if (treeConfig) {
13124
- indeterminate = treeIndeterminates.indexOf(row) > -1;
13125
+ indeterminate = $table.findRowIndexOf(treeIndeterminates, row) > -1;
13125
13126
  }
13126
13127
  }
13127
13128
 
@@ -13195,10 +13196,10 @@ var Cell = {
13195
13196
  }
13196
13197
 
13197
13198
  if (!isHidden) {
13198
- isAceived = rowExpandeds.indexOf(params.row) > -1;
13199
+ isAceived = $table.findRowIndexOf(rowExpandeds, params.row) > -1;
13199
13200
 
13200
13201
  if (lazy) {
13201
- isLazyLoaded = expandLazyLoadeds.indexOf(row) > -1;
13202
+ isLazyLoaded = $table.findRowIndexOf(expandLazyLoadeds, row) > -1;
13202
13203
  }
13203
13204
  }
13204
13205
 
@@ -14856,6 +14857,8 @@ var Methods = {
14856
14857
  * 用于多选行,获取已选中的数据
14857
14858
  */
14858
14859
  getCheckboxRecords: function getCheckboxRecords(isFull) {
14860
+ var _this17 = this;
14861
+
14859
14862
  var tableFullData = this.tableFullData,
14860
14863
  afterFullData = this.afterFullData,
14861
14864
  treeConfig = this.treeConfig,
@@ -14887,13 +14890,13 @@ var Methods = {
14887
14890
 
14888
14891
  if (treeConfig) {
14889
14892
  rowList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.filterTree(currTableData, function (row) {
14890
- return selection.indexOf(row) > -1;
14893
+ return _this17.findRowIndexOf(selection, row) > -1;
14891
14894
  }, {
14892
14895
  children: transform ? mapChildren : children
14893
14896
  });
14894
14897
  } else {
14895
14898
  rowList = currTableData.filter(function (row) {
14896
- return selection.indexOf(row) > -1;
14899
+ return _this17.findRowIndexOf(selection, row) > -1;
14897
14900
  });
14898
14901
  }
14899
14902
  }
@@ -14936,7 +14939,7 @@ var Methods = {
14936
14939
  * 如果存在筛选条件,继续处理
14937
14940
  */
14938
14941
  updateAfterFullData: function updateAfterFullData() {
14939
- var _this17 = this;
14942
+ var _this18 = this;
14940
14943
 
14941
14944
  var tableFullColumn = this.tableFullColumn,
14942
14945
  tableFullData = this.tableFullData,
@@ -15020,7 +15023,7 @@ var Methods = {
15020
15023
  cellValue: cellValue,
15021
15024
  row: row,
15022
15025
  column: column,
15023
- $table: _this17
15026
+ $table: _this18
15024
15027
  });
15025
15028
  });
15026
15029
  } else if (compFilterMethod) {
@@ -15031,7 +15034,7 @@ var Methods = {
15031
15034
  cellValue: cellValue,
15032
15035
  row: row,
15033
15036
  column: column,
15034
- $table: _this17
15037
+ $table: _this18
15035
15038
  });
15036
15039
  });
15037
15040
  } else if (allFilterMethod) {
@@ -15050,7 +15053,7 @@ var Methods = {
15050
15053
  cellValue: cellValue,
15051
15054
  row: row,
15052
15055
  column: column,
15053
- $table: _this17
15056
+ $table: _this18
15054
15057
  });
15055
15058
  });
15056
15059
  }
@@ -15103,7 +15106,7 @@ var Methods = {
15103
15106
  tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableTree, orderColumns.map(function (_ref2) {
15104
15107
  var column = _ref2.column,
15105
15108
  order = _ref2.order;
15106
- return [getOrderField(_this17, column), order];
15109
+ return [getOrderField(_this18, column), order];
15107
15110
  }));
15108
15111
  }
15109
15112
 
@@ -15127,7 +15130,7 @@ var Methods = {
15127
15130
  tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableData, orderColumns.map(function (_ref3) {
15128
15131
  var column = _ref3.column,
15129
15132
  order = _ref3.order;
15130
- return [getOrderField(_this17, column), order];
15133
+ return [getOrderField(_this18, column), order];
15131
15134
  }));
15132
15135
  } else {
15133
15136
  // 兼容 v2,在 v4 中废弃, sortBy 不能为数组
@@ -15142,7 +15145,7 @@ var Methods = {
15142
15145
  tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableData, sortByConfs || [firstOrderColumn].map(function (_ref4) {
15143
15146
  var column = _ref4.column,
15144
15147
  order = _ref4.order;
15145
- return [getOrderField(_this17, column), order];
15148
+ return [getOrderField(_this18, column), order];
15146
15149
  }));
15147
15150
  }
15148
15151
  }
@@ -15161,7 +15164,7 @@ var Methods = {
15161
15164
  * 对渲染中的数据提前解析序号及索引。牺牲提前编译耗时换取渲染中额外损耗,使运行时更加流畅
15162
15165
  */
15163
15166
  updateAfterDataIndex: function updateAfterDataIndex() {
15164
- var _this18 = this;
15167
+ var _this19 = this;
15165
15168
 
15166
15169
  var treeConfig = this.treeConfig,
15167
15170
  afterFullData = this.afterFullData,
@@ -15172,7 +15175,7 @@ var Methods = {
15172
15175
 
15173
15176
  if (treeConfig) {
15174
15177
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterTreeFullData, function (row, index, items, path) {
15175
- var rowid = getRowid(_this18, row);
15178
+ var rowid = getRowid(_this19, row);
15176
15179
  var allrest = fullAllDataRowIdData[rowid];
15177
15180
  var seq = path.map(function (num, i) {
15178
15181
  return i % 2 === 0 ? Number(num) + 1 : '.';
@@ -15201,7 +15204,7 @@ var Methods = {
15201
15204
  });
15202
15205
  } else {
15203
15206
  afterFullData.forEach(function (row, index) {
15204
- var rowid = getRowid(_this18, row);
15207
+ var rowid = getRowid(_this19, row);
15205
15208
  var allrest = fullAllDataRowIdData[rowid];
15206
15209
  var seq = index + 1;
15207
15210
 
@@ -15293,7 +15296,7 @@ var Methods = {
15293
15296
  * 默认执行一次,除非被重置
15294
15297
  */
15295
15298
  handleLoadDefaults: function handleLoadDefaults() {
15296
- var _this19 = this;
15299
+ var _this20 = this;
15297
15300
 
15298
15301
  if (this.checkboxConfig) {
15299
15302
  this.handleDefaultSelectionChecked();
@@ -15320,7 +15323,7 @@ var Methods = {
15320
15323
  }
15321
15324
 
15322
15325
  this.$nextTick(function () {
15323
- return setTimeout(_this19.recalculate);
15326
+ return setTimeout(_this20.recalculate);
15324
15327
  });
15325
15328
  },
15326
15329
 
@@ -15570,12 +15573,12 @@ var Methods = {
15570
15573
  * 刷新列配置
15571
15574
  */
15572
15575
  refreshColumn: function refreshColumn() {
15573
- var _this20 = this;
15576
+ var _this21 = this;
15574
15577
 
15575
15578
  return this.parseColumns().then(function () {
15576
- return _this20.refreshScroll();
15579
+ return _this21.refreshScroll();
15577
15580
  }).then(function () {
15578
- return _this20.recalculate();
15581
+ return _this21.recalculate();
15579
15582
  });
15580
15583
  },
15581
15584
 
@@ -15584,7 +15587,7 @@ var Methods = {
15584
15587
  * 将固定的列左边、右边分别靠边
15585
15588
  */
15586
15589
  parseColumns: function parseColumns() {
15587
- var _this21 = this;
15590
+ var _this22 = this;
15588
15591
 
15589
15592
  var leftList = [];
15590
15593
  var centerList = [];
@@ -15691,11 +15694,11 @@ var Methods = {
15691
15694
  this.visibleColumn = visibleColumn;
15692
15695
  this.handleTableColumn();
15693
15696
  return this.updateFooter().then(function () {
15694
- return _this21.recalculate();
15697
+ return _this22.recalculate();
15695
15698
  }).then(function () {
15696
- _this21.updateCellAreas();
15699
+ _this22.updateCellAreas();
15697
15700
 
15698
- return _this21.recalculate();
15701
+ return _this22.recalculate();
15699
15702
  });
15700
15703
  },
15701
15704
 
@@ -15751,7 +15754,7 @@ var Methods = {
15751
15754
  * 刷新滚动操作,手动同步滚动相关位置(对于某些特殊的操作,比如滚动条错位、固定列不同步)
15752
15755
  */
15753
15756
  refreshScroll: function refreshScroll() {
15754
- var _this22 = this;
15757
+ var _this23 = this;
15755
15758
 
15756
15759
  var lastScrollLeft = this.lastScrollLeft,
15757
15760
  lastScrollTop = this.lastScrollTop;
@@ -15767,7 +15770,7 @@ var Methods = {
15767
15770
  return new Promise(function (resolve) {
15768
15771
  // 还原滚动条位置
15769
15772
  if (lastScrollLeft || lastScrollTop) {
15770
- return restoreScrollLocation(_this22, lastScrollLeft, lastScrollTop).then(function () {
15773
+ return restoreScrollLocation(_this23, lastScrollLeft, lastScrollTop).then(function () {
15771
15774
  // 存在滚动行为未结束情况
15772
15775
  setTimeout(resolve, 30);
15773
15776
  });
@@ -15788,7 +15791,7 @@ var Methods = {
15788
15791
  * 支持 width=? width=?px width=?% min-width=? min-width=?px min-width=?%
15789
15792
  */
15790
15793
  recalculate: function recalculate(refull) {
15791
- var _this23 = this;
15794
+ var _this24 = this;
15792
15795
 
15793
15796
  var $refs = this.$refs;
15794
15797
  var tableBody = $refs.tableBody,
@@ -15804,9 +15807,9 @@ var Methods = {
15804
15807
  if (refull === true) {
15805
15808
  // 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
15806
15809
  return this.computeScrollLoad().then(function () {
15807
- _this23.autoCellWidth(headerElem, bodyElem, footerElem);
15810
+ _this24.autoCellWidth(headerElem, bodyElem, footerElem);
15808
15811
 
15809
- return _this23.computeScrollLoad();
15812
+ return _this24.computeScrollLoad();
15810
15813
  });
15811
15814
  }
15812
15815
  }
@@ -15954,7 +15957,7 @@ var Methods = {
15954
15957
  this.customMaxHeight = methods_calcHeight(this, 'maxHeight');
15955
15958
  },
15956
15959
  updateStyle: function updateStyle() {
15957
- var _this24 = this;
15960
+ var _this25 = this;
15958
15961
 
15959
15962
  var $refs = this.$refs,
15960
15963
  isGroup = this.isGroup,
@@ -16058,7 +16061,7 @@ var Methods = {
16058
16061
 
16059
16062
  if (isGroup && listElem) {
16060
16063
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.arrayEach(listElem.querySelectorAll('.col--group'), function (thElem) {
16061
- var colNode = _this24.getColumnNode(thElem);
16064
+ var colNode = _this25.getColumnNode(thElem);
16062
16065
 
16063
16066
  if (colNode) {
16064
16067
  var column = colNode.item;
@@ -16225,10 +16228,10 @@ var Methods = {
16225
16228
 
16226
16229
  if (cellElem) {
16227
16230
  if (colspan > 1) {
16228
- var columnIndex = _this24.getColumnIndex(column);
16231
+ var columnIndex = _this25.getColumnIndex(column);
16229
16232
 
16230
16233
  for (var _index = 1; _index < colspan; _index++) {
16231
- var nextColumn = _this24.getColumns(columnIndex + _index);
16234
+ var nextColumn = _this25.getColumns(columnIndex + _index);
16232
16235
 
16233
16236
  if (nextColumn) {
16234
16237
  colWidth += nextColumn.renderWidth;
@@ -16278,15 +16281,15 @@ var Methods = {
16278
16281
  }
16279
16282
  },
16280
16283
  preventEvent: function preventEvent(evnt, type, args, next, end) {
16281
- var _this25 = this;
16284
+ var _this26 = this;
16282
16285
 
16283
16286
  var evntList = v_x_e_table.interceptor.get(type);
16284
16287
  var rest;
16285
16288
 
16286
16289
  if (!evntList.some(function (func) {
16287
16290
  return func(Object.assign({
16288
- $grid: _this25.$xegrid,
16289
- $table: _this25,
16291
+ $grid: _this26.$xegrid,
16292
+ $table: _this26,
16290
16293
  $event: evnt
16291
16294
  }, args)) === false;
16292
16295
  })) {
@@ -16306,7 +16309,7 @@ var Methods = {
16306
16309
  * 全局按下事件处理
16307
16310
  */
16308
16311
  handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
16309
- var _this26 = this;
16312
+ var _this27 = this;
16310
16313
 
16311
16314
  var $el = this.$el,
16312
16315
  $refs = this.$refs,
@@ -16367,7 +16370,7 @@ var Methods = {
16367
16370
  } // 如果固定了高度且点击了行之外的空白处,则清除激活状态
16368
16371
 
16369
16372
 
16370
- if (!isClearActived && _this26.height && !_this26.overflowY) {
16373
+ if (!isClearActived && _this27.height && !_this27.overflowY) {
16371
16374
  var bodyWrapperElem = evnt.target;
16372
16375
 
16373
16376
  if (methods_hasClass(bodyWrapperElem, 'vxe-table--body-wrapper')) {
@@ -16378,7 +16381,7 @@ var Methods = {
16378
16381
  if (isClearActived || // 如果点击了当前表格之外
16379
16382
  !getEventTargetNode(evnt, $el).flag) {
16380
16383
  setTimeout(function () {
16381
- return _this26.clearEdit(evnt);
16384
+ return _this27.clearEdit(evnt);
16382
16385
  });
16383
16386
  }
16384
16387
  });
@@ -16392,9 +16395,9 @@ var Methods = {
16392
16395
 
16393
16396
  if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
16394
16397
  this.preventEvent(evnt, 'event.clearAreas', {}, function () {
16395
- _this26.clearCellAreas();
16398
+ _this27.clearCellAreas();
16396
16399
 
16397
- _this26.clearCopyCellArea();
16400
+ _this27.clearCopyCellArea();
16398
16401
  });
16399
16402
  }
16400
16403
  }
@@ -16429,7 +16432,7 @@ var Methods = {
16429
16432
  * 表格键盘事件
16430
16433
  */
16431
16434
  keydownEvent: function keydownEvent(evnt) {
16432
- var _this27 = this;
16435
+ var _this28 = this;
16433
16436
 
16434
16437
  var filterStore = this.filterStore,
16435
16438
  ctxMenuStore = this.ctxMenuStore,
@@ -16444,37 +16447,37 @@ var Methods = {
16444
16447
 
16445
16448
  if (isEsc) {
16446
16449
  this.preventEvent(evnt, 'event.keydown', null, function () {
16447
- _this27.emitEvent('keydown-start', {}, evnt);
16450
+ _this28.emitEvent('keydown-start', {}, evnt);
16448
16451
 
16449
- if (keyboardConfig && mouseConfig && mouseOpts.area && _this27.handleKeyboardEvent) {
16450
- _this27.handleKeyboardEvent(evnt);
16452
+ if (keyboardConfig && mouseConfig && mouseOpts.area && _this28.handleKeyboardEvent) {
16453
+ _this28.handleKeyboardEvent(evnt);
16451
16454
  } else if (actived.row || filterStore.visible || ctxMenuStore.visible) {
16452
16455
  evnt.stopPropagation(); // 如果按下了 Esc 键,关闭快捷菜单、筛选
16453
16456
 
16454
- _this27.closeFilter();
16457
+ _this28.closeFilter();
16455
16458
 
16456
- _this27.closeMenu();
16459
+ _this28.closeMenu();
16457
16460
 
16458
16461
  if (keyboardConfig && keyboardOpts.isEsc) {
16459
16462
  // 如果是激活编辑状态,则取消编辑
16460
16463
  if (actived.row) {
16461
16464
  var params = actived.args;
16462
16465
 
16463
- _this27.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
16466
+ _this28.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
16464
16467
 
16465
16468
 
16466
16469
  if (mouseConfig && mouseOpts.selected) {
16467
- _this27.$nextTick(function () {
16468
- return _this27.handleSelected(params, evnt);
16470
+ _this28.$nextTick(function () {
16471
+ return _this28.handleSelected(params, evnt);
16469
16472
  });
16470
16473
  }
16471
16474
  }
16472
16475
  }
16473
16476
  }
16474
16477
 
16475
- _this27.emitEvent('keydown', {}, evnt);
16478
+ _this28.emitEvent('keydown', {}, evnt);
16476
16479
 
16477
- _this27.emitEvent('keydown-end', {}, evnt);
16480
+ _this28.emitEvent('keydown-end', {}, evnt);
16478
16481
  });
16479
16482
  }
16480
16483
  },
@@ -16483,27 +16486,27 @@ var Methods = {
16483
16486
  * 全局键盘事件
16484
16487
  */
16485
16488
  handleGlobalKeydownEvent: function handleGlobalKeydownEvent(evnt) {
16486
- var _this28 = this;
16489
+ var _this29 = this;
16487
16490
 
16488
16491
  // 该行为只对当前激活的表格有效
16489
16492
  if (this.isActivated) {
16490
16493
  this.preventEvent(evnt, 'event.keydown', null, function () {
16491
- var filterStore = _this28.filterStore,
16492
- isCtxMenu = _this28.isCtxMenu,
16493
- ctxMenuStore = _this28.ctxMenuStore,
16494
- editStore = _this28.editStore,
16495
- editOpts = _this28.editOpts,
16496
- editConfig = _this28.editConfig,
16497
- mouseConfig = _this28.mouseConfig,
16498
- mouseOpts = _this28.mouseOpts,
16499
- keyboardConfig = _this28.keyboardConfig,
16500
- keyboardOpts = _this28.keyboardOpts,
16501
- treeConfig = _this28.treeConfig,
16502
- treeOpts = _this28.treeOpts,
16503
- highlightCurrentRow = _this28.highlightCurrentRow,
16504
- currentRow = _this28.currentRow,
16505
- bodyCtxMenu = _this28.bodyCtxMenu,
16506
- rowOpts = _this28.rowOpts;
16494
+ var filterStore = _this29.filterStore,
16495
+ isCtxMenu = _this29.isCtxMenu,
16496
+ ctxMenuStore = _this29.ctxMenuStore,
16497
+ editStore = _this29.editStore,
16498
+ editOpts = _this29.editOpts,
16499
+ editConfig = _this29.editConfig,
16500
+ mouseConfig = _this29.mouseConfig,
16501
+ mouseOpts = _this29.mouseOpts,
16502
+ keyboardConfig = _this29.keyboardConfig,
16503
+ keyboardOpts = _this29.keyboardOpts,
16504
+ treeConfig = _this29.treeConfig,
16505
+ treeOpts = _this29.treeOpts,
16506
+ highlightCurrentRow = _this29.highlightCurrentRow,
16507
+ currentRow = _this29.currentRow,
16508
+ bodyCtxMenu = _this29.bodyCtxMenu,
16509
+ rowOpts = _this29.rowOpts;
16507
16510
  var selected = editStore.selected,
16508
16511
  actived = editStore.actived;
16509
16512
  var keyCode = evnt.keyCode;
@@ -16530,7 +16533,7 @@ var Methods = {
16530
16533
 
16531
16534
  if (filterStore.visible) {
16532
16535
  if (isEsc) {
16533
- _this28.closeFilter();
16536
+ _this29.closeFilter();
16534
16537
  }
16535
16538
 
16536
16539
  return;
@@ -16541,20 +16544,20 @@ var Methods = {
16541
16544
  evnt.preventDefault();
16542
16545
 
16543
16546
  if (ctxMenuStore.showChild && hasChildrenList(ctxMenuStore.selected)) {
16544
- _this28.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
16547
+ _this29.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
16545
16548
  } else {
16546
- _this28.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this28.ctxMenuList);
16549
+ _this29.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this29.ctxMenuList);
16547
16550
  }
16548
- } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this28.handleKeyboardEvent) {
16549
- _this28.handleKeyboardEvent(evnt);
16551
+ } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this29.handleKeyboardEvent) {
16552
+ _this29.handleKeyboardEvent(evnt);
16550
16553
  } else if (keyboardConfig && isSpacebar && keyboardOpts.isChecked && selected.row && selected.column && (selected.column.type === 'checkbox' || selected.column.type === 'radio')) {
16551
16554
  // 空格键支持选中复选框
16552
16555
  evnt.preventDefault();
16553
16556
 
16554
16557
  if (selected.column.type === 'checkbox') {
16555
- _this28.handleToggleCheckRowEvent(evnt, selected.args);
16558
+ _this29.handleToggleCheckRowEvent(evnt, selected.args);
16556
16559
  } else {
16557
- _this28.triggerRadioRowEvent(evnt, selected.args);
16560
+ _this29.triggerRadioRowEvent(evnt, selected.args);
16558
16561
  }
16559
16562
  } else if (isF2 && isEnableConf(editConfig)) {
16560
16563
  if (!isEditStatus) {
@@ -16563,15 +16566,15 @@ var Methods = {
16563
16566
  evnt.stopPropagation();
16564
16567
  evnt.preventDefault();
16565
16568
 
16566
- _this28.handleActived(selected.args, evnt);
16569
+ _this29.handleActived(selected.args, evnt);
16567
16570
  }
16568
16571
  }
16569
16572
  } else if (isContextMenu) {
16570
16573
  // 如果按下上下文键
16571
- _this28._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
16572
- clearTimeout(_this28.keyCtxTimeout);
16573
- _this28.keyCtxTimeout = setTimeout(function () {
16574
- _this28._keyCtx = false;
16574
+ _this29._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
16575
+ clearTimeout(_this29.keyCtxTimeout);
16576
+ _this29.keyCtxTimeout = setTimeout(function () {
16577
+ _this29._keyCtx = false;
16575
16578
  }, 1000);
16576
16579
  } else if (isEnter && !hasAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow)) {
16577
16580
  // 退出选中
@@ -16580,12 +16583,12 @@ var Methods = {
16580
16583
  if (actived.row) {
16581
16584
  params = actived.args;
16582
16585
 
16583
- _this28.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
16586
+ _this29.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
16584
16587
 
16585
16588
 
16586
16589
  if (mouseConfig && mouseOpts.selected) {
16587
- _this28.$nextTick(function () {
16588
- return _this28.handleSelected(params, evnt);
16590
+ _this29.$nextTick(function () {
16591
+ return _this29.handleSelected(params, evnt);
16589
16592
  });
16590
16593
  }
16591
16594
  }
@@ -16596,15 +16599,15 @@ var Methods = {
16596
16599
 
16597
16600
  if (hasShiftKey) {
16598
16601
  if (keyboardOpts.enterToTab) {
16599
- _this28.moveTabSelected(targetArgs, hasShiftKey, evnt);
16602
+ _this29.moveTabSelected(targetArgs, hasShiftKey, evnt);
16600
16603
  } else {
16601
- _this28.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
16604
+ _this29.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
16602
16605
  }
16603
16606
  } else {
16604
16607
  if (keyboardOpts.enterToTab) {
16605
- _this28.moveTabSelected(targetArgs, hasShiftKey, evnt);
16608
+ _this29.moveTabSelected(targetArgs, hasShiftKey, evnt);
16606
16609
  } else {
16607
- _this28.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
16610
+ _this29.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
16608
16611
  }
16609
16612
  }
16610
16613
  } else if (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
@@ -16615,14 +16618,14 @@ var Methods = {
16615
16618
  evnt.preventDefault();
16616
16619
  var targetRow = childrens[0];
16617
16620
  params = {
16618
- $table: _this28,
16621
+ $table: _this29,
16619
16622
  row: targetRow
16620
16623
  };
16621
16624
 
16622
- _this28.setTreeExpand(currentRow, true).then(function () {
16623
- return _this28.scrollToRow(targetRow);
16625
+ _this29.setTreeExpand(currentRow, true).then(function () {
16626
+ return _this29.scrollToRow(targetRow);
16624
16627
  }).then(function () {
16625
- return _this28.triggerCurrentRowEvent(evnt, params);
16628
+ return _this29.triggerCurrentRowEvent(evnt, params);
16626
16629
  });
16627
16630
  }
16628
16631
  }
@@ -16631,18 +16634,18 @@ var Methods = {
16631
16634
  if (!isEditStatus) {
16632
16635
  // 如果按下了方向键
16633
16636
  if (selected.row && selected.column) {
16634
- _this28.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
16637
+ _this29.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
16635
16638
  } else if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
16636
16639
  // 当前行按键上下移动
16637
- _this28.moveCurrentRow(isUpArrow, isDwArrow, evnt);
16640
+ _this29.moveCurrentRow(isUpArrow, isDwArrow, evnt);
16638
16641
  }
16639
16642
  }
16640
16643
  } else if (isTab && keyboardConfig && keyboardOpts.isTab) {
16641
16644
  // 如果按下了 Tab 键切换
16642
16645
  if (selected.row || selected.column) {
16643
- _this28.moveTabSelected(selected.args, hasShiftKey, evnt);
16646
+ _this29.moveTabSelected(selected.args, hasShiftKey, evnt);
16644
16647
  } else if (actived.row || actived.column) {
16645
- _this28.moveTabSelected(actived.args, hasShiftKey, evnt);
16648
+ _this29.moveTabSelected(actived.args, hasShiftKey, evnt);
16646
16649
  }
16647
16650
  } else if (keyboardConfig && (isDel || (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
16648
16651
  if (!isEditStatus) {
@@ -16653,10 +16656,10 @@ var Methods = {
16653
16656
  if (delMethod) {
16654
16657
  delMethod({
16655
16658
  row: selected.row,
16656
- rowIndex: _this28.getRowIndex(selected.row),
16659
+ rowIndex: _this29.getRowIndex(selected.row),
16657
16660
  column: selected.column,
16658
- columnIndex: _this28.getColumnIndex(selected.column),
16659
- $table: _this28
16661
+ columnIndex: _this29.getColumnIndex(selected.column),
16662
+ $table: _this29
16660
16663
  });
16661
16664
  } else {
16662
16665
  methods_setCellValue(selected.row, selected.column, null);
@@ -16666,21 +16669,21 @@ var Methods = {
16666
16669
  if (backMethod) {
16667
16670
  backMethod({
16668
16671
  row: selected.row,
16669
- rowIndex: _this28.getRowIndex(selected.row),
16672
+ rowIndex: _this29.getRowIndex(selected.row),
16670
16673
  column: selected.column,
16671
- columnIndex: _this28.getColumnIndex(selected.column),
16672
- $table: _this28
16674
+ columnIndex: _this29.getColumnIndex(selected.column),
16675
+ $table: _this29
16673
16676
  });
16674
16677
  } else {
16675
- _this28.handleActived(selected.args, evnt);
16678
+ _this29.handleActived(selected.args, evnt);
16676
16679
  }
16677
16680
  } else if (isDel) {
16678
16681
  // 如果按下 del 键,更新表尾数据
16679
- _this28.updateFooter();
16682
+ _this29.updateFooter();
16680
16683
  }
16681
16684
  } else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
16682
16685
  // 如果树形表格回退键关闭当前行返回父节点
16683
- var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(_this28.afterFullData, function (item) {
16686
+ var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(_this29.afterFullData, function (item) {
16684
16687
  return item === currentRow;
16685
16688
  }, treeOpts),
16686
16689
  parentRow = _XEUtils$findTree.parent;
@@ -16688,14 +16691,14 @@ var Methods = {
16688
16691
  if (parentRow) {
16689
16692
  evnt.preventDefault();
16690
16693
  params = {
16691
- $table: _this28,
16694
+ $table: _this29,
16692
16695
  row: parentRow
16693
16696
  };
16694
16697
 
16695
- _this28.setTreeExpand(parentRow, false).then(function () {
16696
- return _this28.scrollToRow(parentRow);
16698
+ _this29.setTreeExpand(parentRow, false).then(function () {
16699
+ return _this29.scrollToRow(parentRow);
16697
16700
  }).then(function () {
16698
- return _this28.triggerCurrentRowEvent(evnt, params);
16701
+ return _this29.triggerCurrentRowEvent(evnt, params);
16699
16702
  });
16700
16703
  }
16701
16704
  }
@@ -16711,26 +16714,26 @@ var Methods = {
16711
16714
  var beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
16712
16715
 
16713
16716
  if (!beforeEditMethod || beforeEditMethod(_objectSpread2(_objectSpread2({}, selected.args), {}, {
16714
- $table: _this28
16717
+ $table: _this29
16715
16718
  }))) {
16716
16719
  if (editMethod) {
16717
16720
  editMethod({
16718
16721
  row: selected.row,
16719
- rowIndex: _this28.getRowIndex(selected.row),
16722
+ rowIndex: _this29.getRowIndex(selected.row),
16720
16723
  column: selected.column,
16721
- columnIndex: _this28.getColumnIndex(selected.column),
16722
- $table: _this28
16724
+ columnIndex: _this29.getColumnIndex(selected.column),
16725
+ $table: _this29
16723
16726
  });
16724
16727
  } else {
16725
16728
  methods_setCellValue(selected.row, selected.column, null);
16726
16729
 
16727
- _this28.handleActived(selected.args, evnt);
16730
+ _this29.handleActived(selected.args, evnt);
16728
16731
  }
16729
16732
  }
16730
16733
  }
16731
16734
  }
16732
16735
 
16733
- _this28.emitEvent('keydown', {}, evnt);
16736
+ _this29.emitEvent('keydown', {}, evnt);
16734
16737
  });
16735
16738
  }
16736
16739
  },
@@ -16812,7 +16815,7 @@ var Methods = {
16812
16815
  }
16813
16816
  },
16814
16817
  handleTargetLeaveEvent: function handleTargetLeaveEvent() {
16815
- var _this29 = this;
16818
+ var _this30 = this;
16816
16819
 
16817
16820
  var tooltipOpts = this.tooltipOpts;
16818
16821
  var $tooltip = this.$refs.tooltip;
@@ -16823,10 +16826,10 @@ var Methods = {
16823
16826
 
16824
16827
  if (tooltipOpts.enterable) {
16825
16828
  this.tooltipTimeout = setTimeout(function () {
16826
- $tooltip = _this29.$refs.tooltip;
16829
+ $tooltip = _this30.$refs.tooltip;
16827
16830
 
16828
16831
  if ($tooltip && !$tooltip.isActived()) {
16829
- _this29.closeTooltip();
16832
+ _this30.closeTooltip();
16830
16833
  }
16831
16834
  }, tooltipOpts.leaveDelay);
16832
16835
  } else {
@@ -17024,13 +17027,15 @@ var Methods = {
17024
17027
  * 获取复选框半选状态的行数据
17025
17028
  */
17026
17029
  getCheckboxIndeterminateRecords: function getCheckboxIndeterminateRecords(isFull) {
17030
+ var _this31 = this;
17031
+
17027
17032
  var treeConfig = this.treeConfig,
17028
17033
  treeIndeterminates = this.treeIndeterminates,
17029
17034
  afterFullData = this.afterFullData;
17030
17035
 
17031
17036
  if (treeConfig) {
17032
17037
  return isFull ? treeIndeterminates.slice(0) : treeIndeterminates.filter(function (row) {
17033
- return afterFullData.indexOf(row);
17038
+ return _this31.findRowIndexOf(afterFullData, row) > -1;
17034
17039
  });
17035
17040
  }
17036
17041
 
@@ -17065,30 +17070,32 @@ var Methods = {
17065
17070
  * @param {Boolean} value 是否选中
17066
17071
  */
17067
17072
  setCheckboxRow: function setCheckboxRow(rows, value) {
17068
- var _this30 = this;
17073
+ var _this32 = this;
17069
17074
 
17070
17075
  if (rows && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(rows)) {
17071
17076
  rows = [rows];
17072
17077
  }
17073
17078
 
17074
17079
  rows.forEach(function (row) {
17075
- return _this30.handleSelectRow({
17080
+ return _this32.handleSelectRow({
17076
17081
  row: row
17077
17082
  }, !!value);
17078
17083
  });
17079
17084
  return this.$nextTick();
17080
17085
  },
17081
17086
  isCheckedByCheckboxRow: function isCheckedByCheckboxRow(row) {
17087
+ var selection = this.selection;
17082
17088
  var checkField = this.checkboxOpts.checkField;
17083
17089
 
17084
17090
  if (checkField) {
17085
17091
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, checkField);
17086
17092
  }
17087
17093
 
17088
- return this.selection.indexOf(row) > -1;
17094
+ return this.findRowIndexOf(selection, row) > -1;
17089
17095
  },
17090
17096
  isIndeterminateByCheckboxRow: function isIndeterminateByCheckboxRow(row) {
17091
- return this.treeIndeterminates.indexOf(row) > -1 && !this.isCheckedByCheckboxRow(row);
17097
+ var treeIndeterminates = this.treeIndeterminates;
17098
+ return this.findRowIndexOf(treeIndeterminates, row) > -1 && !this.isCheckedByCheckboxRow(row);
17092
17099
  },
17093
17100
 
17094
17101
  /**
@@ -17096,7 +17103,7 @@ var Methods = {
17096
17103
  * value 选中true 不选false 半选-1
17097
17104
  */
17098
17105
  handleSelectRow: function handleSelectRow(_ref6, value) {
17099
- var _this31 = this;
17106
+ var _this33 = this;
17100
17107
 
17101
17108
  var row = _ref6.row;
17102
17109
  var selection = this.selection,
@@ -17112,7 +17119,7 @@ var Methods = {
17112
17119
  if (checkField) {
17113
17120
  if (treeConfig && !checkStrictly) {
17114
17121
  if (value === -1) {
17115
- if (treeIndeterminates.indexOf(row) === -1) {
17122
+ if (this.findRowIndexOf(treeIndeterminates, row) === -1) {
17116
17123
  treeIndeterminates.push(row);
17117
17124
  }
17118
17125
 
@@ -17120,22 +17127,22 @@ var Methods = {
17120
17127
  } else {
17121
17128
  // 更新子节点状态
17122
17129
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree([row], function (item) {
17123
- if (row === item || !checkMethod || checkMethod({
17130
+ if (_this33.eqRow(item, row) || !checkMethod || checkMethod({
17124
17131
  row: item
17125
17132
  })) {
17126
17133
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(item, checkField, value);
17127
17134
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(treeIndeterminates, function (half) {
17128
- return half === item;
17135
+ return _this33.eqRow(half, item);
17129
17136
  });
17130
17137
 
17131
- _this31.handleCheckboxReserveRow(row, value);
17138
+ _this33.handleCheckboxReserveRow(row, value);
17132
17139
  }
17133
17140
  }, treeOpts);
17134
17141
  } // 如果存在父节点,更新父节点状态
17135
17142
 
17136
17143
 
17137
17144
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(afterFullData, function (item) {
17138
- return item === row;
17145
+ return _this33.eqRow(item, row);
17139
17146
  }, treeOpts);
17140
17147
 
17141
17148
  if (matchObj && matchObj.parent) {
@@ -17146,7 +17153,7 @@ var Methods = {
17146
17153
  });
17147
17154
  }) : matchObj.items;
17148
17155
  var indeterminatesItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.find(matchObj.items, function (item) {
17149
- return treeIndeterminates.indexOf(item) > -1;
17156
+ return _this33.findRowIndexOf(treeIndeterminates, item) > -1;
17150
17157
  });
17151
17158
 
17152
17159
  if (indeterminatesItem) {
@@ -17156,7 +17163,7 @@ var Methods = {
17156
17163
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(item, checkField);
17157
17164
  });
17158
17165
  parentStatus = selectItems.filter(function (item) {
17159
- return vItems.indexOf(item) > -1;
17166
+ return _this33.findRowIndexOf(vItems, item) > -1;
17160
17167
  }).length === vItems.length ? true : selectItems.length || value === -1 ? -1 : false;
17161
17168
  }
17162
17169
 
@@ -17175,39 +17182,39 @@ var Methods = {
17175
17182
  } else {
17176
17183
  if (treeConfig && !checkStrictly) {
17177
17184
  if (value === -1) {
17178
- if (treeIndeterminates.indexOf(row) === -1) {
17185
+ if (this.findRowIndexOf(treeIndeterminates, row) === -1) {
17179
17186
  treeIndeterminates.push(row);
17180
17187
  }
17181
17188
 
17182
17189
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(selection, function (item) {
17183
- return item === row;
17190
+ return _this33.eqRow(item, row);
17184
17191
  });
17185
17192
  } else {
17186
17193
  // 更新子节点状态
17187
17194
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree([row], function (item) {
17188
- if (row === item || !checkMethod || checkMethod({
17195
+ if (_this33.eqRow(item, row) || !checkMethod || checkMethod({
17189
17196
  row: item
17190
17197
  })) {
17191
17198
  if (value) {
17192
17199
  selection.push(item);
17193
17200
  } else {
17194
17201
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(selection, function (select) {
17195
- return select === item;
17202
+ return _this33.eqRow(select, item);
17196
17203
  });
17197
17204
  }
17198
17205
 
17199
17206
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(treeIndeterminates, function (half) {
17200
- return half === item;
17207
+ return _this33.eqRow(half, item);
17201
17208
  });
17202
17209
 
17203
- _this31.handleCheckboxReserveRow(row, value);
17210
+ _this33.handleCheckboxReserveRow(row, value);
17204
17211
  }
17205
17212
  }, treeOpts);
17206
17213
  } // 如果存在父节点,更新父节点状态
17207
17214
 
17208
17215
 
17209
17216
  var _matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(afterFullData, function (item) {
17210
- return item === row;
17217
+ return _this33.eqRow(item, row);
17211
17218
  }, treeOpts);
17212
17219
 
17213
17220
  if (_matchObj && _matchObj.parent) {
@@ -17220,18 +17227,18 @@ var Methods = {
17220
17227
  }) : _matchObj.items;
17221
17228
 
17222
17229
  var _indeterminatesItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.find(_matchObj.items, function (item) {
17223
- return treeIndeterminates.indexOf(item) > -1;
17230
+ return _this33.findRowIndexOf(treeIndeterminates, item) > -1;
17224
17231
  });
17225
17232
 
17226
17233
  if (_indeterminatesItem) {
17227
17234
  _parentStatus = -1;
17228
17235
  } else {
17229
17236
  var _selectItems = _matchObj.items.filter(function (item) {
17230
- return selection.indexOf(item) > -1;
17237
+ return _this33.findRowIndexOf(selection, item) > -1;
17231
17238
  });
17232
17239
 
17233
17240
  _parentStatus = _selectItems.filter(function (item) {
17234
- return _vItems.indexOf(item) > -1;
17241
+ return _this33.findRowIndexOf(_vItems, item) > -1;
17235
17242
  }).length === _vItems.length ? true : _selectItems.length || value === -1 ? -1 : false;
17236
17243
  }
17237
17244
 
@@ -17244,12 +17251,12 @@ var Methods = {
17244
17251
  row: row
17245
17252
  })) {
17246
17253
  if (value) {
17247
- if (selection.indexOf(row) === -1) {
17254
+ if (this.findRowIndexOf(selection, row) === -1) {
17248
17255
  selection.push(row);
17249
17256
  }
17250
17257
  } else {
17251
17258
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(selection, function (item) {
17252
- return item === row;
17259
+ return _this33.eqRow(item, row);
17253
17260
  });
17254
17261
  }
17255
17262
 
@@ -17265,7 +17272,7 @@ var Methods = {
17265
17272
  checkboxOpts = this.checkboxOpts;
17266
17273
  var checkField = checkboxOpts.checkField;
17267
17274
  var row = params.row;
17268
- var value = checkField ? !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, checkField) : selection.indexOf(row) === -1;
17275
+ var value = checkField ? !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, checkField) : this.findRowIndexOf(selection, row) === -1;
17269
17276
 
17270
17277
  if (evnt) {
17271
17278
  this.triggerCheckRowEvent(evnt, params, value);
@@ -17304,7 +17311,7 @@ var Methods = {
17304
17311
  * @param {Boolean} value 是否选中
17305
17312
  */
17306
17313
  setAllCheckboxRow: function setAllCheckboxRow(value) {
17307
- var _this32 = this;
17314
+ var _this34 = this;
17308
17315
 
17309
17316
  var afterFullData = this.afterFullData,
17310
17317
  treeConfig = this.treeConfig,
@@ -17318,7 +17325,7 @@ var Methods = {
17318
17325
  checkMethod = checkboxOpts.checkMethod;
17319
17326
  var selectRows = [];
17320
17327
  var beforeSelection = treeConfig ? [] : selection.filter(function (row) {
17321
- return afterFullData.indexOf(row) === -1;
17328
+ return _this34.findRowIndexOf(afterFullData, row) === -1;
17322
17329
  });
17323
17330
 
17324
17331
  if (checkStrictly) {
@@ -17375,7 +17382,7 @@ var Methods = {
17375
17382
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterFullData, function (row) {
17376
17383
  if (checkMethod({
17377
17384
  row: row
17378
- }) ? 0 : selection.indexOf(row) > -1) {
17385
+ }) ? 0 : _this34.findRowIndexOf(selection, row) > -1) {
17379
17386
  selectRows.push(row);
17380
17387
  }
17381
17388
  }, treeOpts);
@@ -17390,7 +17397,7 @@ var Methods = {
17390
17397
  */
17391
17398
  if (checkMethod) {
17392
17399
  selectRows = afterFullData.filter(function (row) {
17393
- return selection.indexOf(row) > -1 || checkMethod({
17400
+ return _this34.findRowIndexOf(selection, row) > -1 || checkMethod({
17394
17401
  row: row
17395
17402
  });
17396
17403
  });
@@ -17407,7 +17414,7 @@ var Methods = {
17407
17414
  selectRows = afterFullData.filter(function (row) {
17408
17415
  return checkMethod({
17409
17416
  row: row
17410
- }) ? 0 : selection.indexOf(row) > -1;
17417
+ }) ? 0 : _this34.findRowIndexOf(selection, row) > -1;
17411
17418
  });
17412
17419
  }
17413
17420
  }
@@ -17417,11 +17424,11 @@ var Methods = {
17417
17424
  if (reserve) {
17418
17425
  if (value) {
17419
17426
  selectRows.forEach(function (row) {
17420
- checkboxReserveRowMap[getRowid(_this32, row)] = row;
17427
+ checkboxReserveRowMap[getRowid(_this34, row)] = row;
17421
17428
  });
17422
17429
  } else {
17423
17430
  afterFullData.forEach(function (row) {
17424
- return _this32.handleCheckboxReserveRow(row, false);
17431
+ return _this34.handleCheckboxReserveRow(row, false);
17425
17432
  });
17426
17433
  }
17427
17434
  }
@@ -17433,6 +17440,8 @@ var Methods = {
17433
17440
  this.checkSelectionStatus();
17434
17441
  },
17435
17442
  checkSelectionStatus: function checkSelectionStatus() {
17443
+ var _this35 = this;
17444
+
17436
17445
  var afterFullData = this.afterFullData,
17437
17446
  selection = this.selection,
17438
17447
  treeIndeterminates = this.treeIndeterminates,
@@ -17473,11 +17482,11 @@ var Methods = {
17473
17482
  if (treeConfig) {
17474
17483
  if (halfField) {
17475
17484
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
17476
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, checkField) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, halfField) || treeIndeterminates.indexOf(row) > -1;
17485
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, checkField) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, halfField) || _this35.findRowIndexOf(treeIndeterminates, row) > -1;
17477
17486
  });
17478
17487
  } else {
17479
17488
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
17480
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, checkField) || treeIndeterminates.indexOf(row) > -1;
17489
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, checkField) || _this35.findRowIndexOf(treeIndeterminates, row) > -1;
17481
17490
  });
17482
17491
  }
17483
17492
  } else {
@@ -17500,24 +17509,24 @@ var Methods = {
17500
17509
  return true;
17501
17510
  }
17502
17511
 
17503
- if (selection.indexOf(row) > -1) {
17512
+ if (_this35.findRowIndexOf(selection, row) > -1) {
17504
17513
  checkRows.push(row);
17505
17514
  return true;
17506
17515
  }
17507
17516
 
17508
17517
  return false;
17509
17518
  } : function (row) {
17510
- return selection.indexOf(row) > -1;
17519
+ return _this35.findRowIndexOf(selection, row) > -1;
17511
17520
  });
17512
17521
  isAllSelected = isAllResolve && afterFullData.length !== disableRows.length;
17513
17522
 
17514
17523
  if (treeConfig) {
17515
17524
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
17516
- return treeIndeterminates.indexOf(row) > -1 || selection.indexOf(row) > -1;
17525
+ return _this35.findRowIndexOf(treeIndeterminates, row) > -1 || _this35.findRowIndexOf(selection, row) > -1;
17517
17526
  });
17518
17527
  } else {
17519
17528
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
17520
- return selection.indexOf(row) > -1;
17529
+ return _this35.findRowIndexOf(selection, row) > -1;
17521
17530
  });
17522
17531
  }
17523
17532
  }
@@ -17641,7 +17650,7 @@ var Methods = {
17641
17650
  * 获取复选框保留选中的行
17642
17651
  */
17643
17652
  getCheckboxReserveRecords: function getCheckboxReserveRecords(isFull) {
17644
- var _this33 = this;
17653
+ var _this36 = this;
17645
17654
 
17646
17655
  var fullDataRowIdData = this.fullDataRowIdData,
17647
17656
  afterFullData = this.afterFullData,
@@ -17656,11 +17665,11 @@ var Methods = {
17656
17665
 
17657
17666
  if (treeConfig) {
17658
17667
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterFullData, function (row) {
17659
- afterFullIdMaps[getRowid(_this33, row)] = 1;
17668
+ afterFullIdMaps[getRowid(_this36, row)] = 1;
17660
17669
  }, treeOpts);
17661
17670
  } else {
17662
17671
  afterFullData.forEach(function (row) {
17663
- afterFullIdMaps[getRowid(_this33, row)] = 1;
17672
+ afterFullIdMaps[getRowid(_this36, row)] = 1;
17664
17673
  });
17665
17674
  }
17666
17675
 
@@ -17726,7 +17735,7 @@ var Methods = {
17726
17735
  * 清空行为不管是否被禁用还是保留记录,都将彻底清空选中状态
17727
17736
  */
17728
17737
  clearCheckboxRow: function clearCheckboxRow() {
17729
- var _this34 = this;
17738
+ var _this37 = this;
17730
17739
 
17731
17740
  var tableFullData = this.tableFullData,
17732
17741
  treeConfig = this.treeConfig,
@@ -17749,7 +17758,7 @@ var Methods = {
17749
17758
 
17750
17759
  if (reserve) {
17751
17760
  tableFullData.forEach(function (row) {
17752
- return _this34.handleCheckboxReserveRow(row, false);
17761
+ return _this37.handleCheckboxReserveRow(row, false);
17753
17762
  });
17754
17763
  }
17755
17764
 
@@ -18040,13 +18049,13 @@ var Methods = {
18040
18049
  * 如果存在规则,则校验
18041
18050
  */
18042
18051
  handleChangeCell: function handleChangeCell(evnt, params) {
18043
- var _this35 = this;
18052
+ var _this38 = this;
18044
18053
 
18045
18054
  this.checkValidate('blur').catch(function (e) {
18046
18055
  return e;
18047
18056
  }).then(function () {
18048
- _this35.handleActived(params, evnt).then(function () {
18049
- return _this35.checkValidate('change');
18057
+ _this38.handleActived(params, evnt).then(function () {
18058
+ return _this38.checkValidate('change');
18050
18059
  }).catch(function (e) {
18051
18060
  return e;
18052
18061
  });
@@ -18149,7 +18158,7 @@ var Methods = {
18149
18158
  * 如果是双击模式,则激活为编辑状态
18150
18159
  */
18151
18160
  triggerCellDblclickEvent: function triggerCellDblclickEvent(evnt, params) {
18152
- var _this36 = this;
18161
+ var _this39 = this;
18153
18162
 
18154
18163
  var editStore = this.editStore,
18155
18164
  editConfig = this.editConfig,
@@ -18164,15 +18173,15 @@ var Methods = {
18164
18173
  this.checkValidate('blur').catch(function (e) {
18165
18174
  return e;
18166
18175
  }).then(function () {
18167
- _this36.handleActived(params, evnt).then(function () {
18168
- return _this36.checkValidate('change');
18176
+ _this39.handleActived(params, evnt).then(function () {
18177
+ return _this39.checkValidate('change');
18169
18178
  }).catch(function (e) {
18170
18179
  return e;
18171
18180
  });
18172
18181
  });
18173
18182
  } else if (editOpts.mode === 'cell') {
18174
18183
  this.handleActived(params, evnt).then(function () {
18175
- return _this36.checkValidate('change');
18184
+ return _this39.checkValidate('change');
18176
18185
  }).catch(function (e) {
18177
18186
  return e;
18178
18187
  });
@@ -18183,7 +18192,7 @@ var Methods = {
18183
18192
  this.emitEvent('cell-dblclick', params, evnt);
18184
18193
  },
18185
18194
  handleDefaultSort: function handleDefaultSort() {
18186
- var _this37 = this;
18195
+ var _this40 = this;
18187
18196
 
18188
18197
  var sortConfig = this.sortConfig,
18189
18198
  sortOpts = this.sortOpts;
@@ -18200,7 +18209,7 @@ var Methods = {
18200
18209
  order = item.order;
18201
18210
 
18202
18211
  if (field && order) {
18203
- var column = _this37.getColumnByField(field);
18212
+ var column = _this40.getColumnByField(field);
18204
18213
 
18205
18214
  if (column && column.sortable) {
18206
18215
  column.order = order;
@@ -18246,7 +18255,7 @@ var Methods = {
18246
18255
  }
18247
18256
  },
18248
18257
  sort: function sort(sortConfs, sortOrder) {
18249
- var _this38 = this;
18258
+ var _this41 = this;
18250
18259
 
18251
18260
  var sortOpts = this.sortOpts;
18252
18261
  var multiple = sortOpts.multiple,
@@ -18279,7 +18288,7 @@ var Methods = {
18279
18288
  var column = field;
18280
18289
 
18281
18290
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isString(field)) {
18282
- column = _this38.getColumnByField(field);
18291
+ column = _this41.getColumnByField(field);
18283
18292
  }
18284
18293
 
18285
18294
  if (column && (column.sortable || column.remoteSort)) {
@@ -18288,7 +18297,7 @@ var Methods = {
18288
18297
  }
18289
18298
 
18290
18299
  if (orders.indexOf(order) === -1) {
18291
- order = getNextSortOrder(_this38, column);
18300
+ order = getNextSortOrder(_this41, column);
18292
18301
  }
18293
18302
 
18294
18303
  if (column.order !== order) {
@@ -18429,6 +18438,8 @@ var Methods = {
18429
18438
  return rest && rest.expandLoaded;
18430
18439
  },
18431
18440
  clearRowExpandLoaded: function clearRowExpandLoaded(row) {
18441
+ var _this42 = this;
18442
+
18432
18443
  var expandOpts = this.expandOpts,
18433
18444
  expandLazyLoadeds = this.expandLazyLoadeds,
18434
18445
  fullAllDataRowMap = this.fullAllDataRowMap;
@@ -18438,7 +18449,7 @@ var Methods = {
18438
18449
  if (lazy && rest) {
18439
18450
  rest.expandLoaded = false;
18440
18451
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(expandLazyLoadeds, function (item) {
18441
- return row === item;
18452
+ return _this42.eqRow(item, row);
18442
18453
  });
18443
18454
  }
18444
18455
 
@@ -18450,15 +18461,15 @@ var Methods = {
18450
18461
  * @param {Row} row 行对象
18451
18462
  */
18452
18463
  reloadRowExpand: function reloadRowExpand(row) {
18453
- var _this39 = this;
18464
+ var _this43 = this;
18454
18465
 
18455
18466
  var expandOpts = this.expandOpts,
18456
18467
  expandLazyLoadeds = this.expandLazyLoadeds;
18457
18468
  var lazy = expandOpts.lazy;
18458
18469
 
18459
- if (lazy && expandLazyLoadeds.indexOf(row) === -1) {
18470
+ if (lazy && this.findRowIndexOf(expandLazyLoadeds, row) === -1) {
18460
18471
  this.clearRowExpandLoaded(row).then(function () {
18461
- return _this39.handleAsyncRowExpand(row);
18472
+ return _this43.handleAsyncRowExpand(row);
18462
18473
  });
18463
18474
  }
18464
18475
 
@@ -18481,7 +18492,7 @@ var Methods = {
18481
18492
  var row = params.row;
18482
18493
  var lazy = expandOpts.lazy;
18483
18494
 
18484
- if (!lazy || expandLazyLoadeds.indexOf(row) === -1) {
18495
+ if (!lazy || this.findRowIndexOf(expandLazyLoadeds, row) === -1) {
18485
18496
  var expanded = !this.isExpandByRow(row);
18486
18497
  var columnIndex = this.getColumnIndex(column);
18487
18498
  var $columnIndex = this.getVMColumnIndex(column);
@@ -18535,28 +18546,28 @@ var Methods = {
18535
18546
  return this.setRowExpand(this.expandOpts.lazy ? this.tableData : this.tableFullData, expanded);
18536
18547
  },
18537
18548
  handleAsyncRowExpand: function handleAsyncRowExpand(row) {
18538
- var _this40 = this;
18549
+ var _this44 = this;
18539
18550
 
18540
18551
  var rest = this.fullAllDataRowMap.get(row);
18541
18552
  return new Promise(function (resolve) {
18542
- _this40.expandLazyLoadeds.push(row);
18553
+ _this44.expandLazyLoadeds.push(row);
18543
18554
 
18544
- _this40.expandOpts.loadMethod({
18545
- $table: _this40,
18555
+ _this44.expandOpts.loadMethod({
18556
+ $table: _this44,
18546
18557
  row: row,
18547
- rowIndex: _this40.getRowIndex(row),
18548
- $rowIndex: _this40.getVMRowIndex(row)
18558
+ rowIndex: _this44.getRowIndex(row),
18559
+ $rowIndex: _this44.getVMRowIndex(row)
18549
18560
  }).then(function () {
18550
18561
  rest.expandLoaded = true;
18551
18562
 
18552
- _this40.rowExpandeds.push(row);
18563
+ _this44.rowExpandeds.push(row);
18553
18564
  }).catch(function () {
18554
18565
  rest.expandLoaded = false;
18555
18566
  }).finally(function () {
18556
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(_this40.expandLazyLoadeds, function (item) {
18557
- return item === row;
18567
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(_this44.expandLazyLoadeds, function (item) {
18568
+ return _this44.eqRow(item, row);
18558
18569
  });
18559
- resolve(_this40.$nextTick().then(_this40.recalculate));
18570
+ resolve(_this44.$nextTick().then(_this44.recalculate));
18560
18571
  });
18561
18572
  });
18562
18573
  },
@@ -18569,7 +18580,7 @@ var Methods = {
18569
18580
  * @param {Boolean} expanded 是否展开
18570
18581
  */
18571
18582
  setRowExpand: function setRowExpand(rows, expanded) {
18572
- var _this41 = this;
18583
+ var _this45 = this;
18573
18584
 
18574
18585
  var fullAllDataRowMap = this.fullAllDataRowMap,
18575
18586
  expandLazyLoadeds = this.expandLazyLoadeds,
@@ -18602,19 +18613,19 @@ var Methods = {
18602
18613
  columnIndex: columnIndex,
18603
18614
  $columnIndex: $columnIndex,
18604
18615
  row: row,
18605
- rowIndex: _this41.getRowIndex(row),
18606
- $rowIndex: _this41.getVMRowIndex(row)
18616
+ rowIndex: _this45.getRowIndex(row),
18617
+ $rowIndex: _this45.getVMRowIndex(row)
18607
18618
  });
18608
18619
  }) : rows;
18609
18620
 
18610
18621
  if (expanded) {
18611
18622
  validRows.forEach(function (row) {
18612
- if (rowExpandeds.indexOf(row) === -1) {
18623
+ if (_this45.findRowIndexOf(rowExpandeds, row) === -1) {
18613
18624
  var rest = fullAllDataRowMap.get(row);
18614
- var isLoad = lazy && !rest.expandLoaded && expandLazyLoadeds.indexOf(row) === -1;
18625
+ var isLoad = lazy && !rest.expandLoaded && _this45.findRowIndexOf(expandLazyLoadeds, row) === -1;
18615
18626
 
18616
18627
  if (isLoad) {
18617
- lazyRests.push(_this41.handleAsyncRowExpand(row));
18628
+ lazyRests.push(_this45.handleAsyncRowExpand(row));
18618
18629
  } else {
18619
18630
  rowExpandeds.push(row);
18620
18631
  }
@@ -18622,13 +18633,13 @@ var Methods = {
18622
18633
  });
18623
18634
  } else {
18624
18635
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(rowExpandeds, function (row) {
18625
- return validRows.indexOf(row) > -1;
18636
+ return _this45.findRowIndexOf(validRows, row) > -1;
18626
18637
  });
18627
18638
  }
18628
18639
 
18629
18640
  if (reserve) {
18630
18641
  validRows.forEach(function (row) {
18631
- return _this41.handleRowExpandReserve(row, expanded);
18642
+ return _this45.handleRowExpandReserve(row, expanded);
18632
18643
  });
18633
18644
  }
18634
18645
  }
@@ -18642,14 +18653,15 @@ var Methods = {
18642
18653
  * @param {Row} row 行对象
18643
18654
  */
18644
18655
  isExpandByRow: function isExpandByRow(row) {
18645
- return this.rowExpandeds.indexOf(row) > -1;
18656
+ var rowExpandeds = this.rowExpandeds;
18657
+ return this.findRowIndexOf(rowExpandeds, row) > -1;
18646
18658
  },
18647
18659
 
18648
18660
  /**
18649
18661
  * 手动清空展开行状态,数据会恢复成未展开的状态
18650
18662
  */
18651
18663
  clearRowExpand: function clearRowExpand() {
18652
- var _this42 = this;
18664
+ var _this46 = this;
18653
18665
 
18654
18666
  var expandOpts = this.expandOpts,
18655
18667
  rowExpandeds = this.rowExpandeds,
@@ -18660,13 +18672,13 @@ var Methods = {
18660
18672
 
18661
18673
  if (reserve) {
18662
18674
  tableFullData.forEach(function (row) {
18663
- return _this42.handleRowExpandReserve(row, false);
18675
+ return _this46.handleRowExpandReserve(row, false);
18664
18676
  });
18665
18677
  }
18666
18678
 
18667
18679
  return this.$nextTick().then(function () {
18668
18680
  if (isExists) {
18669
- _this42.recalculate();
18681
+ _this46.recalculate();
18670
18682
  }
18671
18683
  });
18672
18684
  },
@@ -18745,7 +18757,7 @@ var Methods = {
18745
18757
  * @param {Row} row 行对象
18746
18758
  */
18747
18759
  reloadTreeExpand: function reloadTreeExpand(row) {
18748
- var _this43 = this;
18760
+ var _this47 = this;
18749
18761
 
18750
18762
  var treeOpts = this.treeOpts,
18751
18763
  treeLazyLoadeds = this.treeLazyLoadeds;
@@ -18755,15 +18767,15 @@ var Methods = {
18755
18767
 
18756
18768
  if (lazy && row[hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
18757
18769
  this.clearTreeExpandLoaded(row).then(function () {
18758
- return _this43.handleAsyncTreeExpandChilds(row);
18770
+ return _this47.handleAsyncTreeExpandChilds(row);
18759
18771
  }).then(function () {
18760
18772
  if (transform) {
18761
- _this43.handleVirtualTreeToList();
18773
+ _this47.handleVirtualTreeToList();
18762
18774
 
18763
- return _this43.handleTableData();
18775
+ return _this47.handleTableData();
18764
18776
  }
18765
18777
  }).then(function () {
18766
- return _this43.recalculate();
18778
+ return _this47.recalculate();
18767
18779
  });
18768
18780
  }
18769
18781
 
@@ -18839,7 +18851,7 @@ var Methods = {
18839
18851
  }
18840
18852
  },
18841
18853
  handleAsyncTreeExpandChilds: function handleAsyncTreeExpandChilds(row) {
18842
- var _this44 = this;
18854
+ var _this48 = this;
18843
18855
 
18844
18856
  var fullAllDataRowMap = this.fullAllDataRowMap,
18845
18857
  treeExpandeds = this.treeExpandeds,
@@ -18853,7 +18865,7 @@ var Methods = {
18853
18865
  return new Promise(function (resolve) {
18854
18866
  treeLazyLoadeds.push(row);
18855
18867
  loadMethod({
18856
- $table: _this44,
18868
+ $table: _this48,
18857
18869
  row: row
18858
18870
  }).then(function (childRecords) {
18859
18871
  // 响应成功后则展开行,并将子节点挂载到该节点下
@@ -18867,19 +18879,19 @@ var Methods = {
18867
18879
  }
18868
18880
 
18869
18881
  if (childRecords) {
18870
- return _this44.loadTreeChildren(row, childRecords).then(function (childRows) {
18882
+ return _this48.loadTreeChildren(row, childRecords).then(function (childRows) {
18871
18883
  if (childRows.length && treeExpandeds.indexOf(row) === -1) {
18872
18884
  treeExpandeds.push(row);
18873
18885
  } // 如果当前节点已选中,则展开后子节点也被选中
18874
18886
 
18875
18887
 
18876
- if (!checkStrictly && _this44.isCheckedByCheckboxRow(row)) {
18877
- _this44.setCheckboxRow(childRows, true);
18888
+ if (!checkStrictly && _this48.isCheckedByCheckboxRow(row)) {
18889
+ _this48.setCheckboxRow(childRows, true);
18878
18890
  }
18879
18891
 
18880
- return _this44.$nextTick().then(function () {
18892
+ return _this48.$nextTick().then(function () {
18881
18893
  if (transform) {
18882
- return _this44.handleTableData();
18894
+ return _this48.handleTableData();
18883
18895
  }
18884
18896
  });
18885
18897
  });
@@ -18891,8 +18903,8 @@ var Methods = {
18891
18903
  return item === row;
18892
18904
  });
18893
18905
  }).finally(function () {
18894
- _this44.$nextTick().then(function () {
18895
- return _this44.recalculate();
18906
+ _this48.$nextTick().then(function () {
18907
+ return _this48.recalculate();
18896
18908
  }).then(function () {
18897
18909
  return resolve();
18898
18910
  });
@@ -18927,7 +18939,7 @@ var Methods = {
18927
18939
  * @returns
18928
18940
  */
18929
18941
  handleBaseTreeExpand: function handleBaseTreeExpand(rows, expanded) {
18930
- var _this45 = this;
18942
+ var _this49 = this;
18931
18943
 
18932
18944
  var fullAllDataRowMap = this.fullAllDataRowMap,
18933
18945
  tableFullData = this.tableFullData,
@@ -18975,7 +18987,7 @@ var Methods = {
18975
18987
  var isLoad = lazy && row[hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1; // 是否使用懒加载
18976
18988
 
18977
18989
  if (isLoad) {
18978
- result.push(_this45.handleAsyncTreeExpandChilds(row));
18990
+ result.push(_this49.handleAsyncTreeExpandChilds(row));
18979
18991
  } else {
18980
18992
  if (row[children] && row[children].length) {
18981
18993
  treeExpandeds.push(row);
@@ -18991,7 +19003,7 @@ var Methods = {
18991
19003
 
18992
19004
  if (reserve) {
18993
19005
  validRows.forEach(function (row) {
18994
- return _this45.handleTreeExpandReserve(row, expanded);
19006
+ return _this49.handleTreeExpandReserve(row, expanded);
18995
19007
  });
18996
19008
  }
18997
19009
 
@@ -19005,14 +19017,14 @@ var Methods = {
19005
19017
  * @returns
19006
19018
  */
19007
19019
  handleVirtualTreeExpand: function handleVirtualTreeExpand(rows, expanded) {
19008
- var _this46 = this;
19020
+ var _this50 = this;
19009
19021
 
19010
19022
  return this.handleBaseTreeExpand(rows, expanded).then(function () {
19011
- _this46.handleVirtualTreeToList();
19023
+ _this50.handleVirtualTreeToList();
19012
19024
 
19013
- return _this46.handleTableData();
19025
+ return _this50.handleTableData();
19014
19026
  }).then(function () {
19015
- return _this46.recalculate();
19027
+ return _this50.recalculate();
19016
19028
  });
19017
19029
  },
19018
19030
 
@@ -19057,7 +19069,7 @@ var Methods = {
19057
19069
  * 手动清空树形节点的展开状态,数据会恢复成未展开的状态
19058
19070
  */
19059
19071
  clearTreeExpand: function clearTreeExpand() {
19060
- var _this47 = this;
19072
+ var _this51 = this;
19061
19073
 
19062
19074
  var treeOpts = this.treeOpts,
19063
19075
  treeExpandeds = this.treeExpandeds,
@@ -19069,19 +19081,19 @@ var Methods = {
19069
19081
 
19070
19082
  if (reserve) {
19071
19083
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(tableFullData, function (row) {
19072
- return _this47.handleTreeExpandReserve(row, false);
19084
+ return _this51.handleTreeExpandReserve(row, false);
19073
19085
  }, treeOpts);
19074
19086
  }
19075
19087
 
19076
19088
  return this.handleTableData().then(function () {
19077
19089
  if (transform) {
19078
- _this47.handleVirtualTreeToList();
19090
+ _this51.handleVirtualTreeToList();
19079
19091
 
19080
- return _this47.handleTableData();
19092
+ return _this51.handleTableData();
19081
19093
  }
19082
19094
  }).then(function () {
19083
19095
  if (isExists) {
19084
- _this47.recalculate();
19096
+ _this51.recalculate();
19085
19097
  }
19086
19098
  });
19087
19099
  },
@@ -19211,18 +19223,18 @@ var Methods = {
19211
19223
  },
19212
19224
  // 计算可视渲染相关数据
19213
19225
  computeScrollLoad: function computeScrollLoad() {
19214
- var _this48 = this;
19226
+ var _this52 = this;
19215
19227
 
19216
19228
  return this.$nextTick().then(function () {
19217
- var sYOpts = _this48.sYOpts,
19218
- sXOpts = _this48.sXOpts,
19219
- scrollXLoad = _this48.scrollXLoad,
19220
- scrollYLoad = _this48.scrollYLoad,
19221
- scrollXStore = _this48.scrollXStore,
19222
- scrollYStore = _this48.scrollYStore; // 计算 X 逻辑
19229
+ var sYOpts = _this52.sYOpts,
19230
+ sXOpts = _this52.sXOpts,
19231
+ scrollXLoad = _this52.scrollXLoad,
19232
+ scrollYLoad = _this52.scrollYLoad,
19233
+ scrollXStore = _this52.scrollXStore,
19234
+ scrollYStore = _this52.scrollYStore; // 计算 X 逻辑
19223
19235
 
19224
19236
  if (scrollXLoad) {
19225
- var _computeVirtualX3 = computeVirtualX(_this48),
19237
+ var _computeVirtualX3 = computeVirtualX(_this52),
19226
19238
  visibleXSize = _computeVirtualX3.visibleSize;
19227
19239
 
19228
19240
  var offsetXSize = sXOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(sXOpts.oSize) : browse.msie ? 10 : browse.edge ? 5 : 0;
@@ -19230,13 +19242,13 @@ var Methods = {
19230
19242
  scrollXStore.visibleSize = visibleXSize;
19231
19243
  scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
19232
19244
 
19233
- _this48.updateScrollXData();
19245
+ _this52.updateScrollXData();
19234
19246
  } else {
19235
- _this48.updateScrollXSpace();
19247
+ _this52.updateScrollXSpace();
19236
19248
  } // 计算 Y 逻辑
19237
19249
 
19238
19250
 
19239
- var _computeVirtualY = computeVirtualY(_this48),
19251
+ var _computeVirtualY = computeVirtualY(_this52),
19240
19252
  rowHeight = _computeVirtualY.rowHeight,
19241
19253
  visibleYSize = _computeVirtualY.visibleSize;
19242
19254
 
@@ -19248,14 +19260,14 @@ var Methods = {
19248
19260
  scrollYStore.visibleSize = visibleYSize;
19249
19261
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
19250
19262
 
19251
- _this48.updateScrollYData();
19263
+ _this52.updateScrollYData();
19252
19264
  } else {
19253
- _this48.updateScrollYSpace();
19265
+ _this52.updateScrollYSpace();
19254
19266
  }
19255
19267
 
19256
- _this48.rowHeight = rowHeight;
19268
+ _this52.rowHeight = rowHeight;
19257
19269
 
19258
- _this48.$nextTick(_this48.updateStyle);
19270
+ _this52.$nextTick(_this52.updateStyle);
19259
19271
  });
19260
19272
  },
19261
19273
  handleTableColumn: function handleTableColumn() {
@@ -19265,13 +19277,13 @@ var Methods = {
19265
19277
  this.tableColumn = scrollXLoad ? visibleColumn.slice(scrollXStore.startIndex, scrollXStore.endIndex) : visibleColumn.slice(0);
19266
19278
  },
19267
19279
  updateScrollXData: function updateScrollXData() {
19268
- var _this49 = this;
19280
+ var _this53 = this;
19269
19281
 
19270
19282
  // this.tableColumn = []
19271
19283
  this.$nextTick(function () {
19272
- _this49.handleTableColumn();
19284
+ _this53.handleTableColumn();
19273
19285
 
19274
- _this49.updateScrollXSpace();
19286
+ _this53.updateScrollXSpace();
19275
19287
  });
19276
19288
  },
19277
19289
  // 更新横向 X 可视渲染上下剩余空间大小
@@ -19328,13 +19340,13 @@ var Methods = {
19328
19340
  }
19329
19341
  },
19330
19342
  updateScrollYData: function updateScrollYData() {
19331
- var _this50 = this;
19343
+ var _this54 = this;
19332
19344
 
19333
19345
  // this.tableData = []
19334
19346
  this.$nextTick(function () {
19335
- _this50.handleTableData();
19347
+ _this54.handleTableData();
19336
19348
 
19337
- _this50.updateScrollYSpace();
19349
+ _this54.updateScrollYSpace();
19338
19350
  });
19339
19351
  },
19340
19352
  // 更新纵向 Y 可视渲染上下剩余空间大小
@@ -19381,7 +19393,7 @@ var Methods = {
19381
19393
  * @param {Number} scrollTop 上距离
19382
19394
  */
19383
19395
  scrollTo: function scrollTo(scrollLeft, scrollTop) {
19384
- var _this51 = this;
19396
+ var _this55 = this;
19385
19397
 
19386
19398
  var $refs = this.$refs;
19387
19399
  var tableBody = $refs.tableBody,
@@ -19402,7 +19414,7 @@ var Methods = {
19402
19414
  if (this.scrollXLoad || this.scrollYLoad) {
19403
19415
  return new Promise(function (resolve) {
19404
19416
  return setTimeout(function () {
19405
- return resolve(_this51.$nextTick());
19417
+ return resolve(_this55.$nextTick());
19406
19418
  }, 50);
19407
19419
  });
19408
19420
  }
@@ -19453,7 +19465,7 @@ var Methods = {
19453
19465
  * @param {Row} row 行对象
19454
19466
  */
19455
19467
  scrollToTreeRow: function scrollToTreeRow(row) {
19456
- var _this52 = this;
19468
+ var _this56 = this;
19457
19469
 
19458
19470
  var tableFullData = this.tableFullData,
19459
19471
  treeConfig = this.treeConfig,
@@ -19468,15 +19480,15 @@ var Methods = {
19468
19480
  if (matchObj) {
19469
19481
  var nodes = matchObj.nodes;
19470
19482
  nodes.forEach(function (row, index) {
19471
- if (index < nodes.length - 1 && !_this52.isTreeExpandByRow(row)) {
19472
- rests.push(_this52.setTreeExpand(row, true));
19483
+ if (index < nodes.length - 1 && !_this56.isTreeExpandByRow(row)) {
19484
+ rests.push(_this56.setTreeExpand(row, true));
19473
19485
  }
19474
19486
  });
19475
19487
  }
19476
19488
  }
19477
19489
 
19478
19490
  return Promise.all(rests).then(function () {
19479
- return rowToVisible(_this52, row);
19491
+ return rowToVisible(_this56, row);
19480
19492
  });
19481
19493
  },
19482
19494
 
@@ -19540,29 +19552,29 @@ var Methods = {
19540
19552
  * 如果单元格配置了校验规则,则会进行校验
19541
19553
  */
19542
19554
  updateStatus: function updateStatus(scope, cellValue) {
19543
- var _this53 = this;
19555
+ var _this57 = this;
19544
19556
 
19545
19557
  var customVal = !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isUndefined(cellValue);
19546
19558
  return this.$nextTick().then(function () {
19547
- var $refs = _this53.$refs,
19548
- editRules = _this53.editRules,
19549
- validStore = _this53.validStore;
19559
+ var $refs = _this57.$refs,
19560
+ editRules = _this57.editRules,
19561
+ validStore = _this57.validStore;
19550
19562
 
19551
19563
  if (scope && $refs.tableBody && editRules) {
19552
19564
  var row = scope.row,
19553
19565
  column = scope.column;
19554
19566
  var type = 'change';
19555
19567
 
19556
- if (_this53.hasCellRules(type, row, column)) {
19557
- var cell = _this53.getCell(row, column);
19568
+ if (_this57.hasCellRules(type, row, column)) {
19569
+ var cell = _this57.getCell(row, column);
19558
19570
 
19559
19571
  if (cell) {
19560
- return _this53.validCellRules(type, row, column, cellValue).then(function () {
19572
+ return _this57.validCellRules(type, row, column, cellValue).then(function () {
19561
19573
  if (customVal && validStore.visible) {
19562
19574
  methods_setCellValue(row, column, cellValue);
19563
19575
  }
19564
19576
 
19565
- _this53.clearValidate();
19577
+ _this57.clearValidate();
19566
19578
  }).catch(function (_ref8) {
19567
19579
  var rule = _ref8.rule;
19568
19580
 
@@ -19570,7 +19582,7 @@ var Methods = {
19570
19582
  methods_setCellValue(row, column, cellValue);
19571
19583
  }
19572
19584
 
19573
- _this53.showValidTooltip({
19585
+ _this57.showValidTooltip({
19574
19586
  rule: rule,
19575
19587
  row: row,
19576
19588
  column: column,
@@ -19591,7 +19603,7 @@ var Methods = {
19591
19603
  * @param {TableMergeConfig[]} merges { row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }
19592
19604
  */
19593
19605
  setMergeCells: function setMergeCells(merges) {
19594
- var _this54 = this;
19606
+ var _this58 = this;
19595
19607
 
19596
19608
  if (this.spanMethod) {
19597
19609
  errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
@@ -19599,7 +19611,7 @@ var Methods = {
19599
19611
 
19600
19612
  setMerges(this, merges, this.mergeList, this.afterFullData);
19601
19613
  return this.$nextTick().then(function () {
19602
- return _this54.updateCellAreas();
19614
+ return _this58.updateCellAreas();
19603
19615
  });
19604
19616
  },
19605
19617
 
@@ -19608,7 +19620,7 @@ var Methods = {
19608
19620
  * @param {TableMergeConfig[]} merges 多个或数组 [{row:Row|number, col:ColumnInfo|number}]
19609
19621
  */
19610
19622
  removeMergeCells: function removeMergeCells(merges) {
19611
- var _this55 = this;
19623
+ var _this59 = this;
19612
19624
 
19613
19625
  if (this.spanMethod) {
19614
19626
  errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
@@ -19616,7 +19628,7 @@ var Methods = {
19616
19628
 
19617
19629
  var rest = removeMerges(this, merges, this.mergeList, this.afterFullData);
19618
19630
  return this.$nextTick().then(function () {
19619
- _this55.updateCellAreas();
19631
+ _this59.updateCellAreas();
19620
19632
 
19621
19633
  return rest;
19622
19634
  });
@@ -19640,7 +19652,7 @@ var Methods = {
19640
19652
  this.setMergeFooterItems(this.mergeFooterItems);
19641
19653
  },
19642
19654
  setMergeFooterItems: function setMergeFooterItems(merges) {
19643
- var _this56 = this;
19655
+ var _this60 = this;
19644
19656
 
19645
19657
  if (this.footerSpanMethod) {
19646
19658
  errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
@@ -19648,11 +19660,11 @@ var Methods = {
19648
19660
 
19649
19661
  setMerges(this, merges, this.mergeFooterList, null);
19650
19662
  return this.$nextTick().then(function () {
19651
- return _this56.updateCellAreas();
19663
+ return _this60.updateCellAreas();
19652
19664
  });
19653
19665
  },
19654
19666
  removeMergeFooterItems: function removeMergeFooterItems(merges) {
19655
- var _this57 = this;
19667
+ var _this61 = this;
19656
19668
 
19657
19669
  if (this.footerSpanMethod) {
19658
19670
  errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
@@ -19660,7 +19672,7 @@ var Methods = {
19660
19672
 
19661
19673
  var rest = removeMerges(this, merges, this.mergeFooterList, null);
19662
19674
  return this.$nextTick().then(function () {
19663
- _this57.updateCellAreas();
19675
+ _this61.updateCellAreas();
19664
19676
 
19665
19677
  return rest;
19666
19678
  });
@@ -19792,10 +19804,10 @@ var Methods = {
19792
19804
  return cellLabel;
19793
19805
  },
19794
19806
  findRowIndexOf: function findRowIndexOf(list, row) {
19795
- var _this58 = this;
19807
+ var _this62 = this;
19796
19808
 
19797
19809
  return row ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findIndexOf(list, function (item) {
19798
- return _this58.eqRow(item, row);
19810
+ return _this62.eqRow(item, row);
19799
19811
  }) : -1;
19800
19812
  },
19801
19813
  eqRow: function eqRow(row1, row2) {