vxe-table 3.4.13 → 3.4.14-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/README.zh-TW.md +2 -2
  3. package/lib/export/style/style.css +2 -0
  4. package/lib/export/style/style.min.css +1 -1
  5. package/lib/filter/src/mixin.js +24 -13
  6. package/lib/filter/src/mixin.min.js +1 -1
  7. package/lib/filter/style/style.css +2 -0
  8. package/lib/filter/style/style.min.css +1 -1
  9. package/lib/form/src/form.js +4 -0
  10. package/lib/form/src/form.min.js +1 -1
  11. package/lib/index.css +1 -1
  12. package/lib/index.umd.js +490 -349
  13. package/lib/index.umd.min.js +1 -1
  14. package/lib/input/src/date.js +54 -0
  15. package/lib/input/src/date.min.js +1 -0
  16. package/lib/input/src/input.js +12 -59
  17. package/lib/input/src/input.min.js +1 -1
  18. package/lib/input/src/number.js +23 -0
  19. package/lib/input/src/number.min.js +1 -0
  20. package/lib/pager/src/pager.js +15 -1
  21. package/lib/pager/src/pager.min.js +1 -1
  22. package/lib/style.css +1 -1
  23. package/lib/style.min.css +1 -1
  24. package/lib/table/src/body.js +36 -10
  25. package/lib/table/src/body.min.js +1 -1
  26. package/lib/table/src/cell.js +5 -6
  27. package/lib/table/src/cell.min.js +1 -1
  28. package/lib/table/src/methods.js +365 -301
  29. package/lib/table/src/methods.min.js +1 -1
  30. package/lib/table/style/style.css +2 -0
  31. package/lib/table/style/style.min.css +1 -1
  32. package/lib/toolbar/style/style.css +2 -0
  33. package/lib/toolbar/style/style.min.css +1 -1
  34. package/lib/tools/src/dom.js +14 -1
  35. package/lib/tools/src/dom.min.js +1 -1
  36. package/lib/validator/src/mixin.js +2 -0
  37. package/lib/validator/src/mixin.min.js +1 -1
  38. package/package.json +1 -1
  39. package/packages/filter/src/mixin.js +17 -10
  40. package/packages/form/src/form.js +4 -3
  41. package/packages/input/src/date.js +38 -0
  42. package/packages/input/src/input.js +4 -46
  43. package/packages/input/src/number.js +12 -0
  44. package/packages/pager/src/pager.js +15 -1
  45. package/packages/table/src/body.js +32 -11
  46. package/packages/table/src/cell.js +4 -6
  47. package/packages/table/src/methods.js +71 -20
  48. package/packages/tools/src/dom.js +13 -1
  49. package/packages/validator/src/mixin.js +11 -1
  50. package/styles/base/checked.scss +5 -0
  51. package/types/all.d.ts +1 -0
  52. package/types/column.d.ts +7 -1
  53. package/types/form.d.ts +2 -1
  54. package/types/table.d.ts +6 -2
package/lib/index.umd.js CHANGED
@@ -9280,6 +9280,17 @@ function setScrollLeft(elem, scrollLeft) {
9280
9280
  elem.scrollLeft = scrollLeft;
9281
9281
  }
9282
9282
  }
9283
+ function setScrollLeftAndTop(elem, scrollLeft, scrollTop) {
9284
+ if (elem) {
9285
+ elem.scrollLeft = scrollLeft;
9286
+ elem.scrollTop = scrollTop;
9287
+ }
9288
+ }
9289
+
9290
+ function isNodeElement(elem) {
9291
+ return elem && elem.nodeType === 1;
9292
+ }
9293
+
9283
9294
  var DomTools = {
9284
9295
  browse: browse,
9285
9296
  isPx: function isPx(val) {
@@ -9467,7 +9478,8 @@ var DomTools = {
9467
9478
  }
9468
9479
 
9469
9480
  return num;
9470
- }
9481
+ },
9482
+ isNodeElement: isNodeElement
9471
9483
  };
9472
9484
  /* harmony default export */ var dom = (DomTools);
9473
9485
  // CONCATENATED MODULE: ./packages/tools/src/event.js
@@ -11438,7 +11450,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
11438
11450
 
11439
11451
  var scrollProcessTimeout;
11440
11452
 
