vxe-table 3.4.14-beta.1 → 3.4.14-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.
package/lib/index.umd.js CHANGED
@@ -13278,14 +13278,34 @@ var Methods = {
13278
13278
  },
13279
13279
 
13280
13280
  /**
13281
- * 手动处理数据
13281
+ * 手动处理数据,用于手动排序与筛选
13282
13282
  * 对于手动更改了排序、筛选...等条件后需要重新处理数据时可能会用到
13283
13283
  */
13284
13284
  updateData: function updateData() {
13285
- return this.handleTableData(true).then(this.updateFooter).then(this.recalculate);
13285
+ var _this2 = this;
13286
+
13287
+ var scrollXLoad = this.scrollXLoad,
13288
+ scrollYLoad = this.scrollYLoad;
13289
+ return this.handleTableData(true).then(function () {
13290
+ _this2.updateFooter();
13291
+
13292
+ if (scrollXLoad || scrollYLoad) {
13293
+ if (scrollXLoad) {
13294
+ _this2.updateScrollXSpace();
13295
+ }
13296
+
13297
+ if (scrollYLoad) {
13298
+ _this2.updateScrollYSpace();
13299
+ }
13300
+
13301
+ return _this2.refreshScroll();
13302
+ }
13303
+ }).then(function () {
13304
+ return _this2.recalculate();
13305
+ });
13286
13306
  },
