vxe-table 3.8.10 → 3.8.12

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 (65) hide show
  1. package/lib/export/src/mixin.js +1 -1
  2. package/lib/export/src/mixin.min.js +1 -1
  3. package/lib/filter/src/panel.js +2 -2
  4. package/lib/filter/src/panel.min.js +1 -1
  5. package/lib/form/src/form-config-item.js +5 -1
  6. package/lib/form/src/form-config-item.min.js +1 -1
  7. package/lib/form/src/form-item.js +5 -1
  8. package/lib/form/src/form-item.min.js +1 -1
  9. package/lib/form/src/form.js +16 -0
  10. package/lib/form/src/form.min.js +1 -1
  11. package/lib/form/src/render.js +4 -0
  12. package/lib/form/src/render.min.js +1 -1
  13. package/lib/grid/src/grid.js +3 -3
  14. package/lib/grid/src/grid.min.js +1 -1
  15. package/lib/icon/style/style.css +1 -1
  16. package/lib/icon/style/style.min.css +1 -1
  17. package/lib/index.css +1 -1
  18. package/lib/index.umd.js +437 -312
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/style.css +1 -1
  21. package/lib/style.min.css +1 -1
  22. package/lib/table/src/cell.js +51 -11
  23. package/lib/table/src/cell.min.js +1 -1
  24. package/lib/table/src/column.js +2 -0
  25. package/lib/table/src/column.min.js +1 -1
  26. package/lib/table/src/columnInfo.js +2 -0
  27. package/lib/table/src/columnInfo.min.js +1 -1
  28. package/lib/table/src/methods.js +335 -287
  29. package/lib/table/src/methods.min.js +1 -1
  30. package/lib/table/src/table.js +12 -3
  31. package/lib/table/src/table.min.js +1 -1
  32. package/lib/table/style/style.css +11 -4
  33. package/lib/table/style/style.min.css +1 -1
  34. package/lib/tools/dom.js +1 -1
  35. package/lib/tools/dom.min.js +1 -1
  36. package/lib/tools/log.js +1 -1
  37. package/lib/tools/log.min.js +1 -1
  38. package/lib/v-x-e-table/index.js +1 -1
  39. package/lib/v-x-e-table/index.min.js +1 -1
  40. package/lib/v-x-e-table/src/conf.js +1 -1
  41. package/lib/v-x-e-table/src/conf.min.js +1 -1
  42. package/lib/vxe-table/style/style.css +11 -4
  43. package/lib/vxe-table/style/style.min.css +1 -1
  44. package/package.json +1 -1
  45. package/packages/export/src/mixin.js +1 -0
  46. package/packages/filter/src/panel.js +2 -2
  47. package/packages/form/src/form-config-item.js +3 -3
  48. package/packages/form/src/form-item.js +3 -3
  49. package/packages/form/src/form.js +14 -0
  50. package/packages/form/src/render.js +2 -2
  51. package/packages/grid/src/grid.js +3 -3
  52. package/packages/table/src/cell.js +51 -10
  53. package/packages/table/src/column.js +2 -0
  54. package/packages/table/src/columnInfo.js +2 -0
  55. package/packages/table/src/methods.js +54 -10
  56. package/packages/table/src/table.js +10 -2
  57. package/packages/tools/dom.js +1 -1
  58. package/packages/v-x-e-table/src/conf.js +1 -1
  59. package/styles/table.scss +21 -7
  60. /package/lib/icon/style/{iconfont.1720403140187.ttf → iconfont.1721008774130.ttf} +0 -0
  61. /package/lib/icon/style/{iconfont.1720403140187.woff → iconfont.1721008774130.woff} +0 -0
  62. /package/lib/icon/style/{iconfont.1720403140187.woff2 → iconfont.1721008774130.woff2} +0 -0
  63. /package/lib/{iconfont.1720403140187.ttf → iconfont.1721008774130.ttf} +0 -0
  64. /package/lib/{iconfont.1720403140187.woff → iconfont.1721008774130.woff} +0 -0
  65. /package/lib/{iconfont.1720403140187.woff2 → iconfont.1721008774130.woff2} +0 -0
