vxe-table 3.6.14-beta.0 → 3.6.14-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.
Files changed (41) hide show
  1. package/lib/edit/src/mixin.js +23 -31
  2. package/lib/edit/src/mixin.min.js +1 -1
  3. package/lib/form/src/form-config-item.js +3 -1
  4. package/lib/form/src/form-config-item.min.js +1 -1
  5. package/lib/form/src/form-item.js +3 -1
  6. package/lib/form/src/form-item.min.js +1 -1
  7. package/lib/icon/style/style.css +1 -1
  8. package/lib/icon/style/style.min.css +1 -1
  9. package/lib/index.css +1 -1
  10. package/lib/index.umd.js +363 -348
  11. package/lib/index.umd.min.js +1 -1
  12. package/lib/select/src/select.js +8 -2
  13. package/lib/select/src/select.min.js +1 -1
  14. package/lib/style.css +1 -1
  15. package/lib/style.min.css +1 -1
  16. package/lib/table/src/body.js +5 -5
  17. package/lib/table/src/body.min.js +1 -1
  18. package/lib/table/src/methods.js +318 -307
  19. package/lib/table/src/methods.min.js +1 -1
  20. package/lib/table/src/table.js +3 -1
  21. package/lib/table/src/table.min.js +1 -1
  22. package/lib/tools/log.js +1 -1
  23. package/lib/tools/log.min.js +1 -1
  24. package/lib/v-x-e-table/index.js +1 -1
  25. package/lib/v-x-e-table/index.min.js +1 -1
  26. package/package.json +1 -1
  27. package/packages/edit/src/mixin.js +18 -22
  28. package/packages/form/src/form-config-item.js +3 -1
  29. package/packages/form/src/form-item.js +3 -1
  30. package/packages/select/src/select.js +4 -2
  31. package/packages/table/src/body.js +5 -5
  32. package/packages/table/src/methods.js +38 -28
  33. package/packages/table/src/table.js +3 -1
  34. package/types/table.d.ts +1 -0
  35. package/types/v-x-e-table/renderer.d.ts +9 -7
  36. /package/lib/icon/style/{iconfont.1682555826742.ttf → iconfont.1683440144042.ttf} +0 -0
  37. /package/lib/icon/style/{iconfont.1682555826742.woff → iconfont.1683440144042.woff} +0 -0
  38. /package/lib/icon/style/{iconfont.1682555826742.woff2 → iconfont.1683440144042.woff2} +0 -0
  39. /package/lib/{iconfont.1682555826742.ttf → iconfont.1683440144042.ttf} +0 -0
  40. /package/lib/{iconfont.1682555826742.woff → iconfont.1683440144042.woff} +0 -0
  41. /package/lib/{iconfont.1682555826742.woff2 → iconfont.1683440144042.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -13086,7 +13086,8 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
13086
13086
  var rowHeight = rowOpts.height;
13087
13087
  var renderOpts = editRender || cellRender;
13088
13088
  var compConf = renderOpts ? v_x_e_table.renderer.get(renderOpts.name) : null;
13089
- var cellClassName = compConf ? compConf.cellClassName : '';
13089
+ var compCellClassName = compConf ? compConf.cellClassName : '';
13090
+ var compCellStyle = compConf ? compConf.cellStyle : '';
13090
13091
  var showAllTip = tooltipOpts.showAll || tooltipOpts.enabled;
13091
13092
  var columnIndex = $xetable.getColumnIndex(column);
13092
13093
  var _columnIndex = $xetable.getVTColumnIndex(column);
@@ -13268,12 +13269,12 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
13268
13269
  }
13269
13270
  }