13287
13307
  handleTableData: function handleTableData(force) {
13288
- var _this2 = this;
13308
+ var _this3 = this;
13289
13309
 
13290
13310
  var scrollYLoad = this.scrollYLoad,
13291
13311
  scrollYStore = this.scrollYStore,
@@ -13302,7 +13322,7 @@ var Methods = {
13302
13322
 
13303
13323
  var tableData = scrollYLoad ? fullList.slice(scrollYStore.startIndex, scrollYStore.endIndex) : fullList.slice(0);
13304
13324
  tableData.forEach(function (row, $index) {
13305
- var rowid = methods_getRowid(_this2, row);
13325
+ var rowid = methods_getRowid(_this3, row);
13306
13326
  var rest = fullDataRowIdData[rowid];
13307
13327
 
13308
13328
  if (rest) {
@@ -13327,7 +13347,7 @@ var Methods = {
13327
13347
  * @param {Array} datas 数据
13328
13348
  */
13329
13349
  loadTableData: function loadTableData(datas) {
13330
- var _this3 = this;
13350
+ var _this4 = this;
13331
13351
 
13332
13352
  var keepSource = this.keepSource,
13333
13353
  treeConfig = this.treeConfig,
@@ -13390,31 +13410,31 @@ var Methods = {
13390
13410
  this.handleTableData(true);
13391
13411
  this.updateFooter();
13392
13412
  return this.$nextTick().then(function () {
13393
- _this3.updateHeight();
13413
+ _this4.updateHeight();
13394
13414
 
13395
- _this3.updateStyle();
13415
+ _this4.updateStyle();
13396
13416
  }).then(function () {
13397
- _this3.computeScrollLoad();
13417
+ _this4.computeScrollLoad();
13398
13418
  }).then(function () {
13399
13419
  // 是否启用了虚拟滚动
13400
13420
  if (sYLoad) {
13401
13421
  scrollYStore.endIndex = scrollYStore.visibleSize;
13402
13422
  }
13403
13423
 
13404
- _this3.handleReserveStatus();
13424
+ _this4.handleReserveStatus();
13405
13425
 
13406
- _this3.checkSelectionStatus();
13426
+ _this4.checkSelectionStatus();
13407
13427
 
13408
13428
  return new Promise(function (resolve) {
13409
- _this3.$nextTick().then(function () {
13410
- return _this3.recalculate();
13429
+ _this4.$nextTick().then(function () {
13430
+ return _this4.recalculate();
13411
13431
  }).then(function () {
13412
13432
  // 是否变更虚拟滚动
13413
13433
  if (oldScrollYLoad === sYLoad) {
13414
- restoreScrollLocation(_this3, lastScrollLeft, lastScrollTop).then(resolve);
13434
+ restoreScrollLocation(_this4, lastScrollLeft, lastScrollTop).then(resolve);
13415
13435
  } else {
13416
13436
  setTimeout(function () {
13417
- return restoreScrollLocation(_this3, lastScrollLeft, lastScrollTop).then(resolve);
13437
+ return restoreScrollLocation(_this4, lastScrollLeft, lastScrollTop).then(resolve);
13418
13438
  });
13419
13439
  }
13420
13440
  });
@@ -13427,23 +13447,23 @@ var Methods = {
13427
13447
  * @param {Array} datas 数据
13428
13448
  */
13429
13449
  loadData: function loadData(datas) {
13430
- var _this4 = this;
13450
+ var _this5 = this;
13431
13451
 
13432
13452
  var inited = this.inited,
13433
13453
  initStatus = this.initStatus;
13434
13454
  return this.loadTableData(datas).then(function () {
13435
- _this4.inited = true;
13436
- _this4.initStatus = true;
13455
+ _this5.inited = true;
13456
+ _this5.initStatus = true;
13437
13457
 
13438
13458
  if (!initStatus) {
13439
- _this4.handleLoadDefaults();
13459
+ _this5.handleLoadDefaults();
13440
13460
  }
13441
13461
 
13442
13462
  if (!inited) {
13443
- _this4.handleInitDefaults();
13463
+ _this5.handleInitDefaults();
13444
13464
  }
13445
13465
 
13446
- return _this4.recalculate();
13466
+ return _this5.recalculate();
13447
13467
  });
13448
13468
  },
13449
13469
 
@@ -13452,21 +13472,21 @@ var Methods = {
13452
13472
  * @param {Array} datas 数据
13453
13473
  */
13454
13474
  reloadData: function reloadData(datas) {
13455
- var _this5 = this;
13475
+ var _this6 = this;
13456
13476
 
13457
13477
  var inited = this.inited;
13458
13478
  return this.clearAll().then(function () {
13459
- _this5.inited = true;
13460
- _this5.initStatus = true;
13461
- return _this5.loadTableData(datas);
13479
+ _this6.inited = true;
13480
+ _this6.initStatus = true;
13481
+ return _this6.loadTableData(datas);
13462
13482
  }).then(function () {
13463
- _this5.handleLoadDefaults();
13483
+ _this6.handleLoadDefaults();
13464
13484
 
13465
13485
  if (!inited) {
13466
- _this5.handleInitDefaults();
13486
+ _this6.handleInitDefaults();
13467
13487
  }
13468
13488
 
13469
- return _this5.recalculate();
13489
+ return _this6.recalculate();
13470
13490
  });
13471
13491
  },
13472
13492
 
@@ -13511,10 +13531,10 @@ var Methods = {
13511
13531
  * @param {ColumnInfo} columns 列配置
13512
13532
  */
13513
13533
  loadColumn: function loadColumn(columns) {
13514
- var _this6 = this;
13534
+ var _this7 = this;
13515
13535
 
13516
13536
  var collectColumn = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.mapTree(columns, function (column) {
13517
- return src_cell.createColumn(_this6, column);
13537
+ return src_cell.createColumn(_this7, column);
13518
13538
  }, {
13519
13539
  children: 'children'
13520
13540
  });
@@ -13527,14 +13547,14 @@ var Methods = {
13527
13547
  * @param {ColumnInfo} columns 列配置
13528
13548
  */
13529
13549
  reloadColumn: function reloadColumn(columns) {
13530
- var _this7 = this;
13550
+ var _this8 = this;
13531
13551
 
13532
13552
  return this.clearAll().then(function () {
13533
- return _this7.loadColumn(columns);
13553
+ return _this8.loadColumn(columns);
13534
13554
  });
13535
13555
  },
13536
13556
  handleColumn: function handleColumn(collectColumn) {
13537
- var _this8 = this;
13557
+ var _this9 = this;
13538
13558
 
13539
13559
  this.collectColumn = collectColumn;
13540
13560
  var tableFullColumn = methods_getColumnList(collectColumn);
@@ -13542,8 +13562,8 @@ var Methods = {
13542
13562
  this.cacheColumnMap();
13543
13563
  this.restoreCustomStorage();
13544
13564
  this.parseColumns().then(function () {
13545
- if (_this8.scrollXLoad) {
13546
- _this8.loadScrollXData(true);
13565
+ if (_this9.scrollXLoad) {
13566
+ _this9.loadScrollXData(true);
13547
13567
  }
13548
13568
  });
13549
13569
  this.clearMergeCells();
@@ -13553,14 +13573,14 @@ var Methods = {
13553
13573
  if (false) {}
13554
13574
 
13555
13575
  return this.$nextTick().then(function () {
13556
- if (_this8.$toolbar) {
13557
- _this8.$toolbar.syncUpdate({
13576
+ if (_this9.$toolbar) {
13577
+ _this9.$toolbar.syncUpdate({
13558
13578
  collectColumn: collectColumn,
13559
- $table: _this8
13579
+ $table: _this9
13560
13580
  });
13561
13581
  }
13562
13582
 
13563
- return _this8.recalculate();
13583
+ return _this9.recalculate();
13564
13584
  });
13565
13585
  },
13566
13586
 
@@ -13569,7 +13589,7 @@ var Methods = {
13569
13589
  * 牺牲数据组装的耗时,用来换取使用过程中的流畅
13570
13590
  */
13571
13591
  cacheRowMap: function cacheRowMap(source) {
13572
- var _this9 = this;
13592
+ var _this10 = this;
13573
13593
 
13574
13594
  var treeConfig = this.treeConfig,
13575
13595
  treeOpts = this.treeOpts,
@@ -13583,7 +13603,7 @@ var Methods = {
13583
13603
  var isLazy = treeConfig && treeOpts.lazy;
13584
13604
 
13585
13605
  var handleCache = function handleCache(row, index, items, path, parent, nodes) {
13586
- var rowid = methods_getRowid(_this9, row);
13606
+ var rowid = methods_getRowid(_this10, row);
13587
13607
  var seq = treeConfig && path ? toTreePathSeq(path) : index + 1;
13588
13608
  var level = nodes ? nodes.length - 1 : 0;
13589
13609
 
@@ -13632,7 +13652,7 @@ var Methods = {
13632
13652
  }
13633
13653
  },
13634
13654
  loadTreeChildren: function loadTreeChildren(row, childRecords) {
13635
- var _this10 = this;
13655
+ var _this11 = this;
13636
13656
 
13637
13657
  var keepSource = this.keepSource,
13638
13658
  tableSourceData = this.tableSourceData,
@@ -13648,9 +13668,9 @@ var Methods = {
13648
13668
  var parentLevel = rest ? rest.level : 0;
13649
13669
  return this.createData(childRecords).then(function (rows) {
13650
13670
  if (keepSource) {
13651
- var rowid = methods_getRowid(_this10, row);
13671
+ var rowid = methods_getRowid(_this11, row);
13652
13672
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableSourceData, function (item) {
13653
- return rowid === methods_getRowid(_this10, item);
13673
+ return rowid === methods_getRowid(_this11, item);
13654
13674
  }, treeOpts);
13655
13675
 
13656
13676
  if (matchObj) {
@@ -13659,7 +13679,7 @@ var Methods = {
13659
13679
  }
13660
13680
 
13661
13681
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(rows, function (childRow, index, items, path, parent, nodes) {
13662
- var rowid = methods_getRowid(_this10, childRow);
13682
+ var rowid = methods_getRowid(_this11, childRow);
13663
13683
  var rest = {
13664
13684
  row: childRow,
13665
13685
  rowid: rowid,
@@ -13682,7 +13702,7 @@ var Methods = {
13682
13702
  row[mapChildren] = rows;
13683
13703
  }
13684
13704
 
13685
- _this10.updateAfterDataIndex();
13705
+ _this11.updateAfterDataIndex();
13686
13706
 
13687
13707
  return rows;
13688
13708
  });
@@ -13693,7 +13713,7 @@ var Methods = {
13693
13713
  * 牺牲数据组装的耗时,用来换取使用过程中的流畅
13694
13714
  */
13695
13715
  cacheColumnMap: function cacheColumnMap() {
13696
- var _this11 = this;
13716
+ var _this12 = this;
13697
13717
 
13698
13718
  var tableFullColumn = this.tableFullColumn,
13699
13719
  collectColumn = this.collectColumn,
@@ -13987,13 +14007,13 @@ var Methods = {
13987
14007
  * @param {Array} records 新数据
13988
14008
  */
13989
14009
  createData: function createData(records) {
13990
- var _this12 = this;
14010
+ var _this13 = this;
13991
14011
 
13992
14012
  var treeConfig = this.treeConfig,
13993
14013
  treeOpts = this.treeOpts;
13994
14014
 
13995
14015
  var handleRrecord = function handleRrecord(record) {
13996
- return _this12.defineField(Object.assign({}, record));
14016
+ return _this13.defineField(Object.assign({}, record));
13997
14017
  };
13998
14018
 
13999
14019
  var rows = treeConfig ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.mapTree(records, handleRrecord, treeOpts) : records.map(handleRrecord);
@@ -14008,7 +14028,7 @@ var Methods = {
14008
14028
  * @param {Array/Object} records 新数据
14009
14029
  */
14010
14030
  createRow: function createRow(records) {
14011
- var _this13 = this;
14031
+ var _this14 = this;
14012
14032
 
14013
14033
  var isArr = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(records);
14014
14034
 
@@ -14017,7 +14037,7 @@ var Methods = {
14017
14037
  }
14018
14038
 
14019
14039
  return this.$nextTick().then(function () {
14020
- return _this13.createData(records).then(function (rows) {
14040
+ return _this14.createData(records).then(function (rows) {
14021
14041
  return isArr ? rows : rows[0];
14022
14042
  });
14023
14043
  });
@@ -14031,7 +14051,7 @@ var Methods = {
14031
14051
  * 如果还额外传了 field 则还原指定的单元格数据
14032
14052
  */
14033
14053
  revertData: function revertData(rows, field) {
14034
- var _this14 = this;
14054
+ var _this15 = this;
14035
14055
 
14036
14056
  var keepSource = this.keepSource,
14037
14057
  tableSourceData = this.tableSourceData,
@@ -14055,8 +14075,8 @@ var Methods = {
14055
14075
 
14056
14076
  if (targetRows.length) {
14057
14077
  targetRows.forEach(function (row) {
14058
- if (!_this14.isInsertByRow(row)) {
14059
- var rowIndex = _this14.getRowIndex(row);
14078
+ if (!_this15.isInsertByRow(row)) {
14079
+ var rowIndex = _this15.getRowIndex(row);
14060
14080
 
14061
14081
  if (treeConfig && rowIndex === -1) {
14062
14082
  throw new Error(UtilTools.getLog('vxe.error.noTree', ['revertData']));
@@ -14140,7 +14160,7 @@ var Methods = {
14140
14160
  * @param {String} field 字段名
14141
14161
  */
14142
14162
  isUpdateByRow: function isUpdateByRow(row, field) {
14143
- var _this15 = this;
14163
+ var _this16 = this;
14144
14164
 
14145
14165
  var visibleColumn = this.visibleColumn,
14146
14166
  keepSource = this.keepSource,
@@ -14160,7 +14180,7 @@ var Methods = {
14160
14180
  if (treeConfig) {
14161
14181
  var children = treeOpts.children;
14162
14182
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableSourceData, function (item) {
14163
- return rowid === methods_getRowid(_this15, item);
14183
+ return rowid === methods_getRowid(_this16, item);
14164
14184
  }, treeOpts);
14165
14185
  row = Object.assign({}, row, _defineProperty({}, children, null));
14166
14186
 
@@ -14322,7 +14342,7 @@ var Methods = {
14322
14342
  * 如果存在筛选条件,继续处理
14323
14343
  */
14324
14344
  updateAfterFullData: function updateAfterFullData() {
14325
- var _this16 = this;
14345
+ var _this17 = this;
14326
14346
 
14327
14347
  var tableFullColumn = this.tableFullColumn,
14328
14348
  tableFullData = this.tableFullData,
@@ -14399,7 +14419,7 @@ var Methods = {
14399
14419
  cellValue: cellValue,
14400
14420
  row: row,
14401
14421
  column: column,
14402
- $table: _this16
14422
+ $table: _this17
14403
14423
  });
14404
14424
  });
14405
14425
  } else if (compFilterMethod) {
@@ -14410,7 +14430,7 @@ var Methods = {
14410
14430
  cellValue: cellValue,
14411
14431
  row: row,
14412
14432
  column: column,
14413
- $table: _this16
14433
+ $table: _this17
14414
14434
  });
14415
14435
  });
14416
14436
  } else if (allFilterMethod) {
@@ -14429,7 +14449,7 @@ var Methods = {
14429
14449
  cellValue: cellValue,
14430
14450
  row: row,
14431
14451
  column: column,
14432
- $table: _this16
14452
+ $table: _this17
14433
14453
  });
14434
14454
  });
14435
14455
  }
@@ -14482,7 +14502,7 @@ var Methods = {
14482
14502
  tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableTree, orderColumns.map(function (_ref2) {
14483
14503
  var column = _ref2.column,
14484
14504
  order = _ref2.order;
14485
- return [getOrderField(_this16, column), order];
14505
+ return [getOrderField(_this17, column), order];
14486
14506
  }));
14487
14507
  }
14488
14508
 
@@ -14505,7 +14525,7 @@ var Methods = {
14505
14525
  tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableData, orderColumns.map(function (_ref3) {
14506
14526
  var column = _ref3.column,
14507
14527
  order = _ref3.order;
14508
- return [getOrderField(_this16, column), order];
14528
+ return [getOrderField(_this17, column), order];
14509
14529
  }));
14510
14530
  } else {
14511
14531
  // 兼容 v2,在 v4 中废弃, sortBy 不能为数组
@@ -14520,7 +14540,7 @@ var Methods = {
14520
14540
  tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableData, sortByConfs || [firstOrderColumn].map(function (_ref4) {
14521
14541
  var column = _ref4.column,
14522
14542
  order = _ref4.order;
14523
- return [getOrderField(_this16, column), order];
14543
+ return [getOrderField(_this17, column), order];
14524
14544
  }));
14525
14545
  }
14526
14546
  }
@@ -14539,7 +14559,7 @@ var Methods = {
14539
14559
  * 对渲染中的数据提前解析序号及索引。牺牲提前编译耗时换取渲染中额外损耗,使运行时更加流畅
14540
14560
  */
14541
14561
  updateAfterDataIndex: function updateAfterDataIndex() {
14542
- var _this17 = this;
14562
+ var _this18 = this;
14543
14563
 
14544
14564
  var treeConfig = this.treeConfig,
14545
14565
  afterFullData = this.afterFullData,
@@ -14550,7 +14570,7 @@ var Methods = {
14550
14570
 
14551
14571
  if (treeConfig) {
14552
14572
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterTreeFullData, function (row, index, items, path) {
14553
- var rowid = methods_getRowid(_this17, row);
14573
+ var rowid = methods_getRowid(_this18, row);
14554
14574
  var allrest = fullAllDataRowIdData[rowid];
14555
14575
  var seq = path.map(function (num, i) {
14556
14576
  return i % 2 === 0 ? Number(num) + 1 : '.';
@@ -14579,7 +14599,7 @@ var Methods = {
14579
14599
  });
14580
14600
  } else {
14581
14601
  afterFullData.forEach(function (row, index) {
14582
- var rowid = methods_getRowid(_this17, row);
14602
+ var rowid = methods_getRowid(_this18, row);
14583
14603
  var allrest = fullAllDataRowIdData[rowid];
14584
14604
  var seq = index + 1;
14585
14605
 
@@ -14670,7 +14690,7 @@ var Methods = {
14670
14690
  * 默认执行一次,除非被重置
14671
14691
  */
14672
14692
  handleLoadDefaults: function handleLoadDefaults() {
14673
- var _this18 = this;
14693
+ var _this19 = this;
14674
14694
 
14675
14695
  if (this.checkboxConfig) {
14676
14696
  this.handleDefaultSelectionChecked();
@@ -14697,7 +14717,7 @@ var Methods = {
14697
14717
  }
14698
14718
 
14699
14719
  this.$nextTick(function () {
14700
- return setTimeout(_this18.recalculate);
14720
+ return setTimeout(_this19.recalculate);
14701
14721
  });
14702
14722
  },
14703
14723
 
@@ -14947,12 +14967,12 @@ var Methods = {
14947
14967
  * 刷新列配置
14948
14968
  */
14949
14969
  refreshColumn: function refreshColumn() {
14950
- var _this19 = this;
14970
+ var _this20 = this;
14951
14971
 
14952
14972
  return this.parseColumns().then(function () {
14953
- return _this19.refreshScroll();
14973
+ return _this20.refreshScroll();
14954
14974
  }).then(function () {
14955
- return _this19.recalculate();
14975
+ return _this20.recalculate();
14956
14976
  });
14957
14977
  },
14958
14978
 
@@ -14961,7 +14981,7 @@ var Methods = {
14961
14981
  * 将固定的列左边、右边分别靠边
14962
14982
  */
14963
14983
  parseColumns: function parseColumns() {
14964
- var _this20 = this;
14984
+ var _this21 = this;
14965
14985
 
14966
14986
  var leftList = [];
14967
14987
  var centerList = [];
@@ -15068,11 +15088,11 @@ var Methods = {
15068
15088
  this.visibleColumn = visibleColumn;
15069
15089
  this.handleTableColumn();
15070
15090
  return this.updateFooter().then(function () {
15071
- return _this20.recalculate();
15091
+ return _this21.recalculate();
15072
15092
  }).then(function () {
15073
- _this20.updateCellAreas();
15093
+ _this21.updateCellAreas();
15074
15094
 
15075
- return _this20.recalculate();
15095
+ return _this21.recalculate();
15076
15096
  });
15077
15097
  },
15078
15098
 
@@ -15156,7 +15176,7 @@ var Methods = {
15156
15176
  * 支持 width=? width=?px width=?% min-width=? min-width=?px min-width=?%
15157
15177
  */
15158
15178
  recalculate: function recalculate(refull) {
15159
- var _this21 = this;
15179
+ var _this22 = this;
15160
15180
 
15161
15181
  var $refs = this.$refs;
15162
15182
  var tableBody = $refs.tableBody,
@@ -15172,9 +15192,9 @@ var Methods = {
15172
15192
  if (refull === true) {
15173
15193
  // 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
15174
15194
  return this.computeScrollLoad().then(function () {
15175
- _this21.autoCellWidth(headerElem, bodyElem, footerElem);
15195
+ _this22.autoCellWidth(headerElem, bodyElem, footerElem);
15176
15196
 
15177
- return _this21.computeScrollLoad();
15197
+ return _this22.computeScrollLoad();
15178
15198
  });
15179
15199
  }
15180
15200
  }
@@ -15322,7 +15342,7 @@ var Methods = {
15322
15342
  this.customMaxHeight = methods_calcHeight(this, 'maxHeight');
15323
15343
  },
15324
15344
  updateStyle: function updateStyle() {
15325
- var _this22 = this;
15345
+ var _this23 = this;
15326
15346
 
15327
15347
  var $refs = this.$refs,
15328
15348
  isGroup = this.isGroup,
@@ -15426,7 +15446,7 @@ var Methods = {
15426
15446
 
15427
15447
  if (isGroup && listElem) {
15428
15448
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.arrayEach(listElem.querySelectorAll('.col--group'), function (thElem) {
15429
- var colNode = _this22.getColumnNode(thElem);
15449
+ var colNode = _this23.getColumnNode(thElem);
15430
15450
 
15431
15451
  if (colNode) {
15432
15452
  var column = colNode.item;
@@ -15607,10 +15627,10 @@ var Methods = {
15607
15627
 
15608
15628
  if (cellElem) {
15609
15629
  if (colspan > 1) {
15610
- var columnIndex = _this22.getColumnIndex(column);
15630
+ var columnIndex = _this23.getColumnIndex(column);
15611
15631
 
15612
15632
  for (var _index = 1; _index < colspan; _index++) {
15613
- var nextColumn = _this22.getColumns(columnIndex + _index);
15633
+ var nextColumn = _this23.getColumns(columnIndex + _index);
15614
15634
 
15615
15635
  if (nextColumn) {
15616
15636
  colWidth += nextColumn.renderWidth;
@@ -15660,15 +15680,15 @@ var Methods = {
15660
15680
  }
15661
15681
  },
15662
15682
  preventEvent: function preventEvent(evnt, type, args, next, end) {
15663
- var _this23 = this;
15683
+ var _this24 = this;
15664
15684
 
15665
15685
  var evntList = v_x_e_table.interceptor.get(type);
15666
15686
  var rest;
15667
15687
 
15668
15688
  if (!evntList.some(function (func) {
15669
15689
  return func(Object.assign({
15670
- $grid: _this23.$xegrid,
15671
- $table: _this23,
15690
+ $grid: _this24.$xegrid,
15691
+ $table: _this24,
15672
15692
  $event: evnt
15673
15693
  }, args)) === false;
15674
15694
  })) {
@@ -15688,7 +15708,7 @@ var Methods = {
15688
15708
  * 全局按下事件处理
15689
15709
  */
15690
15710
  handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
15691
- var _this24 = this;
15711
+ var _this25 = this;
15692
15712
 
15693
15713
  var $el = this.$el,
15694
15714
  $refs = this.$refs,
@@ -15749,7 +15769,7 @@ var Methods = {
15749
15769
  } // 如果固定了高度且点击了行之外的空白处,则清除激活状态
15750
15770
 
15751
15771
 
15752
- if (!isClearActived && _this24.height && !_this24.overflowY) {
15772
+ if (!isClearActived && _this25.height && !_this25.overflowY) {
15753
15773
  var bodyWrapperElem = evnt.target;
15754
15774
 
15755
15775
  if (methods_hasClass(bodyWrapperElem, 'vxe-table--body-wrapper')) {
@@ -15760,7 +15780,7 @@ var Methods = {
15760
15780
  if (isClearActived || // 如果点击了当前表格之外
15761
15781
  !getEventTargetNode(evnt, $el).flag) {
15762
15782
  setTimeout(function () {
15763
- return _this24.clearActived(evnt);
15783
+ return _this25.clearActived(evnt);
15764
15784
  });
15765
15785
  }
15766
15786
  });
@@ -15774,9 +15794,9 @@ var Methods = {
15774
15794
 
15775
15795
  if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
15776
15796
  this.preventEvent(evnt, 'event.clearAreas', {}, function () {
15777
- _this24.clearCellAreas();
15797
+ _this25.clearCellAreas();
15778
15798
 
15779
- _this24.clearCopyCellArea();
15799
+ _this25.clearCopyCellArea();
15780
15800
  });
15781
15801
  }
15782
15802
  }
@@ -15811,7 +15831,7 @@ var Methods = {
15811
15831
  * 表格键盘事件
15812
15832
  */
15813
15833
  keydownEvent: function keydownEvent(evnt) {
15814
- var _this25 = this;
15834
+ var _this26 = this;
15815
15835
 
15816
15836
  var filterStore = this.filterStore,
15817
15837
  ctxMenuStore = this.ctxMenuStore,
@@ -15826,33 +15846,33 @@ var Methods = {
15826
15846
 
15827
15847
  if (isEsc) {
15828
15848
  this.preventEvent(evnt, 'event.keydown', null, function () {
15829
- if (keyboardConfig && mouseConfig && mouseOpts.area && _this25.handleKeyboardEvent) {
15830
- _this25.handleKeyboardEvent(evnt);
15849
+ if (keyboardConfig && mouseConfig && mouseOpts.area && _this26.handleKeyboardEvent) {
15850
+ _this26.handleKeyboardEvent(evnt);
15831
15851
  } else if (actived.row || filterStore.visible || ctxMenuStore.visible) {
15832
15852
  evnt.stopPropagation(); // 如果按下了 Esc 键,关闭快捷菜单、筛选
15833
15853
 
15834
- _this25.closeFilter();
15854
+ _this26.closeFilter();
15835
15855
 
15836
- _this25.closeMenu();
15856
+ _this26.closeMenu();
15837
15857
 
15838
15858
  if (keyboardConfig && keyboardOpts.isEsc) {
15839
15859
  // 如果是激活编辑状态,则取消编辑
15840
15860
  if (actived.row) {
15841
15861
  var params = actived.args;
15842
15862
 
15843
- _this25.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15863
+ _this26.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15844
15864
 
15845
15865
 
15846
15866
  if (mouseConfig && mouseOpts.selected) {
15847
- _this25.$nextTick(function () {
15848
- return _this25.handleSelected(params, evnt);
15867
+ _this26.$nextTick(function () {
15868
+ return _this26.handleSelected(params, evnt);
15849
15869
  });
15850
15870
  }
15851
15871
  }
15852
15872
  }
15853
15873
  }
15854
15874
 
15855
- _this25.emitEvent('keydown', {}, evnt);
15875
+ _this26.emitEvent('keydown', {}, evnt);
15856
15876
  });
15857
15877
  }
15858
15878
  },
@@ -15861,27 +15881,27 @@ var Methods = {
15861
15881
  * 全局键盘事件
15862
15882
  */
15863
15883
  handleGlobalKeydownEvent: function handleGlobalKeydownEvent(evnt) {
15864
- var _this26 = this;
15884
+ var _this27 = this;
15865
15885
 
15866
15886
  // 该行为只对当前激活的表格有效
15867
15887
  if (this.isActivated) {
15868
15888
  this.preventEvent(evnt, 'event.keydown', null, function () {
15869
- var filterStore = _this26.filterStore,
15870
- isCtxMenu = _this26.isCtxMenu,
15871
- ctxMenuStore = _this26.ctxMenuStore,
15872
- editStore = _this26.editStore,
15873
- editOpts = _this26.editOpts,
15874
- editConfig = _this26.editConfig,
15875
- mouseConfig = _this26.mouseConfig,
15876
- mouseOpts = _this26.mouseOpts,
15877
- keyboardConfig = _this26.keyboardConfig,
15878
- keyboardOpts = _this26.keyboardOpts,
15879
- treeConfig = _this26.treeConfig,
15880
- treeOpts = _this26.treeOpts,
15881
- highlightCurrentRow = _this26.highlightCurrentRow,
15882
- currentRow = _this26.currentRow,
15883
- bodyCtxMenu = _this26.bodyCtxMenu,
15884
- rowOpts = _this26.rowOpts;
15889
+ var filterStore = _this27.filterStore,
15890
+ isCtxMenu = _this27.isCtxMenu,
15891
+ ctxMenuStore = _this27.ctxMenuStore,
15892
+ editStore = _this27.editStore,
15893
+ editOpts = _this27.editOpts,
15894
+ editConfig = _this27.editConfig,
15895
+ mouseConfig = _this27.mouseConfig,
15896
+ mouseOpts = _this27.mouseOpts,
15897
+ keyboardConfig = _this27.keyboardConfig,
15898
+ keyboardOpts = _this27.keyboardOpts,
15899
+ treeConfig = _this27.treeConfig,
15900
+ treeOpts = _this27.treeOpts,
15901
+ highlightCurrentRow = _this27.highlightCurrentRow,
15902
+ currentRow = _this27.currentRow,
15903
+ bodyCtxMenu = _this27.bodyCtxMenu,
15904
+ rowOpts = _this27.rowOpts;
15885
15905
  var selected = editStore.selected,
15886
15906
  actived = editStore.actived;
15887
15907
  var keyCode = evnt.keyCode;
@@ -15908,7 +15928,7 @@ var Methods = {
15908
15928
 
15909
15929
  if (filterStore.visible) {
15910
15930
  if (isEsc) {
15911
- _this26.closeFilter();
15931
+ _this27.closeFilter();
15912
15932
  }
15913
15933
 
15914
15934
  return;
@@ -15919,20 +15939,20 @@ var Methods = {
15919
15939
  evnt.preventDefault();
15920
15940
 
15921
15941
  if (ctxMenuStore.showChild && hasChildrenList(ctxMenuStore.selected)) {
15922
- _this26.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
15942
+ _this27.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
15923
15943
  } else {
15924
- _this26.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this26.ctxMenuList);
15944
+ _this27.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this27.ctxMenuList);
15925
15945
  }
15926
- } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this26.handleKeyboardEvent) {
15927
- _this26.handleKeyboardEvent(evnt);
15946
+ } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this27.handleKeyboardEvent) {
15947
+ _this27.handleKeyboardEvent(evnt);
15928
15948
  } else if (keyboardConfig && isSpacebar && keyboardOpts.isChecked && selected.row && selected.column && (selected.column.type === 'checkbox' || selected.column.type === 'radio')) {
15929
15949
  // 空格键支持选中复选框
15930
15950
  evnt.preventDefault();
15931
15951
 
15932
15952
  if (selected.column.type === 'checkbox') {
15933
- _this26.handleToggleCheckRowEvent(evnt, selected.args);
15953
+ _this27.handleToggleCheckRowEvent(evnt, selected.args);
15934
15954
  } else {
15935
- _this26.triggerRadioRowEvent(evnt, selected.args);
15955
+ _this27.triggerRadioRowEvent(evnt, selected.args);
15936
15956
  }
15937
15957
  } else if (isF2 && isEnableConf(editConfig)) {
15938
15958
  if (!isEditStatus) {
@@ -15941,15 +15961,15 @@ var Methods = {
15941
15961
  evnt.stopPropagation();
15942
15962
  evnt.preventDefault();
15943
15963
 
15944
- _this26.handleActived(selected.args, evnt);
15964
+ _this27.handleActived(selected.args, evnt);
15945
15965
  }
15946
15966
  }
15947
15967
  } else if (isContextMenu) {
15948
15968
  // 如果按下上下文键
15949
- _this26._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
15950
- clearTimeout(_this26.keyCtxTimeout);
15951
- _this26.keyCtxTimeout = setTimeout(function () {
15952
- _this26._keyCtx = false;
15969
+ _this27._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
15970
+ clearTimeout(_this27.keyCtxTimeout);
15971
+ _this27.keyCtxTimeout = setTimeout(function () {
15972
+ _this27._keyCtx = false;
15953
15973
  }, 1000);
15954
15974
  } else if (isEnter && !hasAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow)) {
15955
15975
  // 退出选中
@@ -15958,12 +15978,12 @@ var Methods = {
15958
15978
  if (actived.row) {
15959
15979
  params = actived.args;
15960
15980
 
15961
- _this26.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15981
+ _this27.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15962
15982
 
15963
15983
 
15964
15984
  if (mouseConfig && mouseOpts.selected) {
15965
- _this26.$nextTick(function () {
15966
- return _this26.handleSelected(params, evnt);
15985
+ _this27.$nextTick(function () {
15986
+ return _this27.handleSelected(params, evnt);
15967
15987
  });
15968
15988
  }
15969
15989
  }
@@ -15974,15 +15994,15 @@ var Methods = {
15974
15994
 
15975
15995
  if (hasShiftKey) {
15976
15996
  if (keyboardOpts.enterToTab) {
15977
- _this26.moveTabSelected(targetArgs, hasShiftKey, evnt);
15997
+ _this27.moveTabSelected(targetArgs, hasShiftKey, evnt);
15978
15998
  } else {
15979
- _this26.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
15999
+ _this27.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
15980
16000
  }
15981
16001
  } else {
15982
16002
  if (keyboardOpts.enterToTab) {
15983
- _this26.moveTabSelected(targetArgs, hasShiftKey, evnt);
16003
+ _this27.moveTabSelected(targetArgs, hasShiftKey, evnt);
15984
16004
  } else {
15985
- _this26.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
16005
+ _this27.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
15986
16006
  }
15987
16007
  }
15988
16008
  } else if (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
@@ -15993,14 +16013,14 @@ var Methods = {
15993
16013
  evnt.preventDefault();
15994
16014
  var targetRow = childrens[0];
15995
16015
  params = {
15996
- $table: _this26,
16016
+ $table: _this27,
15997
16017
  row: targetRow
15998
16018
  };
15999
16019
 
16000
- _this26.setTreeExpand(currentRow, true).then(function () {
16001
- return _this26.scrollToRow(targetRow);
16020
+ _this27.setTreeExpand(currentRow, true).then(function () {
16021
+ return _this27.scrollToRow(targetRow);
16002
16022
  }).then(function () {
16003
- return _this26.triggerCurrentRowEvent(evnt, params);
16023
+ return _this27.triggerCurrentRowEvent(evnt, params);
16004
16024
  });
16005
16025
  }
16006
16026
  }
@@ -16009,18 +16029,18 @@ var Methods = {
16009
16029
  if (!isEditStatus) {
16010
16030
  // 如果按下了方向键
16011
16031
  if (selected.row && selected.column) {
16012
- _this26.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
16032
+ _this27.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
16013
16033
  } else if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
16014
16034
  // 当前行按键上下移动
16015
- _this26.moveCurrentRow(isUpArrow, isDwArrow, evnt);
16035
+ _this27.moveCurrentRow(isUpArrow, isDwArrow, evnt);
16016
16036
  }
16017
16037
  }
16018
16038
  } else if (isTab && keyboardConfig && keyboardOpts.isTab) {
16019
16039
  // 如果按下了 Tab 键切换
16020
16040
  if (selected.row || selected.column) {
16021
- _this26.moveTabSelected(selected.args, hasShiftKey, evnt);
16041
+ _this27.moveTabSelected(selected.args, hasShiftKey, evnt);
16022
16042
  } else if (actived.row || actived.column) {
16023
- _this26.moveTabSelected(actived.args, hasShiftKey, evnt);
16043
+ _this27.moveTabSelected(actived.args, hasShiftKey, evnt);
16024
16044
  }
16025
16045
  } else if (keyboardConfig && (isDel || (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
16026
16046
  if (!isEditStatus) {
@@ -16031,10 +16051,10 @@ var Methods = {
16031
16051
  if (delMethod) {
16032
16052
  delMethod({
16033
16053
  row: selected.row,
16034
- rowIndex: _this26.getRowIndex(selected.row),
16054
+ rowIndex: _this27.getRowIndex(selected.row),
16035
16055
  column: selected.column,
16036
- columnIndex: _this26.getColumnIndex(selected.column),
16037
- $table: _this26
16056
+ columnIndex: _this27.getColumnIndex(selected.column),
16057
+ $table: _this27
16038
16058
  });
16039
16059
  } else {
16040
16060
  methods_setCellValue(selected.row, selected.column, null);
@@ -16044,21 +16064,21 @@ var Methods = {
16044
16064
  if (backMethod) {
16045
16065
  backMethod({
16046
16066
  row: selected.row,
16047
- rowIndex: _this26.getRowIndex(selected.row),
16067
+ rowIndex: _this27.getRowIndex(selected.row),
16048
16068
  column: selected.column,
16049
- columnIndex: _this26.getColumnIndex(selected.column),
16050
- $table: _this26
16069
+ columnIndex: _this27.getColumnIndex(selected.column),
16070
+ $table: _this27
16051
16071
  });
16052
16072
  } else {
16053
- _this26.handleActived(selected.args, evnt);
16073
+ _this27.handleActived(selected.args, evnt);
16054
16074
  }
16055
16075
  } else if (isDel) {
16056
16076
  // 如果按下 del 键,更新表尾数据
16057
- _this26.updateFooter();
16077
+ _this27.updateFooter();
16058
16078
  }
16059
16079
  } else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
16060
16080
  // 如果树形表格回退键关闭当前行返回父节点
16061
- var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(_this26.afterFullData, function (item) {
16081
+ var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(_this27.afterFullData, function (item) {
16062
16082
  return item === currentRow;
16063
16083
  }, treeOpts),
16064
16084
  parentRow = _XEUtils$findTree.parent;
@@ -16066,14 +16086,14 @@ var Methods = {
16066
16086
  if (parentRow) {
16067
16087
  evnt.preventDefault();
16068
16088
  params = {
16069
- $table: _this26,
16089
+ $table: _this27,
16070
16090
  row: parentRow
16071
16091
  };
16072
16092
 
16073
- _this26.setTreeExpand(parentRow, false).then(function () {
16074
- return _this26.scrollToRow(parentRow);
16093
+ _this27.setTreeExpand(parentRow, false).then(function () {
16094
+ return _this27.scrollToRow(parentRow);
16075
16095
  }).then(function () {
16076
- return _this26.triggerCurrentRowEvent(evnt, params);
16096
+ return _this27.triggerCurrentRowEvent(evnt, params);
16077
16097
  });
16078
16098
  }
16079
16099
  }
@@ -16087,26 +16107,26 @@ var Methods = {
16087
16107
 
16088
16108
  if (selected.column && selected.row && isEnableConf(selected.column.editRender)) {
16089
16109
  if (!editOpts.activeMethod || editOpts.activeMethod(_objectSpread2(_objectSpread2({}, selected.args), {}, {
16090
- $table: _this26
16110
+ $table: _this27
16091
16111
  }))) {
16092
16112
  if (editMethod) {
16093
16113
  editMethod({
16094
16114
  row: selected.row,
16095
- rowIndex: _this26.getRowIndex(selected.row),
16115
+ rowIndex: _this27.getRowIndex(selected.row),
16096
16116
  column: selected.column,
16097
- columnIndex: _this26.getColumnIndex(selected.column),
16098
- $table: _this26
16117
+ columnIndex: _this27.getColumnIndex(selected.column),
16118
+ $table: _this27
16099
16119
  });
16100
16120
  } else {
16101
16121
  methods_setCellValue(selected.row, selected.column, null);
16102
16122
 
16103
- _this26.handleActived(selected.args, evnt);
16123
+ _this27.handleActived(selected.args, evnt);
16104
16124
  }
16105
16125
  }
16106
16126
  }
16107
16127
  }
16108
16128
 
16109
- _this26.emitEvent('keydown', {}, evnt);
16129
+ _this27.emitEvent('keydown', {}, evnt);
16110
16130
  });
16111
16131
  }
16112
16132
  },
@@ -16176,12 +16196,12 @@ var Methods = {
16176
16196
  this.recalculate(true);
16177
16197
  },
16178
16198
  handleTooltipLeaveMethod: function handleTooltipLeaveMethod() {
16179
- var _this27 = this;
16199
+ var _this28 = this;
16180
16200
 
16181
16201
  var tooltipOpts = this.tooltipOpts;
16182
16202
  setTimeout(function () {
16183
- if (!_this27.tooltipActive) {
16184
- _this27.closeTooltip();
16203
+ if (!_this28.tooltipActive) {
16204
+ _this28.closeTooltip();
16185
16205
  }
16186
16206
  }, tooltipOpts.leaveDelay);
16187
16207
  return false;
@@ -16192,17 +16212,17 @@ var Methods = {
16192
16212
  this.closeTooltip();
16193
16213
  },
16194
16214
  handleTargetLeaveEvent: function handleTargetLeaveEvent() {
16195
- var _this28 = this;
16215
+ var _this29 = this;
16196
16216
 
16197
16217
  var tooltipOpts = this.tooltipOpts;
16198
16218
  this.tooltipActive = false;
16199
16219
 
16200
16220
  if (tooltipOpts.enterable) {
16201
16221
  this.tooltipTimeout = setTimeout(function () {
16202
- var tooltip = _this28.$refs.tooltip;
16222
+ var tooltip = _this29.$refs.tooltip;
16203
16223
 
16204
16224
  if (tooltip && !tooltip.isHover) {
16205
- _this28.closeTooltip();
16225
+ _this29.closeTooltip();
16206
16226
  }
16207
16227
  }, tooltipOpts.leaveDelay);
16208
16228
  } else {
@@ -16432,14 +16452,14 @@ var Methods = {
16432
16452
  * @param {Boolean} value 是否选中
16433
16453
  */
16434
16454
  setCheckboxRow: function setCheckboxRow(rows, value) {
16435
- var _this29 = this;
16455
+ var _this30 = this;
16436
16456
 
16437
16457
  if (rows && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(rows)) {
16438
16458
  rows = [rows];
16439
16459
  }
16440
16460
 
16441
16461
  rows.forEach(function (row) {
16442
- return _this29.handleSelectRow({
16462
+ return _this30.handleSelectRow({
16443
16463
  row: row
16444
16464
  }, !!value);
16445
16465
  });
@@ -16463,7 +16483,7 @@ var Methods = {
16463
16483
  * value 选中true 不选false 半选-1
16464
16484
  */
16465
16485
  handleSelectRow: function handleSelectRow(_ref6, value) {
16466
- var _this30 = this;
16486
+ var _this31 = this;
16467
16487
 
16468
16488
  var row = _ref6.row;
16469
16489
  var selection = this.selection,
@@ -16495,7 +16515,7 @@ var Methods = {
16495
16515
  return half === item;
16496
16516
  });
16497
16517
 
16498
- _this30.handleCheckboxReserveRow(row, value);
16518
+ _this31.handleCheckboxReserveRow(row, value);
16499
16519
  }
16500
16520
  }, treeOpts);
16501
16521
  } // 如果存在父节点,更新父节点状态
@@ -16567,7 +16587,7 @@ var Methods = {
16567
16587
  return half === item;
16568
16588
  });
16569
16589
 
16570
- _this30.handleCheckboxReserveRow(row, value);
16590
+ _this31.handleCheckboxReserveRow(row, value);
16571
16591
  }
16572
16592
  }, treeOpts);
16573
16593
  } // 如果存在父节点,更新父节点状态
@@ -16671,7 +16691,7 @@ var Methods = {
16671
16691
  * @param {Boolean} value 是否选中
16672
16692
  */
16673
16693
  setAllCheckboxRow: function setAllCheckboxRow(value) {
16674
- var _this31 = this;
16694
+ var _this32 = this;
16675
16695
 
16676
16696
  var afterFullData = this.afterFullData,
16677
16697
  treeConfig = this.treeConfig,
@@ -16784,11 +16804,11 @@ var Methods = {
16784
16804
  if (reserve) {
16785
16805
  if (value) {
16786
16806
  selectRows.forEach(function (row) {
16787
- checkboxReserveRowMap[methods_getRowid(_this31, row)] = row;
16807
+ checkboxReserveRowMap[methods_getRowid(_this32, row)] = row;
16788
16808
  });
16789
16809
  } else {
16790
16810
  afterFullData.forEach(function (row) {
16791
- return _this31.handleCheckboxReserveRow(row, false);
16811
+ return _this32.handleCheckboxReserveRow(row, false);
16792
16812
  });
16793
16813
  }
16794
16814
  }
@@ -17008,7 +17028,7 @@ var Methods = {
17008
17028
  * 获取复选框保留选中的行
17009
17029
  */
17010
17030
  getCheckboxReserveRecords: function getCheckboxReserveRecords(isFull) {
17011
- var _this32 = this;
17031
+ var _this33 = this;
17012
17032
 
17013
17033
  var fullDataRowIdData = this.fullDataRowIdData,
17014
17034
  afterFullData = this.afterFullData,
@@ -17023,11 +17043,11 @@ var Methods = {
17023
17043
 
17024
17044
  if (treeConfig) {
17025
17045
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterFullData, function (row) {
17026
- afterFullIdMaps[methods_getRowid(_this32, row)] = 1;
17046
+ afterFullIdMaps[methods_getRowid(_this33, row)] = 1;
17027
17047
  }, treeOpts);
17028
17048
  } else {
17029
17049
  afterFullData.forEach(function (row) {
17030
- afterFullIdMaps[methods_getRowid(_this32, row)] = 1;
17050
+ afterFullIdMaps[methods_getRowid(_this33, row)] = 1;
17031
17051
  });
17032
17052
  }
17033
17053
 
@@ -17093,7 +17113,7 @@ var Methods = {
17093
17113
  * 清空行为不管是否被禁用还是保留记录,都将彻底清空选中状态
17094
17114
  */
17095
17115
  clearCheckboxRow: function clearCheckboxRow() {
17096
- var _this33 = this;
17116
+ var _this34 = this;
17097
17117
 
17098
17118
  var tableFullData = this.tableFullData,
17099
17119
  treeConfig = this.treeConfig,
@@ -17116,7 +17136,7 @@ var Methods = {
17116
17136
 
17117
17137
  if (reserve) {
17118
17138
  tableFullData.forEach(function (row) {
17119
- return _this33.handleCheckboxReserveRow(row, false);
17139
+ return _this34.handleCheckboxReserveRow(row, false);
17120
17140
  });
17121
17141
  }
17122
17142
 
@@ -17407,13 +17427,13 @@ var Methods = {
17407
17427
  * 如果存在规则,则校验
17408
17428
  */
17409
17429
  handleChangeCell: function handleChangeCell(evnt, params) {
17410
- var _this34 = this;
17430
+ var _this35 = this;
17411
17431
 
17412
17432
  this.checkValidate('blur').catch(function (e) {
17413
17433
  return e;
17414
17434
  }).then(function () {
17415
- _this34.handleActived(params, evnt).then(function () {
17416
- return _this34.checkValidate('change');
17435
+ _this35.handleActived(params, evnt).then(function () {
17436
+ return _this35.checkValidate('change');
17417
17437
  }).catch(function (e) {
17418
17438
  return e;
17419
17439
  });
@@ -17516,7 +17536,7 @@ var Methods = {
17516
17536
  * 如果是双击模式,则激活为编辑状态
17517
17537
  */
17518
17538
  triggerCellDblclickEvent: function triggerCellDblclickEvent(evnt, params) {
17519
- var _this35 = this;
17539
+ var _this36 = this;
17520
17540
 
17521
17541
  var editStore = this.editStore,
17522
17542
  editConfig = this.editConfig,
@@ -17531,15 +17551,15 @@ var Methods = {
17531
17551
  this.checkValidate('blur').catch(function (e) {
17532
17552
  return e;
17533
17553
  }).then(function () {
17534
- _this35.handleActived(params, evnt).then(function () {
17535
- return _this35.checkValidate('change');
17554
+ _this36.handleActived(params, evnt).then(function () {
17555
+ return _this36.checkValidate('change');
17536
17556
  }).catch(function (e) {
17537
17557
  return e;
17538
17558
  });
17539
17559
  });
17540
17560
  } else if (editOpts.mode === 'cell') {
17541
17561
  this.handleActived(params, evnt).then(function () {
17542
- return _this35.checkValidate('change');
17562
+ return _this36.checkValidate('change');
17543
17563
  }).catch(function (e) {
17544
17564
  return e;
17545
17565
  });
@@ -17550,7 +17570,7 @@ var Methods = {
17550
17570
  this.emitEvent('cell-dblclick', params, evnt);
17551
17571
  },
17552
17572
  handleDefaultSort: function handleDefaultSort() {
17553
- var _this36 = this;
17573
+ var _this37 = this;
17554
17574
 
17555
17575
  var sortConfig = this.sortConfig,
17556
17576
  sortOpts = this.sortOpts;
@@ -17567,7 +17587,7 @@ var Methods = {
17567
17587
  order = item.order;
17568
17588
 
17569
17589
  if (field && order) {
17570
- var column = _this36.getColumnByField(field);
17590
+ var column = _this37.getColumnByField(field);
17571
17591
 
17572
17592
  if (column && column.sortable) {
17573
17593
  column.order = order;
@@ -17610,7 +17630,7 @@ var Methods = {
17610
17630
  }
17611
17631
  },
17612
17632
  sort: function sort(sortConfs, sortOrder) {
17613
- var _this37 = this;
17633
+ var _this38 = this;
17614
17634
 
17615
17635
  var sortOpts = this.sortOpts;
17616
17636
  var multiple = sortOpts.multiple,
@@ -17643,7 +17663,7 @@ var Methods = {
17643
17663
  var column = field;
17644
17664
 
17645
17665
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isString(field)) {
17646
- column = _this37.getColumnByField(field);
17666
+ column = _this38.getColumnByField(field);
17647
17667
  }
17648
17668
 
17649
17669
  if (column && (column.sortable || column.remoteSort)) {
@@ -17652,7 +17672,7 @@ var Methods = {
17652
17672
  }
17653
17673
 
17654
17674
  if (orders.indexOf(order) === -1) {
17655
- order = getNextSortOrder(_this37, column);
17675
+ order = getNextSortOrder(_this38, column);
17656
17676
  }
17657
17677
 
17658
17678
  if (column.order !== order) {
@@ -17802,7 +17822,7 @@ var Methods = {
17802
17822
  * @param {Row} row 行对象
17803
17823
  */
17804
17824
  reloadRowExpand: function reloadRowExpand(row) {
17805
- var _this38 = this;
17825
+ var _this39 = this;
17806
17826
 
17807
17827
  var expandOpts = this.expandOpts,
17808
17828
  expandLazyLoadeds = this.expandLazyLoadeds;
@@ -17810,7 +17830,7 @@ var Methods = {
17810
17830
 
17811
17831
  if (lazy && expandLazyLoadeds.indexOf(row) === -1) {
17812
17832
  this.clearRowExpandLoaded(row).then(function () {
17813
- return _this38.handleAsyncRowExpand(row);
17833
+ return _this39.handleAsyncRowExpand(row);
17814
17834
  });
17815
17835
  }
17816
17836
 
@@ -17887,28 +17907,28 @@ var Methods = {
17887
17907
  return this.setRowExpand(this.expandOpts.lazy ? this.tableData : this.tableFullData, expanded);
17888
17908
  },
17889
17909
  handleAsyncRowExpand: function handleAsyncRowExpand(row) {
17890
- var _this39 = this;
17910
+ var _this40 = this;
17891
17911
 
17892
17912
  var rest = this.fullAllDataRowMap.get(row);
17893
17913
  return new Promise(function (resolve) {
17894
- _this39.expandLazyLoadeds.push(row);
17914
+ _this40.expandLazyLoadeds.push(row);
17895
17915
 
17896
- _this39.expandOpts.loadMethod({
17897
- $table: _this39,
17916
+ _this40.expandOpts.loadMethod({
17917
+ $table: _this40,
17898
17918
  row: row,
17899
- rowIndex: _this39.getRowIndex(row),
17900
- $rowIndex: _this39.getVMRowIndex(row)
17919
+ rowIndex: _this40.getRowIndex(row),
17920
+ $rowIndex: _this40.getVMRowIndex(row)
17901
17921
  }).catch(function (e) {
17902
17922
  return e;
17903
17923
  }).then(function () {
17904
17924
  rest.expandLoaded = true;
17905
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(_this39.expandLazyLoadeds, function (item) {
17925
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(_this40.expandLazyLoadeds, function (item) {
17906
17926
  return item === row;
17907
17927
  });
17908
17928
 
17909
- _this39.rowExpandeds.push(row);
17929
+ _this40.rowExpandeds.push(row);
17910
17930
 
17911
- resolve(_this39.$nextTick().then(_this39.recalculate));
17931
+ resolve(_this40.$nextTick().then(_this40.recalculate));
17912
17932
  });
17913
17933
  });
17914
17934
  },
@@ -17921,7 +17941,7 @@ var Methods = {
17921
17941
  * @param {Boolean} expanded 是否展开
17922
17942
  */
17923
17943
  setRowExpand: function setRowExpand(rows, expanded) {
17924
- var _this40 = this;
17944
+ var _this41 = this;
17925
17945
 
17926
17946
  var fullAllDataRowMap = this.fullAllDataRowMap,
17927
17947
  expandLazyLoadeds = this.expandLazyLoadeds,
@@ -17954,8 +17974,8 @@ var Methods = {
17954
17974
  columnIndex: columnIndex,
17955
17975
  $columnIndex: $columnIndex,
17956
17976
  row: row,
17957
- rowIndex: _this40.getRowIndex(row),
17958
- $rowIndex: _this40.getVMRowIndex(row)
17977
+ rowIndex: _this41.getRowIndex(row),
17978
+ $rowIndex: _this41.getVMRowIndex(row)
17959
17979
  });
17960
17980
  }) : rows;
17961
17981
 
@@ -17966,7 +17986,7 @@ var Methods = {
17966
17986
  var isLoad = lazy && !rest.expandLoaded && expandLazyLoadeds.indexOf(row) === -1;
17967
17987
 
17968
17988
  if (isLoad) {
17969
- lazyRests.push(_this40.handleAsyncRowExpand(row));
17989
+ lazyRests.push(_this41.handleAsyncRowExpand(row));
17970
17990
  } else {
17971
17991
  rowExpandeds.push(row);
17972
17992
  }
@@ -17980,7 +18000,7 @@ var Methods = {
17980
18000
 
17981
18001
  if (reserve) {
17982
18002
  validRows.forEach(function (row) {
17983
- return _this40.handleRowExpandReserve(row, expanded);
18003
+ return _this41.handleRowExpandReserve(row, expanded);
17984
18004
  });
17985
18005
  }
17986
18006
  }
@@ -18001,7 +18021,7 @@ var Methods = {
18001
18021
  * 手动清空展开行状态,数据会恢复成未展开的状态
18002
18022
  */
18003
18023
  clearRowExpand: function clearRowExpand() {
18004
- var _this41 = this;
18024
+ var _this42 = this;
18005
18025
 
18006
18026
  var expandOpts = this.expandOpts,
18007
18027
  rowExpandeds = this.rowExpandeds,
@@ -18012,13 +18032,13 @@ var Methods = {
18012
18032
 
18013
18033
  if (reserve) {
18014
18034
  tableFullData.forEach(function (row) {
18015
- return _this41.handleRowExpandReserve(row, false);
18035
+ return _this42.handleRowExpandReserve(row, false);
18016
18036
  });
18017
18037
  }
18018
18038
 
18019
18039
  return this.$nextTick().then(function () {
18020
18040
  if (isExists) {
18021
- _this41.recalculate();
18041
+ _this42.recalculate();
18022
18042
  }
18023
18043
  });
18024
18044
  },
@@ -18097,7 +18117,7 @@ var Methods = {
18097
18117
  * @param {Row} row 行对象
18098
18118
  */
18099
18119
  reloadTreeExpand: function reloadTreeExpand(row) {
18100
- var _this42 = this;
18120
+ var _this43 = this;
18101
18121
 
18102
18122
  var treeOpts = this.treeOpts,
18103
18123
  treeLazyLoadeds = this.treeLazyLoadeds;
@@ -18107,15 +18127,15 @@ var Methods = {
18107
18127
 
18108
18128
  if (lazy && row[hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
18109
18129
  this.clearTreeExpandLoaded(row).then(function () {
18110
- return _this42.handleAsyncTreeExpandChilds(row);
18130
+ return _this43.handleAsyncTreeExpandChilds(row);
18111
18131
  }).then(function () {
18112
18132
  if (transform) {
18113
- _this42.handleVirtualTreeToList();
18133
+ _this43.handleVirtualTreeToList();
18114
18134
 
18115
- return _this42.handleTableData();
18135
+ return _this43.handleTableData();
18116
18136
  }
18117
18137
  }).then(function () {
18118
- return _this42.recalculate();
18138
+ return _this43.recalculate();
18119
18139
  });
18120
18140
  }
18121
18141
 
@@ -18191,7 +18211,7 @@ var Methods = {
18191
18211
  }
18192
18212
  },
18193
18213
  handleAsyncTreeExpandChilds: function handleAsyncTreeExpandChilds(row) {
18194
- var _this43 = this;
18214
+ var _this44 = this;
18195
18215
 
18196
18216
  var fullAllDataRowMap = this.fullAllDataRowMap,
18197
18217
  treeExpandeds = this.treeExpandeds,
@@ -18205,7 +18225,7 @@ var Methods = {
18205
18225
  return new Promise(function (resolve) {
18206
18226
  treeLazyLoadeds.push(row);
18207
18227
  loadMethod({
18208
- $table: _this43,
18228
+ $table: _this44,
18209
18229
  row: row
18210
18230
  }).catch(function () {
18211
18231
  return [];
@@ -18220,29 +18240,29 @@ var Methods = {
18220
18240
  }
18221
18241
 
18222
18242
  if (childRecords) {
18223
- _this43.loadTreeChildren(row, childRecords).then(function (childRows) {
18243
+ _this44.loadTreeChildren(row, childRecords).then(function (childRows) {
18224
18244
  if (childRows.length && treeExpandeds.indexOf(row) === -1) {
18225
18245
  treeExpandeds.push(row);
18226
18246
  } // 如果当前节点已选中,则展开后子节点也被选中
18227
18247
 
18228
18248
 
18229
- if (!checkStrictly && _this43.isCheckedByCheckboxRow(row)) {
18230
- _this43.setCheckboxRow(childRows, true);
18249
+ if (!checkStrictly && _this44.isCheckedByCheckboxRow(row)) {
18250
+ _this44.setCheckboxRow(childRows, true);
18231
18251
  }
18232
18252
 
18233
- _this43.$nextTick().then(function () {
18253
+ _this44.$nextTick().then(function () {
18234
18254
  if (transform) {
18235
- return _this43.handleTableData();
18255
+ return _this44.handleTableData();
18236
18256
  }
18237
18257
  }).then(function () {
18238
- return _this43.recalculate();
18258
+ return _this44.recalculate();
18239
18259
  }).then(function () {
18240
18260
  return resolve();
18241
18261
  });
18242
18262
  });
18243
18263
  } else {
18244
- _this43.$nextTick().then(function () {
18245
- return _this43.recalculate();
18264
+ _this44.$nextTick().then(function () {
18265
+ return _this44.recalculate();
18246
18266
  }).then(function () {
18247
18267
  return resolve();
18248
18268
  });
@@ -18278,7 +18298,7 @@ var Methods = {
18278
18298
  * @returns
18279
18299
  */
18280
18300
  handleBaseTreeExpand: function handleBaseTreeExpand(rows, expanded) {
18281
- var _this44 = this;
18301
+ var _this45 = this;
18282
18302
 
18283
18303
  var fullAllDataRowMap = this.fullAllDataRowMap,
18284
18304
  tableFullData = this.tableFullData,
@@ -18326,7 +18346,7 @@ var Methods = {
18326
18346
  var isLoad = lazy && row[hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1; // 是否使用懒加载
18327
18347
 
18328
18348
  if (isLoad) {
18329
- result.push(_this44.handleAsyncTreeExpandChilds(row));
18349
+ result.push(_this45.handleAsyncTreeExpandChilds(row));
18330
18350
  } else {
18331
18351
  if (row[children] && row[children].length) {
18332
18352
  treeExpandeds.push(row);
@@ -18342,7 +18362,7 @@ var Methods = {
18342
18362
 
18343
18363
  if (reserve) {
18344
18364
  validRows.forEach(function (row) {
18345
- return _this44.handleTreeExpandReserve(row, expanded);
18365
+ return _this45.handleTreeExpandReserve(row, expanded);
18346
18366
  });
18347
18367
  }
18348
18368
 
@@ -18356,14 +18376,14 @@ var Methods = {
18356
18376
  * @returns
18357
18377
  */
18358
18378
  handleVirtualTreeExpand: function handleVirtualTreeExpand(rows, expanded) {
18359
- var _this45 = this;
18379
+ var _this46 = this;
18360
18380
 
18361
18381
  return this.handleBaseTreeExpand(rows, expanded).then(function () {
18362
- _this45.handleVirtualTreeToList();
18382
+ _this46.handleVirtualTreeToList();
18363
18383
 
18364
- return _this45.handleTableData();
18384
+ return _this46.handleTableData();
18365
18385
  }).then(function () {
18366
- return _this45.recalculate();
18386
+ return _this46.recalculate();
18367
18387
  });
18368
18388
  },
18369
18389
 
@@ -18408,7 +18428,7 @@ var Methods = {
18408
18428
  * 手动清空树形节点的展开状态,数据会恢复成未展开的状态
18409
18429
  */
18410
18430
  clearTreeExpand: function clearTreeExpand() {
18411
- var _this46 = this;
18431
+ var _this47 = this;
18412
18432
 
18413
18433
  var treeOpts = this.treeOpts,
18414
18434
  treeExpandeds = this.treeExpandeds,
@@ -18420,19 +18440,19 @@ var Methods = {
18420
18440
 
18421
18441
  if (reserve) {
18422
18442
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(tableFullData, function (row) {
18423
- return _this46.handleTreeExpandReserve(row, false);
18443
+ return _this47.handleTreeExpandReserve(row, false);
18424
18444
  }, treeOpts);
18425
18445
  }
18426
18446
 
18427
18447
  return this.handleTableData().then(function () {
18428
18448
  if (transform) {
18429
- _this46.handleVirtualTreeToList();
18449
+ _this47.handleVirtualTreeToList();
18430
18450
 
18431
- return _this46.handleTableData();
18451
+ return _this47.handleTableData();
18432
18452
  }
18433
18453
  }).then(function () {
18434
18454
  if (isExists) {
18435
- _this46.recalculate();
18455
+ _this47.recalculate();
18436
18456
  }
18437
18457
  });
18438
18458
  },
@@ -18562,18 +18582,18 @@ var Methods = {
18562
18582
  },
18563
18583
  // 计算可视渲染相关数据
18564
18584
  computeScrollLoad: function computeScrollLoad() {
18565
- var _this47 = this;
18585
+ var _this48 = this;
18566
18586
 
18567
18587
  return this.$nextTick().then(function () {
18568
- var sYOpts = _this47.sYOpts,
18569
- sXOpts = _this47.sXOpts,
18570
- scrollXLoad = _this47.scrollXLoad,
18571
- scrollYLoad = _this47.scrollYLoad,
18572
- scrollXStore = _this47.scrollXStore,
18573
- scrollYStore = _this47.scrollYStore; // 计算 X 逻辑
18588
+ var sYOpts = _this48.sYOpts,
18589
+ sXOpts = _this48.sXOpts,
18590
+ scrollXLoad = _this48.scrollXLoad,
18591
+ scrollYLoad = _this48.scrollYLoad,
18592
+ scrollXStore = _this48.scrollXStore,
18593
+ scrollYStore = _this48.scrollYStore; // 计算 X 逻辑
18574
18594
 
18575
18595
  if (scrollXLoad) {
18576
- var _computeVirtualX3 = computeVirtualX(_this47),
18596
+ var _computeVirtualX3 = computeVirtualX(_this48),
18577
18597
  visibleXSize = _computeVirtualX3.visibleSize;
18578
18598
 
18579
18599
  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;
@@ -18581,13 +18601,13 @@ var Methods = {
18581
18601
  scrollXStore.visibleSize = visibleXSize;
18582
18602
  scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
18583
18603
 
18584
- _this47.updateScrollXData();
18604
+ _this48.updateScrollXData();
18585
18605
  } else {
18586
- _this47.updateScrollXSpace();
18606
+ _this48.updateScrollXSpace();
18587
18607
  } // 计算 Y 逻辑
18588
18608
 
18589
18609
 
18590
- var _computeVirtualY = computeVirtualY(_this47),
18610
+ var _computeVirtualY = computeVirtualY(_this48),
18591
18611
  rowHeight = _computeVirtualY.rowHeight,
18592
18612
  visibleYSize = _computeVirtualY.visibleSize;
18593
18613
 
@@ -18599,14 +18619,14 @@ var Methods = {
18599
18619
  scrollYStore.visibleSize = visibleYSize;
18600
18620
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
18601
18621
 
18602
- _this47.updateScrollYData();
18622
+ _this48.updateScrollYData();
18603
18623
  } else {
18604
- _this47.updateScrollYSpace();
18624
+ _this48.updateScrollYSpace();
18605
18625
  }
18606
18626
 
18607
- _this47.rowHeight = rowHeight;
18627
+ _this48.rowHeight = rowHeight;
18608
18628
 
18609
- _this47.$nextTick(_this47.updateStyle);
18629
+ _this48.$nextTick(_this48.updateStyle);
18610
18630
  });
18611
18631
  },
18612
18632
  handleTableColumn: function handleTableColumn() {
@@ -18720,7 +18740,7 @@ var Methods = {
18720
18740
  * @param {Number} scrollTop 上距离
18721
18741
  */
18722
18742
  scrollTo: function scrollTo(scrollLeft, scrollTop) {
18723
- var _this48 = this;
18743
+ var _this49 = this;
18724
18744
 
18725
18745
  var $refs = this.$refs;
18726
18746
  var tableBody = $refs.tableBody,
@@ -18741,7 +18761,7 @@ var Methods = {
18741
18761
  if (this.scrollXLoad || this.scrollYLoad) {
18742
18762
  return new Promise(function (resolve) {
18743
18763
  return setTimeout(function () {
18744
- return resolve(_this48.$nextTick());
18764
+ return resolve(_this49.$nextTick());
18745
18765
  }, 50);
18746
18766
  });
18747
18767
  }
@@ -18792,7 +18812,7 @@ var Methods = {
18792
18812
  * @param {Row} row 行对象
18793
18813
  */
18794
18814
  scrollToTreeRow: function scrollToTreeRow(row) {
18795
- var _this49 = this;
18815
+ var _this50 = this;
18796
18816
 
18797
18817
  var tableFullData = this.tableFullData,
18798
18818
  treeConfig = this.treeConfig,
@@ -18807,15 +18827,15 @@ var Methods = {
18807
18827
  if (matchObj) {
18808
18828
  var nodes = matchObj.nodes;
18809
18829
  nodes.forEach(function (row, index) {
18810
- if (index < nodes.length - 1 && !_this49.isTreeExpandByRow(row)) {
18811
- rests.push(_this49.setTreeExpand(row, true));
18830
+ if (index < nodes.length - 1 && !_this50.isTreeExpandByRow(row)) {
18831
+ rests.push(_this50.setTreeExpand(row, true));
18812
18832
  }
18813
18833
  });
18814
18834
  }
18815
18835
  }
18816
18836
 
18817
18837
  return Promise.all(rests).then(function () {
18818
- return DomTools.rowToVisible(_this49, row);
18838
+ return DomTools.rowToVisible(_this50, row);
18819
18839
  });
18820
18840
  },
18821
18841
 
@@ -18879,29 +18899,29 @@ var Methods = {
18879
18899
  * 如果单元格配置了校验规则,则会进行校验
18880
18900
  */
18881
18901
  updateStatus: function updateStatus(scope, cellValue) {
18882
- var _this50 = this;
18902
+ var _this51 = this;
18883
18903
 
18884
18904
  var customVal = !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isUndefined(cellValue);
18885
18905
  return this.$nextTick().then(function () {
18886
- var $refs = _this50.$refs,
18887
- editRules = _this50.editRules,
18888
- validStore = _this50.validStore;
18906
+ var $refs = _this51.$refs,
18907
+ editRules = _this51.editRules,
18908
+ validStore = _this51.validStore;
18889
18909
 
18890
18910
  if (scope && $refs.tableBody && editRules) {
18891
18911
  var row = scope.row,
18892
18912
  column = scope.column;
18893
18913
  var type = 'change';
18894
18914
 
18895
- if (_this50.hasCellRules(type, row, column)) {
18896
- var cell = _this50.getCell(row, column);
18915
+ if (_this51.hasCellRules(type, row, column)) {
18916
+ var cell = _this51.getCell(row, column);
18897
18917
 
18898
18918
  if (cell) {
18899
- return _this50.validCellRules(type, row, column, cellValue).then(function () {
18919
+ return _this51.validCellRules(type, row, column, cellValue).then(function () {
18900
18920
  if (customVal && validStore.visible) {
18901
18921
  methods_setCellValue(row, column, cellValue);
18902
18922
  }
18903
18923
 
18904
- _this50.clearValidate();
18924
+ _this51.clearValidate();
18905
18925
  }).catch(function (_ref8) {
18906
18926
  var rule = _ref8.rule;
18907
18927
 
@@ -18909,7 +18929,7 @@ var Methods = {
18909
18929
  methods_setCellValue(row, column, cellValue);
18910
18930
  }
18911
18931
 
18912
- _this50.showValidTooltip({
18932
+ _this51.showValidTooltip({
18913
18933
  rule: rule,
18914
18934
  row: row,
18915
18935
  column: column,
@@ -18930,7 +18950,7 @@ var Methods = {
18930
18950
  * @param {TableMergeConfig[]} merges { row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }
18931
18951
  */
18932
18952
  setMergeCells: function setMergeCells(merges) {
18933
- var _this51 = this;
18953
+ var _this52 = this;
18934
18954
 
18935
18955
  if (this.spanMethod) {
18936
18956
  UtilTools.error('vxe.error.errConflicts', ['merge-cells', 'span-method']);
@@ -18938,7 +18958,7 @@ var Methods = {
18938
18958
 
18939
18959
  setMerges(this, merges, this.mergeList, this.afterFullData);
18940
18960
  return this.$nextTick().then(function () {
18941
- return _this51.updateCellAreas();
18961
+ return _this52.updateCellAreas();
18942
18962
  });
18943
18963
  },
18944
18964
 
@@ -18947,7 +18967,7 @@ var Methods = {
18947
18967
  * @param {TableMergeConfig[]} merges 多个或数组 [{row:Row|number, col:ColumnInfo|number}]
18948
18968
  */
18949
18969
  removeMergeCells: function removeMergeCells(merges) {
18950
- var _this52 = this;
18970
+ var _this53 = this;
18951
18971
 
18952
18972
  if (this.spanMethod) {
18953
18973
  UtilTools.error('vxe.error.errConflicts', ['merge-cells', 'span-method']);
@@ -18955,7 +18975,7 @@ var Methods = {
18955
18975
 
18956
18976
  var rest = removeMerges(this, merges, this.mergeList, this.afterFullData);
18957
18977
  return this.$nextTick().then(function () {
18958
- _this52.updateCellAreas();
18978
+ _this53.updateCellAreas();
18959
18979
 
18960
18980
  return rest;
18961
18981
  });
@@ -18979,7 +18999,7 @@ var Methods = {
18979
18999
  this.setMergeFooterItems(this.mergeFooterItems);
18980
19000
  },
18981
19001
  setMergeFooterItems: function setMergeFooterItems(merges) {
18982
- var _this53 = this;
19002
+ var _this54 = this;
18983
19003
 
18984
19004
  if (this.footerSpanMethod) {
18985
19005
  UtilTools.error('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
@@ -18987,11 +19007,11 @@ var Methods = {
18987
19007
 
18988
19008
  setMerges(this, merges, this.mergeFooterList, null);
18989
19009
  return this.$nextTick().then(function () {
18990
- return _this53.updateCellAreas();
19010
+ return _this54.updateCellAreas();
18991
19011
  });
18992
19012
  },
18993
19013
  removeMergeFooterItems: function removeMergeFooterItems(merges) {
18994
- var _this54 = this;
19014
+ var _this55 = this;
18995
19015
 
18996
19016
  if (this.footerSpanMethod) {
18997
19017
  UtilTools.error('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
@@ -18999,7 +19019,7 @@ var Methods = {
18999
19019
 
19000
19020
  var rest = removeMerges(this, merges, this.mergeFooterList, null);
19001
19021
  return this.$nextTick().then(function () {
19002
- _this54.updateCellAreas();
19022
+ _this55.updateCellAreas();
19003
19023
 
19004
19024
  return rest;
19005
19025
  });
@@ -20914,11 +20934,15 @@ var Table = Object.assign(table, {
20914
20934
  this.updateFooter();
20915
20935
 
20916
20936
  if (scrollXLoad || scrollYLoad) {
20917
- this.refreshScroll();
20937
+ if (scrollXLoad) {
20938
+ this.updateScrollXSpace();
20939
+ }
20918
20940
 
20919
20941
  if (scrollYLoad) {
20920
20942
  this.updateScrollYSpace();
20921
20943
  }
20944
+
20945
+ this.refreshScroll();
20922
20946
  }
20923
20947
  }
20924
20948
 
@@ -23716,29 +23740,10 @@ var msgQueue = [];
23716
23740
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.pad-start.js
23717
23741
  var es_string_pad_start = __webpack_require__("4d90");
23718
23742
 
23719
- // CONCATENATED MODULE: ./packages/input/src/input.js
23720
-
23721
-
23722
-
23723
-
23724
-
23743
+ // CONCATENATED MODULE: ./packages/input/src/date.js
23725
23744
 
23726
23745
 
23727
23746
 
23728
-
23729
-
23730
-
23731
-
23732
-
23733
-
23734
-
23735
-
23736
-
23737
-
23738
- var yearSize = 20;
23739
- var monthSize = 20;
23740
- var quarterSize = 8;
23741
-
23742
23747
  function toStringTimeDate(str) {
23743
23748
  if (str) {
23744
23749
  var rest = new Date();
@@ -23767,7 +23772,6 @@ function toStringTimeDate(str) {
23767
23772
 
23768
23773
  return new Date('');
23769
23774
  }
23770
-
23771
23775
  function getDateQuarter(date) {
23772
23776
  var month = date.getMonth();
23773
23777
 
@@ -23781,7 +23785,14 @@ function getDateQuarter(date) {
23781
23785
 
23782
23786
  return 4;
23783
23787
  }
23788
+ // CONCATENATED MODULE: ./packages/input/src/number.js
23789
+
23784
23790
 
23791
+
23792
+
23793
+ function handleNumber(val) {
23794
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isString(val) ? val.replace(/,/g, '') : val;
23795
+ }
23785
23796
  function toFloatValueFixed(inputValue, digitsValue) {
23786
23797
  if (/^-/.test('' + inputValue)) {
23787
23798
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.ceil(inputValue, digitsValue), digitsValue);
@@ -23789,6 +23800,28 @@ function toFloatValueFixed(inputValue, digitsValue) {
23789
23800
 
23790
23801
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.floor(inputValue, digitsValue), digitsValue);
23791
23802
  }
23803
+ // CONCATENATED MODULE: ./packages/input/src/input.js
23804
+
23805
+
23806
+
23807
+
23808
+
23809
+
23810
+
23811
+
23812
+
23813
+
23814
+
23815
+
23816
+
23817
+
23818
+
23819
+
23820
+
23821
+
23822
+ var yearSize = 20;
23823
+ var monthSize = 20;
23824
+ var quarterSize = 8;
23792
23825
 
23793
23826
  function getNumberValue(_vm, val) {
23794
23827
  var type = _vm.type,
@@ -25297,7 +25330,7 @@ function renderExtraSuffixIcon(h, _vm) {
25297
25330
  if (!inpReadonly) {
25298
25331
  if (isNumType) {
25299
25332
  if (inputValue) {
25300
- var inpNumVal = type === 'integer' ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toInteger(inputValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(inputValue);
25333
+ var inpNumVal = type === 'integer' ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toInteger(handleNumber(inputValue)) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(handleNumber(inputValue));
25301
25334
 
25302
25335
  if (!this.vaildMinNum(inpNumVal)) {
25303
25336
  inpNumVal = min;
@@ -25489,7 +25522,7 @@ function renderExtraSuffixIcon(h, _vm) {
25489
25522
  type = this.type,
25490
25523
  inputValue = this.inputValue,
25491
25524
  stepValue = this.stepValue;
25492
- var numValue = type === 'integer' ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toInteger(inputValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(inputValue);
25525
+ var numValue = type === 'integer' ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toInteger(handleNumber(inputValue)) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(handleNumber(inputValue));
25493
25526
  var newValue = isPlus ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.add(numValue, stepValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.subtract(numValue, stepValue);
25494
25527
  var restNum;
25495
25528
 
@@ -34113,6 +34146,11 @@ var Toolbar = Object.assign(src_toolbar, {
34113
34146
  default: null
34114
34147
  }
34115
34148
  },
34149
+ data: function data() {
34150
+ return {
34151
+ inpCurrPage: this.currentPage
34152
+ };
34153
+ },
34116
34154
  computed: {
34117
34155
  isSizes: function isSizes() {
34118
34156
  return this.layouts.some(function (name) {
@@ -34151,6 +34189,11 @@ var Toolbar = Object.assign(src_toolbar, {
34151
34189
  });
34152
34190
  }
34153
34191
  },
34192
+ watch: {
34193
+ currentPage: function currentPage(value) {
34194
+ this.inpCurrPage = value;
34195
+ }
34196
+ },
34154
34197
  render: function render(h) {
34155
34198
  var _this = this,
34156
34199
  _ref;
@@ -34311,13 +34354,14 @@ var Toolbar = Object.assign(src_toolbar, {
34311
34354
  }, conf.i18n('vxe.pager.goto')) : null, h('input', {
34312
34355
  class: 'vxe-pager--goto',
34313
34356
  domProps: {
34314
- value: this.currentPage
34357
+ value: this.inpCurrPage
34315
34358
  },
34316
34359
  attrs: {
34317
34360
  type: 'text',
34318
34361
  autocomplete: 'off'
34319
34362
  },
34320
34363
  on: {
34364
+ input: this.jumpInputEvent,
34321
34365
  keydown: this.jumpKeydownEvent,
34322
34366
  blur: this.triggerJumpEvent
34323
34367
  }
@@ -34461,6 +34505,9 @@ var Toolbar = Object.assign(src_toolbar, {
34461
34505
  });
34462
34506
  }
34463
34507
  },
34508
+ jumpInputEvent: function jumpInputEvent(evnt) {
34509
+ this.inpCurrPage = evnt.target.value;
34510
+ },
34464
34511
  jumpKeydownEvent: function jumpKeydownEvent(evnt) {
34465
34512
  if (evnt.keyCode === 13) {
34466
34513
  this.triggerJumpEvent(evnt);