vxe-table 3.4.7-beta.0 → 3.4.7-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.umd.js CHANGED
@@ -8452,7 +8452,7 @@ var iconPrefix = 'vxe-icon--';
8452
8452
  // storage: false,
8453
8453
  // checkMethod () {}
8454
8454
  // },
8455
- // rowId: '_XID', // 行数据的唯一主键字段名
8455
+ // rowId: '_X_ID', // 行数据的唯一主键字段名
8456
8456
  sortConfig: {
8457
8457
  // remote: false,
8458
8458
  // trigger: 'default',
@@ -8470,6 +8470,7 @@ var iconPrefix = 'vxe-icon--';
8470
8470
  parentField: 'parentId',
8471
8471
  children: 'children',
8472
8472
  hasChild: 'hasChild',
8473
+ mapChildren: '_X_CHILD',
8473
8474
  indent: 20,
8474
8475
  showIcon: true
8475
8476
  },
@@ -8757,6 +8758,9 @@ var es_object_to_string = __webpack_require__("d3b7");
8757
8758
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
8758
8759
  var es_symbol_iterator = __webpack_require__("d28b");
8759
8760
 
8761
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
8762
+ var es_array_iterator = __webpack_require__("e260");
8763
+
8760
8764
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
8761
8765
  var es_string_iterator = __webpack_require__("3ca3");
8762
8766
 
@@ -8774,6 +8778,7 @@ var es_array_from = __webpack_require__("a630");
8774
8778
 
8775
8779
 
8776
8780
 
8781
+
8777
8782
  function _iterableToArray(iter) {
8778
8783
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
8779
8784
  }