11441
- function syncBodyScroll(scrollTop, elem1, elem2) {
11453
+ function syncBodyScroll(_vm, fixedType, scrollTop, elem1, elem2) {
11442
11454
  if (elem1 || elem2) {
11443
11455
  if (elem1) {
11444
11456
  removeScrollListener(elem1);
@@ -11452,8 +11464,34 @@ function syncBodyScroll(scrollTop, elem1, elem2) {
11452
11464
 
11453
11465
  clearTimeout(scrollProcessTimeout);
11454
11466
  scrollProcessTimeout = setTimeout(function () {
11467
+ var _vm$$refs = _vm.$refs,
11468
+ tableBody = _vm$$refs.tableBody,
11469
+ leftBody = _vm$$refs.leftBody,
11470
+ rightBody = _vm$$refs.rightBody;
11471
+ var bodyElem = tableBody.$el;
11472
+ var leftElem = leftBody ? leftBody.$el : null;
11473
+ var rightElem = rightBody ? rightBody.$el : null;
11455
11474
  restoreScrollListener(elem1);
11456
- restoreScrollListener(elem2);
11475
+ restoreScrollListener(elem2); // 检查滚动条是的同步
11476
+
11477
+ var targetTop = bodyElem.scrollTop;
11478
+ var targetLeft = bodyElem.scrollLeft;
11479
+
11480
+ if (fixedType === 'left') {
11481
+ if (leftElem) {
11482
+ targetTop = leftElem.scrollTop;
11483
+ targetLeft = leftElem.scrollLeft;
11484
+ }
11485
+ } else if (fixedType === 'right') {
11486
+ if (rightElem) {
11487
+ targetTop = rightElem.scrollTop;
11488
+ targetLeft = rightElem.scrollLeft;
11489
+ }
11490
+ }
11491
+
11492
+ setScrollLeftAndTop(bodyElem, targetLeft, targetTop);
11493
+ setScrollLeftAndTop(leftElem, targetLeft, targetTop);
11494
+ setScrollLeftAndTop(rightElem, targetLeft, targetTop);
11457
11495
  }, 300);
11458
11496
  }
11459
11497
  }
@@ -11692,10 +11730,10 @@ function syncBodyScroll(scrollTop, elem1, elem2) {
11692
11730
 
11693
11731
  if (leftElem && fixedType === 'left') {
11694
11732
  scrollTop = leftElem.scrollTop;
11695
- syncBodyScroll(scrollTop, bodyElem, rightElem);
11733
+ syncBodyScroll($xetable, fixedType, scrollTop, bodyElem, rightElem);
11696
11734
  } else if (rightElem && fixedType === 'right') {
11697
11735
  scrollTop = rightElem.scrollTop;
11698
- syncBodyScroll(scrollTop, bodyElem, leftElem);
11736
+ syncBodyScroll($xetable, fixedType, scrollTop, bodyElem, leftElem);
11699
11737
  } else {
11700
11738
  if (isRollX) {
11701
11739
  if (headerElem) {
@@ -11711,7 +11749,7 @@ function syncBodyScroll(scrollTop, elem1, elem2) {
11711
11749
  $xetable.checkScrolling();
11712
11750
 
11713
11751
  if (isRollY) {
11714
- syncBodyScroll(scrollTop, leftElem, rightElem);
11752
+ syncBodyScroll($xetable, fixedType, scrollTop, leftElem, rightElem);
11715
11753
  }
11716
11754
  }
11717
11755
  }
@@ -11783,18 +11821,18 @@ function syncBodyScroll(scrollTop, elem1, elem2) {
11783
11821
  var scrollTop = bodyElem.scrollTop,
11784
11822
  clientHeight = bodyElem.clientHeight,
11785
11823
  scrollHeight = bodyElem.scrollHeight;
11786
- var targerTop = scrollTop + wheelYInterval * (isTopWheel ? -1 : 1);
11787
- bodyElem.scrollTop = targerTop;
11824
+ var targetTop = scrollTop + wheelYInterval * (isTopWheel ? -1 : 1);
11825
+ bodyElem.scrollTop = targetTop;
11788
11826
 
11789
11827
  if (leftElem) {
11790
- leftElem.scrollTop = targerTop;
11828
+ leftElem.scrollTop = targetTop;
11791
11829
  }
11792
11830
 
11793
11831
  if (rightElem) {
11794
- rightElem.scrollTop = targerTop;
11832
+ rightElem.scrollTop = targetTop;
11795
11833
  }
11796
11834
 
11797
- if (isTopWheel ? targerTop < scrollHeight - clientHeight : targerTop >= 0) {
11835
+ if (isTopWheel ? targetTop < scrollHeight - clientHeight : targetTop >= 0) {
11798
11836
  _this.wheelTime = setTimeout(handleSmooth, 10);
11799
11837
  }
11800
11838
 
@@ -12372,29 +12410,28 @@ var Cell = {
12372
12410
  var $table = params.$table,
12373
12411
  column = params.column,
12374
12412
  isHidden = params.isHidden;
12375
- var isAllCheckboxIndeterminate = $table.isIndeterminate,
12413
+ var isAllCheckboxSelected = $table.isAllSelected,
12414
+ isAllCheckboxIndeterminate = $table.isIndeterminate,
12376
12415
  isAllCheckboxDisabled = $table.isAllCheckboxDisabled;
12377
12416
  var slots = column.slots;
12378
12417
  var headerSlot = slots ? slots.header : null;
12379
12418
  var titleSlot = slots ? slots.title : null;
12380
12419
  var checkboxOpts = $table.checkboxOpts;
12381
12420
  var headerTitle = column.getTitle();
12382
- var isChecked = false;
12383
12421
  var on;
12384
12422
 
12385
12423
  if (!isHidden) {
12386
- isChecked = isAllCheckboxDisabled ? false : $table.isAllSelected;
12387
12424
  on = {
12388
12425
  click: function click(evnt) {
12389
12426
  if (!isAllCheckboxDisabled) {
12390
- $table.triggerCheckAllEvent(evnt, !isChecked);
12427
+ $table.triggerCheckAllEvent(evnt, !isAllCheckboxSelected);
12391
12428
  }
12392
12429
  }
12393
12430
  };
12394
12431
  }
12395
12432
 
12396
12433
  var checkboxParams = _objectSpread2(_objectSpread2({}, params), {}, {
12397
- checked: isChecked,
12434
+ checked: isAllCheckboxSelected,
12398
12435
  disabled: isAllCheckboxDisabled,
12399
12436
  indeterminate: isAllCheckboxIndeterminate
12400
12437
  });
@@ -12411,7 +12448,7 @@ var Cell = {
12411
12448
 
12412
12449
  return renderTitleContent(h, checkboxParams, [h('span', {
12413
12450
  class: ['vxe-cell--checkbox', {
12414
- 'is--checked': isChecked,
12451
+ 'is--checked': isAllCheckboxSelected,
12415
12452
  'is--disabled': isAllCheckboxDisabled,
12416
12453
  'is--indeterminate': isAllCheckboxIndeterminate
12417
12454
  }],
@@ -12905,7 +12942,8 @@ var methods_calcHeight = DomTools.calcHeight,
12905
12942
  methods_hasClass = DomTools.hasClass,
12906
12943
  addClass = DomTools.addClass,
12907
12944
  methods_removeClass = DomTools.removeClass,
12908
- getEventTargetNode = DomTools.getEventTargetNode;
12945
+ getEventTargetNode = DomTools.getEventTargetNode,
12946
+ methods_isNodeElement = DomTools.isNodeElement;
12909
12947
  var isWebkit = browse['-webkit'] && !browse.edge;
12910
12948
  var debounceScrollYDuration = browse.msie ? 80 : 20;
12911
12949
  var resizableStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_WIDTH';
@@ -13279,14 +13317,43 @@ var Methods = {
13279
13317
  },
13280
13318
 
13281
13319
  /**
13282
- * 手动处理数据
13320
+ * 手动处理数据,用于手动排序与筛选
13283
13321
  * 对于手动更改了排序、筛选...等条件后需要重新处理数据时可能会用到
13284
13322
  */
13285
13323
  updateData: function updateData() {
13286
- return this.handleTableData(true).then(this.updateFooter).then(this.recalculate);
13324
+ var _this2 = this;
13325
+
13326
+ var scrollXLoad = this.scrollXLoad,
13327
+ scrollYLoad = this.scrollYLoad;
13328
+ return this.handleTableData(true).then(function () {
13329
+ _this2.updateFooter();
13330
+
13331
+ _this2.checkSelectionStatus();
13332
+
13333
+ if (scrollXLoad || scrollYLoad) {
13334
+ if (scrollXLoad) {
13335
+ _this2.updateScrollXSpace();
13336
+ }
13337
+
13338
+ if (scrollYLoad) {
13339
+ _this2.updateScrollYSpace();
13340
+ }
13341
+
13342
+ return _this2.refreshScroll();
13343
+ }
13344
+ }).then(function () {
13345
+ _this2.updateCellAreas();
13346
+
13347
+ return _this2.recalculate(true);
13348
+ }).then(function () {
13349
+ // 存在滚动行为未结束情况
13350
+ setTimeout(function () {
13351
+ return _this2.recalculate();
13352
+ }, 50);
13353
+ });
13287
13354
  },
13288
13355
  handleTableData: function handleTableData(force) {
13289
- var _this2 = this;
13356
+ var _this3 = this;
13290
13357
 
13291
13358
  var scrollYLoad = this.scrollYLoad,
13292
13359
  scrollYStore = this.scrollYStore,
@@ -13303,7 +13370,7 @@ var Methods = {
13303
13370
 
13304
13371
  var tableData = scrollYLoad ? fullList.slice(scrollYStore.startIndex, scrollYStore.endIndex) : fullList.slice(0);
13305
13372
  tableData.forEach(function (row, $index) {
13306
- var rowid = methods_getRowid(_this2, row);
13373
+ var rowid = methods_getRowid(_this3, row);
13307
13374
  var rest = fullDataRowIdData[rowid];
13308
13375
 
13309
13376
  if (rest) {
@@ -13328,7 +13395,7 @@ var Methods = {
13328
13395
  * @param {Array} datas 数据
13329
13396
  */
13330
13397
  loadTableData: function loadTableData(datas) {
13331
- var _this3 = this;
13398
+ var _this4 = this;
13332
13399
 
13333
13400
  var keepSource = this.keepSource,
13334
13401
  treeConfig = this.treeConfig,
@@ -13391,31 +13458,31 @@ var Methods = {
13391
13458
  this.handleTableData(true);
13392
13459
  this.updateFooter();
13393
13460
  return this.$nextTick().then(function () {
13394
- _this3.updateHeight();
13461
+ _this4.updateHeight();
13395
13462
 
13396
- _this3.updateStyle();
13463
+ _this4.updateStyle();
13397
13464
  }).then(function () {
13398
- _this3.computeScrollLoad();
13465
+ _this4.computeScrollLoad();
13399
13466
  }).then(function () {
13400
13467
  // 是否启用了虚拟滚动
13401
13468
  if (sYLoad) {
13402
13469
  scrollYStore.endIndex = scrollYStore.visibleSize;
13403
13470
  }
13404
13471
 
13405
- _this3.handleReserveStatus();
13472
+ _this4.handleReserveStatus();
13406
13473
 
13407
- _this3.checkSelectionStatus();
13474
+ _this4.checkSelectionStatus();
13408
13475
 
13409
13476
  return new Promise(function (resolve) {
13410
- _this3.$nextTick().then(function () {
13411
- return _this3.recalculate();
13477
+ _this4.$nextTick().then(function () {
13478
+ return _this4.recalculate();
13412
13479
  }).then(function () {
13413
13480
  // 是否变更虚拟滚动
13414
13481
  if (oldScrollYLoad === sYLoad) {
13415
- restoreScrollLocation(_this3, lastScrollLeft, lastScrollTop).then(resolve);
13482
+ restoreScrollLocation(_this4, lastScrollLeft, lastScrollTop).then(resolve);
13416
13483
  } else {
13417
13484
  setTimeout(function () {
13418
- return restoreScrollLocation(_this3, lastScrollLeft, lastScrollTop).then(resolve);
13485
+ return restoreScrollLocation(_this4, lastScrollLeft, lastScrollTop).then(resolve);
13419
13486
  });
13420
13487
  }
13421
13488
  });
@@ -13428,23 +13495,23 @@ var Methods = {
13428
13495
  * @param {Array} datas 数据
13429
13496
  */
13430
13497
  loadData: function loadData(datas) {
13431
- var _this4 = this;
13498
+ var _this5 = this;
13432
13499
 
13433
13500
  var inited = this.inited,
13434
13501
  initStatus = this.initStatus;
13435
13502
  return this.loadTableData(datas).then(function () {
13436
- _this4.inited = true;
13437
- _this4.initStatus = true;
13503
+ _this5.inited = true;
13504
+ _this5.initStatus = true;
13438
13505
 
13439
13506
  if (!initStatus) {
13440
- _this4.handleLoadDefaults();
13507
+ _this5.handleLoadDefaults();
13441
13508
  }
13442
13509
 
13443
13510
  if (!inited) {
13444
- _this4.handleInitDefaults();
13511
+ _this5.handleInitDefaults();
13445
13512
  }
13446
13513
 
13447
- return _this4.recalculate();
13514
+ return _this5.recalculate();
13448
13515
  });
13449
13516
  },
13450
13517
 
@@ -13453,21 +13520,21 @@ var Methods = {
13453
13520
  * @param {Array} datas 数据
13454
13521
  */
13455
13522
  reloadData: function reloadData(datas) {
13456
- var _this5 = this;
13523
+ var _this6 = this;
13457
13524
 
13458
13525
  var inited = this.inited;
13459
13526
  return this.clearAll().then(function () {
13460
- _this5.inited = true;
13461
- _this5.initStatus = true;
13462
- return _this5.loadTableData(datas);
13527
+ _this6.inited = true;
13528
+ _this6.initStatus = true;
13529
+ return _this6.loadTableData(datas);
13463
13530
  }).then(function () {
13464
- _this5.handleLoadDefaults();
13531
+ _this6.handleLoadDefaults();
13465
13532
 
13466
13533
  if (!inited) {
13467
- _this5.handleInitDefaults();
13534
+ _this6.handleInitDefaults();
13468
13535
  }
13469
13536
 
13470
- return _this5.recalculate();
13537
+ return _this6.recalculate();
13471
13538
  });
13472
13539
  },
13473
13540
 
@@ -13512,10 +13579,10 @@ var Methods = {
13512
13579
  * @param {ColumnInfo} columns 列配置
13513
13580
  */
13514
13581
  loadColumn: function loadColumn(columns) {
13515
- var _this6 = this;
13582
+ var _this7 = this;
13516
13583
 
13517
13584
  var collectColumn = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.mapTree(columns, function (column) {
13518
- return src_cell.createColumn(_this6, column);
13585
+ return src_cell.createColumn(_this7, column);
13519
13586
  }, {
13520
13587
  children: 'children'
13521
13588
  });
@@ -13528,14 +13595,14 @@ var Methods = {
13528
13595
  * @param {ColumnInfo} columns 列配置
13529
13596
  */
13530
13597
  reloadColumn: function reloadColumn(columns) {
13531
- var _this7 = this;
13598
+ var _this8 = this;
13532
13599
 
13533
13600
  return this.clearAll().then(function () {
13534
- return _this7.loadColumn(columns);
13601
+ return _this8.loadColumn(columns);
13535
13602
  });
13536
13603
  },
13537
13604
  handleColumn: function handleColumn(collectColumn) {
13538
- var _this8 = this;
13605
+ var _this9 = this;
13539
13606
 
13540
13607
  this.collectColumn = collectColumn;
13541
13608
  var tableFullColumn = methods_getColumnList(collectColumn);
@@ -13543,8 +13610,8 @@ var Methods = {
13543
13610
  this.cacheColumnMap();
13544
13611
  this.restoreCustomStorage();
13545
13612
  this.parseColumns().then(function () {
13546
- if (_this8.scrollXLoad) {
13547
- _this8.loadScrollXData(true);
13613
+ if (_this9.scrollXLoad) {
13614
+ _this9.loadScrollXData(true);
13548
13615
  }
13549
13616
  });
13550
13617
  this.clearMergeCells();
@@ -13554,14 +13621,14 @@ var Methods = {
13554
13621
  if (false) {}
13555
13622
 
13556
13623
  return this.$nextTick().then(function () {
13557
- if (_this8.$toolbar) {
13558
- _this8.$toolbar.syncUpdate({
13624
+ if (_this9.$toolbar) {
13625
+ _this9.$toolbar.syncUpdate({
13559
13626
  collectColumn: collectColumn,
13560
- $table: _this8
13627
+ $table: _this9
13561
13628
  });
13562
13629
  }
13563
13630
 
13564
- return _this8.recalculate();
13631
+ return _this9.recalculate();
13565
13632
  });
13566
13633
  },
13567
13634
 
@@ -13570,7 +13637,7 @@ var Methods = {
13570
13637
  * 牺牲数据组装的耗时,用来换取使用过程中的流畅
13571
13638
  */
13572
13639
  cacheRowMap: function cacheRowMap(source) {
13573
- var _this9 = this;
13640
+ var _this10 = this;
13574
13641
 
13575
13642
  var treeConfig = this.treeConfig,
13576
13643
  treeOpts = this.treeOpts,
@@ -13584,7 +13651,7 @@ var Methods = {
13584
13651
  var isLazy = treeConfig && treeOpts.lazy;
13585
13652
 
13586
13653
  var handleCache = function handleCache(row, index, items, path, parent, nodes) {
13587
- var rowid = methods_getRowid(_this9, row);
13654
+ var rowid = methods_getRowid(_this10, row);
13588
13655
  var seq = treeConfig && path ? toTreePathSeq(path) : index + 1;
13589
13656
  var level = nodes ? nodes.length - 1 : 0;
13590
13657
 
@@ -13633,7 +13700,7 @@ var Methods = {
13633
13700
  }
13634
13701
  },
13635
13702
  loadTreeChildren: function loadTreeChildren(row, childRecords) {
13636
- var _this10 = this;
13703
+ var _this11 = this;
13637
13704
 
13638
13705
  var keepSource = this.keepSource,
13639
13706
  tableSourceData = this.tableSourceData,
@@ -13649,9 +13716,9 @@ var Methods = {
13649
13716
  var parentLevel = rest ? rest.level : 0;
13650
13717
  return this.createData(childRecords).then(function (rows) {
13651
13718
  if (keepSource) {
13652
- var rowid = methods_getRowid(_this10, row);
13719
+ var rowid = methods_getRowid(_this11, row);
13653
13720
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableSourceData, function (item) {
13654
- return rowid === methods_getRowid(_this10, item);
13721
+ return rowid === methods_getRowid(_this11, item);
13655
13722
  }, treeOpts);
13656
13723
 
13657
13724
  if (matchObj) {
@@ -13660,7 +13727,7 @@ var Methods = {
13660
13727
  }
13661
13728
 
13662
13729
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(rows, function (childRow, index, items, path, parent, nodes) {
13663
- var rowid = methods_getRowid(_this10, childRow);
13730
+ var rowid = methods_getRowid(_this11, childRow);
13664
13731
  var rest = {
13665
13732
  row: childRow,
13666
13733
  rowid: rowid,
@@ -13683,7 +13750,7 @@ var Methods = {
13683
13750
  row[mapChildren] = rows;
13684
13751
  }
13685
13752
 
13686
- _this10.updateAfterDataIndex();
13753
+ _this11.updateAfterDataIndex();
13687
13754
 
13688
13755
  return rows;
13689
13756
  });
@@ -13694,7 +13761,7 @@ var Methods = {
13694
13761
  * 牺牲数据组装的耗时,用来换取使用过程中的流畅
13695
13762
  */
13696
13763
  cacheColumnMap: function cacheColumnMap() {
13697
- var _this11 = this;
13764
+ var _this12 = this;
13698
13765
 
13699
13766
  var tableFullColumn = this.tableFullColumn,
13700
13767
  collectColumn = this.collectColumn,
@@ -13988,13 +14055,13 @@ var Methods = {
13988
14055
  * @param {Array} records 新数据
13989
14056
  */
13990
14057
  createData: function createData(records) {
13991
- var _this12 = this;
14058
+ var _this13 = this;
13992
14059
 
13993
14060
  var treeConfig = this.treeConfig,
13994
14061
  treeOpts = this.treeOpts;
13995
14062
 
13996
14063
  var handleRrecord = function handleRrecord(record) {
13997
- return _this12.defineField(Object.assign({}, record));
14064
+ return _this13.defineField(Object.assign({}, record));
13998
14065
  };
13999
14066
 
14000
14067
  var rows = treeConfig ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.mapTree(records, handleRrecord, treeOpts) : records.map(handleRrecord);
@@ -14009,7 +14076,7 @@ var Methods = {
14009
14076
  * @param {Array/Object} records 新数据
14010
14077
  */
14011
14078
  createRow: function createRow(records) {
14012
- var _this13 = this;
14079
+ var _this14 = this;
14013
14080
 
14014
14081
  var isArr = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(records);
14015
14082
 
@@ -14018,7 +14085,7 @@ var Methods = {
14018
14085
  }
14019
14086
 
14020
14087
  return this.$nextTick().then(function () {
14021
- return _this13.createData(records).then(function (rows) {
14088
+ return _this14.createData(records).then(function (rows) {
14022
14089
  return isArr ? rows : rows[0];
14023
14090
  });
14024
14091
  });
@@ -14032,7 +14099,7 @@ var Methods = {
14032
14099
  * 如果还额外传了 field 则还原指定的单元格数据
14033
14100
  */
14034
14101
  revertData: function revertData(rows, field) {
14035
- var _this14 = this;
14102
+ var _this15 = this;
14036
14103
 
14037
14104
  var keepSource = this.keepSource,
14038
14105
  tableSourceData = this.tableSourceData,
@@ -14056,8 +14123,8 @@ var Methods = {
14056
14123
 
14057
14124
  if (targetRows.length) {
14058
14125
  targetRows.forEach(function (row) {
14059
- if (!_this14.isInsertByRow(row)) {
14060
- var rowIndex = _this14.getRowIndex(row);
14126
+ if (!_this15.isInsertByRow(row)) {
14127
+ var rowIndex = _this15.getRowIndex(row);
14061
14128
 
14062
14129
  if (treeConfig && rowIndex === -1) {
14063
14130
  throw new Error(UtilTools.getLog('vxe.error.noTree', ['revertData']));
@@ -14141,7 +14208,7 @@ var Methods = {
14141
14208
  * @param {String} field 字段名
14142
14209
  */
14143
14210
  isUpdateByRow: function isUpdateByRow(row, field) {
14144
- var _this15 = this;
14211
+ var _this16 = this;
14145
14212
 
14146
14213
  var visibleColumn = this.visibleColumn,
14147
14214
  keepSource = this.keepSource,
@@ -14161,7 +14228,7 @@ var Methods = {
14161
14228
  if (treeConfig) {
14162
14229
  var children = treeOpts.children;
14163
14230
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableSourceData, function (item) {
14164
- return rowid === methods_getRowid(_this15, item);
14231
+ return rowid === methods_getRowid(_this16, item);
14165
14232
  }, treeOpts);
14166
14233
  row = Object.assign({}, row, _defineProperty({}, children, null));
14167
14234
 
@@ -14323,7 +14390,7 @@ var Methods = {
14323
14390
  * 如果存在筛选条件,继续处理
14324
14391
  */
14325
14392
  updateAfterFullData: function updateAfterFullData() {
14326
- var _this16 = this;
14393
+ var _this17 = this;
14327
14394
 
14328
14395
  var tableFullColumn = this.tableFullColumn,
14329
14396
  tableFullData = this.tableFullData,
@@ -14400,7 +14467,7 @@ var Methods = {
14400
14467
  cellValue: cellValue,
14401
14468
  row: row,
14402
14469
  column: column,
14403
- $table: _this16
14470
+ $table: _this17
14404
14471
  });
14405
14472
  });
14406
14473
  } else if (compFilterMethod) {
@@ -14411,7 +14478,7 @@ var Methods = {
14411
14478
  cellValue: cellValue,
14412
14479
  row: row,
14413
14480
  column: column,
14414
- $table: _this16
14481
+ $table: _this17
14415
14482
  });
14416
14483
  });
14417
14484
  } else if (allFilterMethod) {
@@ -14430,7 +14497,7 @@ var Methods = {
14430
14497
  cellValue: cellValue,
14431
14498
  row: row,
14432
14499
  column: column,
14433
- $table: _this16
14500
+ $table: _this17
14434
14501
  });
14435
14502
  });
14436
14503
  }
@@ -14483,7 +14550,7 @@ var Methods = {
14483
14550
  tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableTree, orderColumns.map(function (_ref2) {
14484
14551
  var column = _ref2.column,
14485
14552
  order = _ref2.order;
14486
- return [getOrderField(_this16, column), order];
14553
+ return [getOrderField(_this17, column), order];
14487
14554
  }));
14488
14555
  }
14489
14556
 
@@ -14506,7 +14573,7 @@ var Methods = {
14506
14573
  tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableData, orderColumns.map(function (_ref3) {
14507
14574
  var column = _ref3.column,
14508
14575
  order = _ref3.order;
14509
- return [getOrderField(_this16, column), order];
14576
+ return [getOrderField(_this17, column), order];
14510
14577
  }));
14511
14578
  } else {
14512
14579
  // 兼容 v2,在 v4 中废弃, sortBy 不能为数组
@@ -14521,7 +14588,7 @@ var Methods = {
14521
14588
  tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableData, sortByConfs || [firstOrderColumn].map(function (_ref4) {
14522
14589
  var column = _ref4.column,
14523
14590
  order = _ref4.order;
14524
- return [getOrderField(_this16, column), order];
14591
+ return [getOrderField(_this17, column), order];
14525
14592
  }));
14526
14593
  }
14527
14594
  }
@@ -14540,7 +14607,7 @@ var Methods = {
14540
14607
  * 对渲染中的数据提前解析序号及索引。牺牲提前编译耗时换取渲染中额外损耗,使运行时更加流畅
14541
14608
  */
14542
14609
  updateAfterDataIndex: function updateAfterDataIndex() {
14543
- var _this17 = this;
14610
+ var _this18 = this;
14544
14611
 
14545
14612
  var treeConfig = this.treeConfig,
14546
14613
  afterFullData = this.afterFullData,
@@ -14551,7 +14618,7 @@ var Methods = {
14551
14618
 
14552
14619
  if (treeConfig) {
14553
14620
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterTreeFullData, function (row, index, items, path) {
14554
- var rowid = methods_getRowid(_this17, row);
14621
+ var rowid = methods_getRowid(_this18, row);
14555
14622
  var allrest = fullAllDataRowIdData[rowid];
14556
14623
  var seq = path.map(function (num, i) {
14557
14624
  return i % 2 === 0 ? Number(num) + 1 : '.';
@@ -14580,7 +14647,7 @@ var Methods = {
14580
14647
  });
14581
14648
  } else {
14582
14649
  afterFullData.forEach(function (row, index) {
14583
- var rowid = methods_getRowid(_this17, row);
14650
+ var rowid = methods_getRowid(_this18, row);
14584
14651
  var allrest = fullAllDataRowIdData[rowid];
14585
14652
  var seq = index + 1;
14586
14653
 
@@ -14671,7 +14738,7 @@ var Methods = {
14671
14738
  * 默认执行一次,除非被重置
14672
14739
  */
14673
14740
  handleLoadDefaults: function handleLoadDefaults() {
14674
- var _this18 = this;
14741
+ var _this19 = this;
14675
14742
 
14676
14743
  if (this.checkboxConfig) {
14677
14744
  this.handleDefaultSelectionChecked();
@@ -14698,7 +14765,7 @@ var Methods = {
14698
14765
  }
14699
14766
 
14700
14767
  this.$nextTick(function () {
14701
- return setTimeout(_this18.recalculate);
14768
+ return setTimeout(_this19.recalculate);
14702
14769
  });
14703
14770
  },
14704
14771
 
@@ -14948,12 +15015,12 @@ var Methods = {
14948
15015
  * 刷新列配置
14949
15016
  */
14950
15017
  refreshColumn: function refreshColumn() {
14951
- var _this19 = this;
15018
+ var _this20 = this;
14952
15019
 
14953
15020
  return this.parseColumns().then(function () {
14954
- return _this19.refreshScroll();
15021
+ return _this20.refreshScroll();
14955
15022
  }).then(function () {
14956
- return _this19.recalculate();
15023
+ return _this20.recalculate();
14957
15024
  });
14958
15025
  },
14959
15026
 
@@ -14962,7 +15029,7 @@ var Methods = {
14962
15029
  * 将固定的列左边、右边分别靠边
14963
15030
  */
14964
15031
  parseColumns: function parseColumns() {
14965
- var _this20 = this;
15032
+ var _this21 = this;
14966
15033
 
14967
15034
  var leftList = [];
14968
15035
  var centerList = [];
@@ -15069,11 +15136,11 @@ var Methods = {
15069
15136
  this.visibleColumn = visibleColumn;
15070
15137
  this.handleTableColumn();
15071
15138
  return this.updateFooter().then(function () {
15072
- return _this20.recalculate();
15139
+ return _this21.recalculate();
15073
15140
  }).then(function () {
15074
- _this20.updateCellAreas();
15141
+ _this21.updateCellAreas();
15075
15142
 
15076
- return _this20.recalculate();
15143
+ return _this21.recalculate();
15077
15144
  });
15078
15145
  },
15079
15146
 
@@ -15129,6 +15196,8 @@ var Methods = {
15129
15196
  * 刷新滚动操作,手动同步滚动相关位置(对于某些特殊的操作,比如滚动条错位、固定列不同步)
15130
15197
  */
15131
15198
  refreshScroll: function refreshScroll() {
15199
+ var _this22 = this;
15200
+
15132
15201
  var lastScrollLeft = this.lastScrollLeft,
15133
15202
  lastScrollTop = this.lastScrollTop;
15134
15203
  var $refs = this.$refs;
@@ -15139,17 +15208,24 @@ var Methods = {
15139
15208
  var tableBodyElem = tableBody ? tableBody.$el : null;
15140
15209
  var leftBodyElem = leftBody ? leftBody.$el : null;
15141
15210
  var rightBodyElem = rightBody ? rightBody.$el : null;
15142
- var tableFooterElem = tableFooter ? tableFooter.$el : null; // 还原滚动条位置
15211
+ var tableFooterElem = tableFooter ? tableFooter.$el : null;
15212
+ return new Promise(function (resolve) {
15213
+ // 还原滚动条位置
15214
+ if (lastScrollLeft || lastScrollTop) {
15215
+ return restoreScrollLocation(_this22, lastScrollLeft, lastScrollTop).then(function () {
15216
+ // 存在滚动行为未结束情况
15217
+ setTimeout(resolve, 30);
15218
+ });
15219
+ } // 重置
15143
15220
 
15144
- if (lastScrollLeft || lastScrollTop) {
15145
- return restoreScrollLocation(this, lastScrollLeft, lastScrollTop);
15146
- } // 重置
15147
15221
 
15222
+ setScrollTop(tableBodyElem, lastScrollTop);
15223
+ setScrollTop(leftBodyElem, lastScrollTop);
15224
+ setScrollTop(rightBodyElem, lastScrollTop);
15225
+ setScrollLeft(tableFooterElem, lastScrollLeft); // 存在滚动行为未结束情况
15148
15226
 
15149
- setScrollTop(tableBodyElem, lastScrollTop);
15150
- setScrollTop(leftBodyElem, lastScrollTop);
15151
- setScrollTop(rightBodyElem, lastScrollTop);
15152
- setScrollLeft(tableFooterElem, lastScrollLeft);
15227
+ setTimeout(resolve, 30);
15228
+ });
15153
15229
  },
15154
15230
 
15155
15231
  /**
@@ -15157,7 +15233,7 @@ var Methods = {
15157
15233
  * 支持 width=? width=?px width=?% min-width=? min-width=?px min-width=?%
15158
15234
  */
15159
15235
  recalculate: function recalculate(refull) {
15160
- var _this21 = this;
15236
+ var _this23 = this;
15161
15237
 
15162
15238
  var $refs = this.$refs;
15163
15239
  var tableBody = $refs.tableBody,
@@ -15173,9 +15249,9 @@ var Methods = {
15173
15249
  if (refull === true) {
15174
15250
  // 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
15175
15251
  return this.computeScrollLoad().then(function () {
15176
- _this21.autoCellWidth(headerElem, bodyElem, footerElem);
15252
+ _this23.autoCellWidth(headerElem, bodyElem, footerElem);
15177
15253
 
15178
- return _this21.computeScrollLoad();
15254
+ return _this23.computeScrollLoad();
15179
15255
  });
15180
15256
  }
15181
15257
  }
@@ -15323,7 +15399,7 @@ var Methods = {
15323
15399
  this.customMaxHeight = methods_calcHeight(this, 'maxHeight');
15324
15400
  },
15325
15401
  updateStyle: function updateStyle() {
15326
- var _this22 = this;
15402
+ var _this24 = this;
15327
15403
 
15328
15404
  var $refs = this.$refs,
15329
15405
  isGroup = this.isGroup,
@@ -15427,7 +15503,7 @@ var Methods = {
15427
15503
 
15428
15504
  if (isGroup && listElem) {
15429
15505
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.arrayEach(listElem.querySelectorAll('.col--group'), function (thElem) {
15430
- var colNode = _this22.getColumnNode(thElem);
15506
+ var colNode = _this24.getColumnNode(thElem);
15431
15507
 
15432
15508
  if (colNode) {
15433
15509
  var column = colNode.item;
@@ -15457,7 +15533,7 @@ var Methods = {
15457
15533
  } else if (layout === 'body') {
15458
15534
  var emptyBlockElem = elemStore["".concat(name, "-").concat(layout, "-emptyBlock")];
15459
15535
 
15460
- if (wrapperElem) {
15536
+ if (methods_isNodeElement(wrapperElem)) {
15461
15537
  if (customMaxHeight) {
15462
15538
  wrapperElem.style.maxHeight = "".concat(fixedType ? customMaxHeight - headerHeight - (showFooter ? 0 : scrollbarHeight) : customMaxHeight - headerHeight, "px");
15463
15539
  } else {
@@ -15474,7 +15550,7 @@ var Methods = {
15474
15550
  var isRightFixed = fixedType === 'right';
15475
15551
  var _fixedColumn = columnStore["".concat(fixedType, "List")];
15476
15552
 
15477
- if (wrapperElem) {
15553
+ if (methods_isNodeElement(wrapperElem)) {
15478
15554
  wrapperElem.style.top = "".concat(headerHeight, "px");
15479
15555
  }
15480
15556
 
@@ -15544,7 +15620,7 @@ var Methods = {
15544
15620
  return previous + column.renderWidth;
15545
15621
  }, 0);
15546
15622
 
15547
- if (wrapperElem) {
15623
+ if (methods_isNodeElement(wrapperElem)) {
15548
15624
  // 如果是固定列
15549
15625
  if (fixedWrapperElem) {
15550
15626
  wrapperElem.style.top = "".concat(customHeight > 0 ? customHeight - footerHeight : tableHeight + headerHeight, "px");
@@ -15608,10 +15684,10 @@ var Methods = {
15608
15684
 
15609
15685
  if (cellElem) {
15610
15686
  if (colspan > 1) {
15611
- var columnIndex = _this22.getColumnIndex(column);
15687
+ var columnIndex = _this24.getColumnIndex(column);
15612
15688
 
15613
15689
  for (var _index = 1; _index < colspan; _index++) {
15614
- var nextColumn = _this22.getColumns(columnIndex + _index);
15690
+ var nextColumn = _this24.getColumns(columnIndex + _index);
15615
15691
 
15616
15692
  if (nextColumn) {
15617
15693
  colWidth += nextColumn.renderWidth;
@@ -15661,15 +15737,15 @@ var Methods = {
15661
15737
  }
15662
15738
  },
15663
15739
  preventEvent: function preventEvent(evnt, type, args, next, end) {
15664
- var _this23 = this;
15740
+ var _this25 = this;
15665
15741
 
15666
15742
  var evntList = v_x_e_table.interceptor.get(type);
15667
15743
  var rest;
15668
15744
 
15669
15745
  if (!evntList.some(function (func) {
15670
15746
  return func(Object.assign({
15671
- $grid: _this23.$xegrid,
15672
- $table: _this23,
15747
+ $grid: _this25.$xegrid,
15748
+ $table: _this25,
15673
15749
  $event: evnt
15674
15750
  }, args)) === false;
15675
15751
  })) {
@@ -15689,7 +15765,7 @@ var Methods = {
15689
15765
  * 全局按下事件处理
15690
15766
  */
15691
15767
  handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
15692
- var _this24 = this;
15768
+ var _this26 = this;
15693
15769
 
15694
15770
  var $el = this.$el,
15695
15771
  $refs = this.$refs,
@@ -15750,7 +15826,7 @@ var Methods = {
15750
15826
  } // 如果固定了高度且点击了行之外的空白处,则清除激活状态
15751
15827
 
15752
15828
 
15753
- if (!isClearActived && _this24.height && !_this24.overflowY) {
15829
+ if (!isClearActived && _this26.height && !_this26.overflowY) {
15754
15830
  var bodyWrapperElem = evnt.target;
15755
15831
 
15756
15832
  if (methods_hasClass(bodyWrapperElem, 'vxe-table--body-wrapper')) {
@@ -15761,7 +15837,7 @@ var Methods = {
15761
15837
  if (isClearActived || // 如果点击了当前表格之外
15762
15838
  !getEventTargetNode(evnt, $el).flag) {
15763
15839
  setTimeout(function () {
15764
- return _this24.clearActived(evnt);
15840
+ return _this26.clearActived(evnt);
15765
15841
  });
15766
15842
  }
15767
15843
  });
@@ -15775,9 +15851,9 @@ var Methods = {
15775
15851
 
15776
15852
  if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
15777
15853
  this.preventEvent(evnt, 'event.clearAreas', {}, function () {
15778
- _this24.clearCellAreas();
15854
+ _this26.clearCellAreas();
15779
15855
 
15780
- _this24.clearCopyCellArea();
15856
+ _this26.clearCopyCellArea();
15781
15857
  });
15782
15858
  }
15783
15859
  }
@@ -15812,7 +15888,7 @@ var Methods = {
15812
15888
  * 表格键盘事件
15813
15889
  */
15814
15890
  keydownEvent: function keydownEvent(evnt) {
15815
- var _this25 = this;
15891
+ var _this27 = this;
15816
15892
 
15817
15893
  var filterStore = this.filterStore,
15818
15894
  ctxMenuStore = this.ctxMenuStore,
@@ -15827,33 +15903,33 @@ var Methods = {
15827
15903
 
15828
15904
  if (isEsc) {
15829
15905
  this.preventEvent(evnt, 'event.keydown', null, function () {
15830
- if (keyboardConfig && mouseConfig && mouseOpts.area && _this25.handleKeyboardEvent) {
15831
- _this25.handleKeyboardEvent(evnt);
15906
+ if (keyboardConfig && mouseConfig && mouseOpts.area && _this27.handleKeyboardEvent) {
15907
+ _this27.handleKeyboardEvent(evnt);
15832
15908
  } else if (actived.row || filterStore.visible || ctxMenuStore.visible) {
15833
15909
  evnt.stopPropagation(); // 如果按下了 Esc 键,关闭快捷菜单、筛选
15834
15910
 
15835
- _this25.closeFilter();
15911
+ _this27.closeFilter();
15836
15912
 
15837
- _this25.closeMenu();
15913
+ _this27.closeMenu();
15838
15914
 
15839
15915
  if (keyboardConfig && keyboardOpts.isEsc) {
15840
15916
  // 如果是激活编辑状态,则取消编辑
15841
15917
  if (actived.row) {
15842
15918
  var params = actived.args;
15843
15919
 
15844
- _this25.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15920
+ _this27.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15845
15921
 
15846
15922
 
15847
15923
  if (mouseConfig && mouseOpts.selected) {
15848
- _this25.$nextTick(function () {
15849
- return _this25.handleSelected(params, evnt);
15924
+ _this27.$nextTick(function () {
15925
+ return _this27.handleSelected(params, evnt);
15850
15926
  });
15851
15927
  }
15852
15928
  }
15853
15929
  }
15854
15930
  }
15855
15931
 
15856
- _this25.emitEvent('keydown', {}, evnt);
15932
+ _this27.emitEvent('keydown', {}, evnt);
15857
15933
  });
15858
15934
  }
15859
15935
  },
@@ -15862,27 +15938,27 @@ var Methods = {
15862
15938
  * 全局键盘事件
15863
15939
  */
15864
15940
  handleGlobalKeydownEvent: function handleGlobalKeydownEvent(evnt) {
15865
- var _this26 = this;
15941
+ var _this28 = this;
15866
15942
 
15867
15943
  // 该行为只对当前激活的表格有效
15868
15944
  if (this.isActivated) {
15869
15945
  this.preventEvent(evnt, 'event.keydown', null, function () {
15870
- var filterStore = _this26.filterStore,
15871
- isCtxMenu = _this26.isCtxMenu,
15872
- ctxMenuStore = _this26.ctxMenuStore,
15873
- editStore = _this26.editStore,
15874
- editOpts = _this26.editOpts,
15875
- editConfig = _this26.editConfig,
15876
- mouseConfig = _this26.mouseConfig,
15877
- mouseOpts = _this26.mouseOpts,
15878
- keyboardConfig = _this26.keyboardConfig,
15879
- keyboardOpts = _this26.keyboardOpts,
15880
- treeConfig = _this26.treeConfig,
15881
- treeOpts = _this26.treeOpts,
15882
- highlightCurrentRow = _this26.highlightCurrentRow,
15883
- currentRow = _this26.currentRow,
15884
- bodyCtxMenu = _this26.bodyCtxMenu,
15885
- rowOpts = _this26.rowOpts;
15946
+ var filterStore = _this28.filterStore,
15947
+ isCtxMenu = _this28.isCtxMenu,
15948
+ ctxMenuStore = _this28.ctxMenuStore,
15949
+ editStore = _this28.editStore,
15950
+ editOpts = _this28.editOpts,
15951
+ editConfig = _this28.editConfig,
15952
+ mouseConfig = _this28.mouseConfig,
15953
+ mouseOpts = _this28.mouseOpts,
15954
+ keyboardConfig = _this28.keyboardConfig,
15955
+ keyboardOpts = _this28.keyboardOpts,
15956
+ treeConfig = _this28.treeConfig,
15957
+ treeOpts = _this28.treeOpts,
15958
+ highlightCurrentRow = _this28.highlightCurrentRow,
15959
+ currentRow = _this28.currentRow,
15960
+ bodyCtxMenu = _this28.bodyCtxMenu,
15961
+ rowOpts = _this28.rowOpts;
15886
15962
  var selected = editStore.selected,
15887
15963
  actived = editStore.actived;
15888
15964
  var keyCode = evnt.keyCode;
@@ -15909,7 +15985,7 @@ var Methods = {
15909
15985
 
15910
15986
  if (filterStore.visible) {
15911
15987
  if (isEsc) {
15912
- _this26.closeFilter();
15988
+ _this28.closeFilter();
15913
15989
  }
15914
15990
 
15915
15991
  return;
@@ -15920,20 +15996,20 @@ var Methods = {
15920
15996
  evnt.preventDefault();
15921
15997
 
15922
15998
  if (ctxMenuStore.showChild && hasChildrenList(ctxMenuStore.selected)) {
15923
- _this26.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
15999
+ _this28.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
15924
16000
  } else {
15925
- _this26.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this26.ctxMenuList);
16001
+ _this28.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this28.ctxMenuList);
15926
16002
  }
15927
- } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this26.handleKeyboardEvent) {
15928
- _this26.handleKeyboardEvent(evnt);
16003
+ } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this28.handleKeyboardEvent) {
16004
+ _this28.handleKeyboardEvent(evnt);
15929
16005
  } else if (keyboardConfig && isSpacebar && keyboardOpts.isChecked && selected.row && selected.column && (selected.column.type === 'checkbox' || selected.column.type === 'radio')) {
15930
16006
  // 空格键支持选中复选框
15931
16007
  evnt.preventDefault();
15932
16008
 
15933
16009
  if (selected.column.type === 'checkbox') {
15934
- _this26.handleToggleCheckRowEvent(evnt, selected.args);
16010
+ _this28.handleToggleCheckRowEvent(evnt, selected.args);
15935
16011
  } else {
15936
- _this26.triggerRadioRowEvent(evnt, selected.args);
16012
+ _this28.triggerRadioRowEvent(evnt, selected.args);
15937
16013
  }
15938
16014
  } else if (isF2 && isEnableConf(editConfig)) {
15939
16015
  if (!isEditStatus) {
@@ -15942,15 +16018,15 @@ var Methods = {
15942
16018
  evnt.stopPropagation();
15943
16019
  evnt.preventDefault();
15944
16020
 
15945
- _this26.handleActived(selected.args, evnt);
16021
+ _this28.handleActived(selected.args, evnt);
15946
16022
  }
15947
16023
  }
15948
16024
  } else if (isContextMenu) {
15949
16025
  // 如果按下上下文键
15950
- _this26._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
15951
- clearTimeout(_this26.keyCtxTimeout);
15952
- _this26.keyCtxTimeout = setTimeout(function () {
15953
- _this26._keyCtx = false;
16026
+ _this28._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
16027
+ clearTimeout(_this28.keyCtxTimeout);
16028
+ _this28.keyCtxTimeout = setTimeout(function () {
16029
+ _this28._keyCtx = false;
15954
16030
  }, 1000);
15955
16031
  } else if (isEnter && !hasAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow)) {
15956
16032
  // 退出选中
@@ -15959,12 +16035,12 @@ var Methods = {
15959
16035
  if (actived.row) {
15960
16036
  params = actived.args;
15961
16037
 
15962
- _this26.clearActived(evnt); // 如果配置了选中功能,则为选中状态
16038
+ _this28.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15963
16039
 
15964
16040
 
15965
16041
  if (mouseConfig && mouseOpts.selected) {
15966
- _this26.$nextTick(function () {
15967
- return _this26.handleSelected(params, evnt);
16042
+ _this28.$nextTick(function () {
16043
+ return _this28.handleSelected(params, evnt);
15968
16044
  });
15969
16045
  }
15970
16046
  }
@@ -15975,15 +16051,15 @@ var Methods = {
15975
16051
 
15976
16052
  if (hasShiftKey) {
15977
16053
  if (keyboardOpts.enterToTab) {
15978
- _this26.moveTabSelected(targetArgs, hasShiftKey, evnt);
16054
+ _this28.moveTabSelected(targetArgs, hasShiftKey, evnt);
15979
16055
  } else {
15980
- _this26.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
16056
+ _this28.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
15981
16057
  }
15982
16058
  } else {
15983
16059
  if (keyboardOpts.enterToTab) {
15984
- _this26.moveTabSelected(targetArgs, hasShiftKey, evnt);
16060
+ _this28.moveTabSelected(targetArgs, hasShiftKey, evnt);
15985
16061
  } else {
15986
- _this26.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
16062
+ _this28.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
15987
16063
  }
15988
16064
  }
15989
16065
  } else if (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
@@ -15994,14 +16070,14 @@ var Methods = {
15994
16070
  evnt.preventDefault();
15995
16071
  var targetRow = childrens[0];
15996
16072
  params = {
15997
- $table: _this26,
16073
+ $table: _this28,
15998
16074
  row: targetRow
15999
16075
  };
16000
16076
 
16001
- _this26.setTreeExpand(currentRow, true).then(function () {
16002
- return _this26.scrollToRow(targetRow);
16077
+ _this28.setTreeExpand(currentRow, true).then(function () {
16078
+ return _this28.scrollToRow(targetRow);
16003
16079
  }).then(function () {
16004
- return _this26.triggerCurrentRowEvent(evnt, params);
16080
+ return _this28.triggerCurrentRowEvent(evnt, params);
16005
16081
  });
16006
16082
  }
16007
16083
  }
@@ -16010,18 +16086,18 @@ var Methods = {
16010
16086
  if (!isEditStatus) {
16011
16087
  // 如果按下了方向键
16012
16088
  if (selected.row && selected.column) {
16013
- _this26.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
16089
+ _this28.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
16014
16090
  } else if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
16015
16091
  // 当前行按键上下移动
16016
- _this26.moveCurrentRow(isUpArrow, isDwArrow, evnt);
16092
+ _this28.moveCurrentRow(isUpArrow, isDwArrow, evnt);
16017
16093
  }
16018
16094
  }
16019
16095
  } else if (isTab && keyboardConfig && keyboardOpts.isTab) {
16020
16096
  // 如果按下了 Tab 键切换
16021
16097
  if (selected.row || selected.column) {
16022
- _this26.moveTabSelected(selected.args, hasShiftKey, evnt);
16098
+ _this28.moveTabSelected(selected.args, hasShiftKey, evnt);
16023
16099
  } else if (actived.row || actived.column) {
16024
- _this26.moveTabSelected(actived.args, hasShiftKey, evnt);
16100
+ _this28.moveTabSelected(actived.args, hasShiftKey, evnt);
16025
16101
  }
16026
16102
  } else if (keyboardConfig && (isDel || (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
16027
16103
  if (!isEditStatus) {
@@ -16032,10 +16108,10 @@ var Methods = {
16032
16108
  if (delMethod) {
16033
16109
  delMethod({
16034
16110
  row: selected.row,
16035
- rowIndex: _this26.getRowIndex(selected.row),
16111
+ rowIndex: _this28.getRowIndex(selected.row),
16036
16112
  column: selected.column,
16037
- columnIndex: _this26.getColumnIndex(selected.column),
16038
- $table: _this26
16113
+ columnIndex: _this28.getColumnIndex(selected.column),
16114
+ $table: _this28
16039
16115
  });
16040
16116
  } else {
16041
16117
  methods_setCellValue(selected.row, selected.column, null);
@@ -16045,21 +16121,21 @@ var Methods = {
16045
16121
  if (backMethod) {
16046
16122
  backMethod({
16047
16123
  row: selected.row,
16048
- rowIndex: _this26.getRowIndex(selected.row),
16124
+ rowIndex: _this28.getRowIndex(selected.row),
16049
16125
  column: selected.column,
16050
- columnIndex: _this26.getColumnIndex(selected.column),
16051
- $table: _this26
16126
+ columnIndex: _this28.getColumnIndex(selected.column),
16127
+ $table: _this28
16052
16128
  });
16053
16129
  } else {
16054
- _this26.handleActived(selected.args, evnt);
16130
+ _this28.handleActived(selected.args, evnt);
16055
16131
  }
16056
16132
  } else if (isDel) {
16057
16133
  // 如果按下 del 键,更新表尾数据
16058
- _this26.updateFooter();
16134
+ _this28.updateFooter();
16059
16135
  }
16060
16136
  } else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
16061
16137
  // 如果树形表格回退键关闭当前行返回父节点
16062
- var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(_this26.afterFullData, function (item) {
16138
+ var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(_this28.afterFullData, function (item) {
16063
16139
  return item === currentRow;
16064
16140
  }, treeOpts),
16065
16141
  parentRow = _XEUtils$findTree.parent;
@@ -16067,14 +16143,14 @@ var Methods = {
16067
16143
  if (parentRow) {
16068
16144
  evnt.preventDefault();
16069
16145
  params = {
16070
- $table: _this26,
16146
+ $table: _this28,
16071
16147
  row: parentRow
16072
16148
  };
16073
16149
 
16074
- _this26.setTreeExpand(parentRow, false).then(function () {
16075
- return _this26.scrollToRow(parentRow);
16150
+ _this28.setTreeExpand(parentRow, false).then(function () {
16151
+ return _this28.scrollToRow(parentRow);
16076
16152
  }).then(function () {
16077
- return _this26.triggerCurrentRowEvent(evnt, params);
16153
+ return _this28.triggerCurrentRowEvent(evnt, params);
16078
16154
  });
16079
16155
  }
16080
16156
  }
@@ -16088,26 +16164,26 @@ var Methods = {
16088
16164
 
16089
16165
  if (selected.column && selected.row && isEnableConf(selected.column.editRender)) {
16090
16166
  if (!editOpts.activeMethod || editOpts.activeMethod(_objectSpread2(_objectSpread2({}, selected.args), {}, {
16091
- $table: _this26
16167
+ $table: _this28
16092
16168
  }))) {
16093
16169
  if (editMethod) {
16094
16170
  editMethod({
16095
16171
  row: selected.row,
16096
- rowIndex: _this26.getRowIndex(selected.row),
16172
+ rowIndex: _this28.getRowIndex(selected.row),
16097
16173
  column: selected.column,
16098
- columnIndex: _this26.getColumnIndex(selected.column),
16099
- $table: _this26
16174
+ columnIndex: _this28.getColumnIndex(selected.column),
16175
+ $table: _this28
16100
16176
  });
16101
16177
  } else {
16102
16178
  methods_setCellValue(selected.row, selected.column, null);
16103
16179
 
16104
- _this26.handleActived(selected.args, evnt);
16180
+ _this28.handleActived(selected.args, evnt);
16105
16181
  }
16106
16182
  }
16107
16183
  }
16108
16184
  }
16109
16185
 
16110
- _this26.emitEvent('keydown', {}, evnt);
16186
+ _this28.emitEvent('keydown', {}, evnt);
16111
16187
  });
16112
16188
  }
16113
16189
  },
@@ -16177,12 +16253,12 @@ var Methods = {
16177
16253
  this.recalculate(true);
16178
16254
  },
16179
16255
  handleTooltipLeaveMethod: function handleTooltipLeaveMethod() {
16180
- var _this27 = this;
16256
+ var _this29 = this;
16181
16257
 
16182
16258
  var tooltipOpts = this.tooltipOpts;
16183
16259
  setTimeout(function () {
16184
- if (!_this27.tooltipActive) {
16185
- _this27.closeTooltip();
16260
+ if (!_this29.tooltipActive) {
16261
+ _this29.closeTooltip();
16186
16262
  }
16187
16263
  }, tooltipOpts.leaveDelay);
16188
16264
  return false;
@@ -16193,17 +16269,17 @@ var Methods = {
16193
16269
  this.closeTooltip();
16194
16270
  },
16195
16271
  handleTargetLeaveEvent: function handleTargetLeaveEvent() {
16196
- var _this28 = this;
16272
+ var _this30 = this;
16197
16273
 
16198
16274
  var tooltipOpts = this.tooltipOpts;
16199
16275
  this.tooltipActive = false;
16200
16276
 
16201
16277
  if (tooltipOpts.enterable) {
16202
16278
  this.tooltipTimeout = setTimeout(function () {
16203
- var tooltip = _this28.$refs.tooltip;
16279
+ var tooltip = _this30.$refs.tooltip;
16204
16280
 
16205
16281
  if (tooltip && !tooltip.isHover) {
16206
- _this28.closeTooltip();
16282
+ _this30.closeTooltip();
16207
16283
  }
16208
16284
  }, tooltipOpts.leaveDelay);
16209
16285
  } else {
@@ -16433,14 +16509,14 @@ var Methods = {
16433
16509
  * @param {Boolean} value 是否选中
16434
16510
  */
16435
16511
  setCheckboxRow: function setCheckboxRow(rows, value) {
16436
- var _this29 = this;
16512
+ var _this31 = this;
16437
16513
 
16438
16514
  if (rows && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(rows)) {
16439
16515
  rows = [rows];
16440
16516
  }
16441
16517
 
16442
16518
  rows.forEach(function (row) {
16443
- return _this29.handleSelectRow({
16519
+ return _this31.handleSelectRow({
16444
16520
  row: row
16445
16521
  }, !!value);
16446
16522
  });
@@ -16464,7 +16540,7 @@ var Methods = {
16464
16540
  * value 选中true 不选false 半选-1
16465
16541
  */
16466
16542
  handleSelectRow: function handleSelectRow(_ref6, value) {
16467
- var _this30 = this;
16543
+ var _this32 = this;
16468
16544
 
16469
16545
  var row = _ref6.row;
16470
16546
  var selection = this.selection,
@@ -16496,7 +16572,7 @@ var Methods = {
16496
16572
  return half === item;
16497
16573
  });
16498
16574
 
16499
- _this30.handleCheckboxReserveRow(row, value);
16575
+ _this32.handleCheckboxReserveRow(row, value);
16500
16576
  }
16501
16577
  }, treeOpts);
16502
16578
  } // 如果存在父节点,更新父节点状态
@@ -16568,7 +16644,7 @@ var Methods = {
16568
16644
  return half === item;
16569
16645
  });
16570
16646
 
16571
- _this30.handleCheckboxReserveRow(row, value);
16647
+ _this32.handleCheckboxReserveRow(row, value);
16572
16648
  }
16573
16649
  }, treeOpts);
16574
16650
  } // 如果存在父节点,更新父节点状态
@@ -16672,7 +16748,7 @@ var Methods = {
16672
16748
  * @param {Boolean} value 是否选中
16673
16749
  */
16674
16750
  setAllCheckboxRow: function setAllCheckboxRow(value) {
16675
- var _this31 = this;
16751
+ var _this33 = this;
16676
16752
 
16677
16753
  var afterFullData = this.afterFullData,
16678
16754
  treeConfig = this.treeConfig,
@@ -16785,11 +16861,11 @@ var Methods = {
16785
16861
  if (reserve) {
16786
16862
  if (value) {
16787
16863
  selectRows.forEach(function (row) {
16788
- checkboxReserveRowMap[methods_getRowid(_this31, row)] = row;
16864
+ checkboxReserveRowMap[methods_getRowid(_this33, row)] = row;
16789
16865
  });
16790
16866
  } else {
16791
16867
  afterFullData.forEach(function (row) {
16792
- return _this31.handleCheckboxReserveRow(row, false);
16868
+ return _this33.handleCheckboxReserveRow(row, false);
16793
16869
  });
16794
16870
  }
16795
16871
  }
@@ -16812,17 +16888,31 @@ var Methods = {
16812
16888
  checkMethod = checkboxOpts.checkMethod;
16813
16889
 
16814
16890
  if (!checkStrictly) {
16891
+ var disableRows = [];
16892
+ var checkRows = [];
16893
+ var isAllResolve = false;
16815
16894
  var isAllSelected = false;
16816
16895
  var isIndeterminate = false;
16817
16896
 
16818
16897
  if (checkField) {
16819
- isAllSelected = afterFullData.length && afterFullData.every(checkMethod ? function (row) {
16820
- return !checkMethod({
16898
+ isAllResolve = afterFullData.every(checkMethod ? function (row) {
16899
+ if (!checkMethod({
16821
16900
  row: row
16822
- }) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, checkField);
16901
+ })) {
16902
+ disableRows.push(row);
16903
+ return true;
16904
+ }
16905
+
16906
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, checkField)) {
16907
+ checkRows.push(row);
16908
+ return true;
16909
+ }
16910
+
16911
+ return false;
16823
16912
  } : function (row) {
16824
16913
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, checkField);
16825
16914
  });
16915
+ isAllSelected = isAllResolve && afterFullData.length !== disableRows.length;
16826
16916
 
16827
16917
  if (treeConfig) {
16828
16918
  if (halfField) {
@@ -16846,13 +16936,24 @@ var Methods = {
16846
16936
  }
16847
16937
  }
16848
16938
  } else {
16849
- isAllSelected = afterFullData.length && afterFullData.every(checkMethod ? function (row) {
16850
- return !checkMethod({
16939
+ isAllResolve = afterFullData.every(checkMethod ? function (row) {
16940
+ if (!checkMethod({
16851
16941
  row: row
16852
- }) || selection.indexOf(row) > -1;
16942
+ })) {
16943
+ disableRows.push(row);
16944
+ return true;
16945
+ }
16946
+
16947
+ if (selection.indexOf(row) > -1) {
16948
+ checkRows.push(row);
16949
+ return true;
16950
+ }
16951
+
16952
+ return false;
16853
16953
  } : function (row) {
16854
16954
  return selection.indexOf(row) > -1;
16855
16955
  });
16956
+ isAllSelected = isAllResolve && afterFullData.length !== disableRows.length;
16856
16957
 
16857
16958
  if (treeConfig) {
16858
16959
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
@@ -16984,7 +17085,7 @@ var Methods = {
16984
17085
  * 获取复选框保留选中的行
16985
17086
  */
16986
17087
  getCheckboxReserveRecords: function getCheckboxReserveRecords(isFull) {
16987
- var _this32 = this;
17088
+ var _this34 = this;
16988
17089
 
16989
17090
  var fullDataRowIdData = this.fullDataRowIdData,
16990
17091
  afterFullData = this.afterFullData,
@@ -16999,11 +17100,11 @@ var Methods = {
16999
17100
 
17000
17101
  if (treeConfig) {
17001
17102
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterFullData, function (row) {
17002
- afterFullIdMaps[methods_getRowid(_this32, row)] = 1;
17103
+ afterFullIdMaps[methods_getRowid(_this34, row)] = 1;
17003
17104
  }, treeOpts);
17004
17105
  } else {
17005
17106
  afterFullData.forEach(function (row) {
17006
- afterFullIdMaps[methods_getRowid(_this32, row)] = 1;
17107
+ afterFullIdMaps[methods_getRowid(_this34, row)] = 1;
17007
17108
  });
17008
17109
  }
17009
17110
 
@@ -17069,7 +17170,7 @@ var Methods = {
17069
17170
  * 清空行为不管是否被禁用还是保留记录,都将彻底清空选中状态
17070
17171
  */
17071
17172
  clearCheckboxRow: function clearCheckboxRow() {
17072
- var _this33 = this;
17173
+ var _this35 = this;
17073
17174
 
17074
17175
  var tableFullData = this.tableFullData,
17075
17176
  treeConfig = this.treeConfig,
@@ -17092,7 +17193,7 @@ var Methods = {
17092
17193
 
17093
17194
  if (reserve) {
17094
17195
  tableFullData.forEach(function (row) {
17095
- return _this33.handleCheckboxReserveRow(row, false);
17196
+ return _this35.handleCheckboxReserveRow(row, false);
17096
17197
  });
17097
17198
  }
17098
17199
 
@@ -17383,13 +17484,13 @@ var Methods = {
17383
17484
  * 如果存在规则,则校验
17384
17485
  */
17385
17486
  handleChangeCell: function handleChangeCell(evnt, params) {
17386
- var _this34 = this;
17487
+ var _this36 = this;
17387
17488
 
17388
17489
  this.checkValidate('blur').catch(function (e) {
17389
17490
  return e;
17390
17491
  }).then(function () {
17391
- _this34.handleActived(params, evnt).then(function () {
17392
- return _this34.checkValidate('change');
17492
+ _this36.handleActived(params, evnt).then(function () {
17493
+ return _this36.checkValidate('change');
17393
17494
  }).catch(function (e) {
17394
17495
  return e;
17395
17496
  });
@@ -17492,7 +17593,7 @@ var Methods = {
17492
17593
  * 如果是双击模式,则激活为编辑状态
17493
17594
  */
17494
17595
  triggerCellDblclickEvent: function triggerCellDblclickEvent(evnt, params) {
17495
- var _this35 = this;
17596
+ var _this37 = this;
17496
17597
 
17497
17598
  var editStore = this.editStore,
17498
17599
  editConfig = this.editConfig,
@@ -17507,15 +17608,15 @@ var Methods = {
17507
17608
  this.checkValidate('blur').catch(function (e) {
17508
17609
  return e;
17509
17610
  }).then(function () {
17510
- _this35.handleActived(params, evnt).then(function () {
17511
- return _this35.checkValidate('change');
17611
+ _this37.handleActived(params, evnt).then(function () {
17612
+ return _this37.checkValidate('change');
17512
17613
  }).catch(function (e) {
17513
17614
  return e;
17514
17615
  });
17515
17616
  });
17516
17617
  } else if (editOpts.mode === 'cell') {
17517
17618
  this.handleActived(params, evnt).then(function () {
17518
- return _this35.checkValidate('change');
17619
+ return _this37.checkValidate('change');
17519
17620
  }).catch(function (e) {
17520
17621
  return e;
17521
17622
  });
@@ -17526,7 +17627,7 @@ var Methods = {
17526
17627
  this.emitEvent('cell-dblclick', params, evnt);
17527
17628
  },
17528
17629
  handleDefaultSort: function handleDefaultSort() {
17529
- var _this36 = this;
17630
+ var _this38 = this;
17530
17631
 
17531
17632
  var sortConfig = this.sortConfig,
17532
17633
  sortOpts = this.sortOpts;
@@ -17543,7 +17644,7 @@ var Methods = {
17543
17644
  order = item.order;
17544
17645
 
17545
17646
  if (field && order) {
17546
- var column = _this36.getColumnByField(field);
17647
+ var column = _this38.getColumnByField(field);
17547
17648
 
17548
17649
  if (column && column.sortable) {
17549
17650
  column.order = order;
@@ -17586,7 +17687,7 @@ var Methods = {
17586
17687
  }
17587
17688
  },
17588
17689
  sort: function sort(sortConfs, sortOrder) {
17589
- var _this37 = this;
17690
+ var _this39 = this;
17590
17691
 
17591
17692
  var sortOpts = this.sortOpts;
17592
17693
  var multiple = sortOpts.multiple,
@@ -17619,7 +17720,7 @@ var Methods = {
17619
17720
  var column = field;
17620
17721
 
17621
17722
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isString(field)) {
17622
- column = _this37.getColumnByField(field);
17723
+ column = _this39.getColumnByField(field);
17623
17724
  }
17624
17725
 
17625
17726
  if (column && (column.sortable || column.remoteSort)) {
@@ -17628,7 +17729,7 @@ var Methods = {
17628
17729
  }
17629
17730
 
17630
17731
  if (orders.indexOf(order) === -1) {
17631
- order = getNextSortOrder(_this37, column);
17732
+ order = getNextSortOrder(_this39, column);
17632
17733
  }
17633
17734
 
17634
17735
  if (column.order !== order) {
@@ -17778,7 +17879,7 @@ var Methods = {
17778
17879
  * @param {Row} row 行对象
17779
17880
  */
17780
17881
  reloadRowExpand: function reloadRowExpand(row) {
17781
- var _this38 = this;
17882
+ var _this40 = this;
17782
17883
 
17783
17884
  var expandOpts = this.expandOpts,
17784
17885
  expandLazyLoadeds = this.expandLazyLoadeds;
@@ -17786,7 +17887,7 @@ var Methods = {
17786
17887
 
17787
17888
  if (lazy && expandLazyLoadeds.indexOf(row) === -1) {
17788
17889
  this.clearRowExpandLoaded(row).then(function () {
17789
- return _this38.handleAsyncRowExpand(row);
17890
+ return _this40.handleAsyncRowExpand(row);
17790
17891
  });
17791
17892
  }
17792
17893
 
@@ -17863,28 +17964,28 @@ var Methods = {
17863
17964
  return this.setRowExpand(this.expandOpts.lazy ? this.tableData : this.tableFullData, expanded);
17864
17965
  },
17865
17966
  handleAsyncRowExpand: function handleAsyncRowExpand(row) {
17866
- var _this39 = this;
17967
+ var _this41 = this;
17867
17968
 
17868
17969
  var rest = this.fullAllDataRowMap.get(row);
17869
17970
  return new Promise(function (resolve) {
17870
- _this39.expandLazyLoadeds.push(row);
17971
+ _this41.expandLazyLoadeds.push(row);
17871
17972
 
17872
- _this39.expandOpts.loadMethod({
17873
- $table: _this39,
17973
+ _this41.expandOpts.loadMethod({
17974
+ $table: _this41,
17874
17975
  row: row,
17875
- rowIndex: _this39.getRowIndex(row),
17876
- $rowIndex: _this39.getVMRowIndex(row)
17976
+ rowIndex: _this41.getRowIndex(row),
17977
+ $rowIndex: _this41.getVMRowIndex(row)
17877
17978
  }).catch(function (e) {
17878
17979
  return e;
17879
17980
  }).then(function () {
17880
17981
  rest.expandLoaded = true;
17881
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(_this39.expandLazyLoadeds, function (item) {
17982
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(_this41.expandLazyLoadeds, function (item) {
17882
17983
  return item === row;
17883
17984
  });
17884
17985
 
17885
- _this39.rowExpandeds.push(row);
17986
+ _this41.rowExpandeds.push(row);
17886
17987
 
17887
- resolve(_this39.$nextTick().then(_this39.recalculate));
17988
+ resolve(_this41.$nextTick().then(_this41.recalculate));
17888
17989
  });
17889
17990
  });
17890
17991
  },
@@ -17897,7 +17998,7 @@ var Methods = {
17897
17998
  * @param {Boolean} expanded 是否展开
17898
17999
  */
17899
18000
  setRowExpand: function setRowExpand(rows, expanded) {
17900
- var _this40 = this;
18001
+ var _this42 = this;
17901
18002
 
17902
18003
  var fullAllDataRowMap = this.fullAllDataRowMap,
17903
18004
  expandLazyLoadeds = this.expandLazyLoadeds,
@@ -17930,8 +18031,8 @@ var Methods = {
17930
18031
  columnIndex: columnIndex,
17931
18032
  $columnIndex: $columnIndex,
17932
18033
  row: row,
17933
- rowIndex: _this40.getRowIndex(row),
17934
- $rowIndex: _this40.getVMRowIndex(row)
18034
+ rowIndex: _this42.getRowIndex(row),
18035
+ $rowIndex: _this42.getVMRowIndex(row)
17935
18036
  });
17936
18037
  }) : rows;
17937
18038
 
@@ -17942,7 +18043,7 @@ var Methods = {
17942
18043
  var isLoad = lazy && !rest.expandLoaded && expandLazyLoadeds.indexOf(row) === -1;
17943
18044
 
17944
18045
  if (isLoad) {
17945
- lazyRests.push(_this40.handleAsyncRowExpand(row));
18046
+ lazyRests.push(_this42.handleAsyncRowExpand(row));
17946
18047
  } else {
17947
18048
  rowExpandeds.push(row);
17948
18049
  }
@@ -17956,7 +18057,7 @@ var Methods = {
17956
18057
 
17957
18058
  if (reserve) {
17958
18059
  validRows.forEach(function (row) {
17959
- return _this40.handleRowExpandReserve(row, expanded);
18060
+ return _this42.handleRowExpandReserve(row, expanded);
17960
18061
  });
17961
18062
  }
17962
18063
  }
@@ -17977,7 +18078,7 @@ var Methods = {
17977
18078
  * 手动清空展开行状态,数据会恢复成未展开的状态
17978
18079
  */
17979
18080
  clearRowExpand: function clearRowExpand() {
17980
- var _this41 = this;
18081
+ var _this43 = this;
17981
18082
 
17982
18083
  var expandOpts = this.expandOpts,
17983
18084
  rowExpandeds = this.rowExpandeds,
@@ -17988,13 +18089,13 @@ var Methods = {
17988
18089
 
17989
18090
  if (reserve) {
17990
18091
  tableFullData.forEach(function (row) {
17991
- return _this41.handleRowExpandReserve(row, false);
18092
+ return _this43.handleRowExpandReserve(row, false);
17992
18093
  });
17993
18094
  }
17994
18095
 
17995
18096
  return this.$nextTick().then(function () {
17996
18097
  if (isExists) {
17997
- _this41.recalculate();
18098
+ _this43.recalculate();
17998
18099
  }
17999
18100
  });
18000
18101
  },
@@ -18073,7 +18174,7 @@ var Methods = {
18073
18174
  * @param {Row} row 行对象
18074
18175
  */
18075
18176
  reloadTreeExpand: function reloadTreeExpand(row) {
18076
- var _this42 = this;
18177
+ var _this44 = this;
18077
18178
 
18078
18179
  var treeOpts = this.treeOpts,
18079
18180
  treeLazyLoadeds = this.treeLazyLoadeds;
@@ -18083,15 +18184,15 @@ var Methods = {
18083
18184
 
18084
18185
  if (lazy && row[hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
18085
18186
  this.clearTreeExpandLoaded(row).then(function () {
18086
- return _this42.handleAsyncTreeExpandChilds(row);
18187
+ return _this44.handleAsyncTreeExpandChilds(row);
18087
18188
  }).then(function () {
18088
18189
  if (transform) {
18089
- _this42.handleVirtualTreeToList();
18190
+ _this44.handleVirtualTreeToList();
18090
18191
 
18091
- return _this42.handleTableData();
18192
+ return _this44.handleTableData();
18092
18193
  }
18093
18194
  }).then(function () {
18094
- return _this42.recalculate();
18195
+ return _this44.recalculate();
18095
18196
  });
18096
18197
  }
18097
18198
 
@@ -18167,7 +18268,7 @@ var Methods = {
18167
18268
  }
18168
18269
  },
18169
18270
  handleAsyncTreeExpandChilds: function handleAsyncTreeExpandChilds(row) {
18170
- var _this43 = this;
18271
+ var _this45 = this;
18171
18272
 
18172
18273
  var fullAllDataRowMap = this.fullAllDataRowMap,
18173
18274
  treeExpandeds = this.treeExpandeds,
@@ -18181,7 +18282,7 @@ var Methods = {
18181
18282
  return new Promise(function (resolve) {
18182
18283
  treeLazyLoadeds.push(row);
18183
18284
  loadMethod({
18184
- $table: _this43,
18285
+ $table: _this45,
18185
18286
  row: row
18186
18287
  }).catch(function () {
18187
18288
  return [];
@@ -18196,29 +18297,29 @@ var Methods = {
18196
18297
  }
18197
18298
 
18198
18299
  if (childRecords) {
18199
- _this43.loadTreeChildren(row, childRecords).then(function (childRows) {
18300
+ _this45.loadTreeChildren(row, childRecords).then(function (childRows) {
18200
18301
  if (childRows.length && treeExpandeds.indexOf(row) === -1) {
18201
18302
  treeExpandeds.push(row);
18202
18303
  } // 如果当前节点已选中,则展开后子节点也被选中
18203
18304
 
18204
18305
 
18205
- if (!checkStrictly && _this43.isCheckedByCheckboxRow(row)) {
18206
- _this43.setCheckboxRow(childRows, true);
18306
+ if (!checkStrictly && _this45.isCheckedByCheckboxRow(row)) {
18307
+ _this45.setCheckboxRow(childRows, true);
18207
18308
  }
18208
18309
 
18209
- _this43.$nextTick().then(function () {
18310
+ _this45.$nextTick().then(function () {
18210
18311
  if (transform) {
18211
- return _this43.handleTableData();
18312
+ return _this45.handleTableData();
18212
18313
  }
18213
18314
  }).then(function () {
18214
- return _this43.recalculate();
18315
+ return _this45.recalculate();
18215
18316
  }).then(function () {
18216
18317
  return resolve();
18217
18318
  });
18218
18319
  });
18219
18320
  } else {
18220
- _this43.$nextTick().then(function () {
18221
- return _this43.recalculate();
18321
+ _this45.$nextTick().then(function () {
18322
+ return _this45.recalculate();
18222
18323
  }).then(function () {
18223
18324
  return resolve();
18224
18325
  });
@@ -18254,7 +18355,7 @@ var Methods = {
18254
18355
  * @returns
18255
18356
  */
18256
18357
  handleBaseTreeExpand: function handleBaseTreeExpand(rows, expanded) {
18257
- var _this44 = this;
18358
+ var _this46 = this;
18258
18359
 
18259
18360
  var fullAllDataRowMap = this.fullAllDataRowMap,
18260
18361
  tableFullData = this.tableFullData,
@@ -18302,7 +18403,7 @@ var Methods = {
18302
18403
  var isLoad = lazy && row[hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1; // 是否使用懒加载
18303
18404
 
18304
18405
  if (isLoad) {
18305
- result.push(_this44.handleAsyncTreeExpandChilds(row));
18406
+ result.push(_this46.handleAsyncTreeExpandChilds(row));
18306
18407
  } else {
18307
18408
  if (row[children] && row[children].length) {
18308
18409
  treeExpandeds.push(row);
@@ -18318,7 +18419,7 @@ var Methods = {
18318
18419
 
18319
18420
  if (reserve) {
18320
18421
  validRows.forEach(function (row) {
18321
- return _this44.handleTreeExpandReserve(row, expanded);
18422
+ return _this46.handleTreeExpandReserve(row, expanded);
18322
18423
  });
18323
18424
  }
18324
18425
 
@@ -18332,14 +18433,14 @@ var Methods = {
18332
18433
  * @returns
18333
18434
  */
18334
18435
  handleVirtualTreeExpand: function handleVirtualTreeExpand(rows, expanded) {
18335
- var _this45 = this;
18436
+ var _this47 = this;
18336
18437
 
18337
18438
  return this.handleBaseTreeExpand(rows, expanded).then(function () {
18338
- _this45.handleVirtualTreeToList();
18439
+ _this47.handleVirtualTreeToList();
18339
18440
 
18340
- return _this45.handleTableData();
18441
+ return _this47.handleTableData();
18341
18442
  }).then(function () {
18342
- return _this45.recalculate();
18443
+ return _this47.recalculate();
18343
18444
  });
18344
18445
  },
18345
18446
 
@@ -18384,7 +18485,7 @@ var Methods = {
18384
18485
  * 手动清空树形节点的展开状态,数据会恢复成未展开的状态
18385
18486
  */
18386
18487
  clearTreeExpand: function clearTreeExpand() {
18387
- var _this46 = this;
18488
+ var _this48 = this;
18388
18489
 
18389
18490
  var treeOpts = this.treeOpts,
18390
18491
  treeExpandeds = this.treeExpandeds,
@@ -18396,19 +18497,19 @@ var Methods = {
18396
18497
 
18397
18498
  if (reserve) {
18398
18499
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(tableFullData, function (row) {
18399
- return _this46.handleTreeExpandReserve(row, false);
18500
+ return _this48.handleTreeExpandReserve(row, false);
18400
18501
  }, treeOpts);
18401
18502
  }
18402
18503
 
18403
18504
  return this.handleTableData().then(function () {
18404
18505
  if (transform) {
18405
- _this46.handleVirtualTreeToList();
18506
+ _this48.handleVirtualTreeToList();
18406
18507
 
18407
- return _this46.handleTableData();
18508
+ return _this48.handleTableData();
18408
18509
  }
18409
18510
  }).then(function () {
18410
18511
  if (isExists) {
18411
- _this46.recalculate();
18512
+ _this48.recalculate();
18412
18513
  }
18413
18514
  });
18414
18515
  },
@@ -18538,18 +18639,18 @@ var Methods = {
18538
18639
  },
18539
18640
  // 计算可视渲染相关数据
18540
18641
  computeScrollLoad: function computeScrollLoad() {
18541
- var _this47 = this;
18642
+ var _this49 = this;
18542
18643
 
18543
18644
  return this.$nextTick().then(function () {
18544
- var sYOpts = _this47.sYOpts,
18545
- sXOpts = _this47.sXOpts,
18546
- scrollXLoad = _this47.scrollXLoad,
18547
- scrollYLoad = _this47.scrollYLoad,
18548
- scrollXStore = _this47.scrollXStore,
18549
- scrollYStore = _this47.scrollYStore; // 计算 X 逻辑
18645
+ var sYOpts = _this49.sYOpts,
18646
+ sXOpts = _this49.sXOpts,
18647
+ scrollXLoad = _this49.scrollXLoad,
18648
+ scrollYLoad = _this49.scrollYLoad,
18649
+ scrollXStore = _this49.scrollXStore,
18650
+ scrollYStore = _this49.scrollYStore; // 计算 X 逻辑
18550
18651
 
18551
18652
  if (scrollXLoad) {
18552
- var _computeVirtualX3 = computeVirtualX(_this47),
18653
+ var _computeVirtualX3 = computeVirtualX(_this49),
18553
18654
  visibleXSize = _computeVirtualX3.visibleSize;
18554
18655
 
18555
18656
  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;
@@ -18557,13 +18658,13 @@ var Methods = {
18557
18658
  scrollXStore.visibleSize = visibleXSize;
18558
18659
  scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
18559
18660
 
18560
- _this47.updateScrollXData();
18661
+ _this49.updateScrollXData();
18561
18662
  } else {
18562
- _this47.updateScrollXSpace();
18663
+ _this49.updateScrollXSpace();
18563
18664
  } // 计算 Y 逻辑
18564
18665
 
18565
18666
 
18566
- var _computeVirtualY = computeVirtualY(_this47),
18667
+ var _computeVirtualY = computeVirtualY(_this49),
18567
18668
  rowHeight = _computeVirtualY.rowHeight,
18568
18669
  visibleYSize = _computeVirtualY.visibleSize;
18569
18670
 
@@ -18575,14 +18676,14 @@ var Methods = {
18575
18676
  scrollYStore.visibleSize = visibleYSize;
18576
18677
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
18577
18678
 
18578
- _this47.updateScrollYData();
18679
+ _this49.updateScrollYData();
18579
18680
  } else {
18580
- _this47.updateScrollYSpace();
18681
+ _this49.updateScrollYSpace();
18581
18682
  }
18582
18683
 
18583
- _this47.rowHeight = rowHeight;
18684
+ _this49.rowHeight = rowHeight;
18584
18685
 
18585
- _this47.$nextTick(_this47.updateStyle);
18686
+ _this49.$nextTick(_this49.updateStyle);
18586
18687
  });
18587
18688
  },
18588
18689
  handleTableColumn: function handleTableColumn() {
@@ -18696,7 +18797,7 @@ var Methods = {
18696
18797
  * @param {Number} scrollTop 上距离
18697
18798
  */
18698
18799
  scrollTo: function scrollTo(scrollLeft, scrollTop) {
18699
- var _this48 = this;
18800
+ var _this50 = this;
18700
18801
 
18701
18802
  var $refs = this.$refs;
18702
18803
  var tableBody = $refs.tableBody,
@@ -18717,7 +18818,7 @@ var Methods = {
18717
18818
  if (this.scrollXLoad || this.scrollYLoad) {
18718
18819
  return new Promise(function (resolve) {
18719
18820
  return setTimeout(function () {
18720
- return resolve(_this48.$nextTick());
18821
+ return resolve(_this50.$nextTick());
18721
18822
  }, 50);
18722
18823
  });
18723
18824
  }
@@ -18768,7 +18869,7 @@ var Methods = {
18768
18869
  * @param {Row} row 行对象
18769
18870
  */
18770
18871
  scrollToTreeRow: function scrollToTreeRow(row) {
18771
- var _this49 = this;
18872
+ var _this51 = this;
18772
18873
 
18773
18874
  var tableFullData = this.tableFullData,
18774
18875
  treeConfig = this.treeConfig,
@@ -18783,15 +18884,15 @@ var Methods = {
18783
18884
  if (matchObj) {
18784
18885
  var nodes = matchObj.nodes;
18785
18886
  nodes.forEach(function (row, index) {
18786
- if (index < nodes.length - 1 && !_this49.isTreeExpandByRow(row)) {
18787
- rests.push(_this49.setTreeExpand(row, true));
18887
+ if (index < nodes.length - 1 && !_this51.isTreeExpandByRow(row)) {
18888
+ rests.push(_this51.setTreeExpand(row, true));
18788
18889
  }
18789
18890
  });
18790
18891
  }
18791
18892
  }
18792
18893
 
18793
18894
  return Promise.all(rests).then(function () {
18794
- return DomTools.rowToVisible(_this49, row);
18895
+ return DomTools.rowToVisible(_this51, row);
18795
18896
  });
18796
18897
  },
18797
18898
 
@@ -18855,29 +18956,29 @@ var Methods = {
18855
18956
  * 如果单元格配置了校验规则,则会进行校验
18856
18957
  */
18857
18958
  updateStatus: function updateStatus(scope, cellValue) {
18858
- var _this50 = this;
18959
+ var _this52 = this;
18859
18960
 
18860
18961
  var customVal = !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isUndefined(cellValue);
18861
18962
  return this.$nextTick().then(function () {
18862
- var $refs = _this50.$refs,
18863
- editRules = _this50.editRules,
18864
- validStore = _this50.validStore;
18963
+ var $refs = _this52.$refs,
18964
+ editRules = _this52.editRules,
18965
+ validStore = _this52.validStore;
18865
18966
 
18866
18967
  if (scope && $refs.tableBody && editRules) {
18867
18968
  var row = scope.row,
18868
18969
  column = scope.column;
18869
18970
  var type = 'change';
18870
18971
 
18871
- if (_this50.hasCellRules(type, row, column)) {
18872
- var cell = _this50.getCell(row, column);
18972
+ if (_this52.hasCellRules(type, row, column)) {
18973
+ var cell = _this52.getCell(row, column);
18873
18974
 
18874
18975
  if (cell) {
18875
- return _this50.validCellRules(type, row, column, cellValue).then(function () {
18976
+ return _this52.validCellRules(type, row, column, cellValue).then(function () {
18876
18977
  if (customVal && validStore.visible) {
18877
18978
  methods_setCellValue(row, column, cellValue);
18878
18979
  }
18879
18980
 
18880
- _this50.clearValidate();
18981
+ _this52.clearValidate();
18881
18982
  }).catch(function (_ref8) {
18882
18983
  var rule = _ref8.rule;
18883
18984
 
@@ -18885,7 +18986,7 @@ var Methods = {
18885
18986
  methods_setCellValue(row, column, cellValue);
18886
18987
  }
18887
18988
 
18888
- _this50.showValidTooltip({
18989
+ _this52.showValidTooltip({
18889
18990
  rule: rule,
18890
18991
  row: row,
18891
18992
  column: column,
@@ -18906,7 +19007,7 @@ var Methods = {
18906
19007
  * @param {TableMergeConfig[]} merges { row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }
18907
19008
  */
18908
19009
  setMergeCells: function setMergeCells(merges) {
18909
- var _this51 = this;
19010
+ var _this53 = this;
18910
19011
 
18911
19012
  if (this.spanMethod) {
18912
19013
  UtilTools.error('vxe.error.errConflicts', ['merge-cells', 'span-method']);
@@ -18914,7 +19015,7 @@ var Methods = {
18914
19015
 
18915
19016
  setMerges(this, merges, this.mergeList, this.afterFullData);
18916
19017
  return this.$nextTick().then(function () {
18917
- return _this51.updateCellAreas();
19018
+ return _this53.updateCellAreas();
18918
19019
  });
18919
19020
  },
18920
19021
 
@@ -18923,7 +19024,7 @@ var Methods = {
18923
19024
  * @param {TableMergeConfig[]} merges 多个或数组 [{row:Row|number, col:ColumnInfo|number}]
18924
19025
  */
18925
19026
  removeMergeCells: function removeMergeCells(merges) {
18926
- var _this52 = this;
19027
+ var _this54 = this;
18927
19028
 
18928
19029
  if (this.spanMethod) {
18929
19030
  UtilTools.error('vxe.error.errConflicts', ['merge-cells', 'span-method']);
@@ -18931,7 +19032,7 @@ var Methods = {
18931
19032
 
18932
19033
  var rest = removeMerges(this, merges, this.mergeList, this.afterFullData);
18933
19034
  return this.$nextTick().then(function () {
18934
- _this52.updateCellAreas();
19035
+ _this54.updateCellAreas();
18935
19036
 
18936
19037
  return rest;
18937
19038
  });
@@ -18955,7 +19056,7 @@ var Methods = {
18955
19056
  this.setMergeFooterItems(this.mergeFooterItems);
18956
19057
  },
18957
19058
  setMergeFooterItems: function setMergeFooterItems(merges) {
18958
- var _this53 = this;
19059
+ var _this55 = this;
18959
19060
 
18960
19061
  if (this.footerSpanMethod) {
18961
19062
  UtilTools.error('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
@@ -18963,11 +19064,11 @@ var Methods = {
18963
19064
 
18964
19065
  setMerges(this, merges, this.mergeFooterList, null);
18965
19066
  return this.$nextTick().then(function () {
18966
- return _this53.updateCellAreas();
19067
+ return _this55.updateCellAreas();
18967
19068
  });
18968
19069
  },
18969
19070
  removeMergeFooterItems: function removeMergeFooterItems(merges) {
18970
- var _this54 = this;
19071
+ var _this56 = this;
18971
19072
 
18972
19073
  if (this.footerSpanMethod) {
18973
19074
  UtilTools.error('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
@@ -18975,7 +19076,7 @@ var Methods = {
18975
19076
 
18976
19077
  var rest = removeMerges(this, merges, this.mergeFooterList, null);
18977
19078
  return this.$nextTick().then(function () {
18978
- _this54.updateCellAreas();
19079
+ _this56.updateCellAreas();
18979
19080
 
18980
19081
  return rest;
18981
19082
  });
@@ -19115,7 +19216,7 @@ var Methods = {
19115
19216
  }
19116
19217
  }; // Module methods
19117
19218
 
19118
- var funcs = 'setFilter,openFilter,clearFilter,getCheckedFilters,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,clearCopyCellArea,setCellAreas,openFind,openReplace,getSelectedCell,clearSelected,insert,insertAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearActived,getActiveRecord,isActiveByRow,setActiveRow,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',');
19219
+ var funcs = 'setFilter,openFilter,clearFilter,getCheckedFilters,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,clearCopyCellArea,setCellAreas,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearActived,getActiveRecord,isActiveByRow,setActiveRow,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',');
19119
19220
  funcs.forEach(function (name) {
19120
19221
  Methods[name] = function () {
19121
19222
  if (false) {}
@@ -20870,8 +20971,8 @@ var Table = Object.assign(table, {
20870
20971
 
20871
20972
  var filterStore = this.filterStore,
20872
20973
  filterOpts = this.filterOpts,
20873
- scrollXLoad = this.scrollXLoad,
20874
- scrollYLoad = this.scrollYLoad;
20974
+ oldScrollXLoad = this.scrollXLoad,
20975
+ oldScrollYLoad = this.scrollYLoad;
20875
20976
  var column = filterStore.column;
20876
20977
  var property = column.property;
20877
20978
  var values = [];
@@ -20887,15 +20988,6 @@ var Table = Object.assign(table, {
20887
20988
  if (!filterOpts.remote) {
20888
20989
  this.handleTableData(true);
20889
20990
  this.checkSelectionStatus();
20890
- this.updateFooter();
20891
-
20892
- if (scrollXLoad || scrollYLoad) {
20893
- this.refreshScroll();
20894
-
20895
- if (scrollYLoad) {
20896
- this.updateScrollYSpace();
20897
- }
20898
- }
20899
20991
  }
20900
20992
 
20901
20993
  this.emitEvent('filter-change', {
@@ -20907,10 +20999,30 @@ var Table = Object.assign(table, {
20907
20999
  filterList: filterList
20908
21000
  }, evnt);
20909
21001
  this.closeFilter();
20910
- this.$nextTick(function () {
20911
- _this2.recalculate();
21002
+ this.updateFooter().then(function () {
21003
+ var scrollXLoad = _this2.scrollXLoad,
21004
+ scrollYLoad = _this2.scrollYLoad;
21005
+
21006
+ if (oldScrollXLoad || scrollXLoad || oldScrollYLoad || scrollYLoad) {
21007
+ if (oldScrollXLoad || scrollXLoad) {
21008
+ _this2.updateScrollXSpace();
21009
+ }
21010
+
21011
+ if (oldScrollYLoad || scrollYLoad) {
21012
+ _this2.updateScrollYSpace();
21013
+ }
20912
21014
 
21015
+ return _this2.refreshScroll();
21016
+ }
21017
+ }).then(function () {
20913
21018
  _this2.updateCellAreas();
21019
+
21020
+ return _this2.recalculate(true);
21021
+ }).then(function () {
21022
+ // 存在滚动行为未结束情况
21023
+ setTimeout(function () {
21024
+ return _this2.recalculate();
21025
+ }, 50);
20914
21026
  });
20915
21027
  },
20916
21028
  handleClearFilter: function handleClearFilter(column) {
@@ -23692,29 +23804,10 @@ var msgQueue = [];
23692
23804
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.pad-start.js
23693
23805
  var es_string_pad_start = __webpack_require__("4d90");
23694
23806
 
23695
- // CONCATENATED MODULE: ./packages/input/src/input.js
23696
-
23697
-
23698
-
23699
-
23700
-
23701
-
23702
-
23703
-
23704
-
23807
+ // CONCATENATED MODULE: ./packages/input/src/date.js
23705
23808
 
23706
23809
 
23707
23810
 
23708
-
23709
-
23710
-
23711
-
23712
-
23713
-
23714
- var yearSize = 20;
23715
- var monthSize = 20;
23716
- var quarterSize = 8;
23717
-
23718
23811
  function toStringTimeDate(str) {
23719
23812
  if (str) {
23720
23813
  var rest = new Date();
@@ -23743,7 +23836,6 @@ function toStringTimeDate(str) {
23743
23836
 
23744
23837
  return new Date('');
23745
23838
  }
23746
-
23747
23839
  function getDateQuarter(date) {
23748
23840
  var month = date.getMonth();
23749
23841
 
@@ -23757,7 +23849,14 @@ function getDateQuarter(date) {
23757
23849
 
23758
23850
  return 4;
23759
23851
  }
23852
+ // CONCATENATED MODULE: ./packages/input/src/number.js
23853
+
23760
23854
 
23855
+
23856
+
23857
+ function handleNumber(val) {
23858
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isString(val) ? val.replace(/,/g, '') : val;
23859
+ }
23761
23860
  function toFloatValueFixed(inputValue, digitsValue) {
23762
23861
  if (/^-/.test('' + inputValue)) {
23763
23862
  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);
@@ -23765,6 +23864,28 @@ function toFloatValueFixed(inputValue, digitsValue) {
23765
23864
 
23766
23865
  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);
23767
23866
  }
23867
+ // CONCATENATED MODULE: ./packages/input/src/input.js
23868
+
23869
+
23870
+
23871
+
23872
+
23873
+
23874
+
23875
+
23876
+
23877
+
23878
+
23879
+
23880
+
23881
+
23882
+
23883
+
23884
+
23885
+
23886
+ var yearSize = 20;
23887
+ var monthSize = 20;
23888
+ var quarterSize = 8;
23768
23889
 
23769
23890
  function getNumberValue(_vm, val) {
23770
23891
  var type = _vm.type,
@@ -25273,7 +25394,7 @@ function renderExtraSuffixIcon(h, _vm) {
25273
25394
  if (!inpReadonly) {
25274
25395
  if (isNumType) {
25275
25396
  if (inputValue) {
25276
- 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);
25397
+ 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));
25277
25398
 
25278
25399
  if (!this.vaildMinNum(inpNumVal)) {
25279
25400
  inpNumVal = min;
@@ -25465,7 +25586,7 @@ function renderExtraSuffixIcon(h, _vm) {
25465
25586
  type = this.type,
25466
25587
  inputValue = this.inputValue,
25467
25588
  stepValue = this.stepValue;
25468
- 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);
25589
+ 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));
25469
25590
  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);
25470
25591
  var restNum;
25471
25592
 
@@ -30632,6 +30753,7 @@ function validErrorRuleValue(rule, val) {
30632
30753
  row: row,
30633
30754
  columnIndex: _this2.getColumnIndex(column),
30634
30755
  column: column,
30756
+ field: column.property,
30635
30757
  $table: _this2
30636
30758
  };
30637
30759
 
@@ -30779,6 +30901,7 @@ function validErrorRuleValue(rule, val) {
30779
30901
  rowIndex: _this3.getRowIndex(row),
30780
30902
  column: column,
30781
30903
  columnIndex: _this3.getColumnIndex(column),
30904
+ field: column.property,
30782
30905
  $table: _this3
30783
30906
  });
30784
30907
 
@@ -34087,6 +34210,11 @@ var Toolbar = Object.assign(src_toolbar, {
34087
34210
  default: null
34088
34211
  }
34089
34212
  },
34213
+ data: function data() {
34214
+ return {
34215
+ inpCurrPage: this.currentPage
34216
+ };
34217
+ },
34090
34218
  computed: {
34091
34219
  isSizes: function isSizes() {
34092
34220
  return this.layouts.some(function (name) {
@@ -34125,6 +34253,11 @@ var Toolbar = Object.assign(src_toolbar, {
34125
34253
  });
34126
34254
  }
34127
34255
  },
34256
+ watch: {
34257
+ currentPage: function currentPage(value) {
34258
+ this.inpCurrPage = value;
34259
+ }
34260
+ },
34128
34261
  render: function render(h) {
34129
34262
  var _this = this,
34130
34263
  _ref;
@@ -34285,13 +34418,14 @@ var Toolbar = Object.assign(src_toolbar, {
34285
34418
  }, conf.i18n('vxe.pager.goto')) : null, h('input', {
34286
34419
  class: 'vxe-pager--goto',
34287
34420
  domProps: {
34288
- value: this.currentPage
34421
+ value: this.inpCurrPage
34289
34422
  },
34290
34423
  attrs: {
34291
34424
  type: 'text',
34292
34425
  autocomplete: 'off'
34293
34426
  },
34294
34427
  on: {
34428
+ input: this.jumpInputEvent,
34295
34429
  keydown: this.jumpKeydownEvent,
34296
34430
  blur: this.triggerJumpEvent
34297
34431
  }
@@ -34435,6 +34569,9 @@ var Toolbar = Object.assign(src_toolbar, {
34435
34569
  });
34436
34570
  }
34437
34571
  },
34572
+ jumpInputEvent: function jumpInputEvent(evnt) {
34573
+ this.inpCurrPage = evnt.target.value;
34574
+ },
34438
34575
  jumpKeydownEvent: function jumpKeydownEvent(evnt) {
34439
34576
  if (evnt.keyCode === 13) {
34440
34577
  this.triggerJumpEvent(evnt);
@@ -36210,6 +36347,7 @@ function renderItems(h, _vm, itemList) {
36210
36347
  var hasEllipsis = showTitle || showTooltip || showEllipsis;
36211
36348
  var params = {
36212
36349
  data: data,
36350
+ field: field,
36213
36351
  property: field,
36214
36352
  item: item,
36215
36353
  $form: _vm
@@ -36578,6 +36716,7 @@ function renderItems(h, _vm, itemList) {
36578
36716
  if (compConf && compConf.itemResetMethod) {
36579
36717
  compConf.itemResetMethod({
36580
36718
  data: data,
36719
+ field: field,
36581
36720
  property: field,
36582
36721
  item: item,
36583
36722
  $form: _this4
@@ -36721,6 +36860,7 @@ function renderItems(h, _vm, itemList) {
36721
36860
  rule: rule,
36722
36861
  rules: rules,
36723
36862
  data: data,
36863
+ field: field,
36724
36864
  property: field,
36725
36865
  $form: _this7
36726
36866
  };
@@ -36812,6 +36952,7 @@ function renderItems(h, _vm, itemList) {
36812
36952
  rule: rule,
36813
36953
  rules: rules,
36814
36954
  data: data,
36955
+ field: property,
36815
36956
  property: property,
36816
36957
  $form: _this8
36817
36958
  });