vxe-table 4.1.4 → 4.1.7

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 (39) hide show
  1. package/es/edit/src/hook.js +189 -69
  2. package/es/form/src/form.js +2 -2
  3. package/es/input/src/input.js +8 -2
  4. package/es/table/src/body.js +6 -3
  5. package/es/table/src/props.js +6 -6
  6. package/es/table/src/table.js +53 -42
  7. package/es/v-x-e-table/src/conf.js +4 -1
  8. package/es/validator/src/hook.js +3 -3
  9. package/lib/edit/src/hook.js +243 -70
  10. package/lib/edit/src/hook.min.js +1 -1
  11. package/lib/form/src/form.js +2 -2
  12. package/lib/form/src/form.min.js +1 -1
  13. package/lib/index.umd.js +340 -224
  14. package/lib/index.umd.min.js +2 -1
  15. package/lib/input/src/input.js +10 -2
  16. package/lib/input/src/input.min.js +1 -1
  17. package/lib/table/src/body.js +6 -3
  18. package/lib/table/src/body.min.js +1 -1
  19. package/lib/table/src/props.js +6 -6
  20. package/lib/table/src/table.js +57 -45
  21. package/lib/table/src/table.min.js +1 -1
  22. package/lib/v-x-e-table/src/conf.js +4 -1
  23. package/lib/v-x-e-table/src/conf.min.js +1 -1
  24. package/lib/validator/src/hook.js +3 -3
  25. package/lib/validator/src/hook.min.js +1 -1
  26. package/package.json +3 -26
  27. package/packages/edit/src/hook.ts +183 -69
  28. package/packages/form/src/form.ts +2 -2
  29. package/packages/input/src/input.ts +9 -2
  30. package/packages/table/src/body.ts +6 -3
  31. package/packages/table/src/props.ts +6 -6
  32. package/packages/table/src/table.ts +52 -40
  33. package/packages/v-x-e-table/src/conf.ts +4 -1
  34. package/packages/v-x-e-table/src/renderer.ts +1 -1
  35. package/packages/validator/src/hook.ts +3 -3
  36. package/types/edit.d.ts +6 -3
  37. package/types/plugins/pro.d.ts +6 -6
  38. package/types/table.d.ts +9 -0
  39. package/types/v-x-e-table/renderer.d.ts +4 -2