@@ -8810,6 +8815,9 @@ function _nonIterableSpread() {
8810
8815
  function _toConsumableArray(arr) {
8811
8816
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
8812
8817
  }
8818
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
8819
+ var es_object_assign = __webpack_require__("cca6");
8820
+
8813
8821
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
8814
8822
  var es_string_fixed = __webpack_require__("c7cd");
8815
8823
 
@@ -8824,6 +8832,7 @@ var es_array_splice = __webpack_require__("a434");
8824
8832
 
8825
8833
 
8826
8834
 
8835
+
8827
8836
  /**
8828
8837
  * 创建数据仓库
8829
8838
  */
@@ -8869,6 +8878,7 @@ var store_Store = /*#__PURE__*/function () {
8869
8878
  /* harmony default export */ var store = (store_Store);
8870
8879
  // CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.js
8871
8880
 
8881
+
8872
8882
  var formats = new store();
8873
8883
 
8874
8884
  if (false) {}
@@ -8885,6 +8895,7 @@ if (false) {}
8885
8895
 
8886
8896
 
8887
8897
 
8898
+
8888
8899
  var zindexIndex = 0;
8889
8900
  var lastZindex = 1;
8890
8901
 
@@ -9048,7 +9059,7 @@ var UtilTools = {
9048
9059
  },
9049
9060
  // 行主键 key
9050
9061
  getRowkey: function getRowkey($xetable) {
9051
- return $xetable.rowId || '_XID';
9062
+ return $xetable.rowId || '_X_ID';
9052
9063
  },
9053
9064
  // 行主键 value
9054
9065
  getRowid: function getRowid($xetable, row) {
@@ -9758,6 +9769,7 @@ var es_number_to_fixed = __webpack_require__("b680");
9758
9769
 
9759
9770
 
9760
9771
 
9772
+
9761
9773
  var defaultCompProps = {
9762
9774
  transfer: true
9763
9775
  };
@@ -10547,11 +10559,13 @@ var renderer = {
10547
10559
  };
10548
10560
  // CONCATENATED MODULE: ./packages/v-x-e-table/src/commands.js
10549
10561
 
10562
+
10550
10563
  var commands = new store();
10551
10564
 
10552
10565
  if (false) {}
10553
10566
  // CONCATENATED MODULE: ./packages/v-x-e-table/src/menus.js
10554
10567
 
10568
+
10555
10569
  var menus = new store();
10556
10570
 
10557
10571
  if (false) {}
@@ -10695,12 +10709,6 @@ var Icon = {
10695
10709
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
10696
10710
  var es_number_constructor = __webpack_require__("a9e3");
10697
10711
 
10698
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
10699
- var es_object_assign = __webpack_require__("cca6");
10700
-
10701
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
10702
- var es_array_iterator = __webpack_require__("e260");
10703
-
10704
10712
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
10705
10713
  var es_map = __webpack_require__("4ec9");
10706
10714
 
@@ -11385,7 +11393,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
11385
11393
  } // 如果是树形表格
11386
11394
 
11387
11395
 
11388
- if (treeConfig && !scrollYLoad && treeExpandeds.length) {
11396
+ if (treeConfig && !scrollYLoad && !treeOpts.transform && treeExpandeds.length) {
11389
11397
  var rowChildren = row[treeOpts.children];
11390
11398
 
11391
11399
  if (rowChildren && rowChildren.length && treeExpandeds.indexOf(row) > -1) {
@@ -13231,10 +13239,45 @@ var Methods = {
13231
13239
  return this.handleTableData(true).then(this.updateFooter).then(this.recalculate);
13232
13240
  },
13233
13241
  handleTableData: function handleTableData(force) {
13234
- var scrollYLoad = this.scrollYLoad,
13235
- scrollYStore = this.scrollYStore;
13236
- var fullData = force ? this.updateAfterFullData() : this.afterFullData;
13237
- this.tableData = scrollYLoad ? fullData.slice(scrollYStore.startIndex, scrollYStore.endIndex) : fullData.slice(0);
13242
+ var _this2 = this;
13243
+
13244
+ var treeConfig = this.treeConfig,
13245
+ scrollYLoad = this.scrollYLoad,
13246
+ scrollYStore = this.scrollYStore,
13247
+ fullDataRowIdData = this.fullDataRowIdData,
13248
+ treeExpandeds = this.treeExpandeds,
13249
+ treeOpts = this.treeOpts;
13250
+ var fullList = []; // 是否进行数据处理
13251
+
13252
+ if (force) {
13253
+ this.updateAfterFullData();
13254
+ } // 如果为虚拟树,将树结构拍平
13255
+
13256
+
13257
+ if (treeConfig && treeOpts.transform) {
13258
+ var expandMaps = new Map();
13259
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(this.afterTreeFullData, function (row, index, items, path, parent) {
13260
+ if (!parent || expandMaps.has(parent) && treeExpandeds.indexOf(parent) > -1) {
13261
+ expandMaps.set(row, 1);
13262
+ fullList.push(row);
13263
+ }
13264
+ }, {
13265
+ children: treeOpts.mapChildren
13266
+ });
13267
+ } else {
13268
+ fullList = this.afterFullData;
13269
+ }
13270
+
13271
+ var tableData = scrollYLoad ? fullList.slice(scrollYStore.startIndex, scrollYStore.endIndex) : fullList.slice(0);
13272
+ tableData.forEach(function (row, $index) {
13273
+ var rowid = methods_getRowid(_this2, row);
13274
+ var rest = fullDataRowIdData[rowid];
13275
+
13276
+ if (rest) {
13277
+ rest.$index = $index;
13278
+ }
13279
+ });
13280
+ this.tableData = tableData;
13238
13281
  return this.$nextTick();
13239
13282
  },
13240
13283
  updateScrollYStatus: function updateScrollYStatus(fullData) {
@@ -13252,7 +13295,7 @@ var Methods = {
13252
13295
  * @param {Array} datas 数据
13253
13296
  */
13254
13297
  loadTableData: function loadTableData(datas) {
13255
- var _this2 = this;
13298
+ var _this3 = this;
13256
13299
 
13257
13300
  var keepSource = this.keepSource,
13258
13301
  treeConfig = this.treeConfig,
@@ -13274,7 +13317,8 @@ var Methods = {
13274
13317
  treeData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toArrayTree(fullData, {
13275
13318
  key: treeOpts.rowField,
13276
13319
  parentKey: treeOpts.parentField,
13277
- children: treeOpts.children
13320
+ children: treeOpts.children,
13321
+ mapChildren: treeOpts.mapChildren
13278
13322
  });
13279
13323
  fullData = treeData.slice(0);
13280
13324
  } else {
@@ -13292,7 +13336,7 @@ var Methods = {
13292
13336
  this.scrollYLoad = sYLoad; // 全量数据
13293
13337
 
13294
13338
  this.tableFullData = fullData;
13295
- this.treeFullData = treeData; // 缓存数据
13339
+ this.tableFullTreeData = treeData; // 缓存数据
13296
13340
 
13297
13341
  this.cacheRowMap(true); // 原始数据
13298
13342
 
@@ -13314,31 +13358,31 @@ var Methods = {
13314
13358
  this.handleTableData(true);
13315
13359
  this.updateFooter();
13316
13360
  return this.$nextTick().then(function () {
13317
- _this2.updateHeight();
13361
+ _this3.updateHeight();
13318
13362
 
13319
- _this2.updateStyle();
13363
+ _this3.updateStyle();
13320
13364
  }).then(function () {
13321
- _this2.computeScrollLoad();
13365
+ _this3.computeScrollLoad();
13322
13366
  }).then(function () {
13323
13367
  // 是否启用了虚拟滚动
13324
13368
  if (sYLoad) {
13325
13369
  scrollYStore.endIndex = scrollYStore.visibleSize;
13326
13370
  }
13327
13371
 
13328
- _this2.handleReserveStatus();
13372
+ _this3.handleReserveStatus();
13329
13373
 
13330
- _this2.checkSelectionStatus();
13374
+ _this3.checkSelectionStatus();
13331
13375
 
13332
13376
  return new Promise(function (resolve) {
13333
- _this2.$nextTick().then(function () {
13334
- return _this2.recalculate();
13377
+ _this3.$nextTick().then(function () {
13378
+ return _this3.recalculate();
13335
13379
  }).then(function () {
13336
13380
  // 是否变更虚拟滚动
13337
13381
  if (oldScrollYLoad === sYLoad) {
13338
- restoreScrollLocation(_this2, lastScrollLeft, lastScrollTop).then(resolve);
13382
+ restoreScrollLocation(_this3, lastScrollLeft, lastScrollTop).then(resolve);
13339
13383
  } else {
13340
13384
  setTimeout(function () {
13341
- return restoreScrollLocation(_this2, lastScrollLeft, lastScrollTop).then(resolve);
13385
+ return restoreScrollLocation(_this3, lastScrollLeft, lastScrollTop).then(resolve);
13342
13386
  });
13343
13387
  }
13344
13388
  });
@@ -13351,23 +13395,23 @@ var Methods = {
13351
13395
  * @param {Array} datas 数据
13352
13396
  */
13353
13397
  loadData: function loadData(datas) {
13354
- var _this3 = this;
13398
+ var _this4 = this;
13355
13399
 
13356
13400
  var inited = this.inited,
13357
13401
  initStatus = this.initStatus;
13358
13402
  return this.loadTableData(datas).then(function () {
13359
- _this3.inited = true;
13360
- _this3.initStatus = true;
13403
+ _this4.inited = true;
13404
+ _this4.initStatus = true;
13361
13405
 
13362
13406
  if (!initStatus) {
13363
- _this3.handleLoadDefaults();
13407
+ _this4.handleLoadDefaults();
13364
13408
  }
13365
13409
 
13366
13410
  if (!inited) {
13367
- _this3.handleInitDefaults();
13411
+ _this4.handleInitDefaults();
13368
13412
  }
13369
13413
 
13370
- return _this3.recalculate();
13414
+ return _this4.recalculate();
13371
13415
  });
13372
13416
  },
13373
13417
 
@@ -13376,21 +13420,21 @@ var Methods = {
13376
13420
  * @param {Array} datas 数据
13377
13421
  */
13378
13422
  reloadData: function reloadData(datas) {
13379
- var _this4 = this;
13423
+ var _this5 = this;
13380
13424
 
13381
13425
  var inited = this.inited;
13382
13426
  return this.clearAll().then(function () {
13383
- _this4.inited = true;
13384
- _this4.initStatus = true;
13385
- return _this4.loadTableData(datas);
13427
+ _this5.inited = true;
13428
+ _this5.initStatus = true;
13429
+ return _this5.loadTableData(datas);
13386
13430
  }).then(function () {
13387
- _this4.handleLoadDefaults();
13431
+ _this5.handleLoadDefaults();
13388
13432
 
13389
13433
  if (!inited) {
13390
- _this4.handleInitDefaults();
13434
+ _this5.handleInitDefaults();
13391
13435
  }
13392
13436
 
13393
- return _this4.recalculate();
13437
+ return _this5.recalculate();
13394
13438
  });
13395
13439
  },
13396
13440
 
@@ -13435,10 +13479,10 @@ var Methods = {
13435
13479
  * @param {ColumnInfo} columns 列配置
13436
13480
  */
13437
13481
  loadColumn: function loadColumn(columns) {
13438
- var _this5 = this;
13482
+ var _this6 = this;
13439
13483
 
13440
13484
  var collectColumn = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.mapTree(columns, function (column) {
13441
- return src_cell.createColumn(_this5, column);
13485
+ return src_cell.createColumn(_this6, column);
13442
13486
  }, {
13443
13487
  children: 'children'
13444
13488
  });
@@ -13451,14 +13495,14 @@ var Methods = {
13451
13495
  * @param {ColumnInfo} columns 列配置
13452
13496
  */
13453
13497
  reloadColumn: function reloadColumn(columns) {
13454
- var _this6 = this;
13498
+ var _this7 = this;
13455
13499
 
13456
13500
  return this.clearAll().then(function () {
13457
- return _this6.loadColumn(columns);
13501
+ return _this7.loadColumn(columns);
13458
13502
  });
13459
13503
  },
13460
13504
  handleColumn: function handleColumn(collectColumn) {
13461
- var _this7 = this;
13505
+ var _this8 = this;
13462
13506
 
13463
13507
  this.collectColumn = collectColumn;
13464
13508
  var tableFullColumn = methods_getColumnList(collectColumn);
@@ -13466,8 +13510,8 @@ var Methods = {
13466
13510
  this.cacheColumnMap();
13467
13511
  this.restoreCustomStorage();
13468
13512
  this.parseColumns().then(function () {
13469
- if (_this7.scrollXLoad) {
13470
- _this7.loadScrollXData(true);
13513
+ if (_this8.scrollXLoad) {
13514
+ _this8.loadScrollXData(true);
13471
13515
  }
13472
13516
  });
13473
13517
  this.clearMergeCells();
@@ -13477,14 +13521,14 @@ var Methods = {
13477
13521
  if (false) {}
13478
13522
 
13479
13523
  return this.$nextTick().then(function () {
13480
- if (_this7.$toolbar) {
13481
- _this7.$toolbar.syncUpdate({
13524
+ if (_this8.$toolbar) {
13525
+ _this8.$toolbar.syncUpdate({
13482
13526
  collectColumn: collectColumn,
13483
- $table: _this7
13527
+ $table: _this8
13484
13528
  });
13485
13529
  }
13486
13530
 
13487
- return _this7.recalculate();
13531
+ return _this8.recalculate();
13488
13532
  });
13489
13533
  },
13490
13534
 
@@ -13493,20 +13537,21 @@ var Methods = {
13493
13537
  * 牺牲数据组装的耗时,用来换取使用过程中的流畅
13494
13538
  */
13495
13539
  cacheRowMap: function cacheRowMap(source) {
13496
- var _this8 = this;
13540
+ var _this9 = this;
13497
13541
 
13498
13542
  var treeConfig = this.treeConfig,
13499
13543
  treeOpts = this.treeOpts,
13500
13544
  tableFullData = this.tableFullData,
13501
13545
  fullDataRowMap = this.fullDataRowMap,
13502
- fullAllDataRowMap = this.fullAllDataRowMap;
13546
+ fullAllDataRowMap = this.fullAllDataRowMap,
13547
+ tableFullTreeData = this.tableFullTreeData;
13503
13548
  var fullDataRowIdData = this.fullDataRowIdData,
13504
13549
  fullAllDataRowIdData = this.fullAllDataRowIdData;
13505
13550
  var rowkey = getRowkey(this);
13506
13551
  var isLazy = treeConfig && treeOpts.lazy;
13507
13552
 
13508
13553
  var handleCache = function handleCache(row, index, items, path, parent, nodes) {
13509
- var rowid = methods_getRowid(_this8, row);
13554
+ var rowid = methods_getRowid(_this9, row);
13510
13555
  var seq = treeConfig && path ? toTreePathSeq(path) : index + 1;
13511
13556
  var level = nodes ? nodes.length - 1 : 0;
13512
13557
 
@@ -13549,13 +13594,13 @@ var Methods = {
13549
13594
  fullAllDataRowMap.clear();
13550
13595
 
13551
13596
  if (treeConfig) {
13552
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(tableFullData, handleCache, treeOpts);
13597
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(tableFullTreeData, handleCache, treeOpts);
13553
13598
  } else {
13554
13599
  tableFullData.forEach(handleCache);
13555
13600
  }
13556
13601
  },
13557
13602
  loadTreeChildren: function loadTreeChildren(row, childRecords) {
13558
- var _this9 = this;
13603
+ var _this10 = this;
13559
13604
 
13560
13605
  var keepSource = this.keepSource,
13561
13606
  tableSourceData = this.tableSourceData,
@@ -13569,9 +13614,9 @@ var Methods = {
13569
13614
  var parentLevel = rest ? rest.level : 0;
13570
13615
  return this.createData(childRecords).then(function (rows) {
13571
13616
  if (keepSource) {
13572
- var rowid = methods_getRowid(_this9, row);
13617
+ var rowid = methods_getRowid(_this10, row);
13573
13618
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableSourceData, function (item) {
13574
- return rowid === methods_getRowid(_this9, item);
13619
+ return rowid === methods_getRowid(_this10, item);
13575
13620
  }, treeOpts);
13576
13621
 
13577
13622
  if (matchObj) {
@@ -13580,7 +13625,7 @@ var Methods = {
13580
13625
  }
13581
13626
 
13582
13627
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(rows, function (childRow, index, items, path, parent, nodes) {
13583
- var rowid = methods_getRowid(_this9, childRow);
13628
+ var rowid = methods_getRowid(_this10, childRow);
13584
13629
  var rest = {
13585
13630
  row: childRow,
13586
13631
  rowid: rowid,
@@ -13607,7 +13652,7 @@ var Methods = {
13607
13652
  * 牺牲数据组装的耗时,用来换取使用过程中的流畅
13608
13653
  */
13609
13654
  cacheColumnMap: function cacheColumnMap() {
13610
- var _this10 = this;
13655
+ var _this11 = this;
13611
13656
 
13612
13657
  var tableFullColumn = this.tableFullColumn,
13613
13658
  collectColumn = this.collectColumn,
@@ -13901,13 +13946,13 @@ var Methods = {
13901
13946
  * @param {Array} records 新数据
13902
13947
  */
13903
13948
  createData: function createData(records) {
13904
- var _this11 = this;
13949
+ var _this12 = this;
13905
13950
 
13906
13951
  var treeConfig = this.treeConfig,
13907
13952
  treeOpts = this.treeOpts;
13908
13953
 
13909
13954
  var handleRrecord = function handleRrecord(record) {
13910
- return _this11.defineField(Object.assign({}, record));
13955
+ return _this12.defineField(Object.assign({}, record));
13911
13956
  };
13912
13957
 
13913
13958
  var rows = treeConfig ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.mapTree(records, handleRrecord, treeOpts) : records.map(handleRrecord);
@@ -13922,7 +13967,7 @@ var Methods = {
13922
13967
  * @param {Array/Object} records 新数据
13923
13968
  */
13924
13969
  createRow: function createRow(records) {
13925
- var _this12 = this;
13970
+ var _this13 = this;
13926
13971
 
13927
13972
  var isArr = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(records);
13928
13973
 
@@ -13931,7 +13976,7 @@ var Methods = {
13931
13976
  }
13932
13977
 
13933
13978
  return this.$nextTick().then(function () {
13934
- return _this12.createData(records).then(function (rows) {
13979
+ return _this13.createData(records).then(function (rows) {
13935
13980
  return isArr ? rows : rows[0];
13936
13981
  });
13937
13982
  });
@@ -13945,7 +13990,7 @@ var Methods = {
13945
13990
  * 如果还额外传了 field 则还原指定的单元格数据
13946
13991
  */
13947
13992
  revertData: function revertData(rows, field) {
13948
- var _this13 = this;
13993
+ var _this14 = this;
13949
13994
 
13950
13995
  var keepSource = this.keepSource,
13951
13996
  tableSourceData = this.tableSourceData,
@@ -13969,8 +14014,8 @@ var Methods = {
13969
14014
 
13970
14015
  if (targetRows.length) {
13971
14016
  targetRows.forEach(function (row) {
13972
- if (!_this13.isInsertByRow(row)) {
13973
- var rowIndex = _this13.getRowIndex(row);
14017
+ if (!_this14.isInsertByRow(row)) {
14018
+ var rowIndex = _this14.getRowIndex(row);
13974
14019
 
13975
14020
  if (treeConfig && rowIndex === -1) {
13976
14021
  throw new Error(UtilTools.getLog('vxe.error.noTree', ['revertData']));
@@ -14054,7 +14099,7 @@ var Methods = {
14054
14099
  * @param {String} field 字段名
14055
14100
  */
14056
14101
  isUpdateByRow: function isUpdateByRow(row, field) {
14057
- var _this14 = this;
14102
+ var _this15 = this;
14058
14103
 
14059
14104
  var visibleColumn = this.visibleColumn,
14060
14105
  keepSource = this.keepSource,
@@ -14074,7 +14119,7 @@ var Methods = {
14074
14119
  if (treeConfig) {
14075
14120
  var children = treeOpts.children;
14076
14121
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableSourceData, function (item) {
14077
- return rowid === methods_getRowid(_this14, item);
14122
+ return rowid === methods_getRowid(_this15, item);
14078
14123
  }, treeOpts);
14079
14124
  row = Object.assign({}, row, _defineProperty({}, children, null));
14080
14125
 
@@ -14197,18 +14242,23 @@ var Methods = {
14197
14242
  * 如果存在筛选条件,继续处理
14198
14243
  */
14199
14244
  updateAfterFullData: function updateAfterFullData() {
14200
- var _this15 = this;
14245
+ var _this16 = this;
14201
14246
 
14202
14247
  var tableFullColumn = this.tableFullColumn,
14203
14248
  tableFullData = this.tableFullData,
14204
14249
  filterOpts = this.filterOpts,
14205
- sortOpts = this.sortOpts;
14250
+ sortOpts = this.sortOpts,
14251
+ treeConfig = this.treeConfig,
14252
+ treeOpts = this.treeOpts,
14253
+ tableFullTreeData = this.tableFullTreeData;
14206
14254
  var allRemoteFilter = filterOpts.remote,
14207
14255
  allFilterMethod = filterOpts.filterMethod;
14208
14256
  var allRemoteSort = sortOpts.remote,
14209
14257
  allSortMethod = sortOpts.sortMethod,
14210
14258
  sortMultiple = sortOpts.multiple;
14211
- var tableData = tableFullData.slice(0);
14259
+ var transform = treeOpts.transform;
14260
+ var tableData = [];
14261
+ var tableTree = [];
14212
14262
  var filterColumns = [];
14213
14263
  var orderColumns = [];
14214
14264
  tableFullColumn.forEach(function (column) {
@@ -14245,7 +14295,7 @@ var Methods = {
14245
14295
  });
14246
14296
 
14247
14297
  if (filterColumns.length) {
14248
- tableData = tableData.filter(function (row) {
14298
+ var handleFilter = function handleFilter(row) {
14249
14299
  return filterColumns.every(function (_ref) {
14250
14300
  var column = _ref.column,
14251
14301
  valueList = _ref.valueList,
@@ -14267,7 +14317,7 @@ var Methods = {
14267
14317
  cellValue: cellValue,
14268
14318
  row: row,
14269
14319
  column: column,
14270
- $table: _this15
14320
+ $table: _this16
14271
14321
  });
14272
14322
  });
14273
14323
  } else if (compFilterMethod) {
@@ -14278,7 +14328,7 @@ var Methods = {
14278
14328
  cellValue: cellValue,
14279
14329
  row: row,
14280
14330
  column: column,
14281
- $table: _this15
14331
+ $table: _this16
14282
14332
  });
14283
14333
  });
14284
14334
  } else if (allFilterMethod) {
@@ -14297,7 +14347,7 @@ var Methods = {
14297
14347
  cellValue: cellValue,
14298
14348
  row: row,
14299
14349
  column: column,
14300
- $table: _this15
14350
+ $table: _this16
14301
14351
  });
14302
14352
  });
14303
14353
  }
@@ -14307,7 +14357,19 @@ var Methods = {
14307
14357
 
14308
14358
  return true;
14309
14359
  });
14310
- });
14360
+ };
14361
+
14362
+ if (treeConfig && transform) {
14363
+ tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.searchTree(tableFullTreeData, handleFilter, _objectSpread2(_objectSpread2({}, treeOpts), {}, {
14364
+ original: true
14365
+ }));
14366
+ } else {
14367
+ tableData = treeConfig ? tableFullTreeData.filter(handleFilter) : tableFullData.filter(handleFilter);
14368
+ tableTree = tableData;
14369
+ }
14370
+ } else {
14371
+ tableData = treeConfig ? tableFullTreeData.slice(0) : tableFullData.slice(0);
14372
+ tableTree = tableData;
14311
14373
  }
14312
14374
 
14313
14375
  var firstOrderColumn = orderColumns[0];
@@ -14329,7 +14391,7 @@ var Methods = {
14329
14391
  tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableData, orderColumns.map(function (_ref2) {
14330
14392
  var column = _ref2.column,
14331
14393
  order = _ref2.order;
14332
- return [getOrderField(_this15, column), order];
14394
+ return [getOrderField(_this16, column), order];
14333
14395
  }));
14334
14396
  } else {
14335
14397
  // 兼容 v2,在 v4 中废弃, sortBy 不能为数组
@@ -14344,14 +14406,17 @@ var Methods = {
14344
14406
  tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.orderBy(tableData, sortByConfs || [firstOrderColumn].map(function (_ref3) {
14345
14407
  var column = _ref3.column,
14346
14408
  order = _ref3.order;
14347
- return [getOrderField(_this15, column), order];
14409
+ return [getOrderField(_this16, column), order];
14348
14410
  }));
14349
14411
  }
14350
14412
  }
14413
+
14414
+ tableTree = tableData;
14351
14415
  }
14352
14416
 
14353
14417
  this.afterFullData = tableData;
14354
- return tableData;
14418
+ this.afterTreeFullData = tableTree;
14419
+ this.updateAfterDataIndex();
14355
14420
  },
14356
14421
 
14357
14422
  /**
@@ -14359,18 +14424,18 @@ var Methods = {
14359
14424
  * 对渲染中的数据提前解析序号及索引。牺牲提前编译耗时换取渲染中额外损耗,使运行时更加流畅
14360
14425
  */
14361
14426
  updateAfterDataIndex: function updateAfterDataIndex() {
14362
- var _this16 = this;
14427
+ var _this17 = this;
14363
14428
 
14364
14429
  var treeConfig = this.treeConfig,
14365
14430
  afterFullData = this.afterFullData,
14366
14431
  fullDataRowIdData = this.fullDataRowIdData,
14367
14432
  fullAllDataRowIdData = this.fullAllDataRowIdData,
14368
- treeFullData = this.treeFullData,
14433
+ afterTreeFullData = this.afterTreeFullData,
14369
14434
  treeOpts = this.treeOpts;
14370
14435
 
14371
14436
  if (treeConfig) {
14372
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(treeFullData, function (row, index, items, path) {
14373
- var rowid = methods_getRowid(_this16, row);
14437
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterTreeFullData, function (row, index, items, path) {
14438
+ var rowid = methods_getRowid(_this17, row);
14374
14439
  var allrest = fullAllDataRowIdData[rowid];
14375
14440
  var fullrest = fullDataRowIdData[rowid];
14376
14441
  var seq = path.map(function (num, i) {
@@ -14410,7 +14475,7 @@ var Methods = {
14410
14475
  }, treeOpts);
14411
14476
  } else {
14412
14477
  afterFullData.forEach(function (row, index) {
14413
- var rowid = methods_getRowid(_this16, row);
14478
+ var rowid = methods_getRowid(_this17, row);
14414
14479
  var allrest = fullAllDataRowIdData[rowid];
14415
14480
  var fullrest = fullDataRowIdData[rowid];
14416
14481
  var seq = index + 1;
@@ -14491,7 +14556,7 @@ var Methods = {
14491
14556
  * 默认执行一次,除非被重置
14492
14557
  */
14493
14558
  handleLoadDefaults: function handleLoadDefaults() {
14494
- var _this17 = this;
14559
+ var _this18 = this;
14495
14560
 
14496
14561
  if (this.checkboxConfig) {
14497
14562
  this.handleDefaultSelectionChecked();
@@ -14518,7 +14583,7 @@ var Methods = {
14518
14583
  }
14519
14584
 
14520
14585
  this.$nextTick(function () {
14521
- return setTimeout(_this17.recalculate);
14586
+ return setTimeout(_this18.recalculate);
14522
14587
  });
14523
14588
  },
14524
14589
 
@@ -14768,12 +14833,12 @@ var Methods = {
14768
14833
  * 刷新列配置
14769
14834
  */
14770
14835
  refreshColumn: function refreshColumn() {
14771
- var _this18 = this;
14836
+ var _this19 = this;
14772
14837
 
14773
14838
  return this.parseColumns().then(function () {
14774
- return _this18.refreshScroll();
14839
+ return _this19.refreshScroll();
14775
14840
  }).then(function () {
14776
- return _this18.recalculate();
14841
+ return _this19.recalculate();
14777
14842
  });
14778
14843
  },
14779
14844
 
@@ -14782,7 +14847,7 @@ var Methods = {
14782
14847
  * 将固定的列左边、右边分别靠边
14783
14848
  */
14784
14849
  parseColumns: function parseColumns() {
14785
- var _this19 = this;
14850
+ var _this20 = this;
14786
14851
 
14787
14852
  var leftList = [];
14788
14853
  var centerList = [];
@@ -14889,11 +14954,11 @@ var Methods = {
14889
14954
  this.visibleColumn = visibleColumn;
14890
14955
  this.handleTableColumn();
14891
14956
  return this.updateFooter().then(function () {
14892
- return _this19.recalculate();
14957
+ return _this20.recalculate();
14893
14958
  }).then(function () {
14894
- _this19.updateCellAreas();
14959
+ _this20.updateCellAreas();
14895
14960
 
14896
- return _this19.recalculate();
14961
+ return _this20.recalculate();
14897
14962
  });
14898
14963
  },
14899
14964
 
@@ -14977,7 +15042,7 @@ var Methods = {
14977
15042
  * 支持 width=? width=?px width=?% min-width=? min-width=?px min-width=?%
14978
15043
  */
14979
15044
  recalculate: function recalculate(refull) {
14980
- var _this20 = this;
15045
+ var _this21 = this;
14981
15046
 
14982
15047
  var $refs = this.$refs;
14983
15048
  var tableBody = $refs.tableBody,
@@ -14993,9 +15058,9 @@ var Methods = {
14993
15058
  if (refull === true) {
14994
15059
  // 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
14995
15060
  return this.computeScrollLoad().then(function () {
14996
- _this20.autoCellWidth(headerElem, bodyElem, footerElem);
15061
+ _this21.autoCellWidth(headerElem, bodyElem, footerElem);
14997
15062
 
14998
- return _this20.computeScrollLoad();
15063
+ return _this21.computeScrollLoad();
14999
15064
  });
15000
15065
  }
15001
15066
  }
@@ -15143,7 +15208,7 @@ var Methods = {
15143
15208
  this.customMaxHeight = methods_calcHeight(this, 'maxHeight');
15144
15209
  },
15145
15210
  updateStyle: function updateStyle() {
15146
- var _this21 = this;
15211
+ var _this22 = this;
15147
15212
 
15148
15213
  var $refs = this.$refs,
15149
15214
  isGroup = this.isGroup,
@@ -15247,7 +15312,7 @@ var Methods = {
15247
15312
 
15248
15313
  if (isGroup && listElem) {
15249
15314
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.arrayEach(listElem.querySelectorAll('.col--group'), function (thElem) {
15250
- var colNode = _this21.getColumnNode(thElem);
15315
+ var colNode = _this22.getColumnNode(thElem);
15251
15316
 
15252
15317
  if (colNode) {
15253
15318
  var column = colNode.item;
@@ -15428,10 +15493,10 @@ var Methods = {
15428
15493
 
15429
15494
  if (cellElem) {
15430
15495
  if (colspan > 1) {
15431
- var columnIndex = _this21.getColumnIndex(column);
15496
+ var columnIndex = _this22.getColumnIndex(column);
15432
15497
 
15433
15498
  for (var _index = 1; _index < colspan; _index++) {
15434
- var nextColumn = _this21.getColumns(columnIndex + _index);
15499
+ var nextColumn = _this22.getColumns(columnIndex + _index);
15435
15500
 
15436
15501
  if (nextColumn) {
15437
15502
  colWidth += nextColumn.renderWidth;
@@ -15481,15 +15546,15 @@ var Methods = {
15481
15546
  }
15482
15547
  },
15483
15548
  preventEvent: function preventEvent(evnt, type, args, next, end) {
15484
- var _this22 = this;
15549
+ var _this23 = this;
15485
15550
 
15486
15551
  var evntList = v_x_e_table.interceptor.get(type);
15487
15552
  var rest;
15488
15553
 
15489
15554
  if (!evntList.some(function (func) {
15490
15555
  return func(Object.assign({
15491
- $grid: _this22.$xegrid,
15492
- $table: _this22,
15556
+ $grid: _this23.$xegrid,
15557
+ $table: _this23,
15493
15558
  $event: evnt
15494
15559
  }, args)) === false;
15495
15560
  })) {
@@ -15509,7 +15574,7 @@ var Methods = {
15509
15574
  * 全局按下事件处理
15510
15575
  */
15511
15576
  handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
15512
- var _this23 = this;
15577
+ var _this24 = this;
15513
15578
 
15514
15579
  var $el = this.$el,
15515
15580
  $refs = this.$refs,
@@ -15570,7 +15635,7 @@ var Methods = {
15570
15635
  } // 如果固定了高度且点击了行之外的空白处,则清除激活状态
15571
15636
 
15572
15637
 
15573
- if (!isClearActived && _this23.height && !_this23.overflowY) {
15638
+ if (!isClearActived && _this24.height && !_this24.overflowY) {
15574
15639
  var bodyWrapperElem = evnt.target;
15575
15640
 
15576
15641
  if (methods_hasClass(bodyWrapperElem, 'vxe-table--body-wrapper')) {
@@ -15581,7 +15646,7 @@ var Methods = {
15581
15646
  if (isClearActived || // 如果点击了当前表格之外
15582
15647
  !getEventTargetNode(evnt, $el).flag) {
15583
15648
  setTimeout(function () {
15584
- return _this23.clearActived(evnt);
15649
+ return _this24.clearActived(evnt);
15585
15650
  });
15586
15651
  }
15587
15652
  });
@@ -15595,9 +15660,9 @@ var Methods = {
15595
15660
 
15596
15661
  if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
15597
15662
  this.preventEvent(evnt, 'event.clearAreas', {}, function () {
15598
- _this23.clearCellAreas();
15663
+ _this24.clearCellAreas();
15599
15664
 
15600
- _this23.clearCopyCellArea();
15665
+ _this24.clearCopyCellArea();
15601
15666
  });
15602
15667
  }
15603
15668
  }
@@ -15632,7 +15697,7 @@ var Methods = {
15632
15697
  * 表格键盘事件
15633
15698
  */
15634
15699
  keydownEvent: function keydownEvent(evnt) {
15635
- var _this24 = this;
15700
+ var _this25 = this;
15636
15701
 
15637
15702
  var filterStore = this.filterStore,
15638
15703
  ctxMenuStore = this.ctxMenuStore,
@@ -15647,33 +15712,33 @@ var Methods = {
15647
15712
 
15648
15713
  if (isEsc) {
15649
15714
  this.preventEvent(evnt, 'event.keydown', null, function () {
15650
- if (keyboardConfig && mouseConfig && mouseOpts.area && _this24.handleKeyboardEvent) {
15651
- _this24.handleKeyboardEvent(evnt);
15715
+ if (keyboardConfig && mouseConfig && mouseOpts.area && _this25.handleKeyboardEvent) {
15716
+ _this25.handleKeyboardEvent(evnt);
15652
15717
  } else if (actived.row || filterStore.visible || ctxMenuStore.visible) {
15653
15718
  evnt.stopPropagation(); // 如果按下了 Esc 键,关闭快捷菜单、筛选
15654
15719
 
15655
- _this24.closeFilter();
15720
+ _this25.closeFilter();
15656
15721
 
15657
- _this24.closeMenu();
15722
+ _this25.closeMenu();
15658
15723
 
15659
15724
  if (keyboardConfig && keyboardOpts.isEsc) {
15660
15725
  // 如果是激活编辑状态,则取消编辑
15661
15726
  if (actived.row) {
15662
15727
  var params = actived.args;
15663
15728
 
15664
- _this24.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15729
+ _this25.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15665
15730
 
15666
15731
 
15667
15732
  if (mouseConfig && mouseOpts.selected) {
15668
- _this24.$nextTick(function () {
15669
- return _this24.handleSelected(params, evnt);
15733
+ _this25.$nextTick(function () {
15734
+ return _this25.handleSelected(params, evnt);
15670
15735
  });
15671
15736
  }
15672
15737
  }
15673
15738
  }
15674
15739
  }
15675
15740
 
15676
- _this24.emitEvent('keydown', {}, evnt);
15741
+ _this25.emitEvent('keydown', {}, evnt);
15677
15742
  });
15678
15743
  }
15679
15744
  },
@@ -15682,27 +15747,27 @@ var Methods = {
15682
15747
  * 全局键盘事件
15683
15748
  */
15684
15749
  handleGlobalKeydownEvent: function handleGlobalKeydownEvent(evnt) {
15685
- var _this25 = this;
15750
+ var _this26 = this;
15686
15751
 
15687
15752
  // 该行为只对当前激活的表格有效
15688
15753
  if (this.isActivated) {
15689
15754
  this.preventEvent(evnt, 'event.keydown', null, function () {
15690
- var filterStore = _this25.filterStore,
15691
- isCtxMenu = _this25.isCtxMenu,
15692
- ctxMenuStore = _this25.ctxMenuStore,
15693
- editStore = _this25.editStore,
15694
- editOpts = _this25.editOpts,
15695
- editConfig = _this25.editConfig,
15696
- mouseConfig = _this25.mouseConfig,
15697
- mouseOpts = _this25.mouseOpts,
15698
- keyboardConfig = _this25.keyboardConfig,
15699
- keyboardOpts = _this25.keyboardOpts,
15700
- treeConfig = _this25.treeConfig,
15701
- treeOpts = _this25.treeOpts,
15702
- highlightCurrentRow = _this25.highlightCurrentRow,
15703
- currentRow = _this25.currentRow,
15704
- bodyCtxMenu = _this25.bodyCtxMenu,
15705
- rowOpts = _this25.rowOpts;
15755
+ var filterStore = _this26.filterStore,
15756
+ isCtxMenu = _this26.isCtxMenu,
15757
+ ctxMenuStore = _this26.ctxMenuStore,
15758
+ editStore = _this26.editStore,
15759
+ editOpts = _this26.editOpts,
15760
+ editConfig = _this26.editConfig,
15761
+ mouseConfig = _this26.mouseConfig,
15762
+ mouseOpts = _this26.mouseOpts,
15763
+ keyboardConfig = _this26.keyboardConfig,
15764
+ keyboardOpts = _this26.keyboardOpts,
15765
+ treeConfig = _this26.treeConfig,
15766
+ treeOpts = _this26.treeOpts,
15767
+ highlightCurrentRow = _this26.highlightCurrentRow,
15768
+ currentRow = _this26.currentRow,
15769
+ bodyCtxMenu = _this26.bodyCtxMenu,
15770
+ rowOpts = _this26.rowOpts;
15706
15771
  var selected = editStore.selected,
15707
15772
  actived = editStore.actived;
15708
15773
  var keyCode = evnt.keyCode;
@@ -15729,7 +15794,7 @@ var Methods = {
15729
15794
 
15730
15795
  if (filterStore.visible) {
15731
15796
  if (isEsc) {
15732
- _this25.closeFilter();
15797
+ _this26.closeFilter();
15733
15798
  }
15734
15799
 
15735
15800
  return;
@@ -15740,20 +15805,20 @@ var Methods = {
15740
15805
  evnt.preventDefault();
15741
15806
 
15742
15807
  if (ctxMenuStore.showChild && hasChildrenList(ctxMenuStore.selected)) {
15743
- _this25.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
15808
+ _this26.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
15744
15809
  } else {
15745
- _this25.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this25.ctxMenuList);
15810
+ _this26.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this26.ctxMenuList);
15746
15811
  }
15747
- } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this25.handleKeyboardEvent) {
15748
- _this25.handleKeyboardEvent(evnt);
15812
+ } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this26.handleKeyboardEvent) {
15813
+ _this26.handleKeyboardEvent(evnt);
15749
15814
  } else if (keyboardConfig && isSpacebar && keyboardOpts.isChecked && selected.row && selected.column && (selected.column.type === 'checkbox' || selected.column.type === 'radio')) {
15750
15815
  // 空格键支持选中复选框
15751
15816
  evnt.preventDefault();
15752
15817
 
15753
15818
  if (selected.column.type === 'checkbox') {
15754
- _this25.handleToggleCheckRowEvent(evnt, selected.args);
15819
+ _this26.handleToggleCheckRowEvent(evnt, selected.args);
15755
15820
  } else {
15756
- _this25.triggerRadioRowEvent(evnt, selected.args);
15821
+ _this26.triggerRadioRowEvent(evnt, selected.args);
15757
15822
  }
15758
15823
  } else if (isF2 && isEnableConf(editConfig)) {
15759
15824
  if (!isEditStatus) {
@@ -15762,15 +15827,15 @@ var Methods = {
15762
15827
  evnt.stopPropagation();
15763
15828
  evnt.preventDefault();
15764
15829
 
15765
- _this25.handleActived(selected.args, evnt);
15830
+ _this26.handleActived(selected.args, evnt);
15766
15831
  }
15767
15832
  }
15768
15833
  } else if (isContextMenu) {
15769
15834
  // 如果按下上下文键
15770
- _this25._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
15771
- clearTimeout(_this25.keyCtxTimeout);
15772
- _this25.keyCtxTimeout = setTimeout(function () {
15773
- _this25._keyCtx = false;
15835
+ _this26._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
15836
+ clearTimeout(_this26.keyCtxTimeout);
15837
+ _this26.keyCtxTimeout = setTimeout(function () {
15838
+ _this26._keyCtx = false;
15774
15839
  }, 1000);
15775
15840
  } else if (isEnter && !hasAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow)) {
15776
15841
  // 退出选中
@@ -15779,12 +15844,12 @@ var Methods = {
15779
15844
  if (actived.row) {
15780
15845
  params = actived.args;
15781
15846
 
15782
- _this25.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15847
+ _this26.clearActived(evnt); // 如果配置了选中功能,则为选中状态
15783
15848
 
15784
15849
 
15785
15850
  if (mouseConfig && mouseOpts.selected) {
15786
- _this25.$nextTick(function () {
15787
- return _this25.handleSelected(params, evnt);
15851
+ _this26.$nextTick(function () {
15852
+ return _this26.handleSelected(params, evnt);
15788
15853
  });
15789
15854
  }
15790
15855
  }
@@ -15795,15 +15860,15 @@ var Methods = {
15795
15860
 
15796
15861
  if (hasShiftKey) {
15797
15862
  if (keyboardOpts.enterToTab) {
15798
- _this25.moveTabSelected(targetArgs, hasShiftKey, evnt);
15863
+ _this26.moveTabSelected(targetArgs, hasShiftKey, evnt);
15799
15864
  } else {
15800
- _this25.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
15865
+ _this26.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
15801
15866
  }
15802
15867
  } else {
15803
15868
  if (keyboardOpts.enterToTab) {
15804
- _this25.moveTabSelected(targetArgs, hasShiftKey, evnt);
15869
+ _this26.moveTabSelected(targetArgs, hasShiftKey, evnt);
15805
15870
  } else {
15806
- _this25.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
15871
+ _this26.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
15807
15872
  }
15808
15873
  }
15809
15874
  } else if (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
@@ -15814,14 +15879,14 @@ var Methods = {
15814
15879
  evnt.preventDefault();
15815
15880
  var targetRow = childrens[0];
15816
15881
  params = {
15817
- $table: _this25,
15882
+ $table: _this26,
15818
15883
  row: targetRow
15819
15884
  };
15820
15885
 
15821
- _this25.setTreeExpand(currentRow, true).then(function () {
15822
- return _this25.scrollToRow(targetRow);
15886
+ _this26.setTreeExpand(currentRow, true).then(function () {
15887
+ return _this26.scrollToRow(targetRow);
15823
15888
  }).then(function () {
15824
- return _this25.triggerCurrentRowEvent(evnt, params);
15889
+ return _this26.triggerCurrentRowEvent(evnt, params);
15825
15890
  });
15826
15891
  }
15827
15892
  }
@@ -15830,18 +15895,18 @@ var Methods = {
15830
15895
  if (!isEditStatus) {
15831
15896
  // 如果按下了方向键
15832
15897
  if (selected.row && selected.column) {
15833
- _this25.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
15898
+ _this26.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
15834
15899
  } else if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
15835
15900
  // 当前行按键上下移动
15836
- _this25.moveCurrentRow(isUpArrow, isDwArrow, evnt);
15901
+ _this26.moveCurrentRow(isUpArrow, isDwArrow, evnt);
15837
15902
  }
15838
15903
  }
15839
15904
  } else if (isTab && keyboardConfig && keyboardOpts.isTab) {
15840
15905
  // 如果按下了 Tab 键切换
15841
15906
  if (selected.row || selected.column) {
15842
- _this25.moveTabSelected(selected.args, hasShiftKey, evnt);
15907
+ _this26.moveTabSelected(selected.args, hasShiftKey, evnt);
15843
15908
  } else if (actived.row || actived.column) {
15844
- _this25.moveTabSelected(actived.args, hasShiftKey, evnt);
15909
+ _this26.moveTabSelected(actived.args, hasShiftKey, evnt);
15845
15910
  }
15846
15911
  } else if (keyboardConfig && (isDel || (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
15847
15912
  if (!isEditStatus) {
@@ -15852,10 +15917,10 @@ var Methods = {
15852
15917
  if (delMethod) {
15853
15918
  delMethod({
15854
15919
  row: selected.row,
15855
- rowIndex: _this25.getRowIndex(selected.row),
15920
+ rowIndex: _this26.getRowIndex(selected.row),
15856
15921
  column: selected.column,
15857
- columnIndex: _this25.getColumnIndex(selected.column),
15858
- $table: _this25
15922
+ columnIndex: _this26.getColumnIndex(selected.column),
15923
+ $table: _this26
15859
15924
  });
15860
15925
  } else {
15861
15926
  methods_setCellValue(selected.row, selected.column, null);
@@ -15865,21 +15930,21 @@ var Methods = {
15865
15930
  if (backMethod) {
15866
15931
  backMethod({
15867
15932
  row: selected.row,
15868
- rowIndex: _this25.getRowIndex(selected.row),
15933
+ rowIndex: _this26.getRowIndex(selected.row),
15869
15934
  column: selected.column,
15870
- columnIndex: _this25.getColumnIndex(selected.column),
15871
- $table: _this25
15935
+ columnIndex: _this26.getColumnIndex(selected.column),
15936
+ $table: _this26
15872
15937
  });
15873
15938
  } else {
15874
- _this25.handleActived(selected.args, evnt);
15939
+ _this26.handleActived(selected.args, evnt);
15875
15940
  }
15876
15941
  } else if (isDel) {
15877
15942
  // 如果按下 del 键,更新表尾数据
15878
- _this25.updateFooter();
15943
+ _this26.updateFooter();
15879
15944
  }
15880
15945
  } else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
15881
15946
  // 如果树形表格回退键关闭当前行返回父节点
15882
- var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(_this25.afterFullData, function (item) {
15947
+ var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(_this26.afterFullData, function (item) {
15883
15948
  return item === currentRow;
15884
15949
  }, treeOpts),
15885
15950
  parentRow = _XEUtils$findTree.parent;
@@ -15887,14 +15952,14 @@ var Methods = {
15887
15952
  if (parentRow) {
15888
15953
  evnt.preventDefault();
15889
15954
  params = {
15890
- $table: _this25,
15955
+ $table: _this26,
15891
15956
  row: parentRow
15892
15957
  };
15893
15958
 
15894
- _this25.setTreeExpand(parentRow, false).then(function () {
15895
- return _this25.scrollToRow(parentRow);
15959
+ _this26.setTreeExpand(parentRow, false).then(function () {
15960
+ return _this26.scrollToRow(parentRow);
15896
15961
  }).then(function () {
15897
- return _this25.triggerCurrentRowEvent(evnt, params);
15962
+ return _this26.triggerCurrentRowEvent(evnt, params);
15898
15963
  });
15899
15964
  }
15900
15965
  }
@@ -15911,21 +15976,21 @@ var Methods = {
15911
15976
  if (editMethod) {
15912
15977
  editMethod({
15913
15978
  row: selected.row,
15914
- rowIndex: _this25.getRowIndex(selected.row),
15979
+ rowIndex: _this26.getRowIndex(selected.row),
15915
15980
  column: selected.column,
15916
- columnIndex: _this25.getColumnIndex(selected.column),
15917
- $table: _this25
15981
+ columnIndex: _this26.getColumnIndex(selected.column),
15982
+ $table: _this26
15918
15983
  });
15919
15984
  } else {
15920
15985
  methods_setCellValue(selected.row, selected.column, null);
15921
15986
 
15922
- _this25.handleActived(selected.args, evnt);
15987
+ _this26.handleActived(selected.args, evnt);
15923
15988
  }
15924
15989
  }
15925
15990
  }
15926
15991
  }
15927
15992
 
15928
- _this25.emitEvent('keydown', {}, evnt);
15993
+ _this26.emitEvent('keydown', {}, evnt);
15929
15994
  });
15930
15995
  }
15931
15996
  },
@@ -15995,12 +16060,12 @@ var Methods = {
15995
16060
  this.recalculate(true);
15996
16061
  },
15997
16062
  handleTooltipLeaveMethod: function handleTooltipLeaveMethod() {
15998
- var _this26 = this;
16063
+ var _this27 = this;
15999
16064
 
16000
16065
  var tooltipOpts = this.tooltipOpts;
16001
16066
  setTimeout(function () {
16002
- if (!_this26.tooltipActive) {
16003
- _this26.closeTooltip();
16067
+ if (!_this27.tooltipActive) {
16068
+ _this27.closeTooltip();
16004
16069
  }
16005
16070
  }, tooltipOpts.leaveDelay);
16006
16071
  return false;
@@ -16011,17 +16076,17 @@ var Methods = {
16011
16076
  this.closeTooltip();
16012
16077
  },
16013
16078
  handleTargetLeaveEvent: function handleTargetLeaveEvent() {
16014
- var _this27 = this;
16079
+ var _this28 = this;
16015
16080
 
16016
16081
  var tooltipOpts = this.tooltipOpts;
16017
16082
  this.tooltipActive = false;
16018
16083
 
16019
16084
  if (tooltipOpts.enterable) {
16020
16085
  this.tooltipTimeout = setTimeout(function () {
16021
- var tooltip = _this27.$refs.tooltip;
16086
+ var tooltip = _this28.$refs.tooltip;
16022
16087
 
16023
16088
  if (tooltip && !tooltip.isHover) {
16024
- _this27.closeTooltip();
16089
+ _this28.closeTooltip();
16025
16090
  }
16026
16091
  }, tooltipOpts.leaveDelay);
16027
16092
  } else {
@@ -16251,14 +16316,14 @@ var Methods = {
16251
16316
  * @param {Boolean} value 是否选中
16252
16317
  */
16253
16318
  setCheckboxRow: function setCheckboxRow(rows, value) {
16254
- var _this28 = this;
16319
+ var _this29 = this;
16255
16320
 
16256
16321
  if (rows && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(rows)) {
16257
16322
  rows = [rows];
16258
16323
  }
16259
16324
 
16260
16325
  rows.forEach(function (row) {
16261
- return _this28.handleSelectRow({
16326
+ return _this29.handleSelectRow({
16262
16327
  row: row
16263
16328
  }, !!value);
16264
16329
  });
@@ -16282,7 +16347,7 @@ var Methods = {
16282
16347
  * value 选中true 不选false 半选-1
16283
16348
  */
16284
16349
  handleSelectRow: function handleSelectRow(_ref5, value) {
16285
- var _this29 = this;
16350
+ var _this30 = this;
16286
16351
 
16287
16352
  var row = _ref5.row;
16288
16353
  var selection = this.selection,
@@ -16314,7 +16379,7 @@ var Methods = {
16314
16379
  return half === item;
16315
16380
  });
16316
16381
 
16317
- _this29.handleCheckboxReserveRow(row, value);
16382
+ _this30.handleCheckboxReserveRow(row, value);
16318
16383
  }
16319
16384
  }, treeOpts);
16320
16385
  } // 如果存在父节点,更新父节点状态
@@ -16386,7 +16451,7 @@ var Methods = {
16386
16451
  return half === item;
16387
16452
  });
16388
16453
 
16389
- _this29.handleCheckboxReserveRow(row, value);
16454
+ _this30.handleCheckboxReserveRow(row, value);
16390
16455
  }
16391
16456
  }, treeOpts);
16392
16457
  } // 如果存在父节点,更新父节点状态
@@ -16490,7 +16555,7 @@ var Methods = {
16490
16555
  * @param {Boolean} value 是否选中
16491
16556
  */
16492
16557
  setAllCheckboxRow: function setAllCheckboxRow(value) {
16493
- var _this30 = this;
16558
+ var _this31 = this;
16494
16559
 
16495
16560
  var afterFullData = this.afterFullData,
16496
16561
  treeConfig = this.treeConfig,
@@ -16603,11 +16668,11 @@ var Methods = {
16603
16668
  if (reserve) {
16604
16669
  if (value) {
16605
16670
  selectRows.forEach(function (row) {
16606
- checkboxReserveRowMap[methods_getRowid(_this30, row)] = row;
16671
+ checkboxReserveRowMap[methods_getRowid(_this31, row)] = row;
16607
16672
  });
16608
16673
  } else {
16609
16674
  afterFullData.forEach(function (row) {
16610
- return _this30.handleCheckboxReserveRow(row, false);
16675
+ return _this31.handleCheckboxReserveRow(row, false);
16611
16676
  });
16612
16677
  }
16613
16678
  }
@@ -16802,7 +16867,7 @@ var Methods = {
16802
16867
  * 获取复选框保留选中的行
16803
16868
  */
16804
16869
  getCheckboxReserveRecords: function getCheckboxReserveRecords(isFull) {
16805
- var _this31 = this;
16870
+ var _this32 = this;
16806
16871
 
16807
16872
  var fullDataRowIdData = this.fullDataRowIdData,
16808
16873
  afterFullData = this.afterFullData,
@@ -16817,11 +16882,11 @@ var Methods = {
16817
16882
 
16818
16883
  if (treeConfig) {
16819
16884
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterFullData, function (row) {
16820
- afterFullIdMaps[methods_getRowid(_this31, row)] = 1;
16885
+ afterFullIdMaps[methods_getRowid(_this32, row)] = 1;
16821
16886
  }, treeOpts);
16822
16887
  } else {
16823
16888
  afterFullData.forEach(function (row) {
16824
- afterFullIdMaps[methods_getRowid(_this31, row)] = 1;
16889
+ afterFullIdMaps[methods_getRowid(_this32, row)] = 1;
16825
16890
  });
16826
16891
  }
16827
16892
 
@@ -16887,7 +16952,7 @@ var Methods = {
16887
16952
  * 清空行为不管是否被禁用还是保留记录,都将彻底清空选中状态
16888
16953
  */
16889
16954
  clearCheckboxRow: function clearCheckboxRow() {
16890
- var _this32 = this;
16955
+ var _this33 = this;
16891
16956
 
16892
16957
  var tableFullData = this.tableFullData,
16893
16958
  treeConfig = this.treeConfig,
@@ -16910,7 +16975,7 @@ var Methods = {
16910
16975
 
16911
16976
  if (reserve) {
16912
16977
  tableFullData.forEach(function (row) {
16913
- return _this32.handleCheckboxReserveRow(row, false);
16978
+ return _this33.handleCheckboxReserveRow(row, false);
16914
16979
  });
16915
16980
  }
16916
16981
 
@@ -17201,13 +17266,13 @@ var Methods = {
17201
17266
  * 如果存在规则,则校验
17202
17267
  */
17203
17268
  handleChangeCell: function handleChangeCell(evnt, params) {
17204
- var _this33 = this;
17269
+ var _this34 = this;
17205
17270
 
17206
17271
  this.checkValidate('blur').catch(function (e) {
17207
17272
  return e;
17208
17273
  }).then(function () {
17209
- _this33.handleActived(params, evnt).then(function () {
17210
- return _this33.checkValidate('change');
17274
+ _this34.handleActived(params, evnt).then(function () {
17275
+ return _this34.checkValidate('change');
17211
17276
  }).catch(function (e) {
17212
17277
  return e;
17213
17278
  });
@@ -17310,7 +17375,7 @@ var Methods = {
17310
17375
  * 如果是双击模式,则激活为编辑状态
17311
17376
  */
17312
17377
  triggerCellDblclickEvent: function triggerCellDblclickEvent(evnt, params) {
17313
- var _this34 = this;
17378
+ var _this35 = this;
17314
17379
 
17315
17380
  var editStore = this.editStore,
17316
17381
  editConfig = this.editConfig,
@@ -17325,15 +17390,15 @@ var Methods = {
17325
17390
  this.checkValidate('blur').catch(function (e) {
17326
17391
  return e;
17327
17392
  }).then(function () {
17328
- _this34.handleActived(params, evnt).then(function () {
17329
- return _this34.checkValidate('change');
17393
+ _this35.handleActived(params, evnt).then(function () {
17394
+ return _this35.checkValidate('change');
17330
17395
  }).catch(function (e) {
17331
17396
  return e;
17332
17397
  });
17333
17398
  });
17334
17399
  } else if (editOpts.mode === 'cell') {
17335
17400
  this.handleActived(params, evnt).then(function () {
17336
- return _this34.checkValidate('change');
17401
+ return _this35.checkValidate('change');
17337
17402
  }).catch(function (e) {
17338
17403
  return e;
17339
17404
  });
@@ -17344,7 +17409,7 @@ var Methods = {
17344
17409
  this.emitEvent('cell-dblclick', params, evnt);
17345
17410
  },
17346
17411
  handleDefaultSort: function handleDefaultSort() {
17347
- var _this35 = this;
17412
+ var _this36 = this;
17348
17413
 
17349
17414
  var sortConfig = this.sortConfig,
17350
17415
  sortOpts = this.sortOpts;
@@ -17361,7 +17426,7 @@ var Methods = {
17361
17426
  order = item.order;
17362
17427
 
17363
17428
  if (field && order) {
17364
- var column = _this35.getColumnByField(field);
17429
+ var column = _this36.getColumnByField(field);
17365
17430
 
17366
17431
  if (column && column.sortable) {
17367
17432
  column.order = order;
@@ -17404,7 +17469,7 @@ var Methods = {
17404
17469
  }
17405
17470
  },
17406
17471
  sort: function sort(sortConfs, sortOrder) {
17407
- var _this36 = this;
17472
+ var _this37 = this;
17408
17473
 
17409
17474
  var sortOpts = this.sortOpts;
17410
17475
  var multiple = sortOpts.multiple,
@@ -17437,7 +17502,7 @@ var Methods = {
17437
17502
  var column = field;
17438
17503
 
17439
17504
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isString(field)) {
17440
- column = _this36.getColumnByField(field);
17505
+ column = _this37.getColumnByField(field);
17441
17506
  }
17442
17507
 
17443
17508
  if (column && (column.sortable || column.remoteSort)) {
@@ -17446,7 +17511,7 @@ var Methods = {
17446
17511
  }
17447
17512
 
17448
17513
  if (orders.indexOf(order) === -1) {
17449
- order = getNextSortOrder(_this36, column);
17514
+ order = getNextSortOrder(_this37, column);
17450
17515
  }
17451
17516
 
17452
17517
  if (column.order !== order) {
@@ -17594,7 +17659,7 @@ var Methods = {
17594
17659
  * @param {Row} row 行对象
17595
17660
  */
17596
17661
  reloadRowExpand: function reloadRowExpand(row) {
17597
- var _this37 = this;
17662
+ var _this38 = this;
17598
17663
 
17599
17664
  var expandOpts = this.expandOpts,
17600
17665
  expandLazyLoadeds = this.expandLazyLoadeds;
@@ -17602,7 +17667,7 @@ var Methods = {
17602
17667
 
17603
17668
  if (lazy && expandLazyLoadeds.indexOf(row) === -1) {
17604
17669
  this.clearRowExpandLoaded(row).then(function () {
17605
- return _this37.handleAsyncRowExpand(row);
17670
+ return _this38.handleAsyncRowExpand(row);
17606
17671
  });
17607
17672
  }
17608
17673
 
@@ -17679,28 +17744,28 @@ var Methods = {
17679
17744
  return this.setRowExpand(this.expandOpts.lazy ? this.tableData : this.tableFullData, expanded);
17680
17745
  },
17681
17746
  handleAsyncRowExpand: function handleAsyncRowExpand(row) {
17682
- var _this38 = this;
17747
+ var _this39 = this;
17683
17748
 
17684
17749
  var rest = this.fullAllDataRowMap.get(row);
17685
17750
  return new Promise(function (resolve) {
17686
- _this38.expandLazyLoadeds.push(row);
17751
+ _this39.expandLazyLoadeds.push(row);
17687
17752
 
17688
- _this38.expandOpts.loadMethod({
17689
- $table: _this38,
17753
+ _this39.expandOpts.loadMethod({
17754
+ $table: _this39,
17690
17755
  row: row,
17691
- rowIndex: _this38.getRowIndex(row),
17692
- $rowIndex: _this38.getVMRowIndex(row)
17756
+ rowIndex: _this39.getRowIndex(row),
17757
+ $rowIndex: _this39.getVMRowIndex(row)
17693
17758
  }).catch(function (e) {
17694
17759
  return e;
17695
17760
  }).then(function () {
17696
17761
  rest.expandLoaded = true;
17697
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(_this38.expandLazyLoadeds, function (item) {
17762
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.remove(_this39.expandLazyLoadeds, function (item) {
17698
17763
  return item === row;
17699
17764
  });
17700
17765
 
17701
- _this38.rowExpandeds.push(row);
17766
+ _this39.rowExpandeds.push(row);
17702
17767
 
17703
- resolve(_this38.$nextTick().then(_this38.recalculate));
17768
+ resolve(_this39.$nextTick().then(_this39.recalculate));
17704
17769
  });
17705
17770
  });
17706
17771
  },
@@ -17713,7 +17778,7 @@ var Methods = {
17713
17778
  * @param {Boolean} expanded 是否展开
17714
17779
  */
17715
17780
  setRowExpand: function setRowExpand(rows, expanded) {
17716
- var _this39 = this;
17781
+ var _this40 = this;
17717
17782
 
17718
17783
  var fullAllDataRowMap = this.fullAllDataRowMap,
17719
17784
  expandLazyLoadeds = this.expandLazyLoadeds,
@@ -17746,8 +17811,8 @@ var Methods = {
17746
17811
  columnIndex: columnIndex,
17747
17812
  $columnIndex: $columnIndex,
17748
17813
  row: row,
17749
- rowIndex: _this39.getRowIndex(row),
17750
- $rowIndex: _this39.getVMRowIndex(row)
17814
+ rowIndex: _this40.getRowIndex(row),
17815
+ $rowIndex: _this40.getVMRowIndex(row)
17751
17816
  });
17752
17817
  }) : rows;
17753
17818
 
@@ -17758,7 +17823,7 @@ var Methods = {
17758
17823
  var isLoad = lazy && !rest.expandLoaded && expandLazyLoadeds.indexOf(row) === -1;
17759
17824
 
17760
17825
  if (isLoad) {
17761
- lazyRests.push(_this39.handleAsyncRowExpand(row));
17826
+ lazyRests.push(_this40.handleAsyncRowExpand(row));
17762
17827
  } else {
17763
17828
  rowExpandeds.push(row);
17764
17829
  }
@@ -17772,7 +17837,7 @@ var Methods = {
17772
17837
 
17773
17838
  if (reserve) {
17774
17839
  validRows.forEach(function (row) {
17775
- return _this39.handleRowExpandReserve(row, expanded);
17840
+ return _this40.handleRowExpandReserve(row, expanded);
17776
17841
  });
17777
17842
  }
17778
17843
  }
@@ -17793,7 +17858,7 @@ var Methods = {
17793
17858
  * 手动清空展开行状态,数据会恢复成未展开的状态
17794
17859
  */
17795
17860
  clearRowExpand: function clearRowExpand() {
17796
- var _this40 = this;
17861
+ var _this41 = this;
17797
17862
 
17798
17863
  var expandOpts = this.expandOpts,
17799
17864
  rowExpandeds = this.rowExpandeds,
@@ -17804,13 +17869,13 @@ var Methods = {
17804
17869
 
17805
17870
  if (reserve) {
17806
17871
  tableFullData.forEach(function (row) {
17807
- return _this40.handleRowExpandReserve(row, false);
17872
+ return _this41.handleRowExpandReserve(row, false);
17808
17873
  });
17809
17874
  }
17810
17875
 
17811
17876
  return this.$nextTick().then(function () {
17812
17877
  if (isExists) {
17813
- _this40.recalculate();
17878
+ _this41.recalculate();
17814
17879
  }
17815
17880
  });
17816
17881
  },
@@ -17883,7 +17948,7 @@ var Methods = {
17883
17948
  * @param {Row} row 行对象
17884
17949
  */
17885
17950
  reloadTreeExpand: function reloadTreeExpand(row) {
17886
- var _this41 = this;
17951
+ var _this42 = this;
17887
17952
 
17888
17953
  var treeOpts = this.treeOpts,
17889
17954
  treeLazyLoadeds = this.treeLazyLoadeds;
@@ -17893,13 +17958,13 @@ var Methods = {
17893
17958
 
17894
17959
  if (lazy && row[hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
17895
17960
  this.clearTreeExpandLoaded(row).then(function () {
17896
- return _this41.handleAsyncTreeExpandChilds(row);
17961
+ return _this42.handleAsyncTreeExpandChilds(row);
17897
17962
  }).then(function () {
17898
17963
  if (transform) {
17899
- return _this41.updateVirtualTreeData();
17964
+ return _this42.handleTableData();
17900
17965
  }
17901
17966
  }).then(function () {
17902
- return _this41.recalculate();
17967
+ return _this42.recalculate();
17903
17968
  });
17904
17969
  }
17905
17970
 
@@ -17975,7 +18040,7 @@ var Methods = {
17975
18040
  }
17976
18041
  },
17977
18042
  handleAsyncTreeExpandChilds: function handleAsyncTreeExpandChilds(row) {
17978
- var _this42 = this;
18043
+ var _this43 = this;
17979
18044
 
17980
18045
  var fullAllDataRowMap = this.fullAllDataRowMap,
17981
18046
  treeExpandeds = this.treeExpandeds,
@@ -17988,7 +18053,7 @@ var Methods = {
17988
18053
  return new Promise(function (resolve) {
17989
18054
  treeLazyLoadeds.push(row);
17990
18055
  loadMethod({
17991
- $table: _this42,
18056
+ $table: _this43,
17992
18057
  row: row
17993
18058
  }).catch(function () {
17994
18059
  return [];
@@ -18003,19 +18068,19 @@ var Methods = {
18003
18068
  }
18004
18069
 
18005
18070
  if (childRecords) {
18006
- _this42.loadTreeChildren(row, childRecords).then(function (childRows) {
18071
+ _this43.loadTreeChildren(row, childRecords).then(function (childRows) {
18007
18072
  if (childRows.length && treeExpandeds.indexOf(row) === -1) {
18008
18073
  treeExpandeds.push(row);
18009
18074
  } // 如果当前节点已选中,则展开后子节点也被选中
18010
18075
 
18011
18076
 
18012
- if (!checkStrictly && _this42.isCheckedByCheckboxRow(row)) {
18013
- _this42.setCheckboxRow(childRows, true);
18077
+ if (!checkStrictly && _this43.isCheckedByCheckboxRow(row)) {
18078
+ _this43.setCheckboxRow(childRows, true);
18014
18079
  }
18015
18080
  });
18016
18081
  }
18017
18082
 
18018
- resolve(_this42.$nextTick().then(_this42.recalculate));
18083
+ resolve(_this43.$nextTick().then(_this43.recalculate));
18019
18084
  });
18020
18085
  });
18021
18086
  },
@@ -18047,7 +18112,7 @@ var Methods = {
18047
18112
  * @returns
18048
18113
  */
18049
18114
  handleBaseTreeExpand: function handleBaseTreeExpand(rows, expanded) {
18050
- var _this43 = this;
18115
+ var _this44 = this;
18051
18116
 
18052
18117
  var fullAllDataRowMap = this.fullAllDataRowMap,
18053
18118
  tableFullData = this.tableFullData,
@@ -18095,7 +18160,7 @@ var Methods = {
18095
18160
  var isLoad = lazy && row[hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1; // 是否使用懒加载
18096
18161
 
18097
18162
  if (isLoad) {
18098
- result.push(_this43.handleAsyncTreeExpandChilds(row));
18163
+ result.push(_this44.handleAsyncTreeExpandChilds(row));
18099
18164
  } else {
18100
18165
  if (row[children] && row[children].length) {
18101
18166
  treeExpandeds.push(row);
@@ -18111,38 +18176,12 @@ var Methods = {
18111
18176
 
18112
18177
  if (reserve) {
18113
18178
  validRows.forEach(function (row) {
18114
- return _this43.handleTreeExpandReserve(row, expanded);
18179
+ return _this44.handleTreeExpandReserve(row, expanded);
18115
18180
  });
18116
18181
  }
18117
18182
 
18118
18183
  return Promise.all(result).then(this.recalculate);
18119
18184
  },
18120
- updateVirtualTreeData: function updateVirtualTreeData() {
18121
- var _this44 = this;
18122
-
18123
- var oldScrollYLoad = this.scrollYLoad,
18124
- treeExpandeds = this.treeExpandeds,
18125
- treeOpts = this.treeOpts,
18126
- treeFullData = this.treeFullData;
18127
- var fullData = [];
18128
- var expandMaps = new Map();
18129
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(treeFullData, function (row, index, items, path, parent) {
18130
- if (!parent || expandMaps.has(parent) && treeExpandeds.indexOf(parent) > -1) {
18131
- expandMaps.set(row, 1);
18132
- fullData.push(row);
18133
- }
18134
- }, treeOpts);
18135
- var scrollYLoad = this.updateScrollYStatus(fullData);
18136
- this.tableFullData = scrollYLoad ? fullData : treeFullData;
18137
-
18138
- if (scrollYLoad || oldScrollYLoad !== scrollYLoad) {
18139
- return this.handleTableData(true).then(function () {
18140
- return _this44.recalculate();
18141
- });
18142
- }
18143
-
18144
- return this.$nextTick();
18145
- },
18146
18185
 
18147
18186
  /**
18148
18187
  * 虚拟树的展开与收起
@@ -18154,7 +18193,7 @@ var Methods = {
18154
18193
  var _this45 = this;
18155
18194
 
18156
18195
  return this.handleBaseTreeExpand(rows, expanded).then(function () {
18157
- return _this45.updateVirtualTreeData();
18196
+ return _this45.handleTableData();
18158
18197
  }).then(function () {
18159
18198
  return _this45.recalculate();
18160
18199
  });
@@ -18216,7 +18255,7 @@ var Methods = {
18216
18255
  }, treeOpts);
18217
18256
  }
18218
18257
 
18219
- return this.updateVirtualTreeData().then(function () {
18258
+ return this.handleTableData().then(function () {
18220
18259
  if (isExists) {
18221
18260
  _this46.recalculate();
18222
18261
  }
@@ -20216,6 +20255,7 @@ function handleUupdateResize(_vm) {
20216
20255
 
20217
20256
 
20218
20257
 
20258
+
20219
20259
  var Table = Object.assign(table, {
20220
20260
  install: function install(Vue) {
20221
20261
  if (typeof window !== 'undefined' && window.VXETableMixin) {
@@ -20252,6 +20292,7 @@ var Table = Object.assign(table, {
20252
20292
 
20253
20293
 
20254
20294
 
20295
+
20255
20296
  /* harmony default export */ var panel = ({
20256
20297
  name: 'VxeTableFilter',
20257
20298
  props: {
@@ -20594,7 +20635,7 @@ var Table = Object.assign(table, {
20594
20635
  var maxHeight = null;
20595
20636
 
20596
20637
  if (filterHeight >= bodyElem.clientHeight) {
20597
- maxHeight = Math.max(40, bodyElem.clientHeight - (filterFootElem ? filterFootElem.offsetHeight : 0) - (filterHeadElem ? filterHeadElem.offsetHeight : 0));
20638
+ maxHeight = Math.max(60, bodyElem.clientHeight - (filterFootElem ? filterFootElem.offsetHeight : 0) - (filterHeadElem ? filterHeadElem.offsetHeight : 0));
20598
20639
  }
20599
20640
 
20600
20641
  if (column.fixed === 'left') {
@@ -20909,6 +20950,7 @@ var Filter = {
20909
20950
 
20910
20951
 
20911
20952
 
20953
+
20912
20954
  /* harmony default export */ var menu_src_mixin = ({
20913
20955
  methods: {
20914
20956
  /**
@@ -21302,7 +21344,7 @@ var Menu = {
21302
21344
  var mixin_getRowid = UtilTools.getRowid;
21303
21345
 
21304
21346
  function insertTreeRow(_vm, newRecords, isAppend) {
21305
- var treeFullData = _vm.treeFullData,
21347
+ var tableFullTreeData = _vm.tableFullTreeData,
21306
21348
  afterFullData = _vm.afterFullData,
21307
21349
  fullDataRowIdData = _vm.fullDataRowIdData,
21308
21350
  fullAllDataRowIdData = _vm.fullAllDataRowIdData,
@@ -21311,7 +21353,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21311
21353
  newRecords.forEach(function (item) {
21312
21354
  var parentRowId = item[treeOpts.parentField];
21313
21355
  var rowid = mixin_getRowid(_vm, item);
21314
- var matchObj = parentRowId ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
21356
+ var matchObj = parentRowId ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableFullTreeData, function (item) {
21315
21357
  return parentRowId === item[treeOpts.rowField];
21316
21358
  }, treeOpts) : null;
21317
21359
 
@@ -21343,7 +21385,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21343
21385
  if (false) {}
21344
21386
 
21345
21387
  afterFullData[funcName](item);
21346
- treeFullData[funcName](item);
21388
+ tableFullTreeData[funcName](item);
21347
21389
  var _rest = {
21348
21390
  row: item,
21349
21391
  rowid: rowid,
@@ -21351,7 +21393,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21351
21393
  index: -1,
21352
21394
  _index: -1,
21353
21395
  $index: -1,
21354
- items: treeFullData,
21396
+ items: tableFullTreeData,
21355
21397
  parent: null,
21356
21398
  level: 0
21357
21399
  };
@@ -21359,8 +21401,6 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21359
21401
  fullAllDataRowIdData[rowid] = _rest;
21360
21402
  }
21361
21403
  });
21362
-
21363
- _vm.updateVirtualTreeData();
21364
21404
  }
21365
21405
 
21366
21406
  /* harmony default export */ var edit_src_mixin = ({
@@ -21386,12 +21426,10 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21386
21426
  var _this = this,
21387
21427
  _editStore$insertList;
21388
21428
 
21389
- var treeFullData = this.treeFullData,
21429
+ var tableFullTreeData = this.tableFullTreeData,
21390
21430
  mergeList = this.mergeList,
21391
21431
  afterFullData = this.afterFullData,
21392
21432
  editStore = this.editStore,
21393
- sYOpts = this.sYOpts,
21394
- scrollYLoad = this.scrollYLoad,
21395
21433
  tableFullData = this.tableFullData,
21396
21434
  treeConfig = this.treeConfig,
21397
21435
  fullDataRowIdData = this.fullDataRowIdData,
@@ -21444,7 +21482,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21444
21482
  } else {
21445
21483
  // 如果为虚拟树
21446
21484
  if (treeConfig && transform) {
21447
- var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
21485
+ var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableFullTreeData, function (item) {
21448
21486
  return row[treeOpts.rowField] === item[treeOpts.rowField];
21449
21487
  }, treeOpts);
21450
21488
 
@@ -21477,7 +21515,6 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21477
21515
  fullDataRowIdData[rowid] = rest;
21478
21516
  fullAllDataRowIdData[rowid] = rest;
21479
21517
  });
21480
- this.updateVirtualTreeData();
21481
21518
  } else {
21482
21519
  if (false) {}
21483
21520
 
@@ -21513,14 +21550,13 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21513
21550
 
21514
21551
  (_editStore$insertList = editStore.insertList).unshift.apply(_editStore$insertList, _toConsumableArray(newRecords));
21515
21552
 
21516
- this.scrollYLoad = !treeConfig && sYOpts.gt > -1 && sYOpts.gt < tableFullData.length;
21517
- this.handleTableData(transform);
21553
+ this.handleTableData(treeConfig && treeOpts.transform);
21518
21554
  this.updateFooter();
21519
21555
  this.cacheRowMap();
21520
21556
  this.updateAfterDataIndex();
21521
21557
  this.checkSelectionStatus();
21522
21558
 
21523
- if (scrollYLoad) {
21559
+ if (this.scrollYLoad) {
21524
21560
  this.updateScrollYSpace();
21525
21561
  }
21526
21562
 
@@ -21547,15 +21583,13 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21547
21583
 
21548
21584
  var afterFullData = this.afterFullData,
21549
21585
  tableFullData = this.tableFullData,
21550
- treeFullData = this.treeFullData,
21586
+ tableFullTreeData = this.tableFullTreeData,
21551
21587
  treeConfig = this.treeConfig,
21552
21588
  mergeList = this.mergeList,
21553
21589
  editStore = this.editStore,
21554
21590
  checkboxOpts = this.checkboxOpts,
21555
21591
  selection = this.selection,
21556
21592
  isInsertByRow = this.isInsertByRow,
21557
- sYOpts = this.sYOpts,
21558
- scrollYLoad = this.scrollYLoad,
21559
21593
  treeOpts = this.treeOpts;
21560
21594
  var transform = treeOpts.transform;
21561
21595
  var actived = editStore.actived,
@@ -21598,7 +21632,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21598
21632
  if (treeConfig && transform) {
21599
21633
  rows.forEach(function (row) {
21600
21634
  var rowid = mixin_getRowid(_this2, row);
21601
- var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
21635
+ var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableFullTreeData, function (item) {
21602
21636
  return rowid === mixin_getRowid(_this2, item);
21603
21637
  }, treeOpts);
21604
21638
 
@@ -21612,8 +21646,6 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21612
21646
  if (afIndex > -1) {
21613
21647
  afterFullData.splice(afIndex, 1);
21614
21648
  }
21615
-
21616
- _this2.updateVirtualTreeData();
21617
21649
  });
21618
21650
  } else {
21619
21651
  rows.forEach(function (row) {
@@ -21657,14 +21689,13 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21657
21689
  insertList.splice(iIndex, 1);
21658
21690
  }
21659
21691
  });
21660
- this.scrollYLoad = !treeConfig && sYOpts.gt > -1 && sYOpts.gt < tableFullData.length;
21661
- this.handleTableData(transform);
21692
+ this.handleTableData(treeConfig && treeOpts.transform);
21662
21693
  this.updateFooter();
21663
21694
  this.cacheRowMap();
21664
21695
  this.updateAfterDataIndex();
21665
21696
  this.checkSelectionStatus();
21666
21697
 
21667
- if (scrollYLoad) {
21698
+ if (this.scrollYLoad) {
21668
21699
  this.updateScrollYSpace();
21669
21700
  }
21670
21701
 
@@ -21739,7 +21770,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21739
21770
  var _this6 = this;
21740
21771
 
21741
21772
  var treeConfig = this.treeConfig,
21742
- treeFullData = this.treeFullData,
21773
+ tableFullTreeData = this.tableFullTreeData,
21743
21774
  tableFullData = this.tableFullData,
21744
21775
  treeOpts = this.treeOpts;
21745
21776
  var insertList = this.editStore.insertList;
@@ -21750,7 +21781,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
21750
21781
  if (treeConfig && treeOpts.transform) {
21751
21782
  insertList.forEach(function (row) {
21752
21783
  var rowid = mixin_getRowid(_this6, row);
21753
- var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
21784
+ var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(tableFullTreeData, function (item) {
21754
21785
  return rowid === mixin_getRowid(_this6, item);
21755
21786
  }, treeOpts);
21756
21787
 
@@ -22237,6 +22268,7 @@ function _arrayWithHoles(arr) {
22237
22268
 
22238
22269
 
22239
22270
 
22271
+
22240
22272
  function _iterableToArrayLimit(arr, i) {
22241
22273
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
22242
22274
 
@@ -22293,6 +22325,8 @@ function _slicedToArray(arr, i) {
22293
22325
 
22294
22326
 
22295
22327
 
22328
+
22329
+
22296
22330
  var allActivedModals = [];
22297
22331
  var msgQueue = [];
22298
22332
  /* harmony default export */ var modal = ({
@@ -23493,6 +23527,7 @@ var es_string_pad_start = __webpack_require__("4d90");
23493
23527
 
23494
23528
 
23495
23529
 
23530
+
23496
23531
  var yearSize = 20;
23497
23532
  var monthSize = 20;
23498
23533
  var quarterSize = 8;
@@ -26031,6 +26066,7 @@ function renderExtraSuffixIcon(h, _vm) {
26031
26066
 
26032
26067
 
26033
26068
 
26069
+
26034
26070
  function isOptionVisible(option) {
26035
26071
  return option.visible !== false;
26036
26072
  }
@@ -26040,7 +26076,7 @@ function getOptUniqueId() {
26040
26076
  }
26041
26077
 
26042
26078
  function getOptkey(_vm) {
26043
- return _vm.optionId || '_XID';
26079
+ return _vm.optionId || '_X_ID';
26044
26080
  }
26045
26081
 
26046
26082
  function getOptid(_vm, option) {
@@ -26925,6 +26961,7 @@ function select_renderOpts(h, _vm) {
26925
26961
 
26926
26962
 
26927
26963
 
26964
+
26928
26965
  var util_OptionConfig = /*#__PURE__*/function () {
26929
26966
  function OptionConfig($xeselect, _vm) {
26930
26967
  _classCallCheck(this, OptionConfig);
@@ -27049,6 +27086,7 @@ Object.keys(option_props).forEach(function (name) {
27049
27086
 
27050
27087
 
27051
27088
 
27089
+
27052
27090
  /* harmony default export */ var export_panel = ({
27053
27091
  name: 'VxeExportPanel',
27054
27092
  props: {
@@ -27588,6 +27626,7 @@ Object.keys(option_props).forEach(function (name) {
27588
27626
 
27589
27627
 
27590
27628
 
27629
+
27591
27630
  /* harmony default export */ var import_panel = ({
27592
27631
  name: 'VxeImportPanel',
27593
27632
  props: {
@@ -29662,6 +29701,7 @@ var convertToRows = function convertToRows(originColumns) {
29662
29701
 
29663
29702
 
29664
29703
 
29704
+
29665
29705
  function print(options) {
29666
29706
  var opts = Object.assign({}, options, {
29667
29707
  type: 'html'
@@ -29700,6 +29740,7 @@ var Export = {
29700
29740
 
29701
29741
 
29702
29742
 
29743
+
29703
29744
  function getTargetOffset(target, container) {
29704
29745
  var offsetTop = 0;
29705
29746
  var offsetLeft = 0;
@@ -30188,6 +30229,9 @@ var Keyboard = {
30188
30229
 
30189
30230
 
30190
30231
 
30232
+
30233
+
30234
+
30191
30235
  /**
30192
30236
  * 校验规则
30193
30237
  */
@@ -31085,6 +31129,7 @@ var cellType = 'header';
31085
31129
  // CONCATENATED MODULE: ./packages/header/index.js
31086
31130
 
31087
31131
 
31132
+
31088
31133
  var Header = Object.assign(header, {
31089
31134
  install: function install(Vue) {
31090
31135
  Vue.component(header.name, header);
@@ -31098,6 +31143,7 @@ var Header = Object.assign(header, {
31098
31143
 
31099
31144
 
31100
31145
 
31146
+
31101
31147
  var footer_cellType = 'footer';
31102
31148
 
31103
31149
  function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
@@ -31446,6 +31492,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
31446
31492
  // CONCATENATED MODULE: ./packages/footer/index.js
31447
31493
 
31448
31494
 
31495
+
31449
31496
  var Footer = Object.assign(footer, {
31450
31497
  install: function install(Vue) {
31451
31498
  Vue.component(footer.name, footer);
@@ -31603,6 +31650,7 @@ Object.keys(column_props).forEach(function (name) {
31603
31650
  // CONCATENATED MODULE: ./packages/column/index.js
31604
31651
 
31605
31652
 
31653
+
31606
31654
  var Column = Object.assign(src_column, {
31607
31655
  install: function install(Vue) {
31608
31656
  Vue.component(src_column.name, src_column); // 兼容旧用法
@@ -31626,6 +31674,7 @@ var Column = Object.assign(src_column, {
31626
31674
  // CONCATENATED MODULE: ./packages/colgroup/index.js
31627
31675
 
31628
31676
 
31677
+
31629
31678
  var Colgroup = Object.assign(src_group, {
31630
31679
  install: function install(Vue) {
31631
31680
  Vue.component(src_group.name, src_group); // 兼容旧用法
@@ -32853,6 +32902,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
32853
32902
 
32854
32903
 
32855
32904
 
32905
+
32856
32906
  var Grid = Object.assign(grid, {
32857
32907
  install: function install(Vue) {
32858
32908
  v_x_e_table.Grid = grid;
@@ -32874,6 +32924,8 @@ var Grid = Object.assign(grid, {
32874
32924
 
32875
32925
 
32876
32926
 
32927
+
32928
+
32877
32929
  var renderDropdowns = function renderDropdowns(h, _vm, item, isBtn) {
32878
32930
  var _e = _vm._e;
32879
32931
  var dropdowns = item.dropdowns;
@@ -33645,6 +33697,7 @@ function renderCustoms(h, _vm) {
33645
33697
  // CONCATENATED MODULE: ./packages/toolbar/index.js
33646
33698
 
33647
33699
 
33700
+
33648
33701
  var Toolbar = Object.assign(src_toolbar, {
33649
33702
  install: function install(Vue) {
33650
33703
  Vue.component(src_toolbar.name, src_toolbar);
@@ -34134,6 +34187,7 @@ var Toolbar = Object.assign(src_toolbar, {
34134
34187
  // CONCATENATED MODULE: ./packages/pager/index.js
34135
34188
 
34136
34189
 
34190
+
34137
34191
  var Pager = Object.assign(pager, {
34138
34192
  install: function install(Vue) {
34139
34193
  Vue.component(pager.name, pager);
@@ -34143,6 +34197,7 @@ var Pager = Object.assign(pager, {
34143
34197
  // CONCATENATED MODULE: ./packages/checkbox/index.js
34144
34198
 
34145
34199
 
34200
+
34146
34201
  var Checkbox = Object.assign(src_checkbox, {
34147
34202
  install: function install(Vue) {
34148
34203
  Vue.component(src_checkbox.name, src_checkbox);
@@ -34152,6 +34207,7 @@ var Checkbox = Object.assign(src_checkbox, {
34152
34207
  // CONCATENATED MODULE: ./packages/checkbox/src/group.js
34153
34208
 
34154
34209
 
34210
+
34155
34211
  /* harmony default export */ var checkbox_src_group = ({
34156
34212
  name: 'VxeCheckboxGroup',
34157
34213
  props: {
@@ -34205,6 +34261,7 @@ var Checkbox = Object.assign(src_checkbox, {
34205
34261
  // CONCATENATED MODULE: ./packages/checkbox-group/index.js
34206
34262
 
34207
34263
 
34264
+
34208
34265
  var CheckboxGroup = Object.assign(checkbox_src_group, {
34209
34266
  install: function install(Vue) {
34210
34267
  Vue.component(checkbox_src_group.name, checkbox_src_group);
@@ -34214,6 +34271,7 @@ var CheckboxGroup = Object.assign(checkbox_src_group, {
34214
34271
  // CONCATENATED MODULE: ./packages/radio/index.js
34215
34272
 
34216
34273
 
34274
+
34217
34275
  var Radio = Object.assign(src_radio, {
34218
34276
  install: function install(Vue) {
34219
34277
  Vue.component(src_radio.name, src_radio);
@@ -34267,6 +34325,7 @@ var Radio = Object.assign(src_radio, {
34267
34325
  // CONCATENATED MODULE: ./packages/radio-group/index.js
34268
34326
 
34269
34327
 
34328
+
34270
34329
  var RadioGroup = Object.assign(radio_src_group, {
34271
34330
  install: function install(Vue) {
34272
34331
  Vue.component(radio_src_group.name, radio_src_group);
@@ -34370,6 +34429,7 @@ var RadioGroup = Object.assign(radio_src_group, {
34370
34429
  // CONCATENATED MODULE: ./packages/radio-button/index.js
34371
34430
 
34372
34431
 
34432
+
34373
34433
  var RadioButton = Object.assign(src_button, {
34374
34434
  install: function install(Vue) {
34375
34435
  Vue.component(src_button.name, src_button);
@@ -34379,6 +34439,7 @@ var RadioButton = Object.assign(src_button, {
34379
34439
  // CONCATENATED MODULE: ./packages/input/index.js
34380
34440
 
34381
34441
 
34442
+
34382
34443
  var Input = Object.assign(input, {
34383
34444
  install: function install(Vue) {
34384
34445
  Vue.component(input.name, input);
@@ -34397,6 +34458,7 @@ var Input = Object.assign(input, {
34397
34458
 
34398
34459
 
34399
34460
 
34461
+
34400
34462
  var autoTxtElem;
34401
34463
  /* harmony default export */ var src_textarea = ({
34402
34464
  name: 'VxeTextarea',
@@ -34665,6 +34727,7 @@ var autoTxtElem;
34665
34727
  // CONCATENATED MODULE: ./packages/textarea/index.js
34666
34728
 
34667
34729
 
34730
+
34668
34731
  var Textarea = Object.assign(src_textarea, {
34669
34732
  install: function install(Vue) {
34670
34733
  Vue.component(src_textarea.name, src_textarea);
@@ -35068,6 +35131,7 @@ var Textarea = Object.assign(src_textarea, {
35068
35131
  // CONCATENATED MODULE: ./packages/button/index.js
35069
35132
 
35070
35133
 
35134
+
35071
35135
  var Button = Object.assign(button_src_button, {
35072
35136
  install: function install(Vue) {
35073
35137
  Vue.component(button_src_button.name, button_src_button);
@@ -35082,6 +35146,8 @@ var Button = Object.assign(button_src_button, {
35082
35146
 
35083
35147
 
35084
35148
 
35149
+
35150
+
35085
35151
  /* eslint-disable @typescript-eslint/no-use-before-define */
35086
35152
 
35087
35153
  var ModalClass = null;
@@ -35217,6 +35283,7 @@ var Modal = Object.assign(modal, {
35217
35283
 
35218
35284
 
35219
35285
 
35286
+
35220
35287
  function updateTipStyle(_vm) {
35221
35288
  var wrapperElem = _vm.$el,
35222
35289
  tipTarget = _vm.tipTarget,
@@ -35537,6 +35604,7 @@ function updateTipStyle(_vm) {
35537
35604
 
35538
35605
 
35539
35606
 
35607
+
35540
35608
  var Tooltip = Object.assign(src_tooltip, {
35541
35609
  install: function install(Vue) {
35542
35610
  v_x_e_table._tooltip = 1;
@@ -35553,6 +35621,7 @@ var Tooltip = Object.assign(src_tooltip, {
35553
35621
 
35554
35622
 
35555
35623
 
35624
+
35556
35625
  var util_ItemConfig = /*#__PURE__*/function () {
35557
35626
  function ItemConfig($xeform, item) {
35558
35627
  _classCallCheck(this, ItemConfig);
@@ -35730,6 +35799,9 @@ function renderTitle(h, _vm, item) {
35730
35799
 
35731
35800
 
35732
35801
 
35802
+
35803
+
35804
+
35733
35805
 
35734
35806
 
35735
35807
 
@@ -36562,6 +36634,7 @@ function renderItems(h, _vm, itemList) {
36562
36634
  // CONCATENATED MODULE: ./packages/form/index.js
36563
36635
 
36564
36636
 
36637
+
36565
36638
  var Form = Object.assign(src_form, {
36566
36639
  install: function install(Vue) {
36567
36640
  Vue.component(src_form.name, src_form);
@@ -36751,6 +36824,7 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
36751
36824
  // CONCATENATED MODULE: ./packages/form-item/index.js
36752
36825
 
36753
36826
 
36827
+
36754
36828
  var FormItem = Object.assign(form_item, {
36755
36829
  install: function install(Vue) {
36756
36830
  Vue.component(form_item.name, form_item);
@@ -36780,6 +36854,7 @@ var FormItem = Object.assign(form_item, {
36780
36854
  // CONCATENATED MODULE: ./packages/form-gather/index.js
36781
36855
 
36782
36856
 
36857
+
36783
36858
  var FormGather = Object.assign(form_gather, {
36784
36859
  install: function install(Vue) {
36785
36860
  Vue.component(form_gather.name, form_gather);
@@ -36846,6 +36921,7 @@ Object.keys(optgroup_props).forEach(function (name) {
36846
36921
 
36847
36922
 
36848
36923
 
36924
+
36849
36925
  var Select = Object.assign(src_select, {
36850
36926
  Option: src_option,
36851
36927
  Optgroup: optgroup,
@@ -36859,6 +36935,7 @@ var Select = Object.assign(src_select, {
36859
36935
  // CONCATENATED MODULE: ./packages/optgroup/index.js
36860
36936
 
36861
36937
 
36938
+
36862
36939
  var Optgroup = Object.assign(optgroup, {
36863
36940
  install: function install(Vue) {
36864
36941
  Vue.component(optgroup.name, optgroup);
@@ -36868,6 +36945,7 @@ var Optgroup = Object.assign(optgroup, {
36868
36945
  // CONCATENATED MODULE: ./packages/option/index.js
36869
36946
 
36870
36947
 
36948
+
36871
36949
  var Option = Object.assign(src_option, {
36872
36950
  install: function install(Vue) {
36873
36951
  Vue.component(src_option.name, src_option);
@@ -37022,6 +37100,7 @@ var Option = Object.assign(src_option, {
37022
37100
  // CONCATENATED MODULE: ./packages/switch/index.js
37023
37101
 
37024
37102
 
37103
+
37025
37104
  var Switch = Object.assign(src_switch, {
37026
37105
  install: function install(Vue) {
37027
37106
  Vue.component(src_switch.name, src_switch);
@@ -37037,6 +37116,8 @@ var Switch = Object.assign(src_switch, {
37037
37116
 
37038
37117
 
37039
37118
 
37119
+
37120
+
37040
37121
  /* harmony default export */ var src_list = ({
37041
37122
  name: 'VxeList',
37042
37123
  mixins: [size],
@@ -37403,6 +37484,7 @@ var Switch = Object.assign(src_switch, {
37403
37484
  // CONCATENATED MODULE: ./packages/list/index.js
37404
37485
 
37405
37486
 
37487
+
37406
37488
  var List = Object.assign(src_list, {
37407
37489
  install: function install(Vue) {
37408
37490
  Vue.component(src_list.name, src_list);
@@ -37415,6 +37497,8 @@ var List = Object.assign(src_list, {
37415
37497
 
37416
37498
 
37417
37499
 
37500
+
37501
+
37418
37502
  /* harmony default export */ var pulldown = ({
37419
37503
  name: 'VxePulldown',
37420
37504
  mixins: [size],
@@ -37715,6 +37799,7 @@ var List = Object.assign(src_list, {
37715
37799
  // CONCATENATED MODULE: ./packages/pulldown/index.js
37716
37800
 
37717
37801
 
37802
+
37718
37803
  var Pulldown = Object.assign(pulldown, {
37719
37804
  install: function install(Vue) {
37720
37805
  Vue.component(pulldown.name, pulldown);