13270
13271
  return h('td', {
13271
- "class": ['vxe-body--column', column.id, (_ref2 = {}, _defineProperty(_ref2, "col--".concat(cellAlign), cellAlign), _defineProperty(_ref2, "col--".concat(type), type), _defineProperty(_ref2, 'col--last', $columnIndex === columns.length - 1), _defineProperty(_ref2, 'col--tree-node', treeNode), _defineProperty(_ref2, 'col--edit', isEdit), _defineProperty(_ref2, 'col--ellipsis', hasEllipsis), _defineProperty(_ref2, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref2, 'col--dirty', isDirty), _defineProperty(_ref2, 'col--actived', editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row')), _defineProperty(_ref2, 'col--valid-error', hasValidError), _defineProperty(_ref2, 'col--current', currentColumn === column), _ref2), utils.getClass(cellClassName, params), utils.getClass(className, params), utils.getClass(allCellClassName, params)],
13272
+ "class": ['vxe-body--column', column.id, (_ref2 = {}, _defineProperty(_ref2, "col--".concat(cellAlign), cellAlign), _defineProperty(_ref2, "col--".concat(type), type), _defineProperty(_ref2, 'col--last', $columnIndex === columns.length - 1), _defineProperty(_ref2, 'col--tree-node', treeNode), _defineProperty(_ref2, 'col--edit', isEdit), _defineProperty(_ref2, 'col--ellipsis', hasEllipsis), _defineProperty(_ref2, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref2, 'col--dirty', isDirty), _defineProperty(_ref2, 'col--actived', editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row')), _defineProperty(_ref2, 'col--valid-error', hasValidError), _defineProperty(_ref2, 'col--current', currentColumn === column), _ref2), utils.getClass(compCellClassName, params), utils.getClass(className, params), utils.getClass(allCellClassName, params)],
13272
13273
  key: columnKey || columnOpts.useKey ? column.id : $columnIndex,
13273
13274
  attrs: attrs,
13274
13275
  style: Object.assign({
13275
13276
  height: hasEllipsis && (scrollYRHeight || rowHeight) ? "".concat(scrollYRHeight || rowHeight, "px") : ''
13276
- }, cellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cellStyle) ? cellStyle(params) : cellStyle : null),
13277
+ }, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(compCellStyle) ? compCellStyle(params) : compCellStyle, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cellStyle) ? cellStyle(params) : cellStyle),
13277
13278
  on: tdOns
13278
13279
  }, tdVNs);
13279
13280
  }
@@ -13291,7 +13292,6 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
13291
13292
  editOpts = $xetable.editOpts,
13292
13293
  treeExpandeds = $xetable.treeExpandeds,
13293
13294
  scrollYLoad = $xetable.scrollYLoad,
13294
- editStore = $xetable.editStore,
13295
13295
  rowExpandeds = $xetable.rowExpandeds,
13296
13296
  radioOpts = $xetable.radioOpts,
13297
13297
  checkboxOpts = $xetable.checkboxOpts,
@@ -13347,7 +13347,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
13347
13347
  // 是否新增行
13348
13348
  var isNewRow = false;
13349
13349
  if (editConfig) {
13350
- isNewRow = editStore.insertList.indexOf(row) > -1;
13350
+ isNewRow = $xetable.isInsertByRow(row);
13351
13351
  }
13352
13352
  if (treeConfig && !scrollYLoad && !treeOpts.transform && treeExpandeds.length) {
13353
13353
  rowChildren = row[treeOpts.children];
@@ -15743,8 +15743,9 @@ var Methods = {
15743
15743
  treeOpts = this.treeOpts,
15744
15744
  sYOpts = this.sYOpts;
15745
15745
  var transform = treeOpts.transform;
15746
+ var allList = fullData || this.tableFullData;
15746
15747
  // 如果gt为0,则总是启用
15747
- var scrollYLoad = (transform || !treeConfig) && !!sYOpts.enabled && sYOpts.gt > -1 && (sYOpts.gt === 0 || sYOpts.gt <= fullData.length);
15748
+ var scrollYLoad = (transform || !treeConfig) && !!sYOpts.enabled && sYOpts.gt > -1 && (sYOpts.gt === 0 || sYOpts.gt <= allList.length);
15748
15749
  this.scrollYLoad = scrollYLoad;
15749
15750
  return scrollYLoad;
15750
15751
  },
@@ -15787,7 +15788,9 @@ var Methods = {
15787
15788
  scrollXStore.startIndex = 0;
15788
15789
  scrollXStore.endIndex = 1;
15789
15790
  editStore.insertList = [];
15791
+ editStore.insertMaps = {};
15790
15792
  editStore.removeList = [];
15793
+ editStore.removeMaps = {};
15791
15794
  var sYLoad = this.updateScrollYStatus(fullData);
15792
15795
  this.scrollYLoad = sYLoad;
15793
15796
  // 全量数据
@@ -16278,47 +16281,53 @@ var Methods = {
16278
16281
  },
16279
16282
  /**
16280
16283
  * 定义行数据中的列属性,如果不存在则定义
16281
- * @param {Row} record 行数据
16284
+ * @param {Row} records 行数据
16282
16285
  */
16283
- defineField: function defineField(record) {
16286
+ defineField: function defineField(records) {
16287
+ var _this13 = this;
16284
16288
  var radioOpts = this.radioOpts,
16285
16289
  checkboxOpts = this.checkboxOpts,
16286
16290
  treeConfig = this.treeConfig,
16287
16291
  treeOpts = this.treeOpts,
16288
16292
  expandOpts = this.expandOpts;
16289
16293
  var rowkey = getRowkey(this);
16290
- this.tableFullColumn.forEach(function (column) {
16291
- var field = column.field,
16292
- editRender = column.editRender;
16293
- if (field && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().has(record, field)) {
16294
- var cellValue = null;
16295
- if (editRender) {
16296
- var defaultValue = editRender.defaultValue;
16297
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(defaultValue)) {
16298
- cellValue = defaultValue({
16299
- column: column
16300
- });
16301
- } else if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(defaultValue)) {
16302
- cellValue = defaultValue;
16294
+ if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(records)) {
16295
+ records = [records];
16296
+ }
16297
+ return records.map(function (record) {
16298
+ _this13.tableFullColumn.forEach(function (column) {
16299
+ var field = column.field,
16300
+ editRender = column.editRender;
16301
+ if (field && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().has(record, field)) {
16302
+ var cellValue = null;
16303
+ if (editRender) {
16304
+ var defaultValue = editRender.defaultValue;
16305
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(defaultValue)) {
16306
+ cellValue = defaultValue({
16307
+ column: column
16308
+ });
16309
+ } else if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(defaultValue)) {
16310
+ cellValue = defaultValue;
16311
+ }
16303
16312
  }
16313
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(record, field, cellValue);
16314
+ }
16315
+ });
16316
+ var otherFields = [radioOpts.labelField, checkboxOpts.checkField, checkboxOpts.labelField, expandOpts.labelField];
16317
+ otherFields.forEach(function (key) {
16318
+ if (key && eqEmptyValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(record, key))) {
16319
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(record, key, null);
16304
16320
  }
16305
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(record, field, cellValue);
16321
+ });
16322
+ if (treeConfig && treeOpts.lazy && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(record[treeOpts.children])) {
16323
+ record[treeOpts.children] = null;
16306
16324
  }
16307
- });
16308
- var otherFields = [radioOpts.labelField, checkboxOpts.checkField, checkboxOpts.labelField, expandOpts.labelField];
16309
- otherFields.forEach(function (key) {
16310
- if (key && eqEmptyValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(record, key))) {
16311
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(record, key, null);
16325
+ // 必须有行数据的唯一主键,可以自行设置;也可以默认生成一个随机数
16326
+ if (eqEmptyValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(record, rowkey))) {
16327
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(record, rowkey, getRowUniqueId());
16312
16328
  }
16329
+ return record;
16313
16330
  });
16314
- if (treeConfig && treeOpts.lazy && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(record[treeOpts.children])) {
16315
- record[treeOpts.children] = null;
16316
- }
16317
- // 必须有行数据的唯一主键,可以自行设置;也可以默认生成一个随机数
16318
- if (eqEmptyValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(record, rowkey))) {
16319
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(record, rowkey, getRowUniqueId());
16320
- }
16321
- return record;
16322
16331
  },
16323
16332
  /**
16324
16333
  * 创建 data 对象
@@ -16326,11 +16335,11 @@ var Methods = {
16326
16335
  * @param {Array} records 新数据
16327
16336
  */
16328
16337
  createData: function createData(records) {
16329
- var _this13 = this;
16338
+ var _this14 = this;
16330
16339
  var treeConfig = this.treeConfig,
16331
16340
  treeOpts = this.treeOpts;
16332
16341
  var handleRrecord = function handleRrecord(record) {
16333
- return _this13.defineField(Object.assign({}, record));
16342
+ return _this14.defineField(Object.assign({}, record));
16334
16343
  };
16335
16344
  var rows = treeConfig ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().mapTree(records, handleRrecord, treeOpts) : records.map(handleRrecord);
16336
16345
  return this.$nextTick().then(function () {
@@ -16343,13 +16352,13 @@ var Methods = {
16343
16352
  * @param {Array/Object} records 新数据
16344
16353
  */
16345
16354
  createRow: function createRow(records) {
16346
- var _this14 = this;
16355
+ var _this15 = this;
16347
16356
  var isArr = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(records);
16348
16357
  if (!isArr) {
16349
16358
  records = [records];
16350
16359
  }
16351
16360
  return this.$nextTick().then(function () {
16352
- return _this14.createData(records).then(function (rows) {
16361
+ return _this15.createData(records).then(function (rows) {
16353
16362
  return isArr ? rows : rows[0];
16354
16363
  });
16355
16364
  });
@@ -16362,7 +16371,7 @@ var Methods = {
16362
16371
  * 如果还额外传了 field 则还原指定的单元格数据
16363
16372
  */
16364
16373
  revertData: function revertData(rows, field) {
16365
- var _this15 = this;
16374
+ var _this16 = this;
16366
16375
  var keepSource = this.keepSource,
16367
16376
  tableSourceData = this.tableSourceData,
16368
16377
  treeConfig = this.treeConfig;
@@ -16380,8 +16389,8 @@ var Methods = {
16380
16389
  }
16381
16390
  if (targetRows.length) {
16382
16391
  targetRows.forEach(function (row) {
16383
- if (!_this15.isInsertByRow(row)) {
16384
- var rowIndex = _this15.getRowIndex(row);
16392
+ if (!_this16.isInsertByRow(row)) {
16393
+ var rowIndex = _this16.getRowIndex(row);
16385
16394
  if (treeConfig && rowIndex === -1) {
16386
16395
  errLog('vxe.error.noTree', ['revertData']);
16387
16396
  }
@@ -16438,7 +16447,9 @@ var Methods = {
16438
16447
  * @param {Row} row 行对象
16439
16448
  */
16440
16449
  isInsertByRow: function isInsertByRow(row) {
16441
- return this.editStore.insertList.indexOf(row) > -1;
16450
+ var editStore = this.editStore;
16451
+ var rowid = getRowid(this, row);
16452
+ return editStore.insertList.length && editStore.insertMaps[rowid];
16442
16453
  },
16443
16454
  /**
16444
16455
  * 删除所有新增的临时数据
@@ -16453,7 +16464,7 @@ var Methods = {
16453
16464
  * @param {String} field 字段名
16454
16465
  */
16455
16466
  isUpdateByRow: function isUpdateByRow(row, field) {
16456
- var _this16 = this;
16467
+ var _this17 = this;
16457
16468
  var visibleColumn = this.visibleColumn,
16458
16469
  keepSource = this.keepSource,
16459
16470
  treeConfig = this.treeConfig,
@@ -16470,7 +16481,7 @@ var Methods = {
16470
16481
  if (treeConfig) {
16471
16482
  var children = treeOpts.children;
16472
16483
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableSourceData, function (item) {
16473
- return rowid === getRowid(_this16, item);
16484
+ return rowid === getRowid(_this17, item);
16474
16485
  }, treeOpts);
16475
16486
  row = Object.assign({}, row, _defineProperty({}, children, null));
16476
16487
  if (matchObj) {
@@ -16541,7 +16552,7 @@ var Methods = {
16541
16552
  * 用于多选行,获取已选中的数据
16542
16553
  */
16543
16554
  getCheckboxRecords: function getCheckboxRecords(isFull) {
16544
- var _this17 = this;
16555
+ var _this18 = this;
16545
16556
  var tableFullData = this.tableFullData,
16546
16557
  afterFullData = this.afterFullData,
16547
16558
  treeConfig = this.treeConfig,
@@ -16571,13 +16582,13 @@ var Methods = {
16571
16582
  var selection = this.selection;
16572
16583
  if (treeConfig) {
16573
16584
  rowList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().filterTree(currTableData, function (row) {
16574
- return _this17.findRowIndexOf(selection, row) > -1;
16585
+ return _this18.findRowIndexOf(selection, row) > -1;
16575
16586
  }, {
16576
16587
  children: transform ? mapChildren : children
16577
16588
  });
16578
16589
  } else {
16579
16590
  rowList = currTableData.filter(function (row) {
16580
- return _this17.findRowIndexOf(selection, row) > -1;
16591
+ return _this18.findRowIndexOf(selection, row) > -1;
16581
16592
  });
16582
16593
  }
16583
16594
  }
@@ -16615,7 +16626,7 @@ var Methods = {
16615
16626
  * 如果存在筛选条件,继续处理
16616
16627
  */
16617
16628
  updateAfterFullData: function updateAfterFullData() {
16618
- var _this18 = this;
16629
+ var _this19 = this;
16619
16630
  var tableFullColumn = this.tableFullColumn,
16620
16631
  tableFullData = this.tableFullData,
16621
16632
  filterOpts = this.filterOpts,
@@ -16691,7 +16702,7 @@ var Methods = {
16691
16702
  cellValue: cellValue,
16692
16703
  row: row,
16693
16704
  column: column,
16694
- $table: _this18
16705
+ $table: _this19
16695
16706
  });
16696
16707
  });
16697
16708
  } else if (compFilterMethod) {
@@ -16702,7 +16713,7 @@ var Methods = {
16702
16713
  cellValue: cellValue,
16703
16714
  row: row,
16704
16715
  column: column,
16705
- $table: _this18
16716
+ $table: _this19
16706
16717
  });
16707
16718
  });
16708
16719
  } else if (allFilterMethod) {
@@ -16721,7 +16732,7 @@ var Methods = {
16721
16732
  cellValue: cellValue,
16722
16733
  row: row,
16723
16734
  column: column,
16724
- $table: _this18
16735
+ $table: _this19
16725
16736
  });
16726
16737
  });
16727
16738
  }
@@ -16769,7 +16780,7 @@ var Methods = {
16769
16780
  tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableTree, orderColumns.map(function (_ref2) {
16770
16781
  var column = _ref2.column,
16771
16782
  order = _ref2.order;
16772
- return [getOrderField(_this18, column), order];
16783
+ return [getOrderField(_this19, column), order];
16773
16784
  }));
16774
16785
  }
16775
16786
  tableData = tableTree;
@@ -16791,7 +16802,7 @@ var Methods = {
16791
16802
  tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableData, orderColumns.map(function (_ref3) {
16792
16803
  var column = _ref3.column,
16793
16804
  order = _ref3.order;
16794
- return [getOrderField(_this18, column), order];
16805
+ return [getOrderField(_this19, column), order];
16795
16806
  }));
16796
16807
  } else {
16797
16808
  // 兼容 v2,在 v4 中废弃, sortBy 不能为数组
@@ -16804,7 +16815,7 @@ var Methods = {
16804
16815
  tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableData, sortByConfs || [firstOrderColumn].map(function (_ref4) {
16805
16816
  var column = _ref4.column,
16806
16817
  order = _ref4.order;
16807
- return [getOrderField(_this18, column), order];
16818
+ return [getOrderField(_this19, column), order];
16808
16819
  }));
16809
16820
  }
16810
16821
  }
@@ -16820,7 +16831,7 @@ var Methods = {
16820
16831
  * 对渲染中的数据提前解析序号及索引。牺牲提前编译耗时换取渲染中额外损耗,使运行时更加流畅
16821
16832
  */
16822
16833
  updateAfterDataIndex: function updateAfterDataIndex() {
16823
- var _this19 = this;
16834
+ var _this20 = this;
16824
16835
  var treeConfig = this.treeConfig,
16825
16836
  afterFullData = this.afterFullData,
16826
16837
  fullDataRowIdData = this.fullDataRowIdData,
@@ -16829,7 +16840,7 @@ var Methods = {
16829
16840
  treeOpts = this.treeOpts;
16830
16841
  if (treeConfig) {
16831
16842
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(afterTreeFullData, function (row, index, items, path) {
16832
- var rowid = getRowid(_this19, row);
16843
+ var rowid = getRowid(_this20, row);
16833
16844
  var allrest = fullAllDataRowIdData[rowid];
16834
16845
  var seq = path.map(function (num, i) {
16835
16846
  return i % 2 === 0 ? Number(num) + 1 : '.';
@@ -16857,7 +16868,7 @@ var Methods = {
16857
16868
  });
16858
16869
  } else {
16859
16870
  afterFullData.forEach(function (row, index) {
16860
- var rowid = getRowid(_this19, row);
16871
+ var rowid = getRowid(_this20, row);
16861
16872
  var allrest = fullAllDataRowIdData[rowid];
16862
16873
  var seq = index + 1;
16863
16874
  if (allrest) {
@@ -16939,7 +16950,7 @@ var Methods = {
16939
16950
  * 默认执行一次,除非被重置
16940
16951
  */
16941
16952
  handleLoadDefaults: function handleLoadDefaults() {
16942
- var _this20 = this;
16953
+ var _this21 = this;
16943
16954
  if (this.checkboxConfig) {
16944
16955
  this.handleDefaultSelectionChecked();
16945
16956
  }
@@ -16959,7 +16970,7 @@ var Methods = {
16959
16970
  this.handleDefaultMergeFooterItems();
16960
16971
  }
16961
16972
  this.$nextTick(function () {
16962
- return setTimeout(_this20.recalculate);
16973
+ return setTimeout(_this21.recalculate);
16963
16974
  });
16964
16975
  },
16965
16976
  /**
@@ -17197,11 +17208,11 @@ var Methods = {
17197
17208
  * 刷新列配置
17198
17209
  */
17199
17210
  refreshColumn: function refreshColumn() {
17200
- var _this21 = this;
17211
+ var _this22 = this;
17201
17212
  return this.parseColumns().then(function () {
17202
- return _this21.refreshScroll();
17213
+ return _this22.refreshScroll();
17203
17214
  }).then(function () {
17204
- return _this21.recalculate();
17215
+ return _this22.recalculate();
17205
17216
  });
17206
17217
  },
17207
17218
  /**
@@ -17209,7 +17220,7 @@ var Methods = {
17209
17220
  * 将固定的列左边、右边分别靠边
17210
17221
  */
17211
17222
  parseColumns: function parseColumns() {
17212
- var _this22 = this;
17223
+ var _this23 = this;
17213
17224
  var leftList = [];
17214
17225
  var centerList = [];
17215
17226
  var rightList = [];
@@ -17302,10 +17313,10 @@ var Methods = {
17302
17313
  this.visibleColumn = visibleColumn;
17303
17314
  this.handleTableColumn();
17304
17315
  return this.updateFooter().then(function () {
17305
- return _this22.recalculate();
17316
+ return _this23.recalculate();
17306
17317
  }).then(function () {
17307
- _this22.updateCellAreas();
17308
- return _this22.recalculate();
17318
+ _this23.updateCellAreas();
17319
+ return _this23.recalculate();
17309
17320
  });
17310
17321
  },
17311
17322
  /**
@@ -17357,7 +17368,7 @@ var Methods = {
17357
17368
  * 刷新滚动操作,手动同步滚动相关位置(对于某些特殊的操作,比如滚动条错位、固定列不同步)
17358
17369
  */
17359
17370
  refreshScroll: function refreshScroll() {
17360
- var _this23 = this;
17371
+ var _this24 = this;
17361
17372
  var lastScrollLeft = this.lastScrollLeft,
17362
17373
  lastScrollTop = this.lastScrollTop;
17363
17374
  var $refs = this.$refs;
@@ -17372,7 +17383,7 @@ var Methods = {
17372
17383
  return new Promise(function (resolve) {
17373
17384
  // 还原滚动条位置
17374
17385
  if (lastScrollLeft || lastScrollTop) {
17375
- return restoreScrollLocation(_this23, lastScrollLeft, lastScrollTop).then(function () {
17386
+ return restoreScrollLocation(_this24, lastScrollLeft, lastScrollTop).then(function () {
17376
17387
  // 存在滚动行为未结束情况
17377
17388
  setTimeout(resolve, 30);
17378
17389
  });
@@ -17391,7 +17402,7 @@ var Methods = {
17391
17402
  * 支持 width=? width=?px width=?% min-width=? min-width=?px min-width=?%
17392
17403
  */
17393
17404
  recalculate: function recalculate(refull) {
17394
- var _this24 = this;
17405
+ var _this25 = this;
17395
17406
  var $refs = this.$refs;
17396
17407
  var tableBody = $refs.tableBody,
17397
17408
  tableHeader = $refs.tableHeader,
@@ -17404,8 +17415,8 @@ var Methods = {
17404
17415
  if (refull === true) {
17405
17416
  // 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
17406
17417
  return this.computeScrollLoad().then(function () {
17407
- _this24.autoCellWidth(headerElem, bodyElem, footerElem);
17408
- return _this24.computeScrollLoad();
17418
+ _this25.autoCellWidth(headerElem, bodyElem, footerElem);
17419
+ return _this25.computeScrollLoad();
17409
17420
  });
17410
17421
  }
17411
17422
  }
@@ -17539,7 +17550,7 @@ var Methods = {
17539
17550
  this.customMaxHeight = calcHeight(this, 'maxHeight');
17540
17551
  },
17541
17552
  updateStyle: function updateStyle() {
17542
- var _this25 = this;
17553
+ var _this26 = this;
17543
17554
  var $refs = this.$refs,
17544
17555
  isGroup = this.isGroup,
17545
17556
  fullColumnIdData = this.fullColumnIdData,
@@ -17627,7 +17638,7 @@ var Methods = {
17627
17638
  var listElem = elemStore["".concat(name, "-").concat(layout, "-list")];
17628
17639
  if (isGroup && listElem) {
17629
17640
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(listElem.querySelectorAll('.col--group'), function (thElem) {
17630
- var colNode = _this25.getColumnNode(thElem);
17641
+ var colNode = _this26.getColumnNode(thElem);
17631
17642
  if (colNode) {
17632
17643
  var column = colNode.item;
17633
17644
  var showHeaderOverflow = column.showHeaderOverflow;
@@ -17682,7 +17693,7 @@ var Methods = {
17682
17693
  // 如果是使用优化模式
17683
17694
  if (fixedType) {
17684
17695
  // 如果存在展开行使用全量渲染
17685
- if (!_this25.expandColumn && (scrollXLoad || scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow))) {
17696
+ if (!_this26.expandColumn && (scrollXLoad || scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow))) {
17686
17697
  if (!mergeList.length && !spanMethod && !(keyboardConfig && keyboardOpts.isMerge)) {
17687
17698
  _renderColumnList = fixedColumn;
17688
17699
  } else {
@@ -17710,7 +17721,7 @@ var Methods = {
17710
17721
  // 如果是使用优化模式
17711
17722
  if (fixedType) {
17712
17723
  // 如果存在展开行使用全量渲染
17713
- if (!_this25.expandColumn && (scrollXLoad || allColumnFooterOverflow)) {
17724
+ if (!_this26.expandColumn && (scrollXLoad || allColumnFooterOverflow)) {
17714
17725
  if (!mergeFooterList.length || !footerSpanMethod) {
17715
17726
  _renderColumnList2 = fixedColumn;
17716
17727
  } else {
@@ -17777,9 +17788,9 @@ var Methods = {
17777
17788
  var colWidth = column.renderWidth;
17778
17789
  if (cellElem) {
17779
17790
  if (colspan > 1) {
17780
- var columnIndex = _this25.getColumnIndex(column);
17791
+ var columnIndex = _this26.getColumnIndex(column);
17781
17792
  for (var _index = 1; _index < colspan; _index++) {
17782
- var nextColumn = _this25.getColumns(columnIndex + _index);
17793
+ var nextColumn = _this26.getColumns(columnIndex + _index);
17783
17794
  if (nextColumn) {
17784
17795
  colWidth += nextColumn.renderWidth;
17785
17796
  }
@@ -17821,13 +17832,13 @@ var Methods = {
17821
17832
  }
17822
17833
  },
17823
17834
  preventEvent: function preventEvent(evnt, type, args, next, end) {
17824
- var _this26 = this;
17835
+ var _this27 = this;
17825
17836
  var evntList = v_x_e_table.interceptor.get(type);
17826
17837
  var rest;
17827
17838
  if (!evntList.some(function (func) {
17828
17839
  return func(Object.assign({
17829
- $grid: _this26.$xegrid,
17830
- $table: _this26,
17840
+ $grid: _this27.$xegrid,
17841
+ $table: _this27,
17831
17842
  $event: evnt
17832
17843
  }, args)) === false;
17833
17844
  })) {
@@ -17844,7 +17855,7 @@ var Methods = {
17844
17855
  * 全局按下事件处理
17845
17856
  */
17846
17857
  handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
17847
- var _this27 = this;
17858
+ var _this28 = this;
17848
17859
  var $el = this.$el,
17849
17860
  $refs = this.$refs,
17850
17861
  $xegrid = this.$xegrid,
@@ -17900,7 +17911,7 @@ var Methods = {
17900
17911
  isClearActived = getEventTargetNode(evnt, $el, 'vxe-footer--row').flag;
17901
17912
  }
17902
17913
  // 如果固定了高度且点击了行之外的空白处,则清除激活状态
17903
- if (!isClearActived && _this27.height && !_this27.overflowY) {
17914
+ if (!isClearActived && _this28.height && !_this28.overflowY) {
17904
17915
  var bodyWrapperElem = evnt.target;
17905
17916
  if (methods_hasClass(bodyWrapperElem, 'vxe-table--body-wrapper')) {
17906
17917
  isClearActived = evnt.offsetY < bodyWrapperElem.clientHeight;
@@ -17910,7 +17921,7 @@ var Methods = {
17910
17921
  // 如果点击了当前表格之外
17911
17922
  !getEventTargetNode(evnt, $el).flag) {
17912
17923
  setTimeout(function () {
17913
- return _this27.clearEdit(evnt);
17924
+ return _this28.clearEdit(evnt);
17914
17925
  });
17915
17926
  }
17916
17927
  });
@@ -17923,8 +17934,8 @@ var Methods = {
17923
17934
  this.clearSelected();
17924
17935
  if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
17925
17936
  this.preventEvent(evnt, 'event.clearAreas', {}, function () {
17926
- _this27.clearCellAreas();
17927
- _this27.clearCopyCellArea();
17937
+ _this28.clearCellAreas();
17938
+ _this28.clearCopyCellArea();
17928
17939
  });
17929
17940
  }
17930
17941
  }
@@ -17954,7 +17965,7 @@ var Methods = {
17954
17965
  * 表格键盘事件
17955
17966
  */
17956
17967
  keydownEvent: function keydownEvent(evnt) {
17957
- var _this28 = this;
17968
+ var _this29 = this;
17958
17969
  var filterStore = this.filterStore,
17959
17970
  ctxMenuStore = this.ctxMenuStore,
17960
17971
  editStore = this.editStore,
@@ -17967,30 +17978,30 @@ var Methods = {
17967
17978
  var isEsc = keyCode === 27;
17968
17979
  if (isEsc) {
17969
17980
  this.preventEvent(evnt, 'event.keydown', null, function () {
17970
- _this28.emitEvent('keydown-start', {}, evnt);
17971
- if (keyboardConfig && mouseConfig && mouseOpts.area && _this28.handleKeyboardEvent) {
17972
- _this28.handleKeyboardEvent(evnt);
17981
+ _this29.emitEvent('keydown-start', {}, evnt);
17982
+ if (keyboardConfig && mouseConfig && mouseOpts.area && _this29.handleKeyboardEvent) {
17983
+ _this29.handleKeyboardEvent(evnt);
17973
17984
  } else if (actived.row || filterStore.visible || ctxMenuStore.visible) {
17974
17985
  evnt.stopPropagation();
17975
17986
  // 如果按下了 Esc 键,关闭快捷菜单、筛选
17976
- _this28.closeFilter();
17977
- _this28.closeMenu();
17987
+ _this29.closeFilter();
17988
+ _this29.closeMenu();
17978
17989
  if (keyboardConfig && keyboardOpts.isEsc) {
17979
17990
  // 如果是激活编辑状态,则取消编辑
17980
17991
  if (actived.row) {
17981
17992
  var params = actived.args;
17982
- _this28.clearEdit(evnt);
17993
+ _this29.clearEdit(evnt);
17983
17994
  // 如果配置了选中功能,则为选中状态
17984
17995
  if (mouseConfig && mouseOpts.selected) {
17985
- _this28.$nextTick(function () {
17986
- return _this28.handleSelected(params, evnt);
17996
+ _this29.$nextTick(function () {
17997
+ return _this29.handleSelected(params, evnt);
17987
17998
  });
17988
17999
  }
17989
18000
  }
17990
18001
  }
17991
18002
  }
17992
- _this28.emitEvent('keydown', {}, evnt);
17993
- _this28.emitEvent('keydown-end', {}, evnt);
18003
+ _this29.emitEvent('keydown', {}, evnt);
18004
+ _this29.emitEvent('keydown-end', {}, evnt);
17994
18005
  });
17995
18006
  }
17996
18007
  },
@@ -17998,26 +18009,26 @@ var Methods = {
17998
18009
  * 全局键盘事件
17999
18010
  */
18000
18011
  handleGlobalKeydownEvent: function handleGlobalKeydownEvent(evnt) {
18001
- var _this29 = this;
18012
+ var _this30 = this;
18002
18013
  // 该行为只对当前激活的表格有效
18003
18014
  if (this.isActivated) {
18004
18015
  this.preventEvent(evnt, 'event.keydown', null, function () {
18005
- var filterStore = _this29.filterStore,
18006
- isCtxMenu = _this29.isCtxMenu,
18007
- ctxMenuStore = _this29.ctxMenuStore,
18008
- editStore = _this29.editStore,
18009
- editOpts = _this29.editOpts,
18010
- editConfig = _this29.editConfig,
18011
- mouseConfig = _this29.mouseConfig,
18012
- mouseOpts = _this29.mouseOpts,
18013
- keyboardConfig = _this29.keyboardConfig,
18014
- keyboardOpts = _this29.keyboardOpts,
18015
- treeConfig = _this29.treeConfig,
18016
- treeOpts = _this29.treeOpts,
18017
- highlightCurrentRow = _this29.highlightCurrentRow,
18018
- currentRow = _this29.currentRow,
18019
- bodyCtxMenu = _this29.bodyCtxMenu,
18020
- rowOpts = _this29.rowOpts;
18016
+ var filterStore = _this30.filterStore,
18017
+ isCtxMenu = _this30.isCtxMenu,
18018
+ ctxMenuStore = _this30.ctxMenuStore,
18019
+ editStore = _this30.editStore,
18020
+ editOpts = _this30.editOpts,
18021
+ editConfig = _this30.editConfig,
18022
+ mouseConfig = _this30.mouseConfig,
18023
+ mouseOpts = _this30.mouseOpts,
18024
+ keyboardConfig = _this30.keyboardConfig,
18025
+ keyboardOpts = _this30.keyboardOpts,
18026
+ treeConfig = _this30.treeConfig,
18027
+ treeOpts = _this30.treeOpts,
18028
+ highlightCurrentRow = _this30.highlightCurrentRow,
18029
+ currentRow = _this30.currentRow,
18030
+ bodyCtxMenu = _this30.bodyCtxMenu,
18031
+ rowOpts = _this30.rowOpts;
18021
18032
  var selected = editStore.selected,
18022
18033
  actived = editStore.actived;
18023
18034
  var keyCode = evnt.keyCode;
@@ -18043,7 +18054,7 @@ var Methods = {
18043
18054
  var params;
18044
18055
  if (filterStore.visible) {
18045
18056
  if (isEsc) {
18046
- _this29.closeFilter();
18057
+ _this30.closeFilter();
18047
18058
  }
18048
18059
  return;
18049
18060
  }
@@ -18051,19 +18062,19 @@ var Methods = {
18051
18062
  // 如果配置了右键菜单; 支持方向键操作、回车
18052
18063
  evnt.preventDefault();
18053
18064
  if (ctxMenuStore.showChild && hasChildrenList(ctxMenuStore.selected)) {
18054
- _this29.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
18065
+ _this30.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selectChild', 37, false, ctxMenuStore.selected.children);
18055
18066
  } else {
18056
- _this29.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this29.ctxMenuList);
18067
+ _this30.moveCtxMenu(evnt, keyCode, ctxMenuStore, 'selected', 39, true, _this30.ctxMenuList);
18057
18068
  }
18058
- } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this29.handleKeyboardEvent) {
18059
- _this29.handleKeyboardEvent(evnt);
18069
+ } else if (keyboardConfig && mouseConfig && mouseOpts.area && _this30.handleKeyboardEvent) {
18070
+ _this30.handleKeyboardEvent(evnt);
18060
18071
  } else if (keyboardConfig && isSpacebar && keyboardOpts.isChecked && selected.row && selected.column && (selected.column.type === 'checkbox' || selected.column.type === 'radio')) {
18061
18072
  // 空格键支持选中复选框
18062
18073
  evnt.preventDefault();
18063
18074
  if (selected.column.type === 'checkbox') {
18064
- _this29.handleToggleCheckRowEvent(evnt, selected.args);
18075
+ _this30.handleToggleCheckRowEvent(evnt, selected.args);
18065
18076
  } else {
18066
- _this29.triggerRadioRowEvent(evnt, selected.args);
18077
+ _this30.triggerRadioRowEvent(evnt, selected.args);
18067
18078
  }
18068
18079
  } else if (isF2 && isEnableConf(editConfig)) {
18069
18080
  if (!isEditStatus) {
@@ -18071,15 +18082,15 @@ var Methods = {
18071
18082
  if (selected.row && selected.column) {
18072
18083
  evnt.stopPropagation();
18073
18084
  evnt.preventDefault();
18074
- _this29.handleActived(selected.args, evnt);
18085
+ _this30.handleActived(selected.args, evnt);
18075
18086
  }
18076
18087
  }
18077
18088
  } else if (isContextMenu) {
18078
18089
  // 如果按下上下文键
18079
- _this29._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
18080
- clearTimeout(_this29.keyCtxTimeout);
18081
- _this29.keyCtxTimeout = setTimeout(function () {
18082
- _this29._keyCtx = false;
18090
+ _this30._keyCtx = selected.row && selected.column && bodyCtxMenu.length;
18091
+ clearTimeout(_this30.keyCtxTimeout);
18092
+ _this30.keyCtxTimeout = setTimeout(function () {
18093
+ _this30._keyCtx = false;
18083
18094
  }, 1000);
18084
18095
  } else if (isEnter && !hasAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow)) {
18085
18096
  // 退出选中
@@ -18087,11 +18098,11 @@ var Methods = {
18087
18098
  // 如果是激活编辑状态,则取消编辑
18088
18099
  if (actived.row) {
18089
18100
  params = actived.args;
18090
- _this29.clearEdit(evnt);
18101
+ _this30.clearEdit(evnt);
18091
18102
  // 如果配置了选中功能,则为选中状态
18092
18103
  if (mouseConfig && mouseOpts.selected) {
18093
- _this29.$nextTick(function () {
18094
- return _this29.handleSelected(params, evnt);
18104
+ _this30.$nextTick(function () {
18105
+ return _this30.handleSelected(params, evnt);
18095
18106
  });
18096
18107
  }
18097
18108
  }
@@ -18101,15 +18112,15 @@ var Methods = {
18101
18112
  var targetArgs = selected.row ? selected.args : actived.args;
18102
18113
  if (hasShiftKey) {
18103
18114
  if (keyboardOpts.enterToTab) {
18104
- _this29.moveTabSelected(targetArgs, hasShiftKey, evnt);
18115
+ _this30.moveTabSelected(targetArgs, hasShiftKey, evnt);
18105
18116
  } else {
18106
- _this29.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
18117
+ _this30.moveSelected(targetArgs, isLeftArrow, true, isRightArrow, false, evnt);
18107
18118
  }
18108
18119
  } else {
18109
18120
  if (keyboardOpts.enterToTab) {
18110
- _this29.moveTabSelected(targetArgs, hasShiftKey, evnt);
18121
+ _this30.moveTabSelected(targetArgs, hasShiftKey, evnt);
18111
18122
  } else {
18112
- _this29.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
18123
+ _this30.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
18113
18124
  }
18114
18125
  }
18115
18126
  } else if (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
@@ -18119,13 +18130,13 @@ var Methods = {
18119
18130
  evnt.preventDefault();
18120
18131
  var targetRow = childrens[0];
18121
18132
  params = {
18122
- $table: _this29,
18133
+ $table: _this30,
18123
18134
  row: targetRow
18124
18135
  };
18125
- _this29.setTreeExpand(currentRow, true).then(function () {
18126
- return _this29.scrollToRow(targetRow);
18136
+ _this30.setTreeExpand(currentRow, true).then(function () {
18137
+ return _this30.scrollToRow(targetRow);
18127
18138
  }).then(function () {
18128
- return _this29.triggerCurrentRowEvent(evnt, params);
18139
+ return _this30.triggerCurrentRowEvent(evnt, params);
18129
18140
  });
18130
18141
  }
18131
18142
  }
@@ -18134,18 +18145,18 @@ var Methods = {
18134
18145
  if (!isEditStatus) {
18135
18146
  // 如果按下了方向键
18136
18147
  if (selected.row && selected.column) {
18137
- _this29.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
18148
+ _this30.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
18138
18149
  } else if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
18139
18150
  // 当前行按键上下移动
18140
- _this29.moveCurrentRow(isUpArrow, isDwArrow, evnt);
18151
+ _this30.moveCurrentRow(isUpArrow, isDwArrow, evnt);
18141
18152
  }
18142
18153
  }
18143
18154
  } else if (isTab && keyboardConfig && keyboardOpts.isTab) {
18144
18155
  // 如果按下了 Tab 键切换
18145
18156
  if (selected.row || selected.column) {
18146
- _this29.moveTabSelected(selected.args, hasShiftKey, evnt);
18157
+ _this30.moveTabSelected(selected.args, hasShiftKey, evnt);
18147
18158
  } else if (actived.row || actived.column) {
18148
- _this29.moveTabSelected(actived.args, hasShiftKey, evnt);
18159
+ _this30.moveTabSelected(actived.args, hasShiftKey, evnt);
18149
18160
  }
18150
18161
  } else if (keyboardConfig && (isDel || (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
18151
18162
  if (!isEditStatus) {
@@ -18156,10 +18167,10 @@ var Methods = {
18156
18167
  if (delMethod) {
18157
18168
  delMethod({
18158
18169
  row: selected.row,
18159
- rowIndex: _this29.getRowIndex(selected.row),
18170
+ rowIndex: _this30.getRowIndex(selected.row),
18160
18171
  column: selected.column,
18161
- columnIndex: _this29.getColumnIndex(selected.column),
18162
- $table: _this29
18172
+ columnIndex: _this30.getColumnIndex(selected.column),
18173
+ $table: _this30
18163
18174
  });
18164
18175
  } else {
18165
18176
  setCellValue(selected.row, selected.column, null);
@@ -18168,34 +18179,34 @@ var Methods = {
18168
18179
  if (backMethod) {
18169
18180
  backMethod({
18170
18181
  row: selected.row,
18171
- rowIndex: _this29.getRowIndex(selected.row),
18182
+ rowIndex: _this30.getRowIndex(selected.row),
18172
18183
  column: selected.column,
18173
- columnIndex: _this29.getColumnIndex(selected.column),
18174
- $table: _this29
18184
+ columnIndex: _this30.getColumnIndex(selected.column),
18185
+ $table: _this30
18175
18186
  });
18176
18187
  } else {
18177
- _this29.handleActived(selected.args, evnt);
18188
+ _this30.handleActived(selected.args, evnt);
18178
18189
  }
18179
18190
  } else if (isDel) {
18180
18191
  // 如果按下 del 键,更新表尾数据
18181
- _this29.updateFooter();
18192
+ _this30.updateFooter();
18182
18193
  }
18183
18194
  } else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
18184
18195
  // 如果树形表格回退键关闭当前行返回父节点
18185
- var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(_this29.afterFullData, function (item) {
18196
+ var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(_this30.afterFullData, function (item) {
18186
18197
  return item === currentRow;
18187
18198
  }, treeOpts),
18188
18199
  parentRow = _XEUtils$findTree.parent;
18189
18200
  if (parentRow) {
18190
18201
  evnt.preventDefault();
18191
18202
  params = {
18192
- $table: _this29,
18203
+ $table: _this30,
18193
18204
  row: parentRow
18194
18205
  };
18195
- _this29.setTreeExpand(parentRow, false).then(function () {
18196
- return _this29.scrollToRow(parentRow);
18206
+ _this30.setTreeExpand(parentRow, false).then(function () {
18207
+ return _this30.scrollToRow(parentRow);
18197
18208
  }).then(function () {
18198
- return _this29.triggerCurrentRowEvent(evnt, params);
18209
+ return _this30.triggerCurrentRowEvent(evnt, params);
18199
18210
  });
18200
18211
  }
18201
18212
  }
@@ -18210,24 +18221,24 @@ var Methods = {
18210
18221
  if (selected.column && selected.row && isEnableConf(selected.column.editRender)) {
18211
18222
  var beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
18212
18223
  if (!beforeEditMethod || beforeEditMethod(_objectSpread2(_objectSpread2({}, selected.args), {}, {
18213
- $table: _this29
18224
+ $table: _this30
18214
18225
  }))) {
18215
18226
  if (editMethod) {
18216
18227
  editMethod({
18217
18228
  row: selected.row,
18218
- rowIndex: _this29.getRowIndex(selected.row),
18229
+ rowIndex: _this30.getRowIndex(selected.row),
18219
18230
  column: selected.column,
18220
- columnIndex: _this29.getColumnIndex(selected.column),
18221
- $table: _this29
18231
+ columnIndex: _this30.getColumnIndex(selected.column),
18232
+ $table: _this30
18222
18233
  });
18223
18234
  } else {
18224
18235
  setCellValue(selected.row, selected.column, null);
18225
- _this29.handleActived(selected.args, evnt);
18236
+ _this30.handleActived(selected.args, evnt);
18226
18237
  }
18227
18238
  }
18228
18239
  }
18229
18240
  }
18230
- _this29.emitEvent('keydown', {}, evnt);
18241
+ _this30.emitEvent('keydown', {}, evnt);
18231
18242
  });
18232
18243
  }
18233
18244
  },
@@ -18302,7 +18313,7 @@ var Methods = {
18302
18313
  }
18303
18314
  },
18304
18315
  handleTargetLeaveEvent: function handleTargetLeaveEvent() {
18305
- var _this30 = this;
18316
+ var _this31 = this;
18306
18317
  var tooltipOpts = this.tooltipOpts;
18307
18318
  var $tooltip = this.$refs.tooltip;
18308
18319
  if ($tooltip) {
@@ -18310,9 +18321,9 @@ var Methods = {
18310
18321
  }
18311
18322
  if (tooltipOpts.enterable) {
18312
18323
  this.tooltipTimeout = setTimeout(function () {
18313
- $tooltip = _this30.$refs.tooltip;
18324
+ $tooltip = _this31.$refs.tooltip;
18314
18325
  if ($tooltip && !$tooltip.isActived()) {
18315
- _this30.closeTooltip();
18326
+ _this31.closeTooltip();
18316
18327
  }
18317
18328
  }, tooltipOpts.leaveDelay);
18318
18329
  } else {
@@ -18490,13 +18501,13 @@ var Methods = {
18490
18501
  * 获取复选框半选状态的行数据
18491
18502
  */
18492
18503
  getCheckboxIndeterminateRecords: function getCheckboxIndeterminateRecords(isFull) {
18493
- var _this31 = this;
18504
+ var _this32 = this;
18494
18505
  var treeConfig = this.treeConfig,
18495
18506
  treeIndeterminates = this.treeIndeterminates,
18496
18507
  fullDataRowIdData = this.fullDataRowIdData;
18497
18508
  if (treeConfig) {
18498
18509
  return isFull ? treeIndeterminates.slice(0) : treeIndeterminates.filter(function (row) {
18499
- var rowid = getRowid(_this31, row);
18510
+ var rowid = getRowid(_this32, row);
18500
18511
  return fullDataRowIdData[rowid];
18501
18512
  });
18502
18513
  }
@@ -18523,12 +18534,12 @@ var Methods = {
18523
18534
  }
18524
18535
  },
18525
18536
  handleCheckedCheckboxRow: function handleCheckedCheckboxRow(rows, value, isForce) {
18526
- var _this32 = this;
18537
+ var _this33 = this;
18527
18538
  if (rows && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows)) {
18528
18539
  rows = [rows];
18529
18540
  }
18530
18541
  rows.forEach(function (row) {
18531
- return _this32.handleSelectRow({
18542
+ return _this33.handleSelectRow({
18532
18543
  row: row
18533
18544
  }, !!value, isForce);
18534
18545
  });
@@ -18559,7 +18570,7 @@ var Methods = {
18559
18570
  * value 选中true 不选false 半选-1
18560
18571
  */
18561
18572
  handleSelectRow: function handleSelectRow(_ref6, value, isForce) {
18562
- var _this33 = this;
18573
+ var _this34 = this;
18563
18574
  var row = _ref6.row;
18564
18575
  var selection = this.selection,
18565
18576
  afterFullData = this.afterFullData,
@@ -18580,20 +18591,20 @@ var Methods = {
18580
18591
  } else {
18581
18592
  // 更新子节点状态
18582
18593
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([row], function (item) {
18583
- if (_this33.eqRow(item, row) || isForce || !checkMethod || checkMethod({
18594
+ if (_this34.eqRow(item, row) || isForce || !checkMethod || checkMethod({
18584
18595
  row: item
18585
18596
  })) {
18586
18597
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(item, checkField, value);
18587
18598
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(treeIndeterminates, function (half) {
18588
- return _this33.eqRow(half, item);
18599
+ return _this34.eqRow(half, item);
18589
18600
  });
18590
- _this33.handleCheckboxReserveRow(row, value);
18601
+ _this34.handleCheckboxReserveRow(row, value);
18591
18602
  }
18592
18603
  }, treeOpts);
18593
18604
  }
18594
18605
  // 如果存在父节点,更新父节点状态
18595
18606
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(afterFullData, function (item) {
18596
- return _this33.eqRow(item, row);
18607
+ return _this34.eqRow(item, row);
18597
18608
  }, treeOpts);
18598
18609
  if (matchObj && matchObj.parent) {
18599
18610
  var parentStatus;
@@ -18603,7 +18614,7 @@ var Methods = {
18603
18614
  });
18604
18615
  }) : matchObj.items;
18605
18616
  var indeterminatesItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().find(matchObj.items, function (item) {
18606
- return _this33.findRowIndexOf(treeIndeterminates, item) > -1;
18617
+ return _this34.findRowIndexOf(treeIndeterminates, item) > -1;
18607
18618
  });
18608
18619
  if (indeterminatesItem) {
18609
18620
  parentStatus = -1;
@@ -18612,7 +18623,7 @@ var Methods = {
18612
18623
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(item, checkField);
18613
18624
  });
18614
18625
  parentStatus = selectItems.filter(function (item) {
18615
- return _this33.findRowIndexOf(vItems, item) > -1;
18626
+ return _this34.findRowIndexOf(vItems, item) > -1;
18616
18627
  }).length === vItems.length ? true : selectItems.length || value === -1 ? -1 : false;
18617
18628
  }
18618
18629
  return this.handleSelectRow({
@@ -18634,31 +18645,31 @@ var Methods = {
18634
18645
  treeIndeterminates.push(row);
18635
18646
  }
18636
18647
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(selection, function (item) {
18637
- return _this33.eqRow(item, row);
18648
+ return _this34.eqRow(item, row);
18638
18649
  });
18639
18650
  } else {
18640
18651
  // 更新子节点状态
18641
18652
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([row], function (item) {
18642
- if (_this33.eqRow(item, row) || isForce || !checkMethod || checkMethod({
18653
+ if (_this34.eqRow(item, row) || isForce || !checkMethod || checkMethod({
18643
18654
  row: item
18644
18655
  })) {
18645
18656
  if (value) {
18646
18657
  selection.push(item);
18647
18658
  } else {
18648
18659
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(selection, function (select) {
18649
- return _this33.eqRow(select, item);
18660
+ return _this34.eqRow(select, item);
18650
18661
  });
18651
18662
  }
18652
18663
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(treeIndeterminates, function (half) {
18653
- return _this33.eqRow(half, item);
18664
+ return _this34.eqRow(half, item);
18654
18665
  });
18655
- _this33.handleCheckboxReserveRow(row, value);
18666
+ _this34.handleCheckboxReserveRow(row, value);
18656
18667
  }
18657
18668
  }, treeOpts);
18658
18669
  }
18659
18670
  // 如果存在父节点,更新父节点状态
18660
18671
  var _matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(afterFullData, function (item) {
18661
- return _this33.eqRow(item, row);
18672
+ return _this34.eqRow(item, row);
18662
18673
  }, treeOpts);
18663
18674
  if (_matchObj && _matchObj.parent) {
18664
18675
  var _parentStatus;
@@ -18668,16 +18679,16 @@ var Methods = {
18668
18679
  });
18669
18680
  }) : _matchObj.items;
18670
18681
  var _indeterminatesItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().find(_matchObj.items, function (item) {
18671
- return _this33.findRowIndexOf(treeIndeterminates, item) > -1;
18682
+ return _this34.findRowIndexOf(treeIndeterminates, item) > -1;
18672
18683
  });
18673
18684
  if (_indeterminatesItem) {
18674
18685
  _parentStatus = -1;
18675
18686
  } else {
18676
18687
  var _selectItems = _matchObj.items.filter(function (item) {
18677
- return _this33.findRowIndexOf(selection, item) > -1;
18688
+ return _this34.findRowIndexOf(selection, item) > -1;
18678
18689
  });
18679
18690
  _parentStatus = _selectItems.filter(function (item) {
18680
- return _this33.findRowIndexOf(_vItems, item) > -1;
18691
+ return _this34.findRowIndexOf(_vItems, item) > -1;
18681
18692
  }).length === _vItems.length ? true : _selectItems.length || value === -1 ? -1 : false;
18682
18693
  }
18683
18694
  return this.handleSelectRow({
@@ -18694,7 +18705,7 @@ var Methods = {
18694
18705
  }
18695
18706
  } else {
18696
18707
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(selection, function (item) {
18697
- return _this33.eqRow(item, row);
18708
+ return _this34.eqRow(item, row);
18698
18709
  });
18699
18710
  }
18700
18711
  this.handleCheckboxReserveRow(row, value);
@@ -18743,7 +18754,7 @@ var Methods = {
18743
18754
  return this.$nextTick();
18744
18755
  },
18745
18756
  handleCheckedAllCheckboxRow: function handleCheckedAllCheckboxRow(value, isForce) {
18746
- var _this34 = this;
18757
+ var _this35 = this;
18747
18758
  var afterFullData = this.afterFullData,
18748
18759
  treeConfig = this.treeConfig,
18749
18760
  treeOpts = this.treeOpts,
@@ -18756,7 +18767,7 @@ var Methods = {
18756
18767
  checkMethod = checkboxOpts.checkMethod;
18757
18768
  var selectRows = [];
18758
18769
  var beforeSelection = treeConfig ? [] : selection.filter(function (row) {
18759
- return _this34.findRowIndexOf(afterFullData, row) === -1;
18770
+ return _this35.findRowIndexOf(afterFullData, row) === -1;
18760
18771
  });
18761
18772
  if (checkStrictly) {
18762
18773
  this.isAllSelected = value;
@@ -18810,7 +18821,7 @@ var Methods = {
18810
18821
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(afterFullData, function (row) {
18811
18822
  if (checkMethod({
18812
18823
  row: row
18813
- }) ? 0 : _this34.findRowIndexOf(selection, row) > -1) {
18824
+ }) ? 0 : _this35.findRowIndexOf(selection, row) > -1) {
18814
18825
  selectRows.push(row);
18815
18826
  }
18816
18827
  }, treeOpts);
@@ -18825,7 +18836,7 @@ var Methods = {
18825
18836
  */
18826
18837
  if (!isForce && checkMethod) {
18827
18838
  selectRows = afterFullData.filter(function (row) {
18828
- return _this34.findRowIndexOf(selection, row) > -1 || checkMethod({
18839
+ return _this35.findRowIndexOf(selection, row) > -1 || checkMethod({
18829
18840
  row: row
18830
18841
  });
18831
18842
  });
@@ -18842,7 +18853,7 @@ var Methods = {
18842
18853
  selectRows = afterFullData.filter(function (row) {
18843
18854
  return checkMethod({
18844
18855
  row: row
18845
- }) ? 0 : _this34.findRowIndexOf(selection, row) > -1;
18856
+ }) ? 0 : _this35.findRowIndexOf(selection, row) > -1;
18846
18857
  });
18847
18858
  }
18848
18859
  }
@@ -18851,11 +18862,11 @@ var Methods = {
18851
18862
  if (reserve) {
18852
18863
  if (value) {
18853
18864
  selectRows.forEach(function (row) {
18854
- checkboxReserveRowMap[getRowid(_this34, row)] = row;
18865
+ checkboxReserveRowMap[getRowid(_this35, row)] = row;
18855
18866
  });
18856
18867
  } else {
18857
18868
  afterFullData.forEach(function (row) {
18858
- return _this34.handleCheckboxReserveRow(row, false);
18869
+ return _this35.handleCheckboxReserveRow(row, false);
18859
18870
  });
18860
18871
  }
18861
18872
  }
@@ -18873,7 +18884,7 @@ var Methods = {
18873
18884
  return this.handleCheckedAllCheckboxRow(value, true);
18874
18885
  },
18875
18886
  checkSelectionStatus: function checkSelectionStatus() {
18876
- var _this35 = this;
18887
+ var _this36 = this;
18877
18888
  var afterFullData = this.afterFullData,
18878
18889
  selection = this.selection,
18879
18890
  treeIndeterminates = this.treeIndeterminates,
@@ -18909,11 +18920,11 @@ var Methods = {
18909
18920
  if (treeConfig) {
18910
18921
  if (halfField) {
18911
18922
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
18912
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, halfField) || _this35.findRowIndexOf(treeIndeterminates, row) > -1;
18923
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, halfField) || _this36.findRowIndexOf(treeIndeterminates, row) > -1;
18913
18924
  });
18914
18925
  } else {
18915
18926
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
18916
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField) || _this35.findRowIndexOf(treeIndeterminates, row) > -1;
18927
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField) || _this36.findRowIndexOf(treeIndeterminates, row) > -1;
18917
18928
  });
18918
18929
  }
18919
18930
  } else {
@@ -18935,22 +18946,22 @@ var Methods = {
18935
18946
  disableRows.push(row);
18936
18947
  return true;
18937
18948
  }
18938
- if (_this35.findRowIndexOf(selection, row) > -1) {
18949
+ if (_this36.findRowIndexOf(selection, row) > -1) {
18939
18950
  checkRows.push(row);
18940
18951
  return true;
18941
18952
  }
18942
18953
  return false;
18943
18954
  } : function (row) {
18944
- return _this35.findRowIndexOf(selection, row) > -1;
18955
+ return _this36.findRowIndexOf(selection, row) > -1;
18945
18956
  });
18946
18957
  isAllSelected = isAllResolve && afterFullData.length !== disableRows.length;
18947
18958
  if (treeConfig) {
18948
18959
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
18949
- return _this35.findRowIndexOf(treeIndeterminates, row) > -1 || _this35.findRowIndexOf(selection, row) > -1;
18960
+ return _this36.findRowIndexOf(treeIndeterminates, row) > -1 || _this36.findRowIndexOf(selection, row) > -1;
18950
18961
  });
18951
18962
  } else {
18952
18963
  isIndeterminate = !isAllSelected && afterFullData.some(function (row) {
18953
- return _this35.findRowIndexOf(selection, row) > -1;
18964
+ return _this36.findRowIndexOf(selection, row) > -1;
18954
18965
  });
18955
18966
  }
18956
18967
  }
@@ -19056,7 +19067,7 @@ var Methods = {
19056
19067
  * 获取复选框保留选中的行
19057
19068
  */
19058
19069
  getCheckboxReserveRecords: function getCheckboxReserveRecords(isFull) {
19059
- var _this36 = this;
19070
+ var _this37 = this;
19060
19071
  var fullDataRowIdData = this.fullDataRowIdData,
19061
19072
  afterFullData = this.afterFullData,
19062
19073
  checkboxReserveRowMap = this.checkboxReserveRowMap,
@@ -19068,11 +19079,11 @@ var Methods = {
19068
19079
  var afterFullIdMaps = {};
19069
19080
  if (treeConfig) {
19070
19081
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(afterFullData, function (row) {
19071
- afterFullIdMaps[getRowid(_this36, row)] = 1;
19082
+ afterFullIdMaps[getRowid(_this37, row)] = 1;
19072
19083
  }, treeOpts);
19073
19084
  } else {
19074
19085
  afterFullData.forEach(function (row) {
19075
- afterFullIdMaps[getRowid(_this36, row)] = 1;
19086
+ afterFullIdMaps[getRowid(_this37, row)] = 1;
19076
19087
  });
19077
19088
  }
19078
19089
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(checkboxReserveRowMap, function (oldRow, oldRowid) {
@@ -19131,7 +19142,7 @@ var Methods = {
19131
19142
  * 清空行为不管是否被禁用还是保留记录,都将彻底清空选中状态
19132
19143
  */
19133
19144
  clearCheckboxRow: function clearCheckboxRow() {
19134
- var _this37 = this;
19145
+ var _this38 = this;
19135
19146
  var tableFullData = this.tableFullData,
19136
19147
  treeConfig = this.treeConfig,
19137
19148
  treeOpts = this.treeOpts,
@@ -19151,7 +19162,7 @@ var Methods = {
19151
19162
  }
19152
19163
  if (reserve) {
19153
19164
  tableFullData.forEach(function (row) {
19154
- return _this37.handleCheckboxReserveRow(row, false);
19165
+ return _this38.handleCheckboxReserveRow(row, false);
19155
19166
  });
19156
19167
  }
19157
19168
  this.isAllSelected = false;
@@ -19403,12 +19414,12 @@ var Methods = {
19403
19414
  * 如果存在规则,则校验
19404
19415
  */
19405
19416
  handleChangeCell: function handleChangeCell(evnt, params) {
19406
- var _this38 = this;
19417
+ var _this39 = this;
19407
19418
  this.checkValidate('blur')["catch"](function (e) {
19408
19419
  return e;
19409
19420
  }).then(function () {
19410
- _this38.handleActived(params, evnt).then(function () {
19411
- return _this38.checkValidate('change');
19421
+ _this39.handleActived(params, evnt).then(function () {
19422
+ return _this39.checkValidate('change');
19412
19423
  })["catch"](function (e) {
19413
19424
  return e;
19414
19425
  });
@@ -19502,7 +19513,7 @@ var Methods = {
19502
19513
  * 如果是双击模式,则激活为编辑状态
19503
19514
  */
19504
19515
  triggerCellDblclickEvent: function triggerCellDblclickEvent(evnt, params) {
19505
- var _this39 = this;
19516
+ var _this40 = this;
19506
19517
  var editStore = this.editStore,
19507
19518
  editConfig = this.editConfig,
19508
19519
  editOpts = this.editOpts;
@@ -19515,15 +19526,15 @@ var Methods = {
19515
19526
  this.checkValidate('blur')["catch"](function (e) {
19516
19527
  return e;
19517
19528
  }).then(function () {
19518
- _this39.handleActived(params, evnt).then(function () {
19519
- return _this39.checkValidate('change');
19529
+ _this40.handleActived(params, evnt).then(function () {
19530
+ return _this40.checkValidate('change');
19520
19531
  })["catch"](function (e) {
19521
19532
  return e;
19522
19533
  });
19523
19534
  });
19524
19535
  } else if (editOpts.mode === 'cell') {
19525
19536
  this.handleActived(params, evnt).then(function () {
19526
- return _this39.checkValidate('change');
19537
+ return _this40.checkValidate('change');
19527
19538
  })["catch"](function (e) {
19528
19539
  return e;
19529
19540
  });
@@ -19533,7 +19544,7 @@ var Methods = {
19533
19544
  this.emitEvent('cell-dblclick', params, evnt);
19534
19545
  },
19535
19546
  handleDefaultSort: function handleDefaultSort() {
19536
- var _this40 = this;
19547
+ var _this41 = this;
19537
19548
  var sortConfig = this.sortConfig,
19538
19549
  sortOpts = this.sortOpts;
19539
19550
  var defaultSort = sortOpts.defaultSort;
@@ -19546,7 +19557,7 @@ var Methods = {
19546
19557
  var field = item.field,
19547
19558
  order = item.order;
19548
19559
  if (field && order) {
19549
- var column = _this40.getColumnByField(field);
19560
+ var column = _this41.getColumnByField(field);
19550
19561
  if (column && column.sortable) {
19551
19562
  column.order = order;
19552
19563
  column.sortTime = Date.now() + index;
@@ -19587,7 +19598,7 @@ var Methods = {
19587
19598
  }
19588
19599
  },
19589
19600
  sort: function sort(sortConfs, sortOrder) {
19590
- var _this41 = this;
19601
+ var _this42 = this;
19591
19602
  var sortOpts = this.sortOpts;
19592
19603
  var multiple = sortOpts.multiple,
19593
19604
  remote = sortOpts.remote,
@@ -19613,14 +19624,14 @@ var Methods = {
19613
19624
  order = confs.order;
19614
19625
  var column = field;
19615
19626
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(field)) {
19616
- column = _this41.getColumnByField(field);
19627
+ column = _this42.getColumnByField(field);
19617
19628
  }
19618
19629
  if (column && (column.sortable || column.remoteSort)) {
19619
19630
  if (!firstSortColumn) {
19620
19631
  firstSortColumn = column;
19621
19632
  }
19622
19633
  if (orders.indexOf(order) === -1) {
19623
- order = getNextSortOrder(_this41, column);
19634
+ order = getNextSortOrder(_this42, column);
19624
19635
  }
19625
19636
  if (column.order !== order) {
19626
19637
  column.order = order;
@@ -19740,7 +19751,7 @@ var Methods = {
19740
19751
  return rest && rest.expandLoaded;
19741
19752
  },
19742
19753
  clearRowExpandLoaded: function clearRowExpandLoaded(row) {
19743
- var _this42 = this;
19754
+ var _this43 = this;
19744
19755
  var expandOpts = this.expandOpts,
19745
19756
  expandLazyLoadeds = this.expandLazyLoadeds,
19746
19757
  fullAllDataRowMap = this.fullAllDataRowMap;
@@ -19749,7 +19760,7 @@ var Methods = {
19749
19760
  if (lazy && rest) {
19750
19761
  rest.expandLoaded = false;
19751
19762
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(expandLazyLoadeds, function (item) {
19752
- return _this42.eqRow(item, row);
19763
+ return _this43.eqRow(item, row);
19753
19764
  });
19754
19765
  }
19755
19766
  return this.$nextTick();
@@ -19759,13 +19770,13 @@ var Methods = {
19759
19770
  * @param {Row} row 行对象
19760
19771
  */
19761
19772
  reloadRowExpand: function reloadRowExpand(row) {
19762
- var _this43 = this;
19773
+ var _this44 = this;
19763
19774
  var expandOpts = this.expandOpts,
19764
19775
  expandLazyLoadeds = this.expandLazyLoadeds;
19765
19776
  var lazy = expandOpts.lazy;
19766
19777
  if (lazy && this.findRowIndexOf(expandLazyLoadeds, row) === -1) {
19767
19778
  this.clearRowExpandLoaded(row).then(function () {
19768
- return _this43.handleAsyncRowExpand(row);
19779
+ return _this44.handleAsyncRowExpand(row);
19769
19780
  });
19770
19781
  }
19771
19782
  return this.$nextTick();
@@ -19834,25 +19845,25 @@ var Methods = {
19834
19845
  return this.setRowExpand(this.expandOpts.lazy ? this.tableData : this.tableFullData, expanded);
19835
19846
  },
19836
19847
  handleAsyncRowExpand: function handleAsyncRowExpand(row) {
19837
- var _this44 = this;
19848
+ var _this45 = this;
19838
19849
  var rest = this.fullAllDataRowMap.get(row);
19839
19850
  return new Promise(function (resolve) {
19840
- _this44.expandLazyLoadeds.push(row);
19841
- _this44.expandOpts.loadMethod({
19842
- $table: _this44,
19851
+ _this45.expandLazyLoadeds.push(row);
19852
+ _this45.expandOpts.loadMethod({
19853
+ $table: _this45,
19843
19854
  row: row,
19844
- rowIndex: _this44.getRowIndex(row),
19845
- $rowIndex: _this44.getVMRowIndex(row)
19855
+ rowIndex: _this45.getRowIndex(row),
19856
+ $rowIndex: _this45.getVMRowIndex(row)
19846
19857
  }).then(function () {
19847
19858
  rest.expandLoaded = true;
19848
- _this44.rowExpandeds.push(row);
19859
+ _this45.rowExpandeds.push(row);
19849
19860
  })["catch"](function () {
19850
19861
  rest.expandLoaded = false;
19851
19862
  })["finally"](function () {
19852
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(_this44.expandLazyLoadeds, function (item) {
19853
- return _this44.eqRow(item, row);
19863
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(_this45.expandLazyLoadeds, function (item) {
19864
+ return _this45.eqRow(item, row);
19854
19865
  });
19855
- resolve(_this44.$nextTick().then(_this44.recalculate));
19866
+ resolve(_this45.$nextTick().then(_this45.recalculate));
19856
19867
  });
19857
19868
  });
19858
19869
  },
@@ -19864,7 +19875,7 @@ var Methods = {
19864
19875
  * @param {Boolean} expanded 是否展开
19865
19876
  */
19866
19877
  setRowExpand: function setRowExpand(rows, expanded) {
19867
- var _this45 = this;
19878
+ var _this46 = this;
19868
19879
  var fullAllDataRowMap = this.fullAllDataRowMap,
19869
19880
  expandLazyLoadeds = this.expandLazyLoadeds,
19870
19881
  expandOpts = this.expandOpts,
@@ -19893,17 +19904,17 @@ var Methods = {
19893
19904
  columnIndex: columnIndex,
19894
19905
  $columnIndex: $columnIndex,
19895
19906
  row: row,
19896
- rowIndex: _this45.getRowIndex(row),
19897
- $rowIndex: _this45.getVMRowIndex(row)
19907
+ rowIndex: _this46.getRowIndex(row),
19908
+ $rowIndex: _this46.getVMRowIndex(row)
19898
19909
  });
19899
19910
  }) : rows;
19900
19911
  if (expanded) {
19901
19912
  validRows.forEach(function (row) {
19902
- if (_this45.findRowIndexOf(rowExpandeds, row) === -1) {
19913
+ if (_this46.findRowIndexOf(rowExpandeds, row) === -1) {
19903
19914
  var rest = fullAllDataRowMap.get(row);
19904
- var isLoad = lazy && !rest.expandLoaded && _this45.findRowIndexOf(expandLazyLoadeds, row) === -1;
19915
+ var isLoad = lazy && !rest.expandLoaded && _this46.findRowIndexOf(expandLazyLoadeds, row) === -1;
19905
19916
  if (isLoad) {
19906
- lazyRests.push(_this45.handleAsyncRowExpand(row));
19917
+ lazyRests.push(_this46.handleAsyncRowExpand(row));
19907
19918
  } else {
19908
19919
  rowExpandeds.push(row);
19909
19920
  }
@@ -19911,12 +19922,12 @@ var Methods = {
19911
19922
  });
19912
19923
  } else {
19913
19924
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(rowExpandeds, function (row) {
19914
- return _this45.findRowIndexOf(validRows, row) > -1;
19925
+ return _this46.findRowIndexOf(validRows, row) > -1;
19915
19926
  });
19916
19927
  }
19917
19928
  if (reserve) {
19918
19929
  validRows.forEach(function (row) {
19919
- return _this45.handleRowExpandReserve(row, expanded);
19930
+ return _this46.handleRowExpandReserve(row, expanded);
19920
19931
  });
19921
19932
  }
19922
19933
  }
@@ -19935,7 +19946,7 @@ var Methods = {
19935
19946
  * 手动清空展开行状态,数据会恢复成未展开的状态
19936
19947
  */
19937
19948
  clearRowExpand: function clearRowExpand() {
19938
- var _this46 = this;
19949
+ var _this47 = this;
19939
19950
  var expandOpts = this.expandOpts,
19940
19951
  rowExpandeds = this.rowExpandeds,
19941
19952
  tableFullData = this.tableFullData;
@@ -19944,12 +19955,12 @@ var Methods = {
19944
19955
  this.rowExpandeds = [];
19945
19956
  if (reserve) {
19946
19957
  tableFullData.forEach(function (row) {
19947
- return _this46.handleRowExpandReserve(row, false);
19958
+ return _this47.handleRowExpandReserve(row, false);
19948
19959
  });
19949
19960
  }
19950
19961
  return this.$nextTick().then(function () {
19951
19962
  if (isExists) {
19952
- _this46.recalculate();
19963
+ _this47.recalculate();
19953
19964
  }
19954
19965
  });
19955
19966
  },
@@ -20019,7 +20030,7 @@ var Methods = {
20019
20030
  * @param {Row} row 行对象
20020
20031
  */
20021
20032
  reloadTreeExpand: function reloadTreeExpand(row) {
20022
- var _this47 = this;
20033
+ var _this48 = this;
20023
20034
  var treeOpts = this.treeOpts,
20024
20035
  treeLazyLoadeds = this.treeLazyLoadeds;
20025
20036
  var transform = treeOpts.transform,
@@ -20027,14 +20038,14 @@ var Methods = {
20027
20038
  hasChild = treeOpts.hasChild;
20028
20039
  if (lazy && row[hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
20029
20040
  this.clearTreeExpandLoaded(row).then(function () {
20030
- return _this47.handleAsyncTreeExpandChilds(row);
20041
+ return _this48.handleAsyncTreeExpandChilds(row);
20031
20042
  }).then(function () {
20032
20043
  if (transform) {
20033
- _this47.handleVirtualTreeToList();
20034
- return _this47.handleTableData();
20044
+ _this48.handleVirtualTreeToList();
20045
+ return _this48.handleTableData();
20035
20046
  }
20036
20047
  }).then(function () {
20037
- return _this47.recalculate();
20048
+ return _this48.recalculate();
20038
20049
  });
20039
20050
  }
20040
20051
  return this.$nextTick();
@@ -20101,7 +20112,7 @@ var Methods = {
20101
20112
  }
20102
20113
  },
20103
20114
  handleAsyncTreeExpandChilds: function handleAsyncTreeExpandChilds(row) {
20104
- var _this48 = this;
20115
+ var _this49 = this;
20105
20116
  var fullAllDataRowMap = this.fullAllDataRowMap,
20106
20117
  treeExpandeds = this.treeExpandeds,
20107
20118
  treeOpts = this.treeOpts,
@@ -20114,7 +20125,7 @@ var Methods = {
20114
20125
  return new Promise(function (resolve) {
20115
20126
  treeLazyLoadeds.push(row);
20116
20127
  loadMethod({
20117
- $table: _this48,
20128
+ $table: _this49,
20118
20129
  row: row
20119
20130
  }).then(function (childRecords) {
20120
20131
  // 响应成功后则展开行,并将子节点挂载到该节点下
@@ -20126,17 +20137,17 @@ var Methods = {
20126
20137
  childRecords = [];
20127
20138
  }
20128
20139
  if (childRecords) {
20129
- return _this48.loadTreeChildren(row, childRecords).then(function (childRows) {
20140
+ return _this49.loadTreeChildren(row, childRecords).then(function (childRows) {
20130
20141
  if (childRows.length && treeExpandeds.indexOf(row) === -1) {
20131
20142
  treeExpandeds.push(row);
20132
20143
  }
20133
20144
  // 如果当前节点已选中,则展开后子节点也被选中
20134
- if (!checkStrictly && _this48.isCheckedByCheckboxRow(row)) {
20135
- _this48.handleCheckedCheckboxRow(childRows, true, true);
20145
+ if (!checkStrictly && _this49.isCheckedByCheckboxRow(row)) {
20146
+ _this49.handleCheckedCheckboxRow(childRows, true, true);
20136
20147
  }
20137
- return _this48.$nextTick().then(function () {
20148
+ return _this49.$nextTick().then(function () {
20138
20149
  if (transform) {
20139
- return _this48.handleTableData();
20150
+ return _this49.handleTableData();
20140
20151
  }
20141
20152
  });
20142
20153
  });
@@ -20148,8 +20159,8 @@ var Methods = {
20148
20159
  return item === row;
20149
20160
  });
20150
20161
  })["finally"](function () {
20151
- _this48.$nextTick().then(function () {
20152
- return _this48.recalculate();
20162
+ _this49.$nextTick().then(function () {
20163
+ return _this49.recalculate();
20153
20164
  }).then(function () {
20154
20165
  return resolve();
20155
20166
  });
@@ -20181,7 +20192,7 @@ var Methods = {
20181
20192
  * @returns
20182
20193
  */
20183
20194
  handleBaseTreeExpand: function handleBaseTreeExpand(rows, expanded) {
20184
- var _this49 = this;
20195
+ var _this50 = this;
20185
20196
  var fullAllDataRowMap = this.fullAllDataRowMap,
20186
20197
  tableFullData = this.tableFullData,
20187
20198
  treeExpandeds = this.treeExpandeds,
@@ -20225,7 +20236,7 @@ var Methods = {
20225
20236
  var isLoad = lazy && row[hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1;
20226
20237
  // 是否使用懒加载
20227
20238
  if (isLoad) {
20228
- result.push(_this49.handleAsyncTreeExpandChilds(row));
20239
+ result.push(_this50.handleAsyncTreeExpandChilds(row));
20229
20240
  } else {
20230
20241
  if (row[children] && row[children].length) {
20231
20242
  treeExpandeds.push(row);
@@ -20240,7 +20251,7 @@ var Methods = {
20240
20251
  }
20241
20252
  if (reserve) {
20242
20253
  validRows.forEach(function (row) {
20243
- return _this49.handleTreeExpandReserve(row, expanded);
20254
+ return _this50.handleTreeExpandReserve(row, expanded);
20244
20255
  });
20245
20256
  }
20246
20257
  return Promise.all(result).then(this.recalculate);
@@ -20252,12 +20263,12 @@ var Methods = {
20252
20263
  * @returns
20253
20264
  */
20254
20265
  handleVirtualTreeExpand: function handleVirtualTreeExpand(rows, expanded) {
20255
- var _this50 = this;
20266
+ var _this51 = this;
20256
20267
  return this.handleBaseTreeExpand(rows, expanded).then(function () {
20257
- _this50.handleVirtualTreeToList();
20258
- return _this50.handleTableData();
20268
+ _this51.handleVirtualTreeToList();
20269
+ return _this51.handleTableData();
20259
20270
  }).then(function () {
20260
- return _this50.recalculate();
20271
+ return _this51.recalculate();
20261
20272
  });
20262
20273
  },
20263
20274
  /**
@@ -20296,7 +20307,7 @@ var Methods = {
20296
20307
  * 手动清空树形节点的展开状态,数据会恢复成未展开的状态
20297
20308
  */
20298
20309
  clearTreeExpand: function clearTreeExpand() {
20299
- var _this51 = this;
20310
+ var _this52 = this;
20300
20311
  var treeOpts = this.treeOpts,
20301
20312
  treeExpandeds = this.treeExpandeds,
20302
20313
  tableFullData = this.tableFullData;
@@ -20306,17 +20317,17 @@ var Methods = {
20306
20317
  this.treeExpandeds = [];
20307
20318
  if (reserve) {
20308
20319
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullData, function (row) {
20309
- return _this51.handleTreeExpandReserve(row, false);
20320
+ return _this52.handleTreeExpandReserve(row, false);
20310
20321
  }, treeOpts);
20311
20322
  }
20312
20323
  return this.handleTableData().then(function () {
20313
20324
  if (transform) {
20314
- _this51.handleVirtualTreeToList();
20315
- return _this51.handleTableData();
20325
+ _this52.handleVirtualTreeToList();
20326
+ return _this52.handleTableData();
20316
20327
  }
20317
20328
  }).then(function () {
20318
20329
  if (isExists) {
20319
- _this51.recalculate();
20330
+ _this52.recalculate();
20320
20331
  }
20321
20332
  });
20322
20333
  },
@@ -20435,28 +20446,28 @@ var Methods = {
20435
20446
  },
20436
20447
  // 计算可视渲染相关数据
20437
20448
  computeScrollLoad: function computeScrollLoad() {
20438
- var _this52 = this;
20449
+ var _this53 = this;
20439
20450
  return this.$nextTick().then(function () {
20440
- var sYOpts = _this52.sYOpts,
20441
- sXOpts = _this52.sXOpts,
20442
- scrollXLoad = _this52.scrollXLoad,
20443
- scrollYLoad = _this52.scrollYLoad,
20444
- scrollXStore = _this52.scrollXStore,
20445
- scrollYStore = _this52.scrollYStore;
20451
+ var sYOpts = _this53.sYOpts,
20452
+ sXOpts = _this53.sXOpts,
20453
+ scrollXLoad = _this53.scrollXLoad,
20454
+ scrollYLoad = _this53.scrollYLoad,
20455
+ scrollXStore = _this53.scrollXStore,
20456
+ scrollYStore = _this53.scrollYStore;
20446
20457
  // 计算 X 逻辑
20447
20458
  if (scrollXLoad) {
20448
- var _computeVirtualX3 = computeVirtualX(_this52),
20459
+ var _computeVirtualX3 = computeVirtualX(_this53),
20449
20460
  visibleXSize = _computeVirtualX3.visibleSize;
20450
20461
  var offsetXSize = sXOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sXOpts.oSize) : browse.msie ? 10 : browse.edge ? 5 : 0;
20451
20462
  scrollXStore.offsetSize = offsetXSize;
20452
20463
  scrollXStore.visibleSize = visibleXSize;
20453
20464
  scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
20454
- _this52.updateScrollXData();
20465
+ _this53.updateScrollXData();
20455
20466
  } else {
20456
- _this52.updateScrollXSpace();
20467
+ _this53.updateScrollXSpace();
20457
20468
  }
20458
20469
  // 计算 Y 逻辑
20459
- var _computeVirtualY = computeVirtualY(_this52),
20470
+ var _computeVirtualY = computeVirtualY(_this53),
20460
20471
  rowHeight = _computeVirtualY.rowHeight,
20461
20472
  visibleYSize = _computeVirtualY.visibleSize;
20462
20473
  scrollYStore.rowHeight = rowHeight;
@@ -20465,12 +20476,12 @@ var Methods = {
20465
20476
  scrollYStore.offsetSize = offsetYSize;
20466
20477
  scrollYStore.visibleSize = visibleYSize;
20467
20478
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
20468
- _this52.updateScrollYData();
20479
+ _this53.updateScrollYData();
20469
20480
  } else {
20470
- _this52.updateScrollYSpace();
20481
+ _this53.updateScrollYSpace();
20471
20482
  }
20472
- _this52.rowHeight = rowHeight;
20473
- _this52.$nextTick(_this52.updateStyle);
20483
+ _this53.rowHeight = rowHeight;
20484
+ _this53.$nextTick(_this53.updateStyle);
20474
20485
  });
20475
20486
  },
20476
20487
  handleTableColumn: function handleTableColumn() {
@@ -20480,11 +20491,11 @@ var Methods = {
20480
20491
  this.tableColumn = scrollXLoad ? visibleColumn.slice(scrollXStore.startIndex, scrollXStore.endIndex) : visibleColumn.slice(0);
20481
20492
  },
20482
20493
  updateScrollXData: function updateScrollXData() {
20483
- var _this53 = this;
20494
+ var _this54 = this;
20484
20495
  // this.tableColumn = []
20485
20496
  this.$nextTick(function () {
20486
- _this53.handleTableColumn();
20487
- _this53.updateScrollXSpace();
20497
+ _this54.handleTableColumn();
20498
+ _this54.updateScrollXSpace();
20488
20499
  });
20489
20500
  },
20490
20501
  // 更新横向 X 可视渲染上下剩余空间大小
@@ -20535,11 +20546,11 @@ var Methods = {
20535
20546
  }
20536
20547
  },
20537
20548
  updateScrollYData: function updateScrollYData() {
20538
- var _this54 = this;
20549
+ var _this55 = this;
20539
20550
  // this.tableData = []
20540
20551
  this.$nextTick(function () {
20541
- _this54.handleTableData();
20542
- _this54.updateScrollYSpace();
20552
+ _this55.handleTableData();
20553
+ _this55.updateScrollYSpace();
20543
20554
  });
20544
20555
  },
20545
20556
  // 更新纵向 Y 可视渲染上下剩余空间大小
@@ -20580,7 +20591,7 @@ var Methods = {
20580
20591
  * @param {Number} scrollTop 上距离
20581
20592
  */
20582
20593
  scrollTo: function scrollTo(scrollLeft, scrollTop) {
20583
- var _this55 = this;
20594
+ var _this56 = this;
20584
20595
  var $refs = this.$refs;
20585
20596
  var tableBody = $refs.tableBody,
20586
20597
  rightBody = $refs.rightBody,
@@ -20597,7 +20608,7 @@ var Methods = {
20597
20608
  if (this.scrollXLoad || this.scrollYLoad) {
20598
20609
  return new Promise(function (resolve) {
20599
20610
  return setTimeout(function () {
20600
- return resolve(_this55.$nextTick());
20611
+ return resolve(_this56.$nextTick());
20601
20612
  }, 50);
20602
20613
  });
20603
20614
  }
@@ -20639,7 +20650,7 @@ var Methods = {
20639
20650
  * @param {Row} row 行对象
20640
20651
  */
20641
20652
  scrollToTreeRow: function scrollToTreeRow(row) {
20642
- var _this56 = this;
20653
+ var _this57 = this;
20643
20654
  var tableFullData = this.tableFullData,
20644
20655
  treeConfig = this.treeConfig,
20645
20656
  treeOpts = this.treeOpts;
@@ -20651,14 +20662,14 @@ var Methods = {
20651
20662
  if (matchObj) {
20652
20663
  var nodes = matchObj.nodes;
20653
20664
  nodes.forEach(function (row, index) {
20654
- if (index < nodes.length - 1 && !_this56.isTreeExpandByRow(row)) {
20655
- rests.push(_this56.setTreeExpand(row, true));
20665
+ if (index < nodes.length - 1 && !_this57.isTreeExpandByRow(row)) {
20666
+ rests.push(_this57.setTreeExpand(row, true));
20656
20667
  }
20657
20668
  });
20658
20669
  }
20659
20670
  }
20660
20671
  return Promise.all(rests).then(function () {
20661
- return rowToVisible(_this56, row);
20672
+ return rowToVisible(_this57, row);
20662
20673
  });
20663
20674
  },
20664
20675
  /**
@@ -20713,30 +20724,30 @@ var Methods = {
20713
20724
  * 如果单元格配置了校验规则,则会进行校验
20714
20725
  */
20715
20726
  updateStatus: function updateStatus(scope, cellValue) {
20716
- var _this57 = this;
20727
+ var _this58 = this;
20717
20728
  var customVal = !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(cellValue);
20718
20729
  return this.$nextTick().then(function () {
20719
- var $refs = _this57.$refs,
20720
- editRules = _this57.editRules,
20721
- validStore = _this57.validStore;
20730
+ var $refs = _this58.$refs,
20731
+ editRules = _this58.editRules,
20732
+ validStore = _this58.validStore;
20722
20733
  if (scope && $refs.tableBody && editRules) {
20723
20734
  var row = scope.row,
20724
20735
  column = scope.column;
20725
20736
  var type = 'change';
20726
- if (_this57.hasCellRules(type, row, column)) {
20727
- var cell = _this57.getCell(row, column);
20737
+ if (_this58.hasCellRules(type, row, column)) {
20738
+ var cell = _this58.getCell(row, column);
20728
20739
  if (cell) {
20729
- return _this57.validCellRules(type, row, column, cellValue).then(function () {
20740
+ return _this58.validCellRules(type, row, column, cellValue).then(function () {
20730
20741
  if (customVal && validStore.visible) {
20731
20742
  setCellValue(row, column, cellValue);
20732
20743
  }
20733
- _this57.clearValidate();
20744
+ _this58.clearValidate();
20734
20745
  })["catch"](function (_ref8) {
20735
20746
  var rule = _ref8.rule;
20736
20747
  if (customVal) {
20737
20748
  setCellValue(row, column, cellValue);
20738
20749
  }
20739
- _this57.showValidTooltip({
20750
+ _this58.showValidTooltip({
20740
20751
  rule: rule,
20741
20752
  row: row,
20742
20753
  column: column,
@@ -20756,13 +20767,13 @@ var Methods = {
20756
20767
  * @param {TableMergeConfig[]} merges { row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }
20757
20768
  */
20758
20769
  setMergeCells: function setMergeCells(merges) {
20759
- var _this58 = this;
20770
+ var _this59 = this;
20760
20771
  if (this.spanMethod) {
20761
20772
  errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
20762
20773
  }
20763
20774
  setMerges(this, merges, this.mergeList, this.afterFullData);
20764
20775
  return this.$nextTick().then(function () {
20765
- return _this58.updateCellAreas();
20776
+ return _this59.updateCellAreas();
20766
20777
  });
20767
20778
  },
20768
20779
  /**
@@ -20770,13 +20781,13 @@ var Methods = {
20770
20781
  * @param {TableMergeConfig[]} merges 多个或数组 [{row:Row|number, col:ColumnInfo|number}]
20771
20782
  */
20772
20783
  removeMergeCells: function removeMergeCells(merges) {
20773
- var _this59 = this;
20784
+ var _this60 = this;
20774
20785
  if (this.spanMethod) {
20775
20786
  errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
20776
20787
  }
20777
20788
  var rest = removeMerges(this, merges, this.mergeList, this.afterFullData);
20778
20789
  return this.$nextTick().then(function () {
20779
- _this59.updateCellAreas();
20790
+ _this60.updateCellAreas();
20780
20791
  return rest;
20781
20792
  });
20782
20793
  },
@@ -20797,23 +20808,23 @@ var Methods = {
20797
20808
  this.setMergeFooterItems(this.mergeFooterItems);
20798
20809
  },
20799
20810
  setMergeFooterItems: function setMergeFooterItems(merges) {
20800
- var _this60 = this;
20811
+ var _this61 = this;
20801
20812
  if (this.footerSpanMethod) {
20802
20813
  errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
20803
20814
  }
20804
20815
  setMerges(this, merges, this.mergeFooterList, null);
20805
20816
  return this.$nextTick().then(function () {
20806
- return _this60.updateCellAreas();
20817
+ return _this61.updateCellAreas();
20807
20818
  });
20808
20819
  },
20809
20820
  removeMergeFooterItems: function removeMergeFooterItems(merges) {
20810
- var _this61 = this;
20821
+ var _this62 = this;
20811
20822
  if (this.footerSpanMethod) {
20812
20823
  errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
20813
20824
  }
20814
20825
  var rest = removeMerges(this, merges, this.mergeFooterList, null);
20815
20826
  return this.$nextTick().then(function () {
20816
- _this61.updateCellAreas();
20827
+ _this62.updateCellAreas();
20817
20828
  return rest;
20818
20829
  });
20819
20830
  },
@@ -20930,9 +20941,9 @@ var Methods = {
20930
20941
  return cellLabel;
20931
20942
  },
20932
20943
  findRowIndexOf: function findRowIndexOf(list, row) {
20933
- var _this62 = this;
20944
+ var _this63 = this;
20934
20945
  return row ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(list, function (item) {
20935
- return _this62.eqRow(item, row);
20946
+ return _this63.eqRow(item, row);
20936
20947
  }) : -1;
20937
20948
  },
20938
20949
  eqRow: function eqRow(row1, row2) {
@@ -21545,7 +21556,9 @@ function handleUupdateResize(_vm) {
21545
21556
  column: null
21546
21557
  },
21547
21558
  insertList: [],
21548
- removeList: []
21559
+ insertMaps: {},
21560
+ removeList: [],
21561
+ removeMaps: {}
21549
21562
  },
21550
21563
  // 存放 tooltip 相关信息
21551
21564
  tooltipStore: {
@@ -23363,8 +23376,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23363
23376
  * @param {Row} row 指定行
23364
23377
  */
23365
23378
  _insertAt: function _insertAt(records, row) {
23366
- var _this = this,
23367
- _editStore$insertList;
23379
+ var _this = this;
23368
23380
  var tableFullTreeData = this.tableFullTreeData,
23369
23381
  mergeList = this.mergeList,
23370
23382
  afterFullData = this.afterFullData,
@@ -23380,9 +23392,9 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23380
23392
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(records)) {
23381
23393
  records = [records];
23382
23394
  }
23383
- var newRecords = records.map(function (record) {
23384
- return _this.defineField(Object.assign({}, record));
23385
- });
23395
+ var newRecords = this.defineField(records.map(function (record) {
23396
+ return Object.assign({}, record);
23397
+ }));
23386
23398
  if (!row) {
23387
23399
  // 如果为虚拟树
23388
23400
  if (treeConfig && transform) {
@@ -23484,13 +23496,20 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23484
23496
  }
23485
23497
  }
23486
23498
  }
23487
- (_editStore$insertList = editStore.insertList).unshift.apply(_editStore$insertList, _toConsumableArray(newRecords));
23499
+ var insertList = editStore.insertList,
23500
+ insertMaps = editStore.insertMaps;
23501
+ newRecords.forEach(function (newRow) {
23502
+ var rowid = getRowid(_this, newRow);
23503
+ insertMaps[rowid] = newRow;
23504
+ });
23505
+ insertList.unshift.apply(insertList, _toConsumableArray(newRecords));
23506
+ this.cacheRowMap();
23507
+ this.updateScrollYStatus();
23488
23508
  this.handleTableData(treeConfig && transform);
23489
23509
  if (!(treeConfig && transform)) {
23490
23510
  this.updateAfterDataIndex();
23491
23511
  }
23492
23512
  this.updateFooter();
23493
- this.cacheRowMap();
23494
23513
  this.checkSelectionStatus();
23495
23514
  if (this.scrollYLoad) {
23496
23515
  this.updateScrollYSpace();
@@ -23526,7 +23545,8 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23526
23545
  var transform = treeOpts.transform;
23527
23546
  var actived = editStore.actived,
23528
23547
  removeList = editStore.removeList,
23529
- insertList = editStore.insertList;
23548
+ insertList = editStore.insertList,
23549
+ insertMaps = editStore.insertMaps;
23530
23550
  var checkField = checkboxOpts.checkField;
23531
23551
  var rest = [];
23532
23552
  if (!rows) {
@@ -23602,10 +23622,12 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23602
23622
  }
23603
23623
  // 从新增中移除已删除的数据
23604
23624
  rows.forEach(function (row) {
23625
+ var rowid = getRowid(_this2, row);
23605
23626
  var iIndex = _this2.findRowIndexOf(insertList, row);
23606
23627
  if (iIndex > -1) {
23607
23628
  insertList.splice(iIndex, 1);
23608
23629
  }
23630
+ delete insertMaps[rowid];
23609
23631
  });
23610
23632
  this.handleTableData(treeConfig && transform);
23611
23633
  if (!(treeConfig && transform)) {
@@ -23674,32 +23696,15 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23674
23696
  */
23675
23697
  _getInsertRecords: function _getInsertRecords() {
23676
23698
  var _this6 = this;
23677
- var treeConfig = this.treeConfig,
23678
- tableFullTreeData = this.tableFullTreeData,
23679
- tableFullData = this.tableFullData,
23680
- treeOpts = this.treeOpts;
23699
+ var fullAllDataRowIdData = this.fullAllDataRowIdData;
23681
23700
  var insertList = this.editStore.insertList;
23682
23701
  var insertRecords = [];
23683
- if (insertList.length) {
23684
- // 如果为虚拟树
23685
- if (treeConfig && treeOpts.transform) {
23686
- insertList.forEach(function (row) {
23687
- var rowid = getRowid(_this6, row);
23688
- var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableFullTreeData, function (item) {
23689
- return rowid === getRowid(_this6, item);
23690
- }, treeOpts);
23691
- if (matchObj) {
23692
- insertRecords.push(row);
23693
- }
23694
- });
23695
- } else {
23696
- insertList.forEach(function (row) {
23697
- if (tableFullData.indexOf(row) > -1) {
23698
- insertRecords.push(row);
23699
- }
23700
- });
23702
+ insertList.forEach(function (row) {
23703
+ var rowid = getRowid(_this6, row);
23704
+ if (fullAllDataRowIdData[rowid]) {
23705
+ insertRecords.push(row);
23701
23706
  }
23702
- }
23707
+ });
23703
23708
  return insertRecords;
23704
23709
  },
23705
23710
  /**
@@ -28746,13 +28751,19 @@ function renderOpts(h, _vm) {
28746
28751
  });
28747
28752
  }
28748
28753
  },
28749
- focusEvent: function focusEvent() {
28754
+ focusEvent: function focusEvent(evnt) {
28750
28755
  if (!this.disabled) {
28751
28756
  this.isActivated = true;
28752
28757
  }
28758
+ this.$emit('focus', {
28759
+ $event: evnt
28760
+ });
28753
28761
  },
28754
- blurEvent: function blurEvent() {
28762
+ blurEvent: function blurEvent(evnt) {
28755
28763
  this.isActivated = false;
28764
+ this.$emit('blur', {
28765
+ $event: evnt
28766
+ });
28756
28767
  },
28757
28768
  modelSearchEvent: function modelSearchEvent(value) {
28758
28769
  this.searchValue = value;
@@ -37051,6 +37062,7 @@ var VxeFormConfigItem = {
37051
37062
  children = item.children;
37052
37063
  var compConf = isEnableConf(itemRender) ? v_x_e_table.renderer.get(itemRender.name) : null;
37053
37064
  var itemClassName = compConf ? compConf.itemClassName : '';
37065
+ var itemStyle = compConf ? compConf.itemStyle : null;
37054
37066
  var span = item.span || $xeform.span;
37055
37067
  var align = item.align || $xeform.align;
37056
37068
  var titleAlign = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(item.titleAlign) ? allTitleAlign : item.titleAlign;
@@ -37122,7 +37134,8 @@ var VxeFormConfigItem = {
37122
37134
  'is--hidden': folding && collapseAll,
37123
37135
  'is--active': isActivetem($xeform, item),
37124
37136
  'is--error': showError
37125
- }]
37137
+ }],
37138
+ style: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemStyle) ? itemStyle(params) : itemStyle
37126
37139
  }, [h('div', {
37127
37140
  "class": 'vxe-form--item-inner'
37128
37141
  }, [title || slots && slots.title ? h('div', {
@@ -37936,6 +37949,7 @@ var renderItem = function renderItem(h, _vm, item, slots) {
37936
37949
  titleOverflow = item.titleOverflow;
37937
37950
  var compConf = isEnableConf(itemRender) ? v_x_e_table.renderer.get(itemRender.name) : null;
37938
37951
  var itemClassName = compConf ? compConf.itemClassName : '';
37952
+ var itemStyle = compConf ? compConf.itemStyle : null;
37939
37953
  var span = item.span || _vm.span;
37940
37954
  var align = item.align || _vm.align;
37941
37955
  var titleAlign = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(item.titleAlign) ? allTitleAlign : item.titleAlign;
@@ -37992,7 +38006,8 @@ var renderItem = function renderItem(h, _vm, item, slots) {
37992
38006
  'is--hidden': folding && collapseAll,
37993
38007
  'is--active': isActivetem(_vm, item),
37994
38008
  'is--error': showError
37995
- }]
38009
+ }],
38010
+ style: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemStyle) ? itemStyle(params) : itemStyle
37996
38011
  }, [h('div', {
37997
38012
  "class": 'vxe-form--item-inner'
37998
38013
  }, [title || slots && slots.title ? h('div', {