@@ -2383,6 +2383,7 @@ var Methods = {
2383
2383
  var scaleList = [];
2384
2384
  var scaleMinList = [];
2385
2385
  var autoList = [];
2386
+ var remainList = [];
2386
2387
  this.tableFullColumn.forEach(function (column) {
2387
2388
  if (defaultWidth && !column.width) {
2388
2389
  column.width = defaultWidth;
@@ -2393,6 +2394,8 @@ var Methods = {
2393
2394
  if (column.visible) {
2394
2395
  if (column.resizeWidth) {
2395
2396
  resizeList.push(column);
2397
+ } else if (column.width === 'auto') {
2398
+ autoList.push(column);
2396
2399
  } else if (_dom.default.isPx(column.width)) {
2397
2400
  pxList.push(column);
2398
2401
  } else if (_dom.default.isScale(column.width)) {
@@ -2402,7 +2405,7 @@ var Methods = {
2402
2405
  } else if (_dom.default.isScale(column.minWidth)) {
2403
2406
  scaleMinList.push(column);
2404
2407
  } else {
2405
- autoList.push(column);
2408
+ remainList.push(column);
2406
2409
  }
2407
2410
  }
2408
2411
  });
@@ -2412,7 +2415,8 @@ var Methods = {
2412
2415
  pxMinList: pxMinList,
2413
2416
  scaleList: scaleList,
2414
2417
  scaleMinList: scaleMinList,
2415
- autoList: autoList
2418
+ autoList: autoList,
2419
+ remainList: remainList
2416
2420
  });
2417
2421
  },
2418
2422
  /**
@@ -2462,6 +2466,7 @@ var Methods = {
2462
2466
  var headerElem = tableHeader ? tableHeader.$el : null;
2463
2467
  var footerElem = tableFooter ? tableFooter.$el : null;
2464
2468
  if (bodyElem) {
2469
+ this.calcCellWidth();
2465
2470
  this.autoCellWidth(headerElem, bodyElem, footerElem);
2466
2471
  if (refull === true) {
2467
2472
  // 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
@@ -2473,6 +2478,40 @@ var Methods = {
2473
2478
  }
2474
2479
  return this.computeScrollLoad();
2475
2480
  },
2481
+ calcCellWidth: function calcCellWidth() {
2482
+ var _this26 = this;
2483
+ var autoWidthColumnList = this.autoWidthColumnList,
2484
+ tableData = this.tableData;
2485
+ if (!tableData.length || !autoWidthColumnList.length) {
2486
+ this.isCalcColumn = false;
2487
+ return this.$nextTick();
2488
+ }
2489
+ this.isCalcColumn = true;
2490
+ return this.$nextTick().then(function () {
2491
+ var el = _this26.$el;
2492
+ if (el) {
2493
+ autoWidthColumnList.forEach(function (column) {
2494
+ var cellElList = el.querySelectorAll(".vxe-body--column.".concat(column.id, ">.vxe-cell"));
2495
+ var firstCellEl = cellElList[0];
2496
+ var paddingSize = 0;
2497
+ if (firstCellEl) {
2498
+ var cellStyle = getComputedStyle(firstCellEl);
2499
+ paddingSize = Math.floor(_xeUtils.default.toNumber(cellStyle.paddingLeft) + _xeUtils.default.toNumber(cellStyle.paddingRight)) + 2;
2500
+ }
2501
+ var colWidth = column.renderAutoWidth - paddingSize + 2;
2502
+ _xeUtils.default.arrayEach(cellElList, function (cellEl) {
2503
+ var labelEl = cellEl.firstChild;
2504
+ if (labelEl) {
2505
+ colWidth = Math.max(colWidth, labelEl.offsetWidth);
2506
+ }
2507
+ });
2508
+ column.renderAutoWidth = colWidth + paddingSize;
2509
+ });
2510
+ _this26.analyColumnWidth();
2511
+ }
2512
+ _this26.isCalcColumn = false;
2513
+ });
2514
+ },
2476
2515
  /**
2477
2516
  * 列宽算法
2478
2517
  * 支持 px、%、固定 混合分配
@@ -2496,7 +2535,8 @@ var Methods = {
2496
2535
  pxList = columnStore.pxList,
2497
2536
  scaleList = columnStore.scaleList,
2498
2537
  scaleMinList = columnStore.scaleMinList,
2499
- autoList = columnStore.autoList;
2538
+ autoList = columnStore.autoList,
2539
+ remainList = columnStore.remainList;
2500
2540
  // 最小宽
2501
2541
  pxMinList.forEach(function (column) {
2502
2542
  var minWidth = parseInt(column.minWidth);
@@ -2521,6 +2561,12 @@ var Methods = {
2521
2561
  tableWidth += width;
2522
2562
  column.renderWidth = width;
2523
2563
  });
2564
+ // 自适应宽
2565
+ autoList.forEach(function (column) {
2566
+ var width = Math.max(60, _xeUtils.default.toInteger(column.renderAutoWidth));
2567
+ tableWidth += width;
2568
+ column.renderWidth = width;
2569
+ });
2524
2570
  // 调整了列宽
2525
2571
  resizeList.forEach(function (column) {
2526
2572
  var width = parseInt(column.resizeWidth);
@@ -2528,7 +2574,7 @@ var Methods = {
2528
2574
  column.renderWidth = width;
2529
2575
  });
2530
2576
  remainWidth -= tableWidth;
2531
- meanWidth = remainWidth > 0 ? Math.floor(remainWidth / (scaleMinList.length + pxMinList.length + autoList.length)) : 0;
2577
+ meanWidth = remainWidth > 0 ? Math.floor(remainWidth / (scaleMinList.length + pxMinList.length + remainList.length)) : 0;
2532
2578
  if (fit) {
2533
2579
  if (remainWidth > 0) {
2534
2580
  scaleMinList.concat(pxMinList).forEach(function (column) {
@@ -2539,8 +2585,8 @@ var Methods = {
2539
2585
  } else {
2540
2586
  meanWidth = minCellWidth;
2541
2587
  }
2542
- // 自适应
2543
- autoList.forEach(function (column) {
2588
+ // 剩余均分
2589
+ remainList.forEach(function (column) {
2544
2590
  var width = Math.max(meanWidth, minCellWidth);
2545
2591
  column.renderWidth = width;
2546
2592
  tableWidth += width;
@@ -2550,7 +2596,7 @@ var Methods = {
2550
2596
  * 偏移量算法
2551
2597
  * 如果所有列足够放的情况下,从最后动态列开始分配
2552
2598
  */
2553
- var dynamicList = scaleList.concat(scaleMinList).concat(pxMinList).concat(autoList);
2599
+ var dynamicList = scaleList.concat(scaleMinList).concat(pxMinList).concat(remainList);
2554
2600
  var dynamicSize = dynamicList.length - 1;
2555
2601
  if (dynamicSize > 0) {
2556
2602
  var odiffer = bodyWidth - tableWidth;
@@ -2602,7 +2648,7 @@ var Methods = {
2602
2648
  this.customMaxHeight = calcHeight(this, 'maxHeight');
2603
2649
  },
2604
2650
  updateStyle: function updateStyle() {
2605
- var _this26 = this;
2651
+ var _this27 = this;
2606
2652
  var $refs = this.$refs,
2607
2653
  isGroup = this.isGroup,
2608
2654
  fullColumnIdData = this.fullColumnIdData,
@@ -2691,7 +2737,7 @@ var Methods = {
2691
2737
  var listElem = elemStore["".concat(name, "-").concat(layout, "-list")];
2692
2738
  if (isGroup && listElem) {
2693
2739
  _xeUtils.default.arrayEach(listElem.querySelectorAll('.col--group'), function (thElem) {
2694
- var colNode = _this26.getColumnNode(thElem);
2740
+ var colNode = _this27.getColumnNode(thElem);
2695
2741
  if (colNode) {
2696
2742
  var column = colNode.item;
2697
2743
  var showHeaderOverflow = column.showHeaderOverflow;
@@ -2762,7 +2808,7 @@ var Methods = {
2762
2808
  // 如果是使用优化模式
2763
2809
  if (fixedType) {
2764
2810
  // 如果存在展开行使用全量渲染
2765
- if (!_this26.expandColumn && (scrollXLoad || scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow))) {
2811
+ if (!_this27.expandColumn && (scrollXLoad || scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow))) {
2766
2812
  if (!mergeList.length && !spanMethod && !(keyboardConfig && keyboardOpts.isMerge)) {
2767
2813
  _renderColumnList = fixedColumn;
2768
2814
  } else {
@@ -2790,7 +2836,7 @@ var Methods = {
2790
2836
  // 如果是使用优化模式
2791
2837
  if (fixedType) {
2792
2838
  // 如果存在展开行使用全量渲染
2793
- if (!_this26.expandColumn && (scrollXLoad || allColumnFooterOverflow)) {
2839
+ if (!_this27.expandColumn && (scrollXLoad || allColumnFooterOverflow)) {
2794
2840
  if (!mergeFooterList.length || !footerSpanMethod) {
2795
2841
  _renderColumnList2 = fixedColumn;
2796
2842
  } else {
@@ -2857,9 +2903,9 @@ var Methods = {
2857
2903
  var colWidth = column.renderWidth;
2858
2904
  if (cellElem) {
2859
2905
  if (colspan > 1) {
2860
- var columnIndex = _this26.getColumnIndex(column);
2906
+ var columnIndex = _this27.getColumnIndex(column);
2861
2907
  for (var _index = 1; _index < colspan; _index++) {
2862
- var nextColumn = _this26.getColumns(columnIndex + _index);
2908
+ var nextColumn = _this27.getColumns(columnIndex + _index);
2863
2909
  if (nextColumn) {
2864
2910
  colWidth += nextColumn.renderWidth;
2865
2911
  }
@@ -2901,7 +2947,7 @@ var Methods = {
2901
2947
  }
2902
2948
  },
2903
2949
  preventEvent: function preventEvent(evnt, type, args, next, end) {
2904
- var _this27 = this;
2950
+ var _this28 = this;
2905
2951
  var evntList = _vXETable.default.interceptor.get(type);
2906
2952
 
2907
2953
  // 兼容老版本
@@ -2918,8 +2964,8 @@ var Methods = {
2918
2964
  var rest;
2919
2965
  if (!evntList.some(function (func) {
2920
2966
  return func(Object.assign({
2921
- $grid: _this27.$xegrid,
2922
- $table: _this27,
2967
+ $grid: _this28.$xegrid,
2968
+ $table: _this28,
2923
2969
  $event: evnt
2924
2970
  }, args)) === false;
2925
2971
  })) {
@@ -2936,7 +2982,7 @@ var Methods = {
2936
2982
  * 全局按下事件处理
2937
2983
  */
2938
2984
  handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
2939
- var _this28 = this;
2985
+ var _this29 = this;
2940
2986
  var $el = this.$el,
2941
2987
  $refs = this.$refs,
2942
2988
  $xegrid = this.$xegrid,
@@ -2977,7 +3023,7 @@ var Methods = {
2977
3023
  } else {
2978
3024
  if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-clear').flag) {
2979
3025
  this.preventEvent(evnt, 'event.clearCustom', {}, function () {
2980
- return _this28.closeCustom();
3026
+ return _this29.closeCustom();
2981
3027
  });
2982
3028
  }
2983
3029
  }
@@ -3013,7 +3059,7 @@ var Methods = {
3013
3059
  isClear = getEventTargetNode(evnt, $el, 'vxe-footer--row').flag;
3014
3060
  }
3015
3061
  // 如果固定了高度且点击了行之外的空白处,则清除激活状态
3016
- if (!isClear && _this28.height && !_this28.overflowY) {
3062
+ if (!isClear && _this29.height && !_this29.overflowY) {
3017
3063
  var bodyWrapperElem = evnt.target;
3018
3064
  if (hasClass(bodyWrapperElem, 'vxe-table--body-wrapper')) {
3019
3065
  isClear = evnt.offsetY < bodyWrapperElem.clientHeight;
@@ -3023,7 +3069,7 @@ var Methods = {
3023
3069
  // 如果点击了当前表格之外
3024
3070
  !getEventTargetNode(evnt, $el).flag) {
3025
3071
  setTimeout(function () {
3026
- return _this28.clearEdit(evnt);
3072
+ return _this29.clearEdit(evnt);
3027
3073
  });
3028
3074
  }
3029
3075
  });
@@ -3040,9 +3086,9 @@ var Methods = {
3040
3086
  var cellAreas = this.getCellAreas();
3041
3087
  if (cellAreas.length && !getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
3042
3088
  this.preventEvent(evnt, 'event.clearAreas', {}, function () {
3043
- _this28.clearCellAreas();
3044
- _this28.clearCopyCellArea();
3045
- _this28.emitEvent('clear-cell-area-selection', {
3089
+ _this29.clearCellAreas();
3090
+ _this29.clearCopyCellArea();
3091
+ _this29.emitEvent('clear-cell-area-selection', {
3046
3092
  cellAreas: cellAreas
3047
3093
  }, evnt);
3048
3094
  });
@@ -3080,7 +3126,7 @@ var Methods = {
3080
3126
  * 表格键盘事件
3081
3127
  */
3082
3128
  keydownEvent: function keydownEvent(evnt) {
3083
- var _this29 = this;
3129
+ var _this30 = this;
3084
3130
  var filterStore = this.filterStore,
3085
3131
  ctxMenuStore = this.ctxMenuStore,
3086
3132
  editStore = this.editStore,
@@ -3093,30 +3139,30 @@ var Methods = {
3093
3139
  var isEsc = keyCode === 27;
3094
3140
  if (isEsc) {
3095
3141
  this.preventEvent(evnt, 'event.keydown', null, function () {
3096
- _this29.emitEvent('keydown-start', {}, evnt);
3097
- if (keyboardConfig && mouseConfig && mouseOpts.area && _this29.handleKeyboardEvent) {
3098
- _this29.handleKeyboardEvent(evnt);
3142
+ _this30.emitEvent('keydown-start', {}, evnt);
3143
+ if (keyboardConfig && mouseConfig && mouseOpts.area && _this30.handleKeyboardEvent) {
3144
+ _this30.handleKeyboardEvent(evnt);
3099
3145
  } else if (actived.row || filterStore.visible || ctxMenuStore.visible) {
3100
3146
  evnt.stopPropagation();
3101
3147
  // 如果按下了 Esc 键,关闭快捷菜单、筛选
3102
- _this29.closeFilter();
3103
- _this29.closeMenu();
3148
+ _this30.closeFilter();
3149
+ _this30.closeMenu();
3104
3150
  if (keyboardConfig && keyboardOpts.isEsc) {
3105
3151
  // 如果是激活编辑状态,则取消编辑
3106
3152
  if (actived.row) {
3107
3153
  var params = actived.args;
3108
- _this29.clearEdit(evnt);
3154
+ _this30.clearEdit(evnt);
3109
3155
  // 如果配置了选中功能,则为选中状态
3110
3156
  if (mouseConfig && mouseOpts.selected) {
3111
- _this29.$nextTick(function () {
3112
- return _this29.handleSelected(params, evnt);
3157
+ _this30.$nextTick(function () {
3158
+ return _this30.handleSelected(params, evnt);
3113
3159
  });
3114
3160
  }
3115
3161
  }
3116
3162
  }
3117
3163
  }
3118
- _this29.emitEvent('keydown', {}, evnt);
3119
- _this29.emitEvent('keydown-end', {}, evnt);
3164
+ _this30.emitEvent('keydown', {}, evnt);
3165
+ _this30.emitEvent('keydown-end', {}, evnt);
3120
3166
  });
3121
3167
  }
3122
3168
  },
@@ -3124,26 +3170,26 @@ var Methods = {
3124
3170
  * 全局键盘事件
3125
3171
  */
3126
3172
  handleGlobalKeydownEvent: function handleGlobalKeydownEvent(evnt) {
3127
- var _this30 = this;
3173
+ var _this31 = this;
3128
3174
  // 该行为只对当前激活的表格有效
3129
3175
  if (this.isActivated) {
3130
3176
  this.preventEvent(evnt, 'event.keydown', null, function () {
3131
- var filterStore = _this30.filterStore,
3132
- isCtxMenu = _this30.isCtxMenu,
3133
- ctxMenuStore = _this30.ctxMenuStore,
3134
- editStore = _this30.editStore,
3135
- editOpts = _this30.editOpts,
3136
- editConfig = _this30.editConfig,
3137
- mouseConfig = _this30.mouseConfig,
3138
- mouseOpts = _this30.mouseOpts,
3139
- keyboardConfig = _this30.keyboardConfig,
3140
- keyboardOpts = _this30.keyboardOpts,
3141
- treeConfig = _this30.treeConfig,
3142
- treeOpts = _this30.treeOpts,
3143
- highlightCurrentRow = _this30.highlightCurrentRow,
3144
- currentRow = _this30.currentRow,
3145
- bodyCtxMenu = _this30.bodyCtxMenu,
3146
- rowOpts = _this30.rowOpts;
3177
+ var filterStore = _this31.filterStore,
3178
+ isCtxMenu = _this31.isCtxMenu,
3179
+ ctxMenuStore = _this31.ctxMenuStore,
3180
+ editStore = _this31.editStore,
3181
+ editOpts = _this31.editOpts,
3182
+ editConfig = _this31.editConfig,
3183
+ mouseConfig = _this31.mouseConfig,
3184
+ mouseOpts = _this31.mouseOpts,
3185
+ keyboardConfig = _this31.keyboardConfig,
3186
+ keyboardOpts = _this31.keyboardOpts,
3187
+ treeConfig = _this31.treeConfig,
3188
+ treeOpts = _this31.treeOpts,
3189
+ highlightCurrentRow = _this31.highlightCurrentRow,
3190
+ currentRow = _this31.currentRow,
3191
+ bodyCtxMenu = _this31.bodyCtxMenu,
3192
+ rowOpts = _this31.rowOpts;
3147
3193
  var selected = editStore.selected,
3148
3194
  actived = editStore.actived;
3149
3195
  var keyCode = evnt.keyCode;
@@ -3170,7 +3216,7 @@ var Methods = {
3170
3216
  var params;
3171
3217
  if (filterStore.visible) {
3172
3218
  if (isEsc) {
3173
- _this30.closeFilter();
3219
+ _this31.closeFilter();
3174
3220
  }
3175
3221
  return;
3176
3222
  }
@@ -3178,19 +3224,19 @@ var Methods = {
3178
3224
  // 如果配置了右键菜单; 支持方向键操作、回车
3179
3225
  evnt.preventDefault();
3180
3226
  if (ctxMenuStore.showChild && hasChildrenList(ctxMenuStore.selected)) {
3181
- _this30.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
3227
+ _this31.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
3182
3228
  } else {
3183
- _this30.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this30.ctxMenuList);
3229
+ _this31.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this31.ctxMenuList);
3184
3230
  }
3185
- } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this30.handleKeyboardEvent) {
3186
- _this30.handleKeyboardEvent(evnt);
3231
+ } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this31.handleKeyboardEvent) {
3232
+ _this31.handleKeyboardEvent(evnt);
3187
3233
  } else if (keyboardConfig && isSpacebar && keyboardOpts.isChecked && selected.row && selected.column && (selected.column.type === 'checkbox' || selected.column.type === 'radio')) {
3188
3234
  // 空格键支持选中复选框
3189
3235
  evnt.preventDefault();
3190
3236
  if (selected.column.type === 'checkbox') {
3191
- _this30.handleToggleCheckRowEvent(evnt, selected.args);
3237
+ _this31.handleToggleCheckRowEvent(evnt, selected.args);
3192
3238
  } else {
3193
- _this30.triggerRadioRowEvent(evnt, selected.args);
3239
+ _this31.triggerRadioRowEvent(evnt, selected.args);
3194
3240
  }
3195
3241
  } else if (isF2 && (0, _utils.isEnableConf)(editConfig)) {
3196
3242
  if (!isEditStatus) {
@@ -3198,15 +3244,15 @@ var Methods = {
3198
3244
  if (selected.row && selected.column) {
3199
3245
  evnt.stopPropagation();
3200
3246
  evnt.preventDefault();
3201
- _this30.handleActived(selected.args, evnt);
3247
+ _this31.handleActived(selected.args, evnt);
3202
3248
  }
3203
3249
  }
3204
3250
  } else if (isContextMenu) {
3205
3251
  // 如果按下上下文键
3206
- _this30._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
3207
- clearTimeout(_this30.keyCtxTimeout);
3208
- _this30.keyCtxTimeout = setTimeout(function () {
3209
- _this30._keyCtx = false;
3252
+ _this31._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
3253
+ clearTimeout(_this31.keyCtxTimeout);
3254
+ _this31.keyCtxTimeout = setTimeout(function () {
3255
+ _this31._keyCtx = false;
3210
3256
  }, 1000);
3211
3257
  } else if (isEnter && !hasAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow)) {
3212
3258
  // 退出选中
@@ -3214,11 +3260,11 @@ var Methods = {
3214
3260
  // 如果是激活编辑状态,则取消编辑
3215
3261
  if (actived.row) {
3216
3262
  params = actived.args;
3217
- _this30.clearEdit(evnt);
3263
+ _this31.clearEdit(evnt);
3218
3264
  // 如果配置了选中功能,则为选中状态
3219
3265
  if (mouseConfig && mouseOpts.selected) {
3220
- _this30.$nextTick(function () {
3221
- return _this30.handleSelected(params, evnt);
3266
+ _this31.$nextTick(function () {
3267
+ return _this31.handleSelected(params, evnt);
3222
3268
  });
3223
3269
  }
3224
3270
  }
@@ -3228,15 +3274,15 @@ var Methods = {
3228
3274
  var targetArgs = selected.row ? selected.args : actived.args;
3229
3275
  if (hasShiftKey) {
3230
3276
  if (keyboardOpts.enterToTab) {
3231
- _this30.moveTabSelected(targetArgs, hasShiftKey, evnt);
3277
+ _this31.moveTabSelected(targetArgs, hasShiftKey, evnt);
3232
3278
  } else {
3233
- _this30.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
3279
+ _this31.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
3234
3280
  }
3235
3281
  } else {
3236
3282
  if (keyboardOpts.enterToTab) {
3237
- _this30.moveTabSelected(targetArgs, hasShiftKey, evnt);
3283
+ _this31.moveTabSelected(targetArgs, hasShiftKey, evnt);
3238
3284
  } else {
3239
- _this30.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
3285
+ _this31.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
3240
3286
  }
3241
3287
  }
3242
3288
  } else if (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
@@ -3246,13 +3292,13 @@ var Methods = {
3246
3292
  evnt.preventDefault();
3247
3293
  var targetRow = childrens[0];
3248
3294
  params = {
3249
- $table: _this30,
3295
+ $table: _this31,
3250
3296
  row: targetRow
3251
3297
  };
3252
- _this30.setTreeExpand(currentRow, true).then(function () {
3253
- return _this30.scrollToRow(targetRow);
3298
+ _this31.setTreeExpand(currentRow, true).then(function () {
3299
+ return _this31.scrollToRow(targetRow);
3254
3300
  }).then(function () {
3255
- return _this30.triggerCurrentRowEvent(evnt, params);
3301
+ return _this31.triggerCurrentRowEvent(evnt, params);
3256
3302
  });
3257
3303
  }
3258
3304
  }
@@ -3261,18 +3307,18 @@ var Methods = {
3261
3307
  if (!isEditStatus) {
3262
3308
  // 如果按下了方向键
3263
3309
  if (selected.row && selected.column) {
3264
- _this30.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
3310
+ _this31.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
3265
3311
  } else if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
3266
3312
  // 当前行按键上下移动
3267
- _this30.moveCurrentRow(isUpArrow, isDwArrow, evnt);
3313
+ _this31.moveCurrentRow(isUpArrow, isDwArrow, evnt);
3268
3314
  }
3269
3315
  }
3270
3316
  } else if (isTab && keyboardConfig && keyboardOpts.isTab) {
3271
3317
  // 如果按下了 Tab 键切换
3272
3318
  if (selected.row || selected.column) {
3273
- _this30.moveTabSelected(selected.args, hasShiftKey, evnt);
3319
+ _this31.moveTabSelected(selected.args, hasShiftKey, evnt);
3274
3320
  } else if (actived.row || actived.column) {
3275
- _this30.moveTabSelected(actived.args, hasShiftKey, evnt);
3321
+ _this31.moveTabSelected(actived.args, hasShiftKey, evnt);
3276
3322
  }
3277
3323
  } else if (keyboardConfig && (treeConfig || (0, _utils.isEnableConf)(editConfig)) && (isDel || (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow ? hasBackspaceKey && keyboardOpts.isArrow : hasBackspaceKey))) {
3278
3324
  if (!isEditStatus) {
@@ -3282,10 +3328,10 @@ var Methods = {
3282
3328
  if (keyboardOpts.isDel && (0, _utils.isEnableConf)(editConfig) && (selected.row || selected.column)) {
3283
3329
  var delPaqrams = {
3284
3330
  row: selected.row,
3285
- rowIndex: _this30.getRowIndex(selected.row),
3331
+ rowIndex: _this31.getRowIndex(selected.row),
3286
3332
  column: selected.column,
3287
- columnIndex: _this30.getColumnIndex(selected.column),
3288
- $table: _this30
3333
+ columnIndex: _this31.getColumnIndex(selected.column),
3334
+ $table: _this31
3289
3335
  };
3290
3336
  if (delMethod) {
3291
3337
  delMethod(delPaqrams);
@@ -3296,22 +3342,22 @@ var Methods = {
3296
3342
  if (backMethod) {
3297
3343
  backMethod({
3298
3344
  row: selected.row,
3299
- rowIndex: _this30.getRowIndex(selected.row),
3345
+ rowIndex: _this31.getRowIndex(selected.row),
3300
3346
  column: selected.column,
3301
- columnIndex: _this30.getColumnIndex(selected.column),
3302
- $table: _this30
3347
+ columnIndex: _this31.getColumnIndex(selected.column),
3348
+ $table: _this31
3303
3349
  });
3304
3350
  } else {
3305
- _this30.handleActived(selected.args, evnt);
3351
+ _this31.handleActived(selected.args, evnt);
3306
3352
  }
3307
3353
  } else if (isDel) {
3308
3354
  // 如果按下 del 键,更新表尾数据
3309
- _this30.updateFooter();
3355
+ _this31.updateFooter();
3310
3356
  }
3311
- _this30.emitEvent('cell-delete-value', delPaqrams, evnt);
3357
+ _this31.emitEvent('cell-delete-value', delPaqrams, evnt);
3312
3358
  } else if (hasBackspaceKey && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
3313
3359
  // 如果树形表格回退键关闭当前行返回父节点
3314
- var _XEUtils$findTree = _xeUtils.default.findTree(_this30.afterFullData, function (item) {
3360
+ var _XEUtils$findTree = _xeUtils.default.findTree(_this31.afterFullData, function (item) {
3315
3361
  return item === currentRow;
3316
3362
  }, {
3317
3363
  children: childrenField
@@ -3320,13 +3366,13 @@ var Methods = {
3320
3366
  if (parentRow) {
3321
3367
  evnt.preventDefault();
3322
3368
  params = {
3323
- $table: _this30,
3369
+ $table: _this31,
3324
3370
  row: parentRow
3325
3371
  };
3326
- _this30.setTreeExpand(parentRow, false).then(function () {
3327
- return _this30.scrollToRow(parentRow);
3372
+ _this31.setTreeExpand(parentRow, false).then(function () {
3373
+ return _this31.scrollToRow(parentRow);
3328
3374
  }).then(function () {
3329
- return _this30.triggerCurrentRowEvent(evnt, params);
3375
+ return _this31.triggerCurrentRowEvent(evnt, params);
3330
3376
  });
3331
3377
  }
3332
3378
  }
@@ -3341,39 +3387,39 @@ var Methods = {
3341
3387
  if (selected.column && selected.row && (0, _utils.isEnableConf)(selected.column.editRender)) {
3342
3388
  var beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
3343
3389
  if (!beforeEditMethod || beforeEditMethod(_objectSpread(_objectSpread({}, selected.args), {}, {
3344
- $table: _this30,
3345
- $grid: _this30.$xegrid
3390
+ $table: _this31,
3391
+ $grid: _this31.$xegrid
3346
3392
  }))) {
3347
3393
  if (editMethod) {
3348
3394
  editMethod({
3349
3395
  row: selected.row,
3350
- rowIndex: _this30.getRowIndex(selected.row),
3396
+ rowIndex: _this31.getRowIndex(selected.row),
3351
3397
  column: selected.column,
3352
- columnIndex: _this30.getColumnIndex(selected.column),
3353
- $table: _this30,
3354
- $grid: _this30.$xegrid
3398
+ columnIndex: _this31.getColumnIndex(selected.column),
3399
+ $table: _this31,
3400
+ $grid: _this31.$xegrid
3355
3401
  });
3356
3402
  } else {
3357
3403
  setCellValue(selected.row, selected.column, null);
3358
- _this30.handleActived(selected.args, evnt);
3404
+ _this31.handleActived(selected.args, evnt);
3359
3405
  }
3360
3406
  var afterEditMethod = editOpts.afterEditMethod;
3361
3407
  if (afterEditMethod) {
3362
- _this30.$nextTick(function () {
3408
+ _this31.$nextTick(function () {
3363
3409
  afterEditMethod({
3364
3410
  row: selected.row,
3365
- rowIndex: _this30.getRowIndex(selected.row),
3411
+ rowIndex: _this31.getRowIndex(selected.row),
3366
3412
  column: selected.column,
3367
- columnIndex: _this30.getColumnIndex(selected.column),
3368
- $table: _this30,
3369
- $grid: _this30.$xegrid
3413
+ columnIndex: _this31.getColumnIndex(selected.column),
3414
+ $table: _this31,
3415
+ $grid: _this31.$xegrid
3370
3416
  });
3371
3417
  });
3372
3418
  }
3373
3419
  }
3374
3420
  }
3375
3421
  }
3376
- _this30.emitEvent('keydown', {}, evnt);
3422
+ _this31.emitEvent('keydown', {}, evnt);
3377
3423
  });
3378
3424
  }
3379
3425
  },
@@ -3448,7 +3494,7 @@ var Methods = {
3448
3494
  }
3449
3495
  },
3450
3496
  handleTargetLeaveEvent: function handleTargetLeaveEvent() {
3451
- var _this31 = this;
3497
+ var _this32 = this;
3452
3498
  var tooltipOpts = this.tooltipOpts;
3453
3499
  var $tooltip = this.$refs.tooltip;
3454
3500
  if ($tooltip) {
@@ -3456,9 +3502,9 @@ var Methods = {
3456
3502
  }
3457
3503
  if (tooltipOpts.enterable) {
3458
3504
  this.tooltipTimeout = setTimeout(function () {
3459
- $tooltip = _this31.$refs.tooltip;
3505
+ $tooltip = _this32.$refs.tooltip;
3460
3506
  if ($tooltip && !$tooltip.isActived()) {
3461
- _this31.closeTooltip();
3507
+ _this32.closeTooltip();
3462
3508
  }
3463
3509
  }, tooltipOpts.leaveDelay);
3464
3510
  } else {
@@ -3476,7 +3522,7 @@ var Methods = {
3476
3522
  tooltipStore.row = null;
3477
3523
  tooltipStore.column = column;
3478
3524
  tooltipStore.visible = true;
3479
- // tooltipStore.currOpts = { content: null }
3525
+ tooltipStore.currOpts = iconParams;
3480
3526
  this.$nextTick(function () {
3481
3527
  var $tooltip = $refs.tooltip;
3482
3528
  if ($tooltip) {
@@ -3571,7 +3617,8 @@ var Methods = {
3571
3617
  Object.assign(tooltipStore, {
3572
3618
  row: row,
3573
3619
  column: column,
3574
- visible: true
3620
+ visible: true,
3621
+ currOpts: {}
3575
3622
  });
3576
3623
  this.$nextTick(function () {
3577
3624
  var $tooltip = $refs.tooltip;
@@ -3603,7 +3650,8 @@ var Methods = {
3603
3650
  row: null,
3604
3651
  column: null,
3605
3652
  content: null,
3606
- visible: false
3653
+ visible: false,
3654
+ currOpts: {}
3607
3655
  });
3608
3656
  if (tooltip) {
3609
3657
  tooltip.close();
@@ -3676,12 +3724,12 @@ var Methods = {
3676
3724
  }
3677
3725
  },
3678
3726
  handleCheckedCheckboxRow: function handleCheckedCheckboxRow(rows, value, isForce) {
3679
- var _this32 = this;
3727
+ var _this33 = this;
3680
3728
  if (rows && !_xeUtils.default.isArray(rows)) {
3681
3729
  rows = [rows];
3682
3730
  }
3683
3731
  rows.forEach(function (row) {
3684
- return _this32.handleSelectRow({
3732
+ return _this33.handleSelectRow({
3685
3733
  row: row
3686
3734
  }, !!value, isForce);
3687
3735
  });
@@ -3712,7 +3760,7 @@ var Methods = {
3712
3760
  * value 选中true 不选false 半选-1
3713
3761
  */
3714
3762
  handleSelectRow: function handleSelectRow(_ref5, value, isForce) {
3715
- var _this33 = this;
3763
+ var _this34 = this;
3716
3764
  var row = _ref5.row;
3717
3765
  var selectCheckboxMaps = this.selectCheckboxMaps,
3718
3766
  afterFullData = this.afterFullData,
@@ -3740,15 +3788,15 @@ var Methods = {
3740
3788
  } else {
3741
3789
  // 更新子节点状态
3742
3790
  _xeUtils.default.eachTree([row], function (item) {
3743
- if (_this33.eqRow(item, row) || isForce || !checkMethod || checkMethod({
3791
+ if (_this34.eqRow(item, row) || isForce || !checkMethod || checkMethod({
3744
3792
  row: item
3745
3793
  })) {
3746
3794
  _xeUtils.default.set(item, checkField, value);
3747
3795
  if (indeterminateField) {
3748
3796
  _xeUtils.default.set(row, indeterminateField, false);
3749
3797
  }
3750
- delete treeIndeterminateMaps[(0, _util.getRowid)(_this33, item)];
3751
- _this33.handleCheckboxReserveRow(row, value);
3798
+ delete treeIndeterminateMaps[(0, _util.getRowid)(_this34, item)];
3799
+ _this34.handleCheckboxReserveRow(row, value);
3752
3800
  }
3753
3801
  }, {
3754
3802
  children: childrenField
@@ -3756,7 +3804,7 @@ var Methods = {
3756
3804
  }
3757
3805
  // 如果存在父节点,更新父节点状态
3758
3806
  var matchObj = _xeUtils.default.findTree(afterFullData, function (item) {
3759
- return _this33.eqRow(item, row);
3807
+ return _this34.eqRow(item, row);
3760
3808
  }, {
3761
3809
  children: childrenField
3762
3810
  });
@@ -3769,20 +3817,20 @@ var Methods = {
3769
3817
  if (checkMethod({
3770
3818
  row: item
3771
3819
  })) {
3772
- var itemRid = (0, _util.getRowid)(_this33, item);
3820
+ var itemRid = (0, _util.getRowid)(_this34, item);
3773
3821
  vItemMaps[itemRid] = item;
3774
3822
  vItems.push(item);
3775
3823
  }
3776
3824
  });
3777
3825
  } else {
3778
3826
  matchObj.items.forEach(function (item) {
3779
- var itemRid = (0, _util.getRowid)(_this33, item);
3827
+ var itemRid = (0, _util.getRowid)(_this34, item);
3780
3828
  vItemMaps[itemRid] = item;
3781
3829
  vItems.push(item);
3782
3830
  });
3783
3831
  }
3784
3832
  var indeterminatesItem = _xeUtils.default.find(matchObj.items, function (item) {
3785
- return !!treeIndeterminateMaps[(0, _util.getRowid)(_this33, item)];
3833
+ return !!treeIndeterminateMaps[(0, _util.getRowid)(_this34, item)];
3786
3834
  });
3787
3835
  if (indeterminatesItem) {
3788
3836
  parentStatus = -1;
@@ -3794,7 +3842,7 @@ var Methods = {
3794
3842
  }
3795
3843
  });
3796
3844
  parentStatus = selectItems.filter(function (item) {
3797
- return vItemMaps[(0, _util.getRowid)(_this33, item)];
3845
+ return vItemMaps[(0, _util.getRowid)(_this34, item)];
3798
3846
  }).length === vItems.length ? true : selectItems.length || value === -1 ? -1 : false;
3799
3847
  }
3800
3848
  this.selectCheckboxMaps = selectRowMaps;
@@ -3825,8 +3873,8 @@ var Methods = {
3825
3873
  } else {
3826
3874
  // 更新子节点状态
3827
3875
  _xeUtils.default.eachTree([row], function (item) {
3828
- var itemRid = (0, _util.getRowid)(_this33, item);
3829
- if (_this33.eqRow(item, row) || isForce || !checkMethod || checkMethod({
3876
+ var itemRid = (0, _util.getRowid)(_this34, item);
3877
+ if (_this34.eqRow(item, row) || isForce || !checkMethod || checkMethod({
3830
3878
  row: item
3831
3879
  })) {
3832
3880
  if (value) {
@@ -3839,8 +3887,8 @@ var Methods = {
3839
3887
  if (indeterminateField) {
3840
3888
  _xeUtils.default.set(row, indeterminateField, false);
3841
3889
  }
3842
- delete treeIndeterminateMaps[(0, _util.getRowid)(_this33, item)];
3843
- _this33.handleCheckboxReserveRow(row, value);
3890
+ delete treeIndeterminateMaps[(0, _util.getRowid)(_this34, item)];
3891
+ _this34.handleCheckboxReserveRow(row, value);
3844
3892
  }
3845
3893
  }, {
3846
3894
  children: childrenField
@@ -3848,7 +3896,7 @@ var Methods = {
3848
3896
  }
3849
3897
  // 如果存在父节点,更新父节点状态
3850
3898
  var _matchObj = _xeUtils.default.findTree(afterFullData, function (item) {
3851
- return _this33.eqRow(item, row);
3899
+ return _this34.eqRow(item, row);
3852
3900
  }, {
3853
3901
  children: childrenField
3854
3902
  });
@@ -3861,33 +3909,33 @@ var Methods = {
3861
3909
  if (checkMethod({
3862
3910
  row: item
3863
3911
  })) {
3864
- var itemRid = (0, _util.getRowid)(_this33, item);
3912
+ var itemRid = (0, _util.getRowid)(_this34, item);
3865
3913
  _vItemMaps[itemRid] = item;
3866
3914
  _vItems.push(item);
3867
3915
  }
3868
3916
  });
3869
3917
  } else {
3870
3918
  _matchObj.items.forEach(function (item) {
3871
- var itemRid = (0, _util.getRowid)(_this33, item);
3919
+ var itemRid = (0, _util.getRowid)(_this34, item);
3872
3920
  _vItemMaps[itemRid] = item;
3873
3921
  _vItems.push(item);
3874
3922
  });
3875
3923
  }
3876
3924
  var _indeterminatesItem = _xeUtils.default.find(_matchObj.items, function (item) {
3877
- return !!treeIndeterminateMaps[(0, _util.getRowid)(_this33, item)];
3925
+ return !!treeIndeterminateMaps[(0, _util.getRowid)(_this34, item)];
3878
3926
  });
3879
3927
  if (_indeterminatesItem) {
3880
3928
  _parentStatus = -1;
3881
3929
  } else {
3882
3930
  var _selectItems = [];
3883
3931
  _matchObj.items.forEach(function (item) {
3884
- var itemRid = (0, _util.getRowid)(_this33, item);
3932
+ var itemRid = (0, _util.getRowid)(_this34, item);
3885
3933
  if (selectRowMaps[itemRid]) {
3886
3934
  _selectItems.push(item);
3887
3935
  }
3888
3936
  });
3889
3937
  _parentStatus = _selectItems.filter(function (item) {
3890
- return _vItemMaps[(0, _util.getRowid)(_this33, item)];
3938
+ return _vItemMaps[(0, _util.getRowid)(_this34, item)];
3891
3939
  }).length === _vItems.length ? true : _selectItems.length || value === -1 ? -1 : false;
3892
3940
  }
3893
3941
  this.selectCheckboxMaps = selectRowMaps;
@@ -3989,7 +4037,7 @@ var Methods = {
3989
4037
  return this.$nextTick();
3990
4038
  },
3991
4039
  handleCheckedAllCheckboxRow: function handleCheckedAllCheckboxRow(value, isForce) {
3992
- var _this34 = this;
4040
+ var _this35 = this;
3993
4041
  var afterFullData = this.afterFullData,
3994
4042
  treeConfig = this.treeConfig,
3995
4043
  treeOpts = this.treeOpts,
@@ -4028,7 +4076,7 @@ var Methods = {
4028
4076
  row: row
4029
4077
  })) {
4030
4078
  if (value) {
4031
- selectRowMaps[(0, _util.getRowid)(_this34, row)] = row;
4079
+ selectRowMaps[(0, _util.getRowid)(_this35, row)] = row;
4032
4080
  }
4033
4081
  _xeUtils.default.set(row, checkField, value);
4034
4082
  }
@@ -4060,7 +4108,7 @@ var Methods = {
4060
4108
  if (isForce || !checkMethod || checkMethod({
4061
4109
  row: row
4062
4110
  })) {
4063
- selectRowMaps[(0, _util.getRowid)(_this34, row)] = row;
4111
+ selectRowMaps[(0, _util.getRowid)(_this35, row)] = row;
4064
4112
  }
4065
4113
  }, {
4066
4114
  children: childrenField
@@ -4072,7 +4120,7 @@ var Methods = {
4072
4120
  */
4073
4121
  if (!isForce && checkMethod) {
4074
4122
  _xeUtils.default.eachTree(afterFullData, function (row) {
4075
- var rowid = (0, _util.getRowid)(_this34, row);
4123
+ var rowid = (0, _util.getRowid)(_this35, row);
4076
4124
  if (checkMethod({
4077
4125
  row: row
4078
4126
  }) ? 0 : selectCheckboxMaps[rowid]) {
@@ -4092,7 +4140,7 @@ var Methods = {
4092
4140
  */
4093
4141
  if (!isForce && checkMethod) {
4094
4142
  afterFullData.forEach(function (row) {
4095
- var rowid = (0, _util.getRowid)(_this34, row);
4143
+ var rowid = (0, _util.getRowid)(_this35, row);
4096
4144
  if (selectCheckboxMaps[rowid] || checkMethod({
4097
4145
  row: row
4098
4146
  })) {
@@ -4101,7 +4149,7 @@ var Methods = {
4101
4149
  });
4102
4150
  } else {
4103
4151
  afterFullData.forEach(function (row) {
4104
- selectRowMaps[(0, _util.getRowid)(_this34, row)] = row;
4152
+ selectRowMaps[(0, _util.getRowid)(_this35, row)] = row;
4105
4153
  });
4106
4154
  }
4107
4155
  } else {
@@ -4112,7 +4160,7 @@ var Methods = {
4112
4160
  */
4113
4161
  if (!isForce && checkMethod) {
4114
4162
  afterFullData.forEach(function (row) {
4115
- var rowid = (0, _util.getRowid)(_this34, row);
4163
+ var rowid = (0, _util.getRowid)(_this35, row);
4116
4164
  if (checkMethod({
4117
4165
  row: row
4118
4166
  }) ? 0 : selectCheckboxMaps[rowid]) {
@@ -4130,7 +4178,7 @@ var Methods = {
4130
4178
  });
4131
4179
  } else {
4132
4180
  afterFullData.forEach(function (row) {
4133
- return _this34.handleCheckboxReserveRow(row, false);
4181
+ return _this35.handleCheckboxReserveRow(row, false);
4134
4182
  });
4135
4183
  }
4136
4184
  }
@@ -4149,7 +4197,7 @@ var Methods = {
4149
4197
  return this.handleCheckedAllCheckboxRow(value, true);
4150
4198
  },
4151
4199
  checkSelectionStatus: function checkSelectionStatus() {
4152
- var _this35 = this;
4200
+ var _this36 = this;
4153
4201
  var afterFullData = this.afterFullData,
4154
4202
  selectCheckboxMaps = this.selectCheckboxMaps,
4155
4203
  treeIndeterminateMaps = this.treeIndeterminateMaps,
@@ -4185,11 +4233,11 @@ var Methods = {
4185
4233
  if (treeConfig) {
4186
4234
  if (indeterminateField) {
4187
4235
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
4188
- return _xeUtils.default.get(row, checkField) || _xeUtils.default.get(row, indeterminateField) || !!treeIndeterminateMaps[(0, _util.getRowid)(_this35, row)];
4236
+ return _xeUtils.default.get(row, checkField) || _xeUtils.default.get(row, indeterminateField) || !!treeIndeterminateMaps[(0, _util.getRowid)(_this36, row)];
4189
4237
  });
4190
4238
  } else {
4191
4239
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
4192
- return _xeUtils.default.get(row, checkField) || !!treeIndeterminateMaps[(0, _util.getRowid)(_this35, row)];
4240
+ return _xeUtils.default.get(row, checkField) || !!treeIndeterminateMaps[(0, _util.getRowid)(_this36, row)];
4193
4241
  });
4194
4242
  }
4195
4243
  } else {
@@ -4211,23 +4259,23 @@ var Methods = {
4211
4259
  disableRows.push(row);
4212
4260
  return true;
4213
4261
  }
4214
- if (selectCheckboxMaps[(0, _util.getRowid)(_this35, row)]) {
4262
+ if (selectCheckboxMaps[(0, _util.getRowid)(_this36, row)]) {
4215
4263
  checkRows.push(row);
4216
4264
  return true;
4217
4265
  }
4218
4266
  return false;
4219
4267
  } : function (row) {
4220
- return selectCheckboxMaps[(0, _util.getRowid)(_this35, row)];
4268
+ return selectCheckboxMaps[(0, _util.getRowid)(_this36, row)];
4221
4269
  });
4222
4270
  isAllSelected = isAllResolve && afterFullData.length !== disableRows.length;
4223
4271
  if (treeConfig) {
4224
4272
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
4225
- var itemRid = (0, _util.getRowid)(_this35, row);
4273
+ var itemRid = (0, _util.getRowid)(_this36, row);
4226
4274
  return treeIndeterminateMaps[itemRid] || selectCheckboxMaps[itemRid];
4227
4275
  });
4228
4276
  } else {
4229
4277
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
4230
- return selectCheckboxMaps[(0, _util.getRowid)(_this35, row)];
4278
+ return selectCheckboxMaps[(0, _util.getRowid)(_this36, row)];
4231
4279
  });
4232
4280
  }
4233
4281
  }
@@ -4336,7 +4384,7 @@ var Methods = {
4336
4384
  * 获取复选框保留选中的行
4337
4385
  */
4338
4386
  getCheckboxReserveRecords: function getCheckboxReserveRecords(isFull) {
4339
- var _this36 = this;
4387
+ var _this37 = this;
4340
4388
  var fullDataRowIdData = this.fullDataRowIdData,
4341
4389
  afterFullData = this.afterFullData,
4342
4390
  checkboxReserveRowMap = this.checkboxReserveRowMap,
@@ -4349,13 +4397,13 @@ var Methods = {
4349
4397
  var afterFullIdMaps = {};
4350
4398
  if (treeConfig) {
4351
4399
  _xeUtils.default.eachTree(afterFullData, function (row) {
4352
- afterFullIdMaps[(0, _util.getRowid)(_this36, row)] = 1;
4400
+ afterFullIdMaps[(0, _util.getRowid)(_this37, row)] = 1;
4353
4401
  }, {
4354
4402
  children: childrenField
4355
4403
  });
4356
4404
  } else {
4357
4405
  afterFullData.forEach(function (row) {
4358
- afterFullIdMaps[(0, _util.getRowid)(_this36, row)] = 1;
4406
+ afterFullIdMaps[(0, _util.getRowid)(_this37, row)] = 1;
4359
4407
  });
4360
4408
  }
4361
4409
  _xeUtils.default.each(checkboxReserveRowMap, function (oldRow, oldRowid) {
@@ -4427,7 +4475,7 @@ var Methods = {
4427
4475
  * 清空行为不管是否被禁用还是保留记录,都将彻底清空选中状态
4428
4476
  */
4429
4477
  clearCheckboxRow: function clearCheckboxRow() {
4430
- var _this37 = this;
4478
+ var _this38 = this;
4431
4479
  var tableFullData = this.tableFullData,
4432
4480
  treeConfig = this.treeConfig,
4433
4481
  treeOpts = this.treeOpts,
@@ -4453,7 +4501,7 @@ var Methods = {
4453
4501
  }
4454
4502
  if (reserve) {
4455
4503
  tableFullData.forEach(function (row) {
4456
- return _this37.handleCheckboxReserveRow(row, false);
4504
+ return _this38.handleCheckboxReserveRow(row, false);
4457
4505
  });
4458
4506
  }
4459
4507
  this.isAllSelected = false;
@@ -4698,12 +4746,12 @@ var Methods = {
4698
4746
  * 如果存在规则,则校验
4699
4747
  */
4700
4748
  handleChangeCell: function handleChangeCell(evnt, params) {
4701
- var _this38 = this;
4749
+ var _this39 = this;
4702
4750
  this.checkValidate('blur').catch(function (e) {
4703
4751
  return e;
4704
4752
  }).then(function () {
4705
- _this38.handleActived(params, evnt).then(function () {
4706
- return _this38.checkValidate('change');
4753
+ _this39.handleActived(params, evnt).then(function () {
4754
+ return _this39.checkValidate('change');
4707
4755
  }).catch(function (e) {
4708
4756
  return e;
4709
4757
  });
@@ -4804,7 +4852,7 @@ var Methods = {
4804
4852
  * 如果是双击模式,则激活为编辑状态
4805
4853
  */
4806
4854
  triggerCellDblclickEvent: function triggerCellDblclickEvent(evnt, params) {
4807
- var _this39 = this;
4855
+ var _this40 = this;
4808
4856
  var editStore = this.editStore,
4809
4857
  editConfig = this.editConfig,
4810
4858
  editOpts = this.editOpts;
@@ -4817,15 +4865,15 @@ var Methods = {
4817
4865
  this.checkValidate('blur').catch(function (e) {
4818
4866
  return e;
4819
4867
  }).then(function () {
4820
- _this39.handleActived(params, evnt).then(function () {
4821
- return _this39.checkValidate('change');
4868
+ _this40.handleActived(params, evnt).then(function () {
4869
+ return _this40.checkValidate('change');
4822
4870
  }).catch(function (e) {
4823
4871
  return e;
4824
4872
  });
4825
4873
  });
4826
4874
  } else if (editOpts.mode === 'cell') {
4827
4875
  this.handleActived(params, evnt).then(function () {
4828
- return _this39.checkValidate('change');
4876
+ return _this40.checkValidate('change');
4829
4877
  }).catch(function (e) {
4830
4878
  return e;
4831
4879
  });
@@ -4835,7 +4883,7 @@ var Methods = {
4835
4883
  this.emitEvent('cell-dblclick', params, evnt);
4836
4884
  },
4837
4885
  handleDefaultSort: function handleDefaultSort() {
4838
- var _this40 = this;
4886
+ var _this41 = this;
4839
4887
  var sortConfig = this.sortConfig,
4840
4888
  sortOpts = this.sortOpts;
4841
4889
  var defaultSort = sortOpts.defaultSort;
@@ -4848,7 +4896,7 @@ var Methods = {
4848
4896
  var field = item.field,
4849
4897
  order = item.order;
4850
4898
  if (field && order) {
4851
- var column = _this40.getColumnByField(field);
4899
+ var column = _this41.getColumnByField(field);
4852
4900
  if (column && column.sortable) {
4853
4901
  column.order = order;
4854
4902
  column.sortTime = Date.now() + index;
@@ -4895,7 +4943,7 @@ var Methods = {
4895
4943
  }
4896
4944
  },
4897
4945
  setPendingRow: function setPendingRow(rows, status) {
4898
- var _this41 = this;
4946
+ var _this42 = this;
4899
4947
  var pendingMaps = _objectSpread({}, this.pendingRowMaps);
4900
4948
  var pendingList = _toConsumableArray(this.pendingRowList);
4901
4949
  if (rows && !_xeUtils.default.isArray(rows)) {
@@ -4903,7 +4951,7 @@ var Methods = {
4903
4951
  }
4904
4952
  if (status) {
4905
4953
  rows.forEach(function (row) {
4906
- var rowid = (0, _util.getRowid)(_this41, row);
4954
+ var rowid = (0, _util.getRowid)(_this42, row);
4907
4955
  if (rowid && !pendingMaps[rowid]) {
4908
4956
  pendingList.push(row);
4909
4957
  pendingMaps[rowid] = row;
@@ -4911,9 +4959,9 @@ var Methods = {
4911
4959
  });
4912
4960
  } else {
4913
4961
  rows.forEach(function (row) {
4914
- var rowid = (0, _util.getRowid)(_this41, row);
4962
+ var rowid = (0, _util.getRowid)(_this42, row);
4915
4963
  if (rowid && pendingMaps[rowid]) {
4916
- var pendingIndex = _this41.findRowIndexOf(pendingList, row);
4964
+ var pendingIndex = _this42.findRowIndexOf(pendingList, row);
4917
4965
  if (pendingIndex > -1) {
4918
4966
  pendingList.splice(pendingIndex, 1);
4919
4967
  }
@@ -4926,17 +4974,17 @@ var Methods = {
4926
4974
  return this.$nextTick();
4927
4975
  },
4928
4976
  togglePendingRow: function togglePendingRow(rows) {
4929
- var _this42 = this;
4977
+ var _this43 = this;
4930
4978
  var pendingMaps = _objectSpread({}, this.pendingRowMaps);
4931
4979
  var pendingList = _toConsumableArray(this.pendingRowList);
4932
4980
  if (rows && !_xeUtils.default.isArray(rows)) {
4933
4981
  rows = [rows];
4934
4982
  }
4935
4983
  rows.forEach(function (row) {
4936
- var rowid = (0, _util.getRowid)(_this42, row);
4984
+ var rowid = (0, _util.getRowid)(_this43, row);
4937
4985
  if (rowid) {
4938
4986
  if (pendingMaps[rowid]) {
4939
- var pendingIndex = _this42.findRowIndexOf(pendingList, row);
4987
+ var pendingIndex = _this43.findRowIndexOf(pendingList, row);
4940
4988
  if (pendingIndex > -1) {
4941
4989
  pendingList.splice(pendingIndex, 1);
4942
4990
  }
@@ -4965,7 +5013,7 @@ var Methods = {
4965
5013
  return this.$nextTick();
4966
5014
  },
4967
5015
  sort: function sort(sortConfs, sortOrder) {
4968
- var _this43 = this;
5016
+ var _this44 = this;
4969
5017
  var sortOpts = this.sortOpts;
4970
5018
  var multiple = sortOpts.multiple,
4971
5019
  remote = sortOpts.remote,
@@ -4991,14 +5039,14 @@ var Methods = {
4991
5039
  order = confs.order;
4992
5040
  var column = field;
4993
5041
  if (_xeUtils.default.isString(field)) {
4994
- column = _this43.getColumnByField(field);
5042
+ column = _this44.getColumnByField(field);
4995
5043
  }
4996
5044
  if (column && (column.sortable || column.remoteSort)) {
4997
5045
  if (!firstSortColumn) {
4998
5046
  firstSortColumn = column;
4999
5047
  }
5000
5048
  if (orders.indexOf(order) === -1) {
5001
- order = getNextSortOrder(_this43, column);
5049
+ order = getNextSortOrder(_this44, column);
5002
5050
  }
5003
5051
  if (column.order !== order) {
5004
5052
  column.order = order;
@@ -5011,8 +5059,8 @@ var Methods = {
5011
5059
  this.handleTableData(true);
5012
5060
  }
5013
5061
  return this.$nextTick().then(function () {
5014
- _this43.updateCellAreas();
5015
- return _this43.updateStyle();
5062
+ _this44.updateCellAreas();
5063
+ return _this44.updateStyle();
5016
5064
  });
5017
5065
  }
5018
5066
  return this.$nextTick();
@@ -5148,14 +5196,14 @@ var Methods = {
5148
5196
  * @param {Row} row 行对象
5149
5197
  */
5150
5198
  reloadRowExpand: function reloadRowExpand(row) {
5151
- var _this44 = this;
5199
+ var _this45 = this;
5152
5200
  var expandOpts = this.expandOpts,
5153
5201
  rowExpandLazyLoadedMaps = this.rowExpandLazyLoadedMaps;
5154
5202
  var lazy = expandOpts.lazy;
5155
5203
  var rowid = (0, _util.getRowid)(this, row);
5156
5204
  if (lazy && !rowExpandLazyLoadedMaps[rowid]) {
5157
5205
  this.clearRowExpandLoaded(row).then(function () {
5158
- return _this44.handleAsyncRowExpand(row);
5206
+ return _this45.handleAsyncRowExpand(row);
5159
5207
  });
5160
5208
  }
5161
5209
  return this.$nextTick();
@@ -5247,39 +5295,39 @@ var Methods = {
5247
5295
  return this.setRowExpand(expandedRows, expanded);
5248
5296
  },
5249
5297
  handleAsyncRowExpand: function handleAsyncRowExpand(row) {
5250
- var _this45 = this;
5298
+ var _this46 = this;
5251
5299
  var fullAllDataRowMap = this.fullAllDataRowMap,
5252
5300
  expandOpts = this.expandOpts;
5253
5301
  var rest = fullAllDataRowMap.get(row);
5254
5302
  return new Promise(function (resolve) {
5255
5303
  var loadMethod = expandOpts.loadMethod;
5256
5304
  if (loadMethod) {
5257
- var rowExpandLazyLoadedMaps = _this45.rowExpandLazyLoadedMaps;
5305
+ var rowExpandLazyLoadedMaps = _this46.rowExpandLazyLoadedMaps;
5258
5306
  var rowTempExpandLazyLoadedMaps = _objectSpread({}, rowExpandLazyLoadedMaps);
5259
- var rowid = (0, _util.getRowid)(_this45, row);
5307
+ var rowid = (0, _util.getRowid)(_this46, row);
5260
5308
  rowTempExpandLazyLoadedMaps[rowid] = row;
5261
- _this45.rowExpandLazyLoadedMaps = rowTempExpandLazyLoadedMaps;
5309
+ _this46.rowExpandLazyLoadedMaps = rowTempExpandLazyLoadedMaps;
5262
5310
  loadMethod({
5263
- $table: _this45,
5311
+ $table: _this46,
5264
5312
  row: row,
5265
- rowIndex: _this45.getRowIndex(row),
5266
- $rowIndex: _this45.getVMRowIndex(row)
5313
+ rowIndex: _this46.getRowIndex(row),
5314
+ $rowIndex: _this46.getVMRowIndex(row)
5267
5315
  }).then(function () {
5268
5316
  rest.expandLoaded = true;
5269
- var rowExpandedMaps = _this45.rowExpandedMaps;
5317
+ var rowExpandedMaps = _this46.rowExpandedMaps;
5270
5318
  var rowTempExpandedMaps = _objectSpread({}, rowExpandedMaps);
5271
5319
  rowTempExpandedMaps[rowid] = row;
5272
- _this45.rowExpandedMaps = rowTempExpandedMaps;
5320
+ _this46.rowExpandedMaps = rowTempExpandedMaps;
5273
5321
  }).catch(function () {
5274
5322
  rest.expandLoaded = false;
5275
5323
  }).finally(function () {
5276
- var rowExpandLazyLoadedMaps = _this45.rowExpandLazyLoadedMaps;
5324
+ var rowExpandLazyLoadedMaps = _this46.rowExpandLazyLoadedMaps;
5277
5325
  var rowTempExpandLazyLoadedMaps = _objectSpread({}, rowExpandLazyLoadedMaps);
5278
5326
  if (rowTempExpandLazyLoadedMaps[rowid]) {
5279
5327
  delete rowTempExpandLazyLoadedMaps[rowid];
5280
5328
  }
5281
- _this45.rowExpandLazyLoadedMaps = rowTempExpandLazyLoadedMaps;
5282
- resolve(_this45.$nextTick().then(_this45.recalculate));
5329
+ _this46.rowExpandLazyLoadedMaps = rowTempExpandLazyLoadedMaps;
5330
+ resolve(_this46.$nextTick().then(_this46.recalculate));
5283
5331
  });
5284
5332
  } else {
5285
5333
  resolve();
@@ -5294,7 +5342,7 @@ var Methods = {
5294
5342
  * @param {Boolean} expanded 是否展开
5295
5343
  */
5296
5344
  setRowExpand: function setRowExpand(rows, expanded) {
5297
- var _this46 = this;
5345
+ var _this47 = this;
5298
5346
  var rowExpandedMaps = this.rowExpandedMaps,
5299
5347
  fullAllDataRowIdData = this.fullAllDataRowIdData,
5300
5348
  rowExpandLazyLoadedMaps = this.rowExpandLazyLoadedMaps,
@@ -5324,18 +5372,18 @@ var Methods = {
5324
5372
  columnIndex: columnIndex,
5325
5373
  $columnIndex: $columnIndex,
5326
5374
  row: row,
5327
- rowIndex: _this46.getRowIndex(row),
5328
- $rowIndex: _this46.getVMRowIndex(row)
5375
+ rowIndex: _this47.getRowIndex(row),
5376
+ $rowIndex: _this47.getVMRowIndex(row)
5329
5377
  });
5330
5378
  }) : rows;
5331
5379
  if (expanded) {
5332
5380
  validRows.forEach(function (row) {
5333
- var rowid = (0, _util.getRowid)(_this46, row);
5381
+ var rowid = (0, _util.getRowid)(_this47, row);
5334
5382
  if (!rExpandedMaps[rowid]) {
5335
5383
  var rest = fullAllDataRowIdData[rowid];
5336
5384
  var isLoad = lazy && !rest.expandLoaded && !rowExpandLazyLoadedMaps[rowid];
5337
5385
  if (isLoad) {
5338
- lazyRests.push(_this46.handleAsyncRowExpand(row));
5386
+ lazyRests.push(_this47.handleAsyncRowExpand(row));
5339
5387
  } else {
5340
5388
  rExpandedMaps[rowid] = row;
5341
5389
  }
@@ -5343,7 +5391,7 @@ var Methods = {
5343
5391
  });
5344
5392
  } else {
5345
5393
  validRows.forEach(function (item) {
5346
- var rowid = (0, _util.getRowid)(_this46, item);
5394
+ var rowid = (0, _util.getRowid)(_this47, item);
5347
5395
  if (rExpandedMaps[rowid]) {
5348
5396
  delete rExpandedMaps[rowid];
5349
5397
  }
@@ -5351,7 +5399,7 @@ var Methods = {
5351
5399
  }
5352
5400
  if (reserve) {
5353
5401
  validRows.forEach(function (row) {
5354
- return _this46.handleRowExpandReserve(row, expanded);
5402
+ return _this47.handleRowExpandReserve(row, expanded);
5355
5403
  });
5356
5404
  }
5357
5405
  }
@@ -5378,7 +5426,7 @@ var Methods = {
5378
5426
  * 手动清空展开行状态,数据会恢复成未展开的状态
5379
5427
  */
5380
5428
  clearRowExpand: function clearRowExpand() {
5381
- var _this47 = this;
5429
+ var _this48 = this;
5382
5430
  var expandOpts = this.expandOpts,
5383
5431
  tableFullData = this.tableFullData;
5384
5432
  var reserve = expandOpts.reserve;
@@ -5386,12 +5434,12 @@ var Methods = {
5386
5434
  this.rowExpandedMaps = {};
5387
5435
  if (reserve) {
5388
5436
  tableFullData.forEach(function (row) {
5389
- return _this47.handleRowExpandReserve(row, false);
5437
+ return _this48.handleRowExpandReserve(row, false);
5390
5438
  });
5391
5439
  }
5392
5440
  return this.$nextTick().then(function () {
5393
5441
  if (expList.length) {
5394
- _this47.recalculate();
5442
+ _this48.recalculate();
5395
5443
  }
5396
5444
  });
5397
5445
  },
@@ -5474,7 +5522,7 @@ var Methods = {
5474
5522
  * @param {Row} row 行对象
5475
5523
  */
5476
5524
  reloadTreeExpand: function reloadTreeExpand(row) {
5477
- var _this48 = this;
5525
+ var _this49 = this;
5478
5526
  var treeOpts = this.treeOpts,
5479
5527
  treeExpandLazyLoadedMaps = this.treeExpandLazyLoadedMaps;
5480
5528
  var transform = treeOpts.transform,
@@ -5483,14 +5531,14 @@ var Methods = {
5483
5531
  var rowid = (0, _util.getRowid)(this, row);
5484
5532
  if (lazy && row[hasChildField] && !treeExpandLazyLoadedMaps[rowid]) {
5485
5533
  this.clearTreeExpandLoaded(row).then(function () {
5486
- return _this48.handleAsyncTreeExpandChilds(row);
5534
+ return _this49.handleAsyncTreeExpandChilds(row);
5487
5535
  }).then(function () {
5488
5536
  if (transform) {
5489
- _this48.handleVirtualTreeToList();
5490
- return _this48.handleTableData();
5537
+ _this49.handleVirtualTreeToList();
5538
+ return _this49.handleTableData();
5491
5539
  }
5492
5540
  }).then(function () {
5493
- return _this48.recalculate();
5541
+ return _this49.recalculate();
5494
5542
  });
5495
5543
  }
5496
5544
  return this.$nextTick();
@@ -5568,7 +5616,7 @@ var Methods = {
5568
5616
  }
5569
5617
  },
5570
5618
  handleAsyncTreeExpandChilds: function handleAsyncTreeExpandChilds(row) {
5571
- var _this49 = this;
5619
+ var _this50 = this;
5572
5620
  var treeOpts = this.treeOpts,
5573
5621
  checkboxOpts = this.checkboxOpts;
5574
5622
  var transform = treeOpts.transform,
@@ -5576,13 +5624,13 @@ var Methods = {
5576
5624
  var checkStrictly = checkboxOpts.checkStrictly;
5577
5625
  return new Promise(function (resolve) {
5578
5626
  if (loadMethod) {
5579
- var fullAllDataRowMap = _this49.fullAllDataRowMap,
5580
- treeExpandLazyLoadedMaps = _this49.treeExpandLazyLoadedMaps;
5581
- var rowid = (0, _util.getRowid)(_this49, row);
5627
+ var fullAllDataRowMap = _this50.fullAllDataRowMap,
5628
+ treeExpandLazyLoadedMaps = _this50.treeExpandLazyLoadedMaps;
5629
+ var rowid = (0, _util.getRowid)(_this50, row);
5582
5630
  var rest = fullAllDataRowMap.get(row);
5583
5631
  treeExpandLazyLoadedMaps[rowid] = row;
5584
5632
  loadMethod({
5585
- $table: _this49,
5633
+ $table: _this50,
5586
5634
  row: row
5587
5635
  }).then(function (childRecords) {
5588
5636
  // 响应成功后则展开行,并将子节点挂载到该节点下
@@ -5594,20 +5642,20 @@ var Methods = {
5594
5642
  childRecords = [];
5595
5643
  }
5596
5644
  if (childRecords) {
5597
- return _this49.loadTreeChildren(row, childRecords).then(function (childRows) {
5598
- var treeExpandedMaps = _this49.treeExpandedMaps;
5645
+ return _this50.loadTreeChildren(row, childRecords).then(function (childRows) {
5646
+ var treeExpandedMaps = _this50.treeExpandedMaps;
5599
5647
  var treeTempExpandedMaps = _objectSpread({}, treeExpandedMaps);
5600
5648
  if (childRows.length && !treeTempExpandedMaps[rowid]) {
5601
5649
  treeTempExpandedMaps[rowid] = row;
5602
- _this49.treeExpandedMaps = treeTempExpandedMaps;
5650
+ _this50.treeExpandedMaps = treeTempExpandedMaps;
5603
5651
  }
5604
5652
  // 如果当前节点已选中,则展开后子节点也被选中
5605
- if (!checkStrictly && _this49.isCheckedByCheckboxRow(row)) {
5606
- _this49.handleCheckedCheckboxRow(childRows, true, true);
5653
+ if (!checkStrictly && _this50.isCheckedByCheckboxRow(row)) {
5654
+ _this50.handleCheckedCheckboxRow(childRows, true, true);
5607
5655
  }
5608
- return _this49.$nextTick().then(function () {
5656
+ return _this50.$nextTick().then(function () {
5609
5657
  if (transform) {
5610
- return _this49.handleTableData();
5658
+ return _this50.handleTableData();
5611
5659
  }
5612
5660
  });
5613
5661
  });
@@ -5615,13 +5663,13 @@ var Methods = {
5615
5663
  }).catch(function () {
5616
5664
  // 如果响应异常,则不展开,再次点击后将重新触发懒加载
5617
5665
  rest.treeLoaded = false;
5618
- var treeExpandLazyLoadedMaps = _this49.treeExpandLazyLoadedMaps;
5666
+ var treeExpandLazyLoadedMaps = _this50.treeExpandLazyLoadedMaps;
5619
5667
  if (treeExpandLazyLoadedMaps[rowid]) {
5620
5668
  treeExpandLazyLoadedMaps[rowid] = null;
5621
5669
  }
5622
5670
  }).finally(function () {
5623
- _this49.$nextTick().then(function () {
5624
- return _this49.recalculate();
5671
+ _this50.$nextTick().then(function () {
5672
+ return _this50.recalculate();
5625
5673
  }).then(function () {
5626
5674
  return resolve();
5627
5675
  });
@@ -5658,7 +5706,7 @@ var Methods = {
5658
5706
  * @returns
5659
5707
  */
5660
5708
  handleBaseTreeExpand: function handleBaseTreeExpand(rows, expanded) {
5661
- var _this50 = this;
5709
+ var _this51 = this;
5662
5710
  var fullAllDataRowMap = this.fullAllDataRowMap,
5663
5711
  tableFullData = this.tableFullData,
5664
5712
  treeExpandedMaps = this.treeExpandedMaps,
@@ -5694,7 +5742,7 @@ var Methods = {
5694
5742
  });
5695
5743
  if (matchObj) {
5696
5744
  matchObj.items.forEach(function (item) {
5697
- var rowid = (0, _util.getRowid)(_this50, item);
5745
+ var rowid = (0, _util.getRowid)(_this51, item);
5698
5746
  if (treeTempExpandedMaps[rowid]) {
5699
5747
  delete treeTempExpandedMaps[rowid];
5700
5748
  }
@@ -5703,13 +5751,13 @@ var Methods = {
5703
5751
  }
5704
5752
  if (expanded) {
5705
5753
  validRows.forEach(function (row) {
5706
- var rowid = (0, _util.getRowid)(_this50, row);
5754
+ var rowid = (0, _util.getRowid)(_this51, row);
5707
5755
  if (!treeTempExpandedMaps[rowid]) {
5708
5756
  var rest = fullAllDataRowMap.get(row);
5709
5757
  var isLoad = lazy && row[hasChildField] && !rest.treeLoaded && !treeExpandLazyLoadedMaps[rowid];
5710
5758
  // 是否使用懒加载
5711
5759
  if (isLoad) {
5712
- result.push(_this50.handleAsyncTreeExpandChilds(row));
5760
+ result.push(_this51.handleAsyncTreeExpandChilds(row));
5713
5761
  } else {
5714
5762
  if (row[childrenField] && row[childrenField].length) {
5715
5763
  treeTempExpandedMaps[rowid] = row;
@@ -5719,7 +5767,7 @@ var Methods = {
5719
5767
  });
5720
5768
  } else {
5721
5769
  validRows.forEach(function (item) {
5722
- var rowid = (0, _util.getRowid)(_this50, item);
5770
+ var rowid = (0, _util.getRowid)(_this51, item);
5723
5771
  if (treeTempExpandedMaps[rowid]) {
5724
5772
  delete treeTempExpandedMaps[rowid];
5725
5773
  }
@@ -5727,7 +5775,7 @@ var Methods = {
5727
5775
  }
5728
5776
  if (reserve) {
5729
5777
  validRows.forEach(function (row) {
5730
- return _this50.handleTreeExpandReserve(row, expanded);
5778
+ return _this51.handleTreeExpandReserve(row, expanded);
5731
5779
  });
5732
5780
  }
5733
5781
  this.treeExpandedMaps = treeTempExpandedMaps;
@@ -5740,12 +5788,12 @@ var Methods = {
5740
5788
  * @returns
5741
5789
  */
5742
5790
  handleVirtualTreeExpand: function handleVirtualTreeExpand(rows, expanded) {
5743
- var _this51 = this;
5791
+ var _this52 = this;
5744
5792
  return this.handleBaseTreeExpand(rows, expanded).then(function () {
5745
- _this51.handleVirtualTreeToList();
5746
- return _this51.handleTableData();
5793
+ _this52.handleVirtualTreeToList();
5794
+ return _this52.handleTableData();
5747
5795
  }).then(function () {
5748
- return _this51.recalculate();
5796
+ return _this52.recalculate();
5749
5797
  });
5750
5798
  },
5751
5799
  /**
@@ -5785,7 +5833,7 @@ var Methods = {
5785
5833
  * 手动清空树形节点的展开状态,数据会恢复成未展开的状态
5786
5834
  */
5787
5835
  clearTreeExpand: function clearTreeExpand() {
5788
- var _this52 = this;
5836
+ var _this53 = this;
5789
5837
  var treeOpts = this.treeOpts,
5790
5838
  tableFullData = this.tableFullData;
5791
5839
  var transform = treeOpts.transform,
@@ -5795,19 +5843,19 @@ var Methods = {
5795
5843
  this.treeExpandedMaps = {};
5796
5844
  if (reserve) {
5797
5845
  _xeUtils.default.eachTree(tableFullData, function (row) {
5798
- return _this52.handleTreeExpandReserve(row, false);
5846
+ return _this53.handleTreeExpandReserve(row, false);
5799
5847
  }, {
5800
5848
  children: childrenField
5801
5849
  });
5802
5850
  }
5803
5851
  return this.handleTableData().then(function () {
5804
5852
  if (transform) {
5805
- _this52.handleVirtualTreeToList();
5806
- return _this52.handleTableData();
5853
+ _this53.handleVirtualTreeToList();
5854
+ return _this53.handleTableData();
5807
5855
  }
5808
5856
  }).then(function () {
5809
5857
  if (expList.length) {
5810
- _this52.recalculate();
5858
+ _this53.recalculate();
5811
5859
  }
5812
5860
  });
5813
5861
  },
@@ -5926,28 +5974,28 @@ var Methods = {
5926
5974
  },
5927
5975
  // 计算可视渲染相关数据
5928
5976
  computeScrollLoad: function computeScrollLoad() {
5929
- var _this53 = this;
5977
+ var _this54 = this;
5930
5978
  return this.$nextTick().then(function () {
5931
- var sYOpts = _this53.sYOpts,
5932
- sXOpts = _this53.sXOpts,
5933
- scrollXLoad = _this53.scrollXLoad,
5934
- scrollYLoad = _this53.scrollYLoad,
5935
- scrollXStore = _this53.scrollXStore,
5936
- scrollYStore = _this53.scrollYStore;
5979
+ var sYOpts = _this54.sYOpts,
5980
+ sXOpts = _this54.sXOpts,
5981
+ scrollXLoad = _this54.scrollXLoad,
5982
+ scrollYLoad = _this54.scrollYLoad,
5983
+ scrollXStore = _this54.scrollXStore,
5984
+ scrollYStore = _this54.scrollYStore;
5937
5985
  // 计算 X 逻辑
5938
5986
  if (scrollXLoad) {
5939
- var _computeVirtualX3 = computeVirtualX(_this53),
5987
+ var _computeVirtualX3 = computeVirtualX(_this54),
5940
5988
  visibleXSize = _computeVirtualX3.visibleSize;
5941
5989
  var offsetXSize = sXOpts.oSize ? _xeUtils.default.toNumber(sXOpts.oSize) : _dom.browse.msie ? 10 : _dom.browse.edge ? 5 : 0;
5942
5990
  scrollXStore.offsetSize = offsetXSize;
5943
5991
  scrollXStore.visibleSize = visibleXSize;
5944
5992
  scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
5945
- _this53.updateScrollXData();
5993
+ _this54.updateScrollXData();
5946
5994
  } else {
5947
- _this53.updateScrollXSpace();
5995
+ _this54.updateScrollXSpace();
5948
5996
  }
5949
5997
  // 计算 Y 逻辑
5950
- var _computeVirtualY = computeVirtualY(_this53),
5998
+ var _computeVirtualY = computeVirtualY(_this54),
5951
5999
  rowHeight = _computeVirtualY.rowHeight,
5952
6000
  visibleYSize = _computeVirtualY.visibleSize;
5953
6001
  scrollYStore.rowHeight = rowHeight;
@@ -5956,12 +6004,12 @@ var Methods = {
5956
6004
  scrollYStore.offsetSize = offsetYSize;
5957
6005
  scrollYStore.visibleSize = visibleYSize;
5958
6006
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
5959
- _this53.updateScrollYData();
6007
+ _this54.updateScrollYData();
5960
6008
  } else {
5961
- _this53.updateScrollYSpace();
6009
+ _this54.updateScrollYSpace();
5962
6010
  }
5963
- _this53.rowHeight = rowHeight;
5964
- _this53.$nextTick(_this53.updateStyle);
6011
+ _this54.rowHeight = rowHeight;
6012
+ _this54.$nextTick(_this54.updateStyle);
5965
6013
  });
5966
6014
  },
5967
6015
  handleTableColumn: function handleTableColumn() {
@@ -5971,11 +6019,11 @@ var Methods = {
5971
6019
  this.tableColumn = scrollXLoad ? visibleColumn.slice(scrollXStore.startIndex, scrollXStore.endIndex) : visibleColumn.slice(0);
5972
6020
  },
5973
6021
  updateScrollXData: function updateScrollXData() {
5974
- var _this54 = this;
6022
+ var _this55 = this;
5975
6023
  // this.tableColumn = []
5976
6024
  this.$nextTick(function () {
5977
- _this54.handleTableColumn();
5978
- _this54.updateScrollXSpace();
6025
+ _this55.handleTableColumn();
6026
+ _this55.updateScrollXSpace();
5979
6027
  });
5980
6028
  },
5981
6029
  // 更新横向 X 可视渲染上下剩余空间大小
@@ -6026,11 +6074,11 @@ var Methods = {
6026
6074
  }
6027
6075
  },
6028
6076
  updateScrollYData: function updateScrollYData() {
6029
- var _this55 = this;
6077
+ var _this56 = this;
6030
6078
  // this.tableData = []
6031
6079
  this.$nextTick(function () {
6032
- _this55.handleTableData();
6033
- _this55.updateScrollYSpace();
6080
+ _this56.handleTableData();
6081
+ _this56.updateScrollYSpace();
6034
6082
  });
6035
6083
  },
6036
6084
  // 更新纵向 Y 可视渲染上下剩余空间大小
@@ -6071,7 +6119,7 @@ var Methods = {
6071
6119
  * @param {Number} scrollTop 上距离
6072
6120
  */
6073
6121
  scrollTo: function scrollTo(scrollLeft, scrollTop) {
6074
- var _this56 = this;
6122
+ var _this57 = this;
6075
6123
  var $refs = this.$refs;
6076
6124
  var tableBody = $refs.tableBody,
6077
6125
  rightBody = $refs.rightBody,
@@ -6088,7 +6136,7 @@ var Methods = {
6088
6136
  if (this.scrollXLoad || this.scrollYLoad) {
6089
6137
  return new Promise(function (resolve) {
6090
6138
  return setTimeout(function () {
6091
- return resolve(_this56.$nextTick());
6139
+ return resolve(_this57.$nextTick());
6092
6140
  }, 50);
6093
6141
  });
6094
6142
  }
@@ -6130,7 +6178,7 @@ var Methods = {
6130
6178
  * @param {Row} row 行对象
6131
6179
  */
6132
6180
  scrollToTreeRow: function scrollToTreeRow(row) {
6133
- var _this57 = this;
6181
+ var _this58 = this;
6134
6182
  var tableFullData = this.tableFullData,
6135
6183
  treeConfig = this.treeConfig,
6136
6184
  treeOpts = this.treeOpts;
@@ -6145,14 +6193,14 @@ var Methods = {
6145
6193
  if (matchObj) {
6146
6194
  var nodes = matchObj.nodes;
6147
6195
  nodes.forEach(function (row, index) {
6148
- if (index < nodes.length - 1 && !_this57.isTreeExpandByRow(row)) {
6149
- rests.push(_this57.setTreeExpand(row, true));
6196
+ if (index < nodes.length - 1 && !_this58.isTreeExpandByRow(row)) {
6197
+ rests.push(_this58.setTreeExpand(row, true));
6150
6198
  }
6151
6199
  });
6152
6200
  }
6153
6201
  }
6154
6202
  return Promise.all(rests).then(function () {
6155
- return (0, _util.rowToVisible)(_this57, row);
6203
+ return (0, _util.rowToVisible)(_this58, row);
6156
6204
  });
6157
6205
  },
6158
6206
  /**
@@ -6214,32 +6262,32 @@ var Methods = {
6214
6262
  * 如果单元格配置了校验规则,则会进行校验
6215
6263
  */
6216
6264
  updateStatus: function updateStatus(slotParams, cellValue) {
6217
- var _this58 = this;
6265
+ var _this59 = this;
6218
6266
  var customVal = !_xeUtils.default.isUndefined(cellValue);
6219
6267
  return this.$nextTick().then(function () {
6220
- var $refs = _this58.$refs,
6221
- editRules = _this58.editRules,
6222
- validStore = _this58.validStore;
6268
+ var $refs = _this59.$refs,
6269
+ editRules = _this59.editRules,
6270
+ validStore = _this59.validStore;
6223
6271
  var tableBody = $refs.tableBody;
6224
6272
  if (slotParams && tableBody && editRules) {
6225
6273
  var row = slotParams.row,
6226
6274
  column = slotParams.column;
6227
6275
  var type = 'change';
6228
- if (_this58.hasCellRules) {
6229
- if (_this58.hasCellRules(type, row, column)) {
6230
- var cell = _this58.getCellElement(row, column);
6276
+ if (_this59.hasCellRules) {
6277
+ if (_this59.hasCellRules(type, row, column)) {
6278
+ var cell = _this59.getCellElement(row, column);
6231
6279
  if (cell) {
6232
- return _this58.validCellRules(type, row, column, cellValue).then(function () {
6280
+ return _this59.validCellRules(type, row, column, cellValue).then(function () {
6233
6281
  if (customVal && validStore.visible) {
6234
6282
  setCellValue(row, column, cellValue);
6235
6283
  }
6236
- _this58.clearValidate(row, column);
6284
+ _this59.clearValidate(row, column);
6237
6285
  }).catch(function (_ref7) {
6238
6286
  var rule = _ref7.rule;
6239
6287
  if (customVal) {
6240
6288
  setCellValue(row, column, cellValue);
6241
6289
  }
6242
- _this58.showValidTooltip({
6290
+ _this59.showValidTooltip({
6243
6291
  rule: rule,
6244
6292
  row: row,
6245
6293
  column: column,
@@ -6260,14 +6308,14 @@ var Methods = {
6260
6308
  * @param {TableMergeConfig[]} merges { row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }
6261
6309
  */
6262
6310
  setMergeCells: function setMergeCells(merges) {
6263
- var _this59 = this;
6311
+ var _this60 = this;
6264
6312
  if (this.spanMethod) {
6265
6313
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-cells', 'span-method']);
6266
6314
  }
6267
6315
  setMerges(this, merges, this.mergeList, this.afterFullData);
6268
6316
  return this.$nextTick().then(function () {
6269
- _this59.updateCellAreas();
6270
- return _this59.updateStyle();
6317
+ _this60.updateCellAreas();
6318
+ return _this60.updateStyle();
6271
6319
  });
6272
6320
  },
6273
6321
  /**
@@ -6275,14 +6323,14 @@ var Methods = {
6275
6323
  * @param {TableMergeConfig[]} merges 多个或数组 [{row:Row|number, col:ColumnInfo|number}]
6276
6324
  */
6277
6325
  removeMergeCells: function removeMergeCells(merges) {
6278
- var _this60 = this;
6326
+ var _this61 = this;
6279
6327
  if (this.spanMethod) {
6280
6328
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-cells', 'span-method']);
6281
6329
  }
6282
6330
  var rest = removeMerges(this, merges, this.mergeList, this.afterFullData);
6283
6331
  return this.$nextTick().then(function () {
6284
- _this60.updateCellAreas();
6285
- _this60.updateStyle();
6332
+ _this61.updateCellAreas();
6333
+ _this61.updateStyle();
6286
6334
  return rest;
6287
6335
  });
6288
6336
  },
@@ -6296,35 +6344,35 @@ var Methods = {
6296
6344
  * 清除所有单元格合并
6297
6345
  */
6298
6346
  clearMergeCells: function clearMergeCells() {
6299
- var _this61 = this;
6347
+ var _this62 = this;
6300
6348
  this.mergeList = [];
6301
6349
  return this.$nextTick().then(function () {
6302
- return _this61.updateStyle();
6350
+ return _this62.updateStyle();
6303
6351
  });
6304
6352
  },
6305
6353
  handleDefaultMergeFooterItems: function handleDefaultMergeFooterItems() {
6306
6354
  this.setMergeFooterItems(this.mergeFooterItems);
6307
6355
  },
6308
6356
  setMergeFooterItems: function setMergeFooterItems(merges) {
6309
- var _this62 = this;
6357
+ var _this63 = this;
6310
6358
  if (this.footerSpanMethod) {
6311
6359
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
6312
6360
  }
6313
6361
  setMerges(this, merges, this.mergeFooterList, null);
6314
6362
  return this.$nextTick().then(function () {
6315
- _this62.updateCellAreas();
6316
- return _this62.updateStyle();
6363
+ _this63.updateCellAreas();
6364
+ return _this63.updateStyle();
6317
6365
  });
6318
6366
  },
6319
6367
  removeMergeFooterItems: function removeMergeFooterItems(merges) {
6320
- var _this63 = this;
6368
+ var _this64 = this;
6321
6369
  if (this.footerSpanMethod) {
6322
6370
  (0, _log.errLog)('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
6323
6371
  }
6324
6372
  var rest = removeMerges(this, merges, this.mergeFooterList, null);
6325
6373
  return this.$nextTick().then(function () {
6326
- _this63.updateCellAreas();
6327
- _this63.updateStyle();
6374
+ _this64.updateCellAreas();
6375
+ _this64.updateStyle();
6328
6376
  return rest;
6329
6377
  });
6330
6378
  },
@@ -6338,10 +6386,10 @@ var Methods = {
6338
6386
  * 清除所有表尾合并
6339
6387
  */
6340
6388
  clearMergeFooterItems: function clearMergeFooterItems() {
6341
- var _this64 = this;
6389
+ var _this65 = this;
6342
6390
  this.mergeFooterList = [];
6343
6391
  return this.$nextTick().then(function () {
6344
- return _this64.updateStyle();
6392
+ return _this65.updateStyle();
6345
6393
  });
6346
6394
  },
6347
6395
  updateZindex: function updateZindex() {
@@ -6396,9 +6444,9 @@ var Methods = {
6396
6444
  return this.getCellElement(row, column);
6397
6445
  },
6398
6446
  findRowIndexOf: function findRowIndexOf(list, row) {
6399
- var _this65 = this;
6447
+ var _this66 = this;
6400
6448
  return row ? _xeUtils.default.findIndexOf(list, function (item) {
6401
- return _this65.eqRow(item, row);
6449
+ return _this66.eqRow(item, row);
6402
6450
  }) : -1;
6403
6451
  },
6404
6452
  eqRow: function eqRow(row1, row2) {