package/lib/index.umd.js CHANGED
@@ -8420,6 +8420,7 @@ var GlobalConfig = {
8420
8420
  showHeader: true,
8421
8421
  animat: true,
8422
8422
  delayHover: 250,
8423
+ autoResize: true,
8423
8424
  // keepSource: false,
8424
8425
  // showOverflow: null,
8425
8426
  // showHeaderOverflow: null,
@@ -8427,7 +8428,6 @@ var GlobalConfig = {
8427
8428
  // resizeInterval: 500,
8428
8429
  // size: null,
8429
8430
  // zIndex: null,
8430
- // autoResize: false,
8431
8431
  // stripe: false,
8432
8432
  // border: false,
8433
8433
  // round: false,
@@ -8500,6 +8500,9 @@ var GlobalConfig = {
8500
8500
  mouseConfig: {
8501
8501
  extension: true
8502
8502
  },
8503
+ keyboardConfig: {
8504
+ isEsc: true
8505
+ },
8503
8506
  areaConfig: {
8504
8507
  selectCellByHeader: true
8505
8508
  },
@@ -8927,9 +8930,6 @@ var es_regexp_exec = __webpack_require__("ac1f");
8927
8930
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
8928
8931
  var es_string_replace = __webpack_require__("5319");
8929
8932
 
8930
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
8931
- var es_object_assign = __webpack_require__("cca6");
8932
-
8933
8933
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
8934
8934
  var es_array_concat = __webpack_require__("99af");
8935
8935
 
@@ -8954,9 +8954,6 @@ var es_array_slice = __webpack_require__("fb6a");
8954
8954
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
8955
8955
  var es_object_to_string = __webpack_require__("d3b7");
8956
8956
 
8957
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
8958
- var es_promise = __webpack_require__("e6cf");
8959
-
8960
8957
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
8961
8958
  var es_string_fixed = __webpack_require__("c7cd");
8962
8959
 
@@ -8971,7 +8968,6 @@ var es_string_fixed = __webpack_require__("c7cd");
8971
8968
 
8972
8969
 
8973
8970
 
8974
-
8975
8971
  var columnInfo_ColumnInfo = /*#__PURE__*/function () {
8976
8972
  /* eslint-disable @typescript-eslint/no-use-before-define */
8977
8973
  function ColumnInfo($xetable, _vm) {
@@ -9348,7 +9344,6 @@ function dom_triggerEvent(targetElem, type) {
9348
9344
 
9349
9345
 
9350
9346
 
9351
-
9352
9347
  function restoreScrollLocation($xetable, scrollLeft, scrollTop) {
9353
9348
  var internalData = $xetable.internalData;
9354
9349
  return $xetable.clearScroll().then(function () {
@@ -9730,7 +9725,6 @@ function getOnName(type) {
9730
9725
 
9731
9726
 
9732
9727
 
9733
-
9734
9728
  var componentDefaultModelProp = 'modelValue';
9735
9729
  var defaultCompProps = {
9736
9730
  transfer: true
@@ -10520,7 +10514,6 @@ var renderer = {
10520
10514
 
10521
10515
 
10522
10516
 
10523
-
10524
10517
  /**
10525
10518
  * 创建数据仓库
10526
10519
  */
@@ -10578,7 +10571,6 @@ var store_Store = /*#__PURE__*/function () {
10578
10571
  /* harmony default export */ var store = (store_Store);
10579
10572
  // CONCATENATED MODULE: ./packages/v-x-e-table/src/commands.ts
10580
10573
 
10581
-
10582
10574
  var commands = new store();
10583
10575
 
10584
10576
  if (true) {
@@ -10588,7 +10580,6 @@ if (true) {
10588
10580
  }
10589
10581
  // CONCATENATED MODULE: ./packages/v-x-e-table/src/menus.ts
10590
10582
 
10591
-
10592
10583
  var menus = new store();
10593
10584
 
10594
10585
  if (true) {
@@ -10598,7 +10589,6 @@ if (true) {
10598
10589
  }
10599
10590
  // CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.ts
10600
10591
 
10601
-
10602
10592
  var formats = new store();
10603
10593
 
10604
10594
  if (true) {
@@ -10748,7 +10738,6 @@ var Icon = {
10748
10738
 
10749
10739
 
10750
10740
 
10751
-
10752
10741
  /* harmony default export */ var panel = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
10753
10742
  name: 'VxeTableFilter',
10754
10743
  props: {
@@ -10971,7 +10960,6 @@ var Icon = {
10971
10960
 
10972
10961
 
10973
10962
 
10974
-
10975
10963
  var tableFilterMethodKeys = ['setFilter', 'clearFilter', 'getCheckedFilters'];
10976
10964
  var tableFilterHook = {
10977
10965
  setupTable: function setupTable($xetable) {
@@ -11556,7 +11544,6 @@ if (browse.isDoc) {
11556
11544
 
11557
11545
 
11558
11546
 
11559
-
11560
11547
  var tableMenuMethodKeys = ['closeMenu'];
11561
11548
  var tableMenuHook = {
11562
11549
  setupTable: function setupTable($xetable) {
@@ -11981,9 +11968,6 @@ var es_symbol_description = __webpack_require__("e01a");
11981
11968
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
11982
11969
  var es_symbol_iterator = __webpack_require__("d28b");
11983
11970
 
11984
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
11985
- var es_array_iterator = __webpack_require__("e260");
11986
-
11987
11971
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
11988
11972
  var es_string_iterator = __webpack_require__("3ca3");
11989
11973
 
@@ -12001,7 +11985,6 @@ var es_array_from = __webpack_require__("a630");
12001
11985
 
12002
11986
 
12003
11987
 
12004
-
12005
11988
  function _iterableToArray(iter) {
12006
11989
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
12007
11990
  }
@@ -12049,7 +12032,6 @@ function _toConsumableArray(arr) {
12049
12032
 
12050
12033
 
12051
12034
 
12052
-
12053
12035
  var tableEditMethodKeys = ['insert', 'insertAt', 'remove', 'removeCheckboxRow', 'removeRadioRow', 'removeCurrentRow', 'getRecordset', 'getInsertRecords', 'getRemoveRecords', 'getUpdateRecords', 'getActiveRecord', 'getSelectedCell', 'clearActived', 'clearSelected', 'isActiveByRow', 'setActiveRow', 'setActiveCell', 'setSelectCell'];
12054
12036
  var editHook = {
12055
12037
  setupTable: function setupTable($xetable) {
@@ -12122,6 +12104,69 @@ var editHook = {
12122
12104
  }
12123
12105
  }
12124
12106
 
12107
+ function insertTreeRow(newRecords, isAppend) {
12108
+ var treeFullData = internalData.treeFullData,
12109
+ afterFullData = internalData.afterFullData,
12110
+ fullDataRowIdData = internalData.fullDataRowIdData,
12111
+ fullAllDataRowIdData = internalData.fullAllDataRowIdData;
12112
+ var treeOpts = computeTreeOpts.value;
12113
+ var funcName = isAppend ? 'push' : 'unshift';
12114
+ newRecords.forEach(function (item) {
12115
+ var parentRowId = item[treeOpts.parentField];
12116
+ var rowid = util_getRowid($xetable, item);
12117
+ var matchObj = parentRowId ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
12118
+ return parentRowId === item[treeOpts.rowField];
12119
+ }, treeOpts) : null;
12120
+
12121
+ if (matchObj) {
12122
+ var parentRow = matchObj.item;
12123
+ var parentRest = fullAllDataRowIdData[util_getRowid($xetable, parentRow)];
12124
+ var parentLevel = parentRest ? parentRest.level : 0;
12125
+ var parentChilds = parentRow[treeOpts.children];
12126
+
12127
+ if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(parentChilds)) {
12128
+ parentChilds = parentRow[treeOpts.children] = [];
12129
+ }
12130
+
12131
+ parentChilds[funcName](item);
12132
+ var rest = {
12133
+ row: item,
12134
+ rowid: rowid,
12135
+ index: -1,
12136
+ _index: -1,
12137
+ $index: -1,
12138
+ items: parentChilds,
12139
+ parent: parent,
12140
+ level: parentLevel + 1
12141
+ };
12142
+ fullDataRowIdData[rowid] = rest;
12143
+ fullAllDataRowIdData[rowid] = rest;
12144
+ } else {
12145
+ if (true) {
12146
+ if (parentRowId) {
12147
+ warnLog('vxe.error.unableInsert');
12148
+ }
12149
+ }
12150
+
12151
+ afterFullData[funcName](item);
12152
+ treeFullData[funcName](item);
12153
+ var _rest = {
12154
+ row: item,
12155
+ rowid: rowid,
12156
+ index: -1,
12157
+ _index: -1,
12158
+ $index: -1,
12159
+ items: treeFullData,
12160
+ parent: null,
12161
+ level: 0
12162
+ };
12163
+ fullDataRowIdData[rowid] = _rest;
12164
+ fullAllDataRowIdData[rowid] = _rest;
12165
+ }
12166
+ });
12167
+ $xetable.updateVirtualTreeData();
12168
+ }
12169
+
12125
12170
  editMethods = {
12126
12171
  /**
12127
12172
  * 往表格中插入临时数据
@@ -12134,9 +12179,9 @@ var editHook = {
12134
12179
 
12135
12180
  /**
12136
12181
  * 往表格指定行中插入临时数据
12137
- * 如果 row 为空则从插入到顶部
12138
- * 如果 row 为 -1 则从插入到底部
12139
- * 如果 row 为有效行则插入到该行的位置
12182
+ * 如果 row 为空则从插入到顶部,如果为树结构,则插入到目标节点顶部
12183
+ * 如果 row 为 -1 则从插入到底部,如果为树结构,则插入到目标节点底部
12184
+ * 如果 row 为有效行则插入到该行的位置,如果为树结构,则有插入到效的目标节点该行的位置
12140
12185
  * @param {Object/Array} records 新的数据
12141
12186
  * @param {Row} row 指定行
12142
12187
  */
@@ -12147,9 +12192,14 @@ var editHook = {
12147
12192
  var mergeList = reactData.mergeList,
12148
12193
  editStore = reactData.editStore,
12149
12194
  scrollYLoad = reactData.scrollYLoad;
12150
- var afterFullData = internalData.afterFullData,
12151
- tableFullData = internalData.tableFullData;
12195
+ var treeFullData = internalData.treeFullData,
12196
+ afterFullData = internalData.afterFullData,
12197
+ tableFullData = internalData.tableFullData,
12198
+ fullDataRowIdData = internalData.fullDataRowIdData,
12199
+ fullAllDataRowIdData = internalData.fullAllDataRowIdData;
12152
12200
  var sYOpts = computeSYOpts.value;
12201
+ var treeOpts = computeTreeOpts.value;
12202
+ var transform = treeOpts.transform;
12153
12203
 
12154
12204
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(records)) {
12155
12205
  records = [records];
@@ -12160,53 +12210,113 @@ var editHook = {
12160
12210
  });
12161
12211
 
12162
12212
  if (!row) {
12163
- afterFullData.unshift.apply(afterFullData, _toConsumableArray(newRecords));
12164
- tableFullData.unshift.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
12213
+ // 如果为虚拟树
12214
+ if (treeConfig && transform) {
12215
+ insertTreeRow(newRecords, false);
12216
+ } else {
12217
+ afterFullData.unshift.apply(afterFullData, _toConsumableArray(newRecords));
12218
+ tableFullData.unshift.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
12165
12219
 
12166
- mergeList.forEach(function (mergeItem) {
12167
- var mergeRowIndex = mergeItem.row;
12220
+ mergeList.forEach(function (mergeItem) {
12221
+ var mergeRowIndex = mergeItem.row;
12168
12222
 
12169
- if (mergeRowIndex > 0) {
12170
- mergeItem.row = mergeRowIndex + newRecords.length;
12171
- }
12172
- });
12223
+ if (mergeRowIndex > 0) {
12224
+ mergeItem.row = mergeRowIndex + newRecords.length;
12225
+ }
12226
+ });
12227
+ }
12173
12228
  } else {
12174
12229
  if (row === -1) {
12175
- afterFullData.push.apply(afterFullData, _toConsumableArray(newRecords));
12176
- tableFullData.push.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
12230
+ // 如果为虚拟树
12231
+ if (treeConfig && transform) {
12232
+ insertTreeRow(newRecords, true);
12233
+ } else {
12234
+ afterFullData.push.apply(afterFullData, _toConsumableArray(newRecords));
12235
+ tableFullData.push.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
12177
12236
 
12178
- mergeList.forEach(function (mergeItem) {
12179
- var mergeRowIndex = mergeItem.row,
12180
- mergeRowspan = mergeItem.rowspan;
12237
+ mergeList.forEach(function (mergeItem) {
12238
+ var mergeRowIndex = mergeItem.row,
12239
+ mergeRowspan = mergeItem.rowspan;
12181
12240
 
12182
- if (mergeRowIndex + mergeRowspan > afterFullData.length) {
12183
- mergeItem.rowspan = mergeRowspan + newRecords.length;
12184
- }
12185
- });
12186
- } else {
12187
- if (treeConfig) {
12188
- throw new Error(getLog('vxe.error.noTree', ['insert']));
12241
+ if (mergeRowIndex + mergeRowspan > afterFullData.length) {
12242
+ mergeItem.rowspan = mergeRowspan + newRecords.length;
12243
+ }
12244
+ });
12189
12245
  }
12246
+ } else {
12247
+ // 如果为虚拟树
12248
+ if (treeConfig && transform) {
12249
+ var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
12250
+ return row[treeOpts.rowField] === item[treeOpts.rowField];
12251
+ }, treeOpts);
12190
12252
 
12191
- var afIndex = $xetable.findRowIndexOf(afterFullData, row);
12253
+ if (matchObj) {
12254
+ var parentRow = matchObj.parent;
12255
+ var parentChilds = matchObj.items;
12256
+ var parentRest = fullAllDataRowIdData[util_getRowid($xetable, parentRow)];
12257
+ var parentLevel = parentRest ? parentRest.level : 0;
12258
+ newRecords.forEach(function (item, i) {
12259
+ var rowid = util_getRowid($xetable, item);
12260
+
12261
+ if (true) {
12262
+ if (item[treeOpts.parentField]) {
12263
+ if (parentRow && item[treeOpts.parentField] !== parentRow[treeOpts.rowField]) {
12264
+ errLog('vxe.error.errProp', ["".concat(treeOpts.parentField, "=").concat(item[treeOpts.parentField]), "".concat(treeOpts.parentField, "=").concat(parentRow[treeOpts.rowField])]);
12265
+ }
12266
+ }
12267
+ }
12192
12268
 
12193
- if (afIndex === -1) {
12194
- throw new Error(errLog('vxe.error.unableInsert'));
12195
- }
12269
+ if (parentRow) {
12270
+ item[treeOpts.parentField] = parentRow[treeOpts.rowField];
12271
+ }
12272
+
12273
+ parentChilds.splice(matchObj.index + i, 0, item);
12274
+ var rest = {
12275
+ row: item,
12276
+ rowid: rowid,
12277
+ index: -1,
12278
+ _index: -1,
12279
+ $index: -1,
12280
+ items: parentChilds,
12281
+ parent: parentRow,
12282
+ level: parentLevel + 1
12283
+ };
12284
+ fullDataRowIdData[rowid] = rest;
12285
+ fullAllDataRowIdData[rowid] = rest;
12286
+ });
12287
+ $xetable.updateVirtualTreeData();
12288
+ } else {
12289
+ if (true) {
12290
+ warnLog('vxe.error.unableInsert');
12291
+ }
12196
12292
 
12197
- afterFullData.splice.apply(afterFullData, [afIndex, 0].concat(_toConsumableArray(newRecords)));
12198
- tableFullData.splice.apply(tableFullData, [$xetable.findRowIndexOf(tableFullData, row), 0].concat(_toConsumableArray(newRecords))); // 刷新单元格合并
12293
+ insertTreeRow(newRecords, true);
12294
+ }
12295
+ } else {
12296
+ if (treeConfig) {
12297
+ throw new Error(getLog('vxe.error.noTree', ['insert']));
12298
+ }
12199
12299
 
12200
- mergeList.forEach(function (mergeItem) {
12201
- var mergeRowIndex = mergeItem.row,
12202
- mergeRowspan = mergeItem.rowspan;
12300
+ var afIndex = $xetable.findRowIndexOf(afterFullData, row);
12203
12301
 
12204
- if (mergeRowIndex > afIndex) {
12205
- mergeItem.row = mergeRowIndex + newRecords.length;
12206
- } else if (mergeRowIndex + mergeRowspan > afIndex) {
12207
- mergeItem.rowspan = mergeRowspan + newRecords.length;
12302
+ if (afIndex === -1) {
12303
+ throw new Error(errLog('vxe.error.unableInsert'));
12208
12304
  }
12209
- });
12305
+
12306
+ afterFullData.splice.apply(afterFullData, [afIndex, 0].concat(_toConsumableArray(newRecords)));
12307
+ tableFullData.splice.apply(tableFullData, [$xetable.findRowIndexOf(tableFullData, row), 0].concat(_toConsumableArray(newRecords))); // 刷新单元格合并
12308
+
12309
+ mergeList.forEach(function (mergeItem) {
12310
+ var mergeRowIndex = mergeItem.row,
12311
+ mergeRowspan = mergeItem.rowspan;
12312
+
12313
+ if (mergeRowIndex > afIndex) {
12314
+ mergeItem.row = mergeRowIndex + newRecords.length;
12315
+ } else if (mergeRowIndex + mergeRowspan > afIndex) {
12316
+ mergeItem.rowspan = mergeRowspan + newRecords.length;
12317
+ }
12318
+ });
12319
+ }
12210
12320
  }
12211
12321
  }
12212
12322
 
@@ -12215,7 +12325,7 @@ var editHook = {
12215
12325
  reactData.scrollYLoad = !treeConfig && sYOpts.gt > -1 && sYOpts.gt < tableFullData.length;
12216
12326
  $xetable.updateFooter();
12217
12327
  $xetable.cacheRowMap();
12218
- $xetable.handleTableData();
12328
+ $xetable.handleTableData(transform);
12219
12329
  $xetable.updateAfterDataIndex();
12220
12330
  $xetable.checkSelectionStatus();
12221
12331
 
@@ -12246,10 +12356,13 @@ var editHook = {
12246
12356
  editStore = reactData.editStore,
12247
12357
  selection = reactData.selection,
12248
12358
  scrollYLoad = reactData.scrollYLoad;
12249
- var afterFullData = internalData.afterFullData,
12359
+ var treeFullData = internalData.treeFullData,
12360
+ afterFullData = internalData.afterFullData,
12250
12361
  tableFullData = internalData.tableFullData;
12251
12362
  var checkboxOpts = computeCheckboxOpts.value;
12252
12363
  var sYOpts = computeSYOpts.value;
12364
+ var treeOpts = computeTreeOpts.value;
12365
+ var transform = treeOpts.transform;
12253
12366
  var actived = editStore.actived,
12254
12367
  removeList = editStore.removeList,
12255
12368
  insertList = editStore.insertList;
@@ -12286,31 +12399,54 @@ var editHook = {
12286
12399
  internalData.afterFullData = [];
12287
12400
  $xetable.clearMergeCells();
12288
12401
  } else {
12289
- rows.forEach(function (row) {
12290
- var tfIndex = $xetable.findRowIndexOf(tableFullData, row);
12402
+ // 如果为虚拟树
12403
+ if (treeConfig && transform) {
12404
+ rows.forEach(function (row) {
12405
+ var rowid = util_getRowid($xetable, row);
12406
+ var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
12407
+ return rowid === util_getRowid($xetable, item);
12408
+ }, treeOpts);
12291
12409
 
12292
- if (tfIndex > -1) {
12293
- var rItems = tableFullData.splice(tfIndex, 1);
12294
- rest.push(rItems[0]);
12295
- }
12410
+ if (matchObj) {
12411
+ var rItems = matchObj.items.splice(matchObj.index, 1);
12412
+ rest.push(rItems[0]);
12413
+ }
12296
12414
 
12297
- var afIndex = $xetable.findRowIndexOf(afterFullData, row);
12415
+ var afIndex = $xetable.findRowIndexOf(afterFullData, row);
12298
12416
 
12299
- if (afIndex > -1) {
12300
- // 刷新单元格合并
12301
- mergeList.forEach(function (mergeItem) {
12302
- var mergeRowIndex = mergeItem.row,
12303
- mergeRowspan = mergeItem.rowspan;
12417
+ if (afIndex > -1) {
12418
+ afterFullData.splice(afIndex, 1);
12419
+ }
12304
12420
 
12305
- if (mergeRowIndex > afIndex) {
12306
- mergeItem.row = mergeRowIndex - 1;
12307
- } else if (mergeRowIndex + mergeRowspan > afIndex) {
12308
- mergeItem.rowspan = mergeRowspan - 1;
12309
- }
12310
- });
12311
- afterFullData.splice(afIndex, 1);
12312
- }
12313
- });
12421
+ $xetable.updateVirtualTreeData();
12422
+ });
12423
+ } else {
12424
+ rows.forEach(function (row) {
12425
+ var tfIndex = $xetable.findRowIndexOf(tableFullData, row);
12426
+
12427
+ if (tfIndex > -1) {
12428
+ var rItems = tableFullData.splice(tfIndex, 1);
12429
+ rest.push(rItems[0]);
12430
+ }
12431
+
12432
+ var afIndex = $xetable.findRowIndexOf(afterFullData, row);
12433
+
12434
+ if (afIndex > -1) {
12435
+ // 刷新单元格合并
12436
+ mergeList.forEach(function (mergeItem) {
12437
+ var mergeRowIndex = mergeItem.row,
12438
+ mergeRowspan = mergeItem.rowspan;
12439
+
12440
+ if (mergeRowIndex > afIndex) {
12441
+ mergeItem.row = mergeRowIndex - 1;
12442
+ } else if (mergeRowIndex + mergeRowspan > afIndex) {
12443
+ mergeItem.rowspan = mergeRowspan - 1;
12444
+ }
12445
+ });
12446
+ afterFullData.splice(afIndex, 1);
12447
+ }
12448
+ });
12449
+ }
12314
12450
  } // 如果当前行被激活编辑,则清除激活状态
12315
12451
 
12316
12452
 
@@ -12329,7 +12465,7 @@ var editHook = {
12329
12465
  reactData.scrollYLoad = !treeConfig && sYOpts.gt > -1 && sYOpts.gt < tableFullData.length;
12330
12466
  $xetable.updateFooter();
12331
12467
  $xetable.cacheRowMap();
12332
- $xetable.handleTableData();
12468
+ $xetable.handleTableData(transform);
12333
12469
  $xetable.updateAfterDataIndex();
12334
12470
  $xetable.checkSelectionStatus();
12335
12471
 
@@ -12395,17 +12531,34 @@ var editHook = {
12395
12531
  * 获取新增的临时数据
12396
12532
  */
12397
12533
  getInsertRecords: function getInsertRecords() {
12534
+ var treeConfig = props.treeConfig;
12398
12535
  var editStore = reactData.editStore;
12399
- var tableFullData = internalData.tableFullData;
12536
+ var treeFullData = internalData.treeFullData,
12537
+ tableFullData = internalData.tableFullData;
12538
+ var treeOpts = computeTreeOpts.value;
12400
12539
  var insertList = editStore.insertList;
12401
12540
  var insertRecords = [];
12402
12541
 
12403
12542
  if (insertList.length) {
12404
- tableFullData.forEach(function (row) {
12405
- if ($xetable.findRowIndexOf(insertList, row) > -1) {
12406
- insertRecords.push(row);
12407
- }
12408
- });
12543
+ // 如果为虚拟树
12544
+ if (treeConfig && treeOpts.transform) {
12545
+ insertList.forEach(function (row) {
12546
+ var rowid = util_getRowid($xetable, row);
12547
+ var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
12548
+ return rowid === util_getRowid($xetable, item);
12549
+ }, treeOpts);
12550
+
12551
+ if (matchObj) {
12552
+ insertRecords.push(row);
12553
+ }
12554
+ });
12555
+ } else {
12556
+ insertList.forEach(function (row) {
12557
+ if ($xetable.findRowIndexOf(tableFullData, row) > -1) {
12558
+ insertRecords.push(row);
12559
+ }
12560
+ });
12561
+ }
12409
12562
  }
12410
12563
 
12411
12564
  return insertRecords;
@@ -12825,7 +12978,6 @@ function _arrayWithHoles(arr) {
12825
12978
 
12826
12979
 
12827
12980
 
12828
-
12829
12981
  function _iterableToArrayLimit(arr, i) {
12830
12982
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
12831
12983
 
@@ -12896,7 +13048,6 @@ function useSize(props) {
12896
13048
 
12897
13049
 
12898
13050
 
12899
-
12900
13051
  /* harmony default export */ var src_button = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
12901
13052
  name: 'VxeButton',
12902
13053
  props: {
@@ -13373,8 +13524,6 @@ function useSize(props) {
13373
13524
 
13374
13525
 
13375
13526
 
13376
-
13377
-
13378
13527
 
13379
13528
  var allActivedModals = [];
13380
13529
  var msgQueue = [];
@@ -14591,7 +14740,6 @@ var es_string_pad_start = __webpack_require__("4d90");
14591
14740
 
14592
14741
 
14593
14742
 
14594
-
14595
14743
  var yearSize = 20;
14596
14744
  var monthSize = 20;
14597
14745
  var quarterSize = 8;
@@ -15231,12 +15379,20 @@ function toStringTimeDate(str) {
15231
15379
  return immediate || !(type === 'text' || type === 'number' || type === 'integer' || type === 'float');
15232
15380
  });
15233
15381
 
15382
+ function toFloatValueFixed(inputValue, digitsValue) {
15383
+ if (/^-/.test('' + inputValue)) {
15384
+ 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);
15385
+ }
15386
+
15387
+ 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);
15388
+ }
15389
+
15234
15390
  function getNumberValue(val) {
15235
15391
  var type = props.type,
15236
15392
  exponential = props.exponential;
15237
15393
  var inpMaxlength = computeInpMaxlength.value;
15238
15394
  var digitsValue = computeDigitsValue.value;
15239
- var restVal = type === 'float' ? 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(val, digitsValue), digitsValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(val);
15395
+ var restVal = type === 'float' ? toFloatValueFixed(val, digitsValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(val);
15240
15396
 
15241
15397
  if (exponential && (val === restVal || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(val).toLowerCase() === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(restVal).toExponential())) {
15242
15398
  return val;
@@ -15408,7 +15564,7 @@ function toStringTimeDate(str) {
15408
15564
  changeValue();
15409
15565
  } else if (type === 'float') {
15410
15566
  if (inputValue) {
15411
- var validValue = 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);
15567
+ var validValue = toFloatValueFixed(inputValue, digitsValue);
15412
15568
 
15413
15569
  if (inputValue !== validValue) {
15414
15570
  emitModel(validValue, {
@@ -17042,7 +17198,6 @@ var es_string_includes = __webpack_require__("2532");
17042
17198
 
17043
17199
 
17044
17200
 
17045
-
17046
17201
  /* harmony default export */ var src_checkbox = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
17047
17202
  name: 'VxeCheckbox',
17048
17203
  props: {
@@ -17168,7 +17323,6 @@ var es_string_includes = __webpack_require__("2532");
17168
17323
 
17169
17324
 
17170
17325
 
17171
-
17172
17326
  function isOptionVisible(option) {
17173
17327
  return option.visible !== false;
17174
17328
  }
@@ -18108,7 +18262,6 @@ function getOptUniqueId() {
18108
18262
 
18109
18263
 
18110
18264
 
18111
-
18112
18265
  /* harmony default export */ var export_panel = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
18113
18266
  name: 'VxeExportPanel',
18114
18267
  props: {
@@ -18479,7 +18632,6 @@ function getOptUniqueId() {
18479
18632
 
18480
18633
 
18481
18634
 
18482
-
18483
18635
  /* harmony default export */ var src_group = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
18484
18636
  name: 'VxeRadioGroup',
18485
18637
  props: {
@@ -18543,7 +18695,6 @@ function getOptUniqueId() {
18543
18695
 
18544
18696
 
18545
18697
 
18546
-
18547
18698
  /* harmony default export */ var src_radio = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
18548
18699
  name: 'VxeRadio',
18549
18700
  props: {
@@ -18660,7 +18811,6 @@ function getOptUniqueId() {
18660
18811
 
18661
18812
 
18662
18813
 
18663
-
18664
18814
  /* harmony default export */ var import_panel = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
18665
18815
  name: 'VxeImportPanel',
18666
18816
  props: {
@@ -18849,9 +18999,6 @@ var web_url_search_params = __webpack_require__("9861");
18849
18999
 
18850
19000
 
18851
19001
 
18852
-
18853
-
18854
-
18855
19002
  // 导入
18856
19003
 
18857
19004
  var fileForm;
@@ -19077,8 +19224,6 @@ var util_saveLocalFile = function saveLocalFile(options) {
19077
19224
 
19078
19225
 
19079
19226
 
19080
-
19081
-
19082
19227
 
19083
19228
 
19084
19229
 
@@ -20797,7 +20942,6 @@ var tableExportHook = {
20797
20942
 
20798
20943
 
20799
20944
 
20800
-
20801
20945
  var export_print = function print(options) {
20802
20946
  var opts = Object.assign({}, options, {
20803
20947
  type: 'html'
@@ -20836,7 +20980,6 @@ var Export = {
20836
20980
 
20837
20981
 
20838
20982
 
20839
-
20840
20983
  function getTargetOffset(target, container) {
20841
20984
  var offsetTop = 0;
20842
20985
  var offsetLeft = 0;
@@ -21343,9 +21486,6 @@ var Keyboard = {
21343
21486
 
21344
21487
 
21345
21488
 
21346
-
21347
-
21348
-
21349
21489
  /**
21350
21490
  * 校验规则
21351
21491
  */
@@ -21520,7 +21660,7 @@ var validatorHook = {
21520
21660
  var ruleProps = Object.keys(validRest);
21521
21661
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])().then(function () {
21522
21662
  if (ruleProps.length) {
21523
- return Promise.reject(validRest[ruleProps[0]][0]);
21663
+ return validRest[ruleProps[0]][0];
21524
21664
  }
21525
21665
 
21526
21666
  if (cb) {
@@ -21528,14 +21668,14 @@ var validatorHook = {
21528
21668
  }
21529
21669
  });
21530
21670
  }).catch(function (firstErrParams) {
21531
- return new Promise(function (resolve, reject) {
21671
+ return new Promise(function (resolve) {
21532
21672
  var finish = function finish() {
21533
21673
  Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
21534
21674
  if (cb) {
21535
21675
  cb(validRest);
21536
21676
  resolve();
21537
21677
  } else {
21538
- reject(validRest);
21678
+ resolve(validRest);
21539
21679
  }
21540
21680
  });
21541
21681
  };
@@ -22261,7 +22401,6 @@ var renderType = 'header';
22261
22401
 
22262
22402
 
22263
22403
 
22264
-
22265
22404
  var Header = Object.assign(header, {
22266
22405
  install: function install(app) {
22267
22406
  dynamicApp.component(header.name, header);
@@ -22279,7 +22418,6 @@ var Header = Object.assign(header, {
22279
22418
 
22280
22419
 
22281
22420
 
22282
-
22283
22421
  var footer_renderType = 'footer';
22284
22422
 
22285
22423
  function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
@@ -22639,7 +22777,6 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
22639
22777
 
22640
22778
 
22641
22779
 
22642
-
22643
22780
  var Footer = Object.assign(footer, {
22644
22781
  install: function install(app) {
22645
22782
  dynamicApp.component(footer.name, footer);
@@ -22659,7 +22796,6 @@ var Footer = Object.assign(footer, {
22659
22796
 
22660
22797
 
22661
22798
 
22662
-
22663
22799
  function renderHelpIcon(params) {
22664
22800
  var $table = params.$table,
22665
22801
  column = params.column;
@@ -23758,7 +23894,6 @@ var columnProps = {
23758
23894
 
23759
23895
 
23760
23896
 
23761
-
23762
23897
  var Column = Object.assign(src_column, {
23763
23898
  install: function install(app) {
23764
23899
  dynamicApp.component(src_column.name, src_column);
@@ -23817,7 +23952,6 @@ var Column = Object.assign(src_column, {
23817
23952
 
23818
23953
 
23819
23954
 
23820
-
23821
23955
  var Colgroup = Object.assign(table_src_group, {
23822
23956
  install: function install(app) {
23823
23957
  dynamicApp.component(table_src_group.name, table_src_group);
@@ -23915,35 +24049,35 @@ var es_array_sort = __webpack_require__("4e82");
23915
24049
  return conf.table.showHeader;
23916
24050
  }
23917
24051
  },
23918
- // 是否要高亮当前选中行
24052
+ // (即将废弃)是否要高亮当前选中行
23919
24053
  highlightCurrentRow: {
23920
24054
  type: Boolean,
23921
24055
  default: function _default() {
23922
24056
  return conf.table.highlightCurrentRow;
23923
24057
  }
23924
24058
  },
23925
- // 鼠标移到行是否要高亮显示
24059
+ // (即将废弃)鼠标移到行是否要高亮显示
23926
24060
  highlightHoverRow: {
23927
24061
  type: Boolean,
23928
24062
  default: function _default() {
23929
24063
  return conf.table.highlightHoverRow;
23930
24064
  }
23931
24065
  },
23932
- // 是否要高亮当前选中列
24066
+ // (即将废弃)是否要高亮当前选中列
23933
24067
  highlightCurrentColumn: {
23934
24068
  type: Boolean,
23935
24069
  default: function _default() {
23936
24070
  return conf.table.highlightCurrentColumn;
23937
24071
  }
23938
24072
  },
23939
- // 鼠标移到列是否要高亮显示
24073
+ // (即将废弃)鼠标移到列是否要高亮显示
23940
24074
  highlightHoverColumn: {
23941
24075
  type: Boolean,
23942
24076
  default: function _default() {
23943
24077
  return conf.table.highlightHoverColumn;
23944
24078
  }
23945
24079
  },
23946
- // 激活单元格编辑时是否高亮显示
24080
+ // (即将废弃)激活单元格编辑时是否高亮显示
23947
24081
  highlightCell: Boolean,
23948
24082
  // 是否显示表尾合计
23949
24083
  showFooter: Boolean,
@@ -24089,7 +24223,7 @@ var es_array_sort = __webpack_require__("4e82");
24089
24223
  scrollX: Object,
24090
24224
  // 纵向虚拟滚动配置项
24091
24225
  scrollY: Object,
24092
- // 优化相关
24226
+ // (即将废弃)优化相关
24093
24227
  animat: {
24094
24228
  type: Boolean,
24095
24229
  default: function _default() {
@@ -24126,8 +24260,6 @@ var es_array_sort = __webpack_require__("4e82");
24126
24260
 
24127
24261
 
24128
24262
 
24129
-
24130
-
24131
24263
 
24132
24264
 
24133
24265
  var tableComponentPropKeys = Object.keys(src_props);
@@ -25521,7 +25653,6 @@ var gridComponentEmits = [].concat(_toConsumableArray(emits), ['page-change', 'f
25521
25653
 
25522
25654
 
25523
25655
 
25524
-
25525
25656
  var Grid = Object.assign(grid, {
25526
25657
  install: function install(app) {
25527
25658
  dynamicApp.component(grid.name, grid);
@@ -25544,8 +25675,6 @@ var Grid = Object.assign(grid, {
25544
25675
 
25545
25676
 
25546
25677
 
25547
-
25548
-
25549
25678
  /* harmony default export */ var toolbar = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
25550
25679
  name: 'VxeToolbar',
25551
25680
  props: {
@@ -26296,7 +26425,6 @@ var Grid = Object.assign(grid, {
26296
26425
 
26297
26426
 
26298
26427
 
26299
-
26300
26428
  var Toolbar = Object.assign(toolbar, {
26301
26429
  install: function install(app) {
26302
26430
  dynamicApp.component(toolbar.name, toolbar);
@@ -26315,7 +26443,6 @@ var Toolbar = Object.assign(toolbar, {
26315
26443
 
26316
26444
 
26317
26445
 
26318
-
26319
26446
  /* harmony default export */ var pager = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
26320
26447
  name: 'VxePager',
26321
26448
  props: {
@@ -26878,7 +27005,6 @@ var Toolbar = Object.assign(toolbar, {
26878
27005
 
26879
27006
 
26880
27007
 
26881
-
26882
27008
  var Pager = Object.assign(pager, {
26883
27009
  install: function install(app) {
26884
27010
  dynamicApp.component(pager.name, pager);
@@ -26890,7 +27016,6 @@ var Pager = Object.assign(pager, {
26890
27016
 
26891
27017
 
26892
27018
 
26893
-
26894
27019
  var Checkbox = Object.assign(src_checkbox, {
26895
27020
  install: function install(app) {
26896
27021
  dynamicApp.component(src_checkbox.name, src_checkbox);
@@ -26904,7 +27029,6 @@ var Checkbox = Object.assign(src_checkbox, {
26904
27029
 
26905
27030
 
26906
27031
 
26907
-
26908
27032
  /* harmony default export */ var checkbox_src_group = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
26909
27033
  name: 'VxeCheckboxGroup',
26910
27034
  props: {
@@ -26974,7 +27098,6 @@ var Checkbox = Object.assign(src_checkbox, {
26974
27098
 
26975
27099
 
26976
27100
 
26977
-
26978
27101
  var CheckboxGroup = Object.assign(checkbox_src_group, {
26979
27102
  install: function install(app) {
26980
27103
  dynamicApp.component(checkbox_src_group.name, checkbox_src_group);
@@ -26986,7 +27109,6 @@ var CheckboxGroup = Object.assign(checkbox_src_group, {
26986
27109
 
26987
27110
 
26988
27111
 
26989
-
26990
27112
  var Radio = Object.assign(src_radio, {
26991
27113
  install: function install(app) {
26992
27114
  dynamicApp.component(src_radio.name, src_radio);
@@ -26998,7 +27120,6 @@ var Radio = Object.assign(src_radio, {
26998
27120
 
26999
27121
 
27000
27122
 
27001
-
27002
27123
  var RadioGroup = Object.assign(src_group, {
27003
27124
  install: function install(app) {
27004
27125
  dynamicApp.component(src_group.name, src_group);
@@ -27015,7 +27136,6 @@ var RadioGroup = Object.assign(src_group, {
27015
27136
 
27016
27137
 
27017
27138
 
27018
-
27019
27139
  /* harmony default export */ var radio_src_button = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
27020
27140
  name: 'VxeRadioButton',
27021
27141
  props: {
@@ -27119,7 +27239,6 @@ var RadioGroup = Object.assign(src_group, {
27119
27239
 
27120
27240
 
27121
27241
 
27122
-
27123
27242
  var RadioButton = Object.assign(radio_src_button, {
27124
27243
  install: function install(app) {
27125
27244
  dynamicApp.component(radio_src_button.name, radio_src_button);
@@ -27131,7 +27250,6 @@ var RadioButton = Object.assign(radio_src_button, {
27131
27250
 
27132
27251
 
27133
27252
 
27134
-
27135
27253
  var Input = Object.assign(input, {
27136
27254
  install: function install(app) {
27137
27255
  dynamicApp.component(input.name, input);
@@ -27152,7 +27270,6 @@ var Input = Object.assign(input, {
27152
27270
 
27153
27271
 
27154
27272
 
27155
-
27156
27273
  var autoTxtElem;
27157
27274
  /* harmony default export */ var src_textarea = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
27158
27275
  name: 'VxeTextarea',
@@ -27436,7 +27553,6 @@ var autoTxtElem;
27436
27553
 
27437
27554
 
27438
27555
 
27439
-
27440
27556
  var Textarea = Object.assign(src_textarea, {
27441
27557
  install: function install(app) {
27442
27558
  dynamicApp.component(src_textarea.name, src_textarea);
@@ -27448,7 +27564,6 @@ var Textarea = Object.assign(src_textarea, {
27448
27564
 
27449
27565
 
27450
27566
 
27451
-
27452
27567
  var Button = Object.assign(src_button, {
27453
27568
  install: function install(app) {
27454
27569
  dynamicApp.component(src_button.name, src_button);
@@ -27470,9 +27585,6 @@ var Button = Object.assign(src_button, {
27470
27585
 
27471
27586
 
27472
27587
 
27473
-
27474
-
27475
-
27476
27588
  function modal_openModal(options) {
27477
27589
  // 使用动态组件渲染动态弹框
27478
27590
  checkDynamic();
@@ -27594,7 +27706,6 @@ var Modal = Object.assign(modal, {
27594
27706
 
27595
27707
 
27596
27708
 
27597
-
27598
27709
  /* harmony default export */ var tooltip = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
27599
27710
  name: 'VxeTooltip',
27600
27711
  props: {
@@ -27962,7 +28073,6 @@ var Modal = Object.assign(modal, {
27962
28073
 
27963
28074
 
27964
28075
 
27965
-
27966
28076
  var Tooltip = Object.assign(tooltip, {
27967
28077
  install: function install(app) {
27968
28078
  VXETable.tooltip = true;
@@ -27975,7 +28085,6 @@ var Tooltip = Object.assign(tooltip, {
27975
28085
 
27976
28086
 
27977
28087
 
27978
-
27979
28088
  var itemInfo_ItemInfo = /*#__PURE__*/function () {
27980
28089
  function ItemInfo($xeform, item) {
27981
28090
  _classCallCheck(this, ItemInfo);
@@ -28166,9 +28275,6 @@ function renderTitle($xeform, item) {
28166
28275
 
28167
28276
 
28168
28277
 
28169
-
28170
-
28171
-
28172
28278
 
28173
28279
 
28174
28280
 
@@ -28687,7 +28793,7 @@ function getResetValue(value, resetValue) {
28687
28793
  callback();
28688
28794
  }
28689
28795
  }).catch(function () {
28690
- return new Promise(function (resolve, reject) {
28796
+ return new Promise(function (resolve) {
28691
28797
  showErrTime = window.setTimeout(function () {
28692
28798
  itemList.forEach(function (item) {
28693
28799
  if (item.errRule) {
@@ -28706,7 +28812,7 @@ function getResetValue(value, resetValue) {
28706
28812
  callback(validRest);
28707
28813
  resolve();
28708
28814
  } else {
28709
- reject(validRest);
28815
+ resolve(validRest);
28710
28816
  }
28711
28817
  });
28712
28818
  });
@@ -29066,7 +29172,6 @@ function getResetValue(value, resetValue) {
29066
29172
 
29067
29173
 
29068
29174
 
29069
-
29070
29175
  var Form = Object.assign(src_form, {
29071
29176
  install: function install(app) {
29072
29177
  dynamicApp.component(src_form.name, src_form);
@@ -29262,7 +29367,6 @@ var formItemProps = {
29262
29367
 
29263
29368
 
29264
29369
 
29265
-
29266
29370
  var FormItem = Object.assign(form_item, {
29267
29371
  install: function install(app) {
29268
29372
  dynamicApp.component(form_item.name, form_item);
@@ -29319,7 +29423,6 @@ var FormItem = Object.assign(form_item, {
29319
29423
 
29320
29424
 
29321
29425
 
29322
-
29323
29426
  var FormGather = Object.assign(form_gather, {
29324
29427
  install: function install(app) {
29325
29428
  dynamicApp.component(form_gather.name, form_gather);
@@ -29331,7 +29434,6 @@ var FormGather = Object.assign(form_gather, {
29331
29434
 
29332
29435
 
29333
29436
 
29334
-
29335
29437
  var Select = Object.assign(src_select, {
29336
29438
  install: function install(app) {
29337
29439
  dynamicApp.component(src_select.name, src_select);
@@ -29343,7 +29445,6 @@ var Select = Object.assign(src_select, {
29343
29445
 
29344
29446
 
29345
29447
 
29346
-
29347
29448
  var optionInfo_OptionInfo = /*#__PURE__*/function () {
29348
29449
  function OptionInfo($xeselect, _vm) {
29349
29450
  _classCallCheck(this, OptionInfo);
@@ -29463,7 +29564,6 @@ function destroyOption($xeselect, option) {
29463
29564
 
29464
29565
 
29465
29566
 
29466
-
29467
29567
  var Optgroup = Object.assign(src_optgroup, {
29468
29568
  install: function install(app) {
29469
29569
  dynamicApp.component(src_optgroup.name, src_optgroup);
@@ -29515,7 +29615,6 @@ var Optgroup = Object.assign(src_optgroup, {
29515
29615
 
29516
29616
 
29517
29617
 
29518
-
29519
29618
  var Option = Object.assign(src_option, {
29520
29619
  install: function install(app) {
29521
29620
  dynamicApp.component(src_option.name, src_option);
@@ -29531,7 +29630,6 @@ var Option = Object.assign(src_option, {
29531
29630
 
29532
29631
 
29533
29632
 
29534
-
29535
29633
  /* harmony default export */ var src_switch = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
29536
29634
  name: 'VxeSwitch',
29537
29635
  props: {
@@ -29682,7 +29780,6 @@ var Option = Object.assign(src_option, {
29682
29780
 
29683
29781
 
29684
29782
 
29685
-
29686
29783
  var Switch = Object.assign(src_switch, {
29687
29784
  install: function install(app) {
29688
29785
  dynamicApp.component(src_switch.name, src_switch);
@@ -29819,8 +29916,6 @@ function createResizeEvent(callback) {
29819
29916
 
29820
29917
 
29821
29918
 
29822
-
29823
-
29824
29919
  /* harmony default export */ var src_list = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
29825
29920
  name: 'VxeList',
29826
29921
  props: {
@@ -30220,7 +30315,6 @@ function createResizeEvent(callback) {
30220
30315
 
30221
30316
 
30222
30317
 
30223
-
30224
30318
  var List = Object.assign(src_list, {
30225
30319
  install: function install(app) {
30226
30320
  dynamicApp.component(src_list.name, src_list);
@@ -30238,8 +30332,6 @@ var List = Object.assign(src_list, {
30238
30332
 
30239
30333
 
30240
30334
 
30241
-
30242
-
30243
30335
  /* harmony default export */ var pulldown = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
30244
30336
  name: 'VxePulldown',
30245
30337
  props: {
@@ -30561,7 +30653,6 @@ var List = Object.assign(src_list, {
30561
30653
 
30562
30654
 
30563
30655
 
30564
-
30565
30656
  var Pulldown = Object.assign(pulldown, {
30566
30657
  install: function install(app) {
30567
30658
  dynamicApp.component(pulldown.name, pulldown);
@@ -30569,6 +30660,15 @@ var Pulldown = Object.assign(pulldown, {
30569
30660
  }
30570
30661
  });
30571
30662
  /* harmony default export */ var packages_pulldown = (Pulldown);
30663
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
30664
+ var es_object_assign = __webpack_require__("cca6");
30665
+
30666
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
30667
+ var es_promise = __webpack_require__("e6cf");
30668
+
30669
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
30670
+ var es_array_iterator = __webpack_require__("e260");
30671
+
30572
30672
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
30573
30673
  var es_map = __webpack_require__("4ec9");
30574
30674
 
@@ -30588,7 +30688,6 @@ var es_map = __webpack_require__("4ec9");
30588
30688
 
30589
30689
 
30590
30690
 
30591
-
30592
30691
  var body_renderType = 'body';
30593
30692
  var lineOffsetSizes = {
30594
30693
  mini: 3,
@@ -30982,6 +31081,7 @@ var lineOffsetSizes = {
30982
31081
  var radioOpts = computeRadioOpts.value;
30983
31082
  var treeOpts = computeTreeOpts.value;
30984
31083
  var editOpts = computeEditOpts.value;
31084
+ var rowOpts = computeRowOpts.value;
30985
31085
  var rows = [];
30986
31086
  tableData.forEach(function (row, $rowIndex) {
30987
31087
  var trOn = {};
@@ -30997,7 +31097,7 @@ var lineOffsetSizes = {
30997
31097
 
30998
31098
  rowIndex = $xetable.getRowIndex(row); // 事件绑定
30999
31099
 
31000
- if (highlightHoverRow) {
31100
+ if (rowOpts.isHover || highlightHoverRow) {
31001
31101
  trOn.onMouseenter = function (evnt) {
31002
31102
  if (isOperateMouse()) {
31003
31103
  return;
@@ -31147,6 +31247,7 @@ var lineOffsetSizes = {
31147
31247
  var elemStore = tableInternalData.elemStore,
31148
31248
  lastScrollTop = tableInternalData.lastScrollTop,
31149
31249
  lastScrollLeft = tableInternalData.lastScrollLeft;
31250
+ var rowOpts = computeRowOpts.value;
31150
31251
  var tableHeader = refTableHeader.value;
31151
31252
  var tableBody = refTableBody.value;
31152
31253
  var tableFooter = refTableFooter.value;
@@ -31171,7 +31272,7 @@ var lineOffsetSizes = {
31171
31272
  tableInternalData.lastScrollLeft = scrollLeft;
31172
31273
  tableInternalData.lastScrollTime = Date.now();
31173
31274
 
31174
- if (highlightHoverRow) {
31275
+ if (rowOpts.isHover || highlightHoverRow) {
31175
31276
  $xetable.clearHoverRow();
31176
31277
  }
31177
31278
 
@@ -31305,6 +31406,7 @@ var lineOffsetSizes = {
31305
31406
  var scrollYLoad = tableReactData.scrollYLoad;
31306
31407
  var lastScrollTop = tableInternalData.lastScrollTop,
31307
31408
  lastScrollLeft = tableInternalData.lastScrollLeft;
31409
+ var rowOpts = computeRowOpts.value;
31308
31410
  var tableBody = refTableBody.value;
31309
31411
  var scrollBodyElem = refElem.value;
31310
31412
  var bodyElem = tableBody.$el;
@@ -31327,7 +31429,7 @@ var lineOffsetSizes = {
31327
31429
  tableInternalData.lastScrollLeft = scrollLeft;
31328
31430
  tableInternalData.lastScrollTime = Date.now();
31329
31431
 
31330
- if (highlightHoverRow) {
31432
+ if (rowOpts.isHover || highlightHoverRow) {
31331
31433
  $xetable.clearHoverRow();
31332
31434
  }
31333
31435
 
@@ -31526,6 +31628,9 @@ var lineOffsetSizes = {
31526
31628
 
31527
31629
 
31528
31630
 
31631
+
31632
+
31633
+
31529
31634
 
31530
31635
 
31531
31636
 
@@ -34327,16 +34432,12 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
34327
34432
 
34328
34433
  if (oRow && row) {
34329
34434
  if (field) {
34330
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(oRow, field, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(record || row, field));
34435
+ var newValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(record || row, field);
34436
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(row, field, newValue);
34437
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(oRow, field, newValue);
34331
34438
  } else {
34332
- if (record) {
34333
- tableSourceData[rowIndex] = record;
34334
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clear(row, undefined);
34335
- Object.assign(row, tablePrivateMethods.defineField(Object.assign({}, record)));
34336
- tablePrivateMethods.cacheRowMap(true);
34337
- } else {
34338
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.destructuring(oRow, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clone(row, true));
34339
- }
34439
+ var newRecord = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clone(_objectSpread2({}, record), true);
34440
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.destructuring(oRow, Object.assign(row, newRecord));
34340
34441
  }
34341
34442
  }
34342
34443
 
@@ -34361,9 +34462,9 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
34361
34462
  var treeOpts = computeTreeOpts.value;
34362
34463
  var children = treeOpts.children;
34363
34464
 
34364
- var rest = fullAllDataRowIdData[util_getRowid($xetable, row)];
34465
+ var parentRest = fullAllDataRowIdData[util_getRowid($xetable, row)];
34365
34466
 
34366
- var parentLevel = rest ? rest.level : 0;
34467
+ var parentLevel = parentRest ? parentRest.level : 0;
34367
34468
  return tableMethods.createData(childRecords).then(function (rows) {
34368
34469
  if (keepSource) {
34369
34470
  var rowid = util_getRowid($xetable, row);
@@ -35341,6 +35442,18 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
35341
35442
  var reserveSelection = [];
35342
35443
 
35343
35444
  if (checkboxOpts.reserve) {
35445
+ var afterFullIdMaps = {};
35446
+
35447
+ if (treeConfig) {
35448
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterFullData, function (row) {
35449
+ afterFullIdMaps[util_getRowid($xetable, row)] = 1;
35450
+ }, treeOpts);
35451
+ } else {
35452
+ afterFullData.forEach(function (row) {
35453
+ afterFullIdMaps[util_getRowid($xetable, row)] = 1;
35454
+ });
35455
+ }
35456
+
35344
35457
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.each(checkboxReserveRowMap, function (oldRow, oldRowid) {
35345
35458
  if (oldRow) {
35346
35459
  if (isFull) {
@@ -35348,18 +35461,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
35348
35461
  reserveSelection.push(oldRow);
35349
35462
  }
35350
35463
  } else {
35351
- if (treeConfig) {
35352
- if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(afterFullData, function (row) {
35353
- return util_getRowid($xetable, row) === oldRowid;
35354
- }, treeOpts)) {
35355
- reserveSelection.push(oldRow);
35356
- }
35357
- } else {
35358
- if (!afterFullData.some(function (row) {
35359
- return util_getRowid($xetable, row) === oldRowid;
35360
- })) {
35361
- reserveSelection.push(oldRow);
35362
- }
35464
+ if (!afterFullIdMaps[oldRowid]) {
35465
+ reserveSelection.push(oldRow);
35363
35466
  }
35364
35467
  }
35365
35468
  }
@@ -35423,12 +35526,13 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
35423
35526
  * @param {Row} row 行对象
35424
35527
  */
35425
35528
  setCurrentRow: function setCurrentRow(row) {
35529
+ var rowOpts = computeRowOpts.value;
35426
35530
  var el = refElem.value;
35427
35531
  tableMethods.clearCurrentRow();
35428
35532
  tableMethods.clearCurrentColumn();
35429
35533
  reactData.currentRow = row;
35430
35534
 
35431
- if (props.highlightCurrentRow) {
35535
+ if (rowOpts.isCurrent || props.highlightCurrentRow) {
35432
35536
  if (el) {
35433
35537
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.arrayEach(el.querySelectorAll("[rowid=\"".concat(util_getRowid($xetable, row), "\"]")), function (elem) {
35434
35538
  return addClass(elem, 'row--current');
@@ -35489,7 +35593,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
35489
35593
  * 用于当前行,获取当前行的数据
35490
35594
  */
35491
35595
  getCurrentRecord: function getCurrentRecord() {
35492
- return props.highlightCurrentRow ? reactData.currentRow : null;
35596
+ var rowOpts = computeRowOpts.value;
35597
+ return rowOpts.isCurrent || props.highlightCurrentRow ? reactData.currentRow : null;
35493
35598
  },
35494
35599
 
35495
35600
  /**
@@ -35520,7 +35625,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
35520
35625
  return selectRow;
35521
35626
  }
35522
35627
  } else {
35523
- if (afterFullData.indexOf(selectRow) > -1) {
35628
+ if ($xetable.findRowIndexOf(afterFullData, selectRow) > -1) {
35524
35629
  return selectRow;
35525
35630
  }
35526
35631
  }
@@ -35530,7 +35635,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
35530
35635
  return null;
35531
35636
  },
35532
35637
  getCurrentColumn: function getCurrentColumn() {
35533
- return props.highlightCurrentColumn ? reactData.currentColumn : null;
35638
+ var columnOpts = computeColumnOpts.value;
35639
+ return columnOpts.isCurrent || props.highlightCurrentColumn ? reactData.currentColumn : null;
35534
35640
  },
35535
35641
 
35536
35642
  /**
@@ -36489,6 +36595,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
36489
36595
  ctxMenuStore = reactData.ctxMenuStore,
36490
36596
  editStore = reactData.editStore;
36491
36597
  var mouseOpts = computeMouseOpts.value;
36598
+ var keyboardOpts = computeKeyboardOpts.value;
36492
36599
  var actived = editStore.actived;
36493
36600
  var isEsc = hasEventKey(evnt, EVENT_KEYS.ESCAPE);
36494
36601
 
@@ -36503,16 +36610,19 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
36503
36610
  $xetable.closeMenu();
36504
36611
  }
36505
36612
 
36506
- tableMethods.closeFilter(); // 如果是激活编辑状态,则取消编辑
36613
+ tableMethods.closeFilter();
36507
36614
 
36508
- if (actived.row) {
36509
- var params = actived.args;
36510
- $xetable.clearActived(evnt); // 如果配置了选中功能,则为选中状态
36615
+ if (keyboardConfig && keyboardOpts.isEsc) {
36616
+ // 如果是激活编辑状态,则取消编辑
36617
+ if (actived.row) {
36618
+ var params = actived.args;
36619
+ $xetable.clearActived(evnt); // 如果配置了选中功能,则为选中状态
36511
36620
 
36512
- if (mouseOpts.selected) {
36513
- Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
36514
- return $xetable.handleSelected(params, evnt);
36515
- });
36621
+ if (mouseOpts.selected) {
36622
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
36623
+ return $xetable.handleSelected(params, evnt);
36624
+ });
36625
+ }
36516
36626
  }
36517
36627
  }
36518
36628
  }
@@ -36545,6 +36655,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
36545
36655
  var editOpts = computeEditOpts.value;
36546
36656
  var treeOpts = computeTreeOpts.value;
36547
36657
  var menuList = computeMenuList.value;
36658
+ var rowOpts = computeRowOpts.value;
36548
36659
  var selected = editStore.selected,
36549
36660
  actived = editStore.actived;
36550
36661
  var keyCode = evnt.keyCode;
@@ -36588,7 +36699,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
36588
36699
 
36589
36700
  tableMethods.closeFilter();
36590
36701
 
36591
- if (actived.row) {
36702
+ if (keyboardConfig && keyboardOpts.isEsc) {
36592
36703
  // 如果是激活编辑状态,则取消编辑
36593
36704
  if (actived.row) {
36594
36705
  var _params = actived.args;
@@ -36625,7 +36736,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
36625
36736
  keyCtxTimeout = setTimeout(function () {
36626
36737
  internalData._keyCtx = false;
36627
36738
  }, 1000);
36628
- } else if (isEnter && !isAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && highlightCurrentRow && currentRow)) {
36739
+ } else if (isEnter && !isAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow)) {
36629
36740
  // 退出选中
36630
36741
  if (hasCtrlKey) {
36631
36742
  // 如果是激活编辑状态,则取消编辑
@@ -36657,7 +36768,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
36657
36768
  $xetable.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
36658
36769
  }
36659
36770
  }
36660
- } else if (treeConfig && highlightCurrentRow && currentRow) {
36771
+ } else if (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
36661
36772
  // 如果是树形表格当前行回车移动到子节点
36662
36773
  var childrens = currentRow[treeOpts.children];
36663
36774
 
@@ -36683,7 +36794,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
36683
36794
  // 如果按下了方向键
36684
36795
  if (selected.row && selected.column) {
36685
36796
  $xetable.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
36686
- } else if ((isUpArrow || isDwArrow) && highlightCurrentRow) {
36797
+ } else if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
36687
36798
  // 当前行按键上下移动
36688
36799
  $xetable.moveCurrentRow(isUpArrow, isDwArrow, evnt);
36689
36800
  }
@@ -36695,7 +36806,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
36695
36806
  } else if (actived.row || actived.column) {
36696
36807
  $xetable.moveTabSelected(actived.args, hasShiftKey, evnt);
36697
36808
  }
36698
- } else if (keyboardConfig && isEnableConf(editConfig) && (isDel || (treeConfig && highlightCurrentRow && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
36809
+ } else if (keyboardConfig && isEnableConf(editConfig) && (isDel || (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
36699
36810
  if (!isEditStatus) {
36700
36811
  var delMethod = keyboardOpts.delMethod,
36701
36812
  backMethod = keyboardOpts.backMethod; // 如果是删除键
@@ -36729,7 +36840,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
36729
36840
  // 如果按下 del 键,更新表尾数据
36730
36841
  tableMethods.updateFooter();
36731
36842
  }
36732
- } else if (isBack && keyboardOpts.isArrow && treeConfig && highlightCurrentRow && currentRow) {
36843
+ } else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
36733
36844
  // 如果树形表格回退键关闭当前行返回父节点
36734
36845
  var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(internalData.afterFullData, function (item) {
36735
36846
  return item === currentRow;
@@ -37569,6 +37680,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
37569
37680
  triggerHeaderCellClickEvent: function triggerHeaderCellClickEvent(evnt, params) {
37570
37681
  var _lastResizeTime = internalData._lastResizeTime;
37571
37682
  var sortOpts = computeSortOpts.value;
37683
+ var columnOpts = computeColumnOpts.value;
37572
37684
  var column = params.column;
37573
37685
  var cell = evnt.currentTarget;
37574
37686
 
@@ -37588,7 +37700,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
37588
37700
  cell: cell
37589
37701
  }, params), evnt);
37590
37702
 
37591
- if (props.highlightCurrentColumn) {
37703
+ if (columnOpts.isCurrent || props.highlightCurrentColumn) {
37592
37704
  tableMethods.setCurrentColumn(column);
37593
37705
  }
37594
37706
  },
@@ -37612,6 +37724,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
37612
37724
  var treeOpts = computeTreeOpts.value;
37613
37725
  var radioOpts = computeRadioOpts.value;
37614
37726
  var checkboxOpts = computeCheckboxOpts.value;
37727
+ var rowOpts = computeRowOpts.value;
37615
37728
  var actived = editStore.actived;
37616
37729
  var _params2 = params,
37617
37730
  row = _params2.row,
@@ -37650,7 +37763,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
37650
37763
  if (!triggerTreeNode) {
37651
37764
  if (!triggerExpandNode) {
37652
37765
  // 如果是高亮行
37653
- if (highlightCurrentRow) {
37766
+ if (rowOpts.isCurrent || highlightCurrentRow) {
37654
37767
  if (!triggerCheckbox && !triggerRadio) {
37655
37768
  tablePrivateMethods.triggerCurrentRowEvent(evnt, params);
37656
37769
  }
@@ -38043,6 +38156,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
38043
38156
  tablePrivateMethods.handleTableData();
38044
38157
  tablePrivateMethods.updateScrollYSpace();
38045
38158
  },
38159
+ updateVirtualTreeData: updateVirtualTreeData,
38046
38160
 
38047
38161
  /**
38048
38162
  * 处理固定列的显示状态
@@ -38677,6 +38791,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
38677
38791
  rightList = columnStore.rightList;
38678
38792
  var tooltipOpts = computeTooltipOpts.value;
38679
38793
  var treeOpts = computeTreeOpts.value;
38794
+ var rowOpts = computeRowOpts.value;
38795
+ var columnOpts = computeColumnOpts.value;
38680
38796
  var vSize = computeSize.value;
38681
38797
  var tableBorder = computeTableBorder.value;
38682
38798
  var mouseOpts = computeMouseOpts.value;
@@ -38685,7 +38801,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
38685
38801
  var isMenu = computeIsMenu.value;
38686
38802
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('div', {
38687
38803
  ref: refElem,
38688
- class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(xID), "border--".concat(tableBorder), (_ref7 = {}, _defineProperty(_ref7, "size--".concat(vSize), vSize), _defineProperty(_ref7, 'vxe-editable', !!editConfig), _defineProperty(_ref7, 'cell--highlight', highlightCell), _defineProperty(_ref7, 'cell--selected', mouseConfig && mouseOpts.selected), _defineProperty(_ref7, 'cell--area', mouseConfig && mouseOpts.area), _defineProperty(_ref7, 'row--highlight', highlightHoverRow), _defineProperty(_ref7, 'column--highlight', highlightHoverColumn), _defineProperty(_ref7, 'is--header', showHeader), _defineProperty(_ref7, 'is--footer', showFooter), _defineProperty(_ref7, 'is--group', isGroup), _defineProperty(_ref7, 'is--tree-line', treeConfig && treeOpts.line), _defineProperty(_ref7, 'is--fixed-left', leftList.length), _defineProperty(_ref7, 'is--fixed-right', rightList.length), _defineProperty(_ref7, 'is--animat', !!props.animat), _defineProperty(_ref7, 'is--round', props.round), _defineProperty(_ref7, 'is--stripe', !treeConfig && stripe), _defineProperty(_ref7, 'is--loading', loading), _defineProperty(_ref7, 'is--empty', !loading && !tableData.length), _defineProperty(_ref7, 'is--scroll-y', overflowY), _defineProperty(_ref7, 'is--scroll-x', overflowX), _defineProperty(_ref7, 'is--virtual-x', scrollXLoad), _defineProperty(_ref7, 'is--virtual-y', scrollYLoad), _ref7)],
38804
+ class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(xID), "border--".concat(tableBorder), (_ref7 = {}, _defineProperty(_ref7, "size--".concat(vSize), vSize), _defineProperty(_ref7, 'vxe-editable', !!editConfig), _defineProperty(_ref7, 'cell--highlight', highlightCell), _defineProperty(_ref7, 'cell--selected', mouseConfig && mouseOpts.selected), _defineProperty(_ref7, 'cell--area', mouseConfig && mouseOpts.area), _defineProperty(_ref7, 'row--highlight', rowOpts.isHover || highlightHoverRow), _defineProperty(_ref7, 'column--highlight', columnOpts.isHover || highlightHoverColumn), _defineProperty(_ref7, 'is--header', showHeader), _defineProperty(_ref7, 'is--footer', showFooter), _defineProperty(_ref7, 'is--group', isGroup), _defineProperty(_ref7, 'is--tree-line', treeConfig && treeOpts.line), _defineProperty(_ref7, 'is--fixed-left', leftList.length), _defineProperty(_ref7, 'is--fixed-right', rightList.length), _defineProperty(_ref7, 'is--animat', !!props.animat), _defineProperty(_ref7, 'is--round', props.round), _defineProperty(_ref7, 'is--stripe', !treeConfig && stripe), _defineProperty(_ref7, 'is--loading', loading), _defineProperty(_ref7, 'is--empty', !loading && !tableData.length), _defineProperty(_ref7, 'is--scroll-y', overflowY), _defineProperty(_ref7, 'is--scroll-x', overflowX), _defineProperty(_ref7, 'is--virtual-x', scrollXLoad), _defineProperty(_ref7, 'is--virtual-y', scrollYLoad), _ref7)],
38689
38805
  onKeydown: keydownEvent
38690
38806
  }, [
38691
38807
  /**
@@ -38831,7 +38947,6 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
38831
38947
 
38832
38948
 
38833
38949
 
38834
-
38835
38950
  var Table = Object.assign(table, {
38836
38951
  install: function install(app) {
38837
38952
  dynamicApp.component(table.name, table);
@@ -39409,4 +39524,5 @@ module.exports = global.Promise;
39409
39524
  /***/ })
39410
39525
 
39411
39526
  /******/ });
39412
- });
39527
+ });
39528
+ //# sourceMappingURL=index.umd.js.map