vxe-table 3.12.14 → 3.12.15

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/es/style.css +1 -1
  2. package/es/table/module/edit/mixin.js +31 -15
  3. package/es/table/module/export/mixin.js +3 -2
  4. package/es/table/module/validator/mixin.js +6 -1
  5. package/es/table/src/body.js +1 -0
  6. package/es/table/src/methods.js +123 -88
  7. package/es/table/src/table.js +0 -1
  8. package/es/ui/index.js +1 -1
  9. package/es/ui/src/log.js +1 -1
  10. package/lib/index.umd.js +212 -149
  11. package/lib/index.umd.min.js +1 -1
  12. package/lib/style.css +1 -1
  13. package/lib/table/module/edit/mixin.js +37 -15
  14. package/lib/table/module/edit/mixin.min.js +1 -1
  15. package/lib/table/module/export/mixin.js +3 -2
  16. package/lib/table/module/export/mixin.min.js +1 -1
  17. package/lib/table/module/validator/mixin.js +8 -0
  18. package/lib/table/module/validator/mixin.min.js +1 -1
  19. package/lib/table/src/body.js +1 -0
  20. package/lib/table/src/body.min.js +1 -1
  21. package/lib/table/src/methods.js +161 -129
  22. package/lib/table/src/methods.min.js +1 -1
  23. package/lib/table/src/table.js +0 -1
  24. package/lib/table/src/table.min.js +1 -1
  25. package/lib/ui/index.js +1 -1
  26. package/lib/ui/index.min.js +1 -1
  27. package/lib/ui/src/log.js +1 -1
  28. package/lib/ui/src/log.min.js +1 -1
  29. package/package.json +1 -1
  30. package/packages/table/module/edit/mixin.ts +37 -15
  31. package/packages/table/module/export/mixin.ts +3 -2
  32. package/packages/table/module/validator/mixin.ts +6 -1
  33. package/packages/table/src/body.ts +1 -0
  34. package/packages/table/src/methods.ts +127 -84
  35. package/packages/table/src/table.ts +0 -1
  36. /package/es/{iconfont.1739181382716.ttf → iconfont.1739257460253.ttf} +0 -0
  37. /package/es/{iconfont.1739181382716.woff → iconfont.1739257460253.woff} +0 -0
  38. /package/es/{iconfont.1739181382716.woff2 → iconfont.1739257460253.woff2} +0 -0
  39. /package/lib/{iconfont.1739181382716.ttf → iconfont.1739257460253.ttf} +0 -0
  40. /package/lib/{iconfont.1739181382716.woff → iconfont.1739257460253.woff} +0 -0
  41. /package/lib/{iconfont.1739181382716.woff2 → iconfont.1739257460253.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
2220
2220
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2221
2221
 
2222
2222
 
2223
- const version = "3.12.14";
2223
+ const version = "3.12.15";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2842,7 +2842,7 @@ function isNodeElement(elem) {
2842
2842
  const {
2843
2843
  log: log_log
2844
2844
  } = core_.VxeUI;
2845
- const log_version = `table v${"3.12.14"}`;
2845
+ const log_version = `table v${"3.12.15"}`;
2846
2846
  const warnLog = log_log.create('warn', log_version);
2847
2847
  const errLog = log_log.create('error', log_version);
2848
2848
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -6320,7 +6320,7 @@ const calcCellHeight = $xeTable => {
6320
6320
  reactData.calcCellHeightFlag++;
6321
6321
  }
6322
6322
  };
6323
- function getOrderField(_vm, column) {
6323
+ function getOrderField($xeTable, column) {
6324
6324
  const {
6325
6325
  sortBy,
6326
6326
  sortType
@@ -6333,7 +6333,7 @@ function getOrderField(_vm, column) {
6333
6333
  column
6334
6334
  }) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, sortBy);
6335
6335
  } else {
6336
- cellValue = _vm.getCellLabel(row, column);
6336
+ cellValue = $xeTable.getCellLabel(row, column);
6337
6337
  }
6338
6338
  if (!sortType || sortType === 'auto') {
6339
6339
  return isNaN(cellValue) ? cellValue : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
@@ -8395,15 +8395,26 @@ const Methods = {
8395
8395
  */
8396
8396
  updateAfterFullData() {
8397
8397
  const $xeTable = this;
8398
+ const props = $xeTable;
8399
+ const internalData = $xeTable;
8400
+ const {
8401
+ treeConfig
8402
+ } = props;
8398
8403
  const {
8399
8404
  tableFullColumn,
8400
8405
  tableFullData,
8401
- filterOpts,
8402
- sortOpts,
8403
- treeConfig,
8404
- treeOpts,
8405
8406
  tableFullTreeData
8406
- } = this;
8407
+ } = internalData;
8408
+ const filterOpts = $xeTable.computeFilterOpts;
8409
+ const sortOpts = $xeTable.computeSortOpts;
8410
+ const treeOpts = $xeTable.computeTreeOpts;
8411
+ const childrenField = treeOpts.children || treeOpts.childrenField;
8412
+ const {
8413
+ transform,
8414
+ rowField,
8415
+ parentField,
8416
+ mapChildrenField
8417
+ } = treeOpts;
8407
8418
  const {
8408
8419
  remote: allRemoteFilter,
8409
8420
  filterMethod: allFilterMethod
@@ -8414,63 +8425,61 @@ const Methods = {
8414
8425
  multiple: sortMultiple,
8415
8426
  chronological
8416
8427
  } = sortOpts;
8417
- const {
8418
- transform
8419
- } = treeOpts;
8420
- const childrenField = treeOpts.children || treeOpts.childrenField;
8421
8428
  let tableData = [];
8422
8429
  let tableTree = [];
8423
- const filterColumns = [];
8424
- let orderColumns = [];
8425
- tableFullColumn.forEach(column => {
8426
- const {
8427
- field,
8428
- sortable,
8429
- order,
8430
- filters
8431
- } = column;
8432
- if (!allRemoteFilter && filters && filters.length) {
8433
- const valueList = [];
8434
- const itemList = [];
8435
- filters.forEach(item => {
8436
- if (item.checked) {
8437
- itemList.push(item);
8438
- valueList.push(item.value);
8430
+ // 处理数据
8431
+ if (!allRemoteFilter || !allRemoteSort) {
8432
+ const filterColumns = [];
8433
+ let orderColumns = [];
8434
+ tableFullColumn.forEach(column => {
8435
+ const {
8436
+ field,
8437
+ sortable,
8438
+ order,
8439
+ filters
8440
+ } = column;
8441
+ if (!allRemoteFilter && filters && filters.length) {
8442
+ const valueList = [];
8443
+ const itemList = [];
8444
+ filters.forEach(item => {
8445
+ if (item.checked) {
8446
+ itemList.push(item);
8447
+ valueList.push(item.value);
8448
+ }
8449
+ });
8450
+ if (itemList.length) {
8451
+ filterColumns.push({
8452
+ column,
8453
+ valueList,
8454
+ itemList
8455
+ });
8439
8456
  }
8440
- });
8441
- if (itemList.length) {
8442
- filterColumns.push({
8457
+ }
8458
+ if (!allRemoteSort && sortable && order) {
8459
+ orderColumns.push({
8443
8460
  column,
8444
- valueList,
8445
- itemList
8461
+ field,
8462
+ property: field,
8463
+ order: order,
8464
+ sortTime: column.sortTime
8446
8465
  });
8447
8466
  }
8448
- }
8449
- if (!allRemoteSort && sortable && order) {
8450
- orderColumns.push({
8451
- column,
8452
- field,
8453
- property: field,
8454
- order,
8455
- sortTime: column.sortTime
8456
- });
8457
- }
8458
- });
8459
- if (sortMultiple && chronological && orderColumns.length > 1) {
8460
- orderColumns = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(orderColumns, 'sortTime');
8461
- }
8462
- if (filterColumns.length) {
8463
- const handleFilter = row => {
8464
- return filterColumns.every(({
8465
- column,
8466
- valueList,
8467
- itemList
8468
- }) => {
8469
- if (valueList.length && !allRemoteFilter) {
8467
+ });
8468
+ if (sortMultiple && chronological && orderColumns.length > 1) {
8469
+ orderColumns = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(orderColumns, 'sortTime');
8470
+ }
8471
+ // 处理筛选
8472
+ // 支持单列、多列、组合筛选
8473
+ if (!allRemoteFilter && filterColumns.length) {
8474
+ const handleFilter = row => {
8475
+ return filterColumns.every(({
8476
+ column,
8477
+ valueList,
8478
+ itemList
8479
+ }) => {
8470
8480
  const {
8471
8481
  filterMethod,
8472
- filterRender,
8473
- field
8482
+ filterRender
8474
8483
  } = column;
8475
8484
  const compConf = isEnableConf(filterRender) ? methods_renderer.get(filterRender.name) : null;
8476
8485
  const compFilterMethod = compConf ? compConf.tableFilterMethod || compConf.filterMethod : null;
@@ -8483,7 +8492,7 @@ const Methods = {
8483
8492
  cellValue,
8484
8493
  row,
8485
8494
  column,
8486
- $table: this
8495
+ $table: $xeTable
8487
8496
  }));
8488
8497
  } else if (compFilterMethod) {
8489
8498
  return itemList.some(item => compFilterMethod({
@@ -8492,7 +8501,7 @@ const Methods = {
8492
8501
  cellValue,
8493
8502
  row,
8494
8503
  column,
8495
- $table: this
8504
+ $table: $xeTable
8496
8505
  }));
8497
8506
  } else if (allFilterMethod) {
8498
8507
  return allFilterMethod({
@@ -8509,96 +8518,119 @@ const Methods = {
8509
8518
  cellValue,
8510
8519
  row,
8511
8520
  column,
8512
- $table: this
8521
+ $table: $xeTable
8513
8522
  }));
8514
8523
  }
8515
- return valueList.indexOf(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, field)) > -1;
8516
- }
8517
- return true;
8518
- });
8519
- };
8520
- if (treeConfig && transform) {
8521
- // 筛选虚拟树
8522
- tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, handleFilter, {
8523
- original: true,
8524
- isEvery: true,
8525
- children: treeOpts.mapChildrenField,
8526
- mapChildren: childrenField
8527
- });
8528
- tableData = tableTree;
8529
- } else {
8530
- tableData = treeConfig ? tableFullTreeData.filter(handleFilter) : tableFullData.filter(handleFilter);
8531
- tableTree = tableData;
8532
- }
8533
- } else {
8534
- if (treeConfig && transform) {
8535
- // 还原虚拟树
8536
- tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, () => true, {
8537
- original: true,
8538
- isEvery: true,
8539
- children: treeOpts.mapChildrenField,
8540
- mapChildren: childrenField
8541
- });
8542
- tableData = tableTree;
8543
- } else {
8544
- tableData = treeConfig ? tableFullTreeData.slice(0) : tableFullData.slice(0);
8545
- tableTree = tableData;
8546
- }
8547
- }
8548
- const firstOrderColumn = orderColumns[0];
8549
- if (!allRemoteSort && firstOrderColumn) {
8550
- if (treeConfig && transform) {
8551
- // 虚拟树和列表一样,只能排序根级节点
8552
- if (allSortMethod) {
8553
- const sortRests = allSortMethod({
8554
- data: tableTree,
8555
- sortList: orderColumns,
8556
- $table: this
8524
+ return valueList.indexOf(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field)) > -1;
8557
8525
  });
8558
- tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(sortRests) ? sortRests : tableTree;
8526
+ };
8527
+ if (treeConfig && transform) {
8528
+ // 筛选虚拟树
8529
+ tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, handleFilter, {
8530
+ original: true,
8531
+ isEvery: true,
8532
+ children: mapChildrenField,
8533
+ mapChildren: childrenField
8534
+ });
8535
+ tableData = tableTree;
8559
8536
  } else {
8560
- tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableTree, orderColumns.map(({
8561
- column,
8562
- order
8563
- }) => [getOrderField(this, column), order]));
8537
+ tableData = treeConfig ? tableFullTreeData.filter(handleFilter) : tableFullData.filter(handleFilter);
8538
+ tableTree = tableData;
8564
8539
  }
8565
- tableData = tableTree;
8566
8540
  } else {
8567
- if (allSortMethod) {
8568
- const sortRests = allSortMethod({
8569
- data: tableData,
8570
- column: firstOrderColumn.column,
8571
- property: firstOrderColumn.field,
8572
- field: firstOrderColumn.field,
8573
- order: firstOrderColumn.order,
8574
- sortList: orderColumns,
8575
- $table: this
8541
+ if (treeConfig && transform) {
8542
+ // 还原虚拟树
8543
+ tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, () => true, {
8544
+ original: true,
8545
+ isEvery: true,
8546
+ children: mapChildrenField,
8547
+ mapChildren: childrenField
8576
8548
  });
8577
- tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(sortRests) ? sortRests : tableData;
8549
+ tableData = tableTree;
8578
8550
  } else {
8579
- // 兼容 v4
8580
- if (sortMultiple) {
8581
- tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableData, orderColumns.map(({
8551
+ tableData = treeConfig ? tableFullTreeData.slice(0) : tableFullData.slice(0);
8552
+ tableTree = tableData;
8553
+ }
8554
+ }
8555
+ // 处理排序(不能用于树形结构)
8556
+ // 支持单列、多列、组合排序
8557
+ if (!allRemoteSort && orderColumns.length) {
8558
+ if (treeConfig && transform) {
8559
+ // 虚拟树和列表一样,只能排序根级节点
8560
+ if (allSortMethod) {
8561
+ const sortRests = allSortMethod({
8562
+ data: tableTree,
8563
+ sortList: orderColumns,
8564
+ $table: $xeTable
8565
+ });
8566
+ tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(sortRests) ? sortRests : tableTree;
8567
+ } else {
8568
+ const treeList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toTreeArray(tableTree, {
8569
+ children: mapChildrenField
8570
+ });
8571
+ tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(treeList, orderColumns.map(({
8582
8572
  column,
8583
8573
  order
8584
- }) => [getOrderField(this, column), order]));
8574
+ }) => [getOrderField($xeTable, column), order])), {
8575
+ key: rowField,
8576
+ parentKey: parentField,
8577
+ children: childrenField,
8578
+ mapChildren: mapChildrenField
8579
+ });
8580
+ }
8581
+ tableData = tableTree;
8582
+ } else {
8583
+ if (allSortMethod) {
8584
+ const sortRests = allSortMethod({
8585
+ data: tableData,
8586
+ sortList: orderColumns,
8587
+ $table: $xeTable
8588
+ });
8589
+ tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(sortRests) ? sortRests : tableData;
8585
8590
  } else {
8586
- // 兼容 v2,在 v4 中废弃, sortBy 不能为数组
8587
- let sortByConfs;
8588
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(firstOrderColumn.sortBy)) {
8589
- sortByConfs = firstOrderColumn.sortBy.map(item => [item, firstOrderColumn.order]);
8591
+ // 兼容 v4
8592
+ if (sortMultiple) {
8593
+ tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableData, orderColumns.map(({
8594
+ column,
8595
+ order
8596
+ }) => [getOrderField(this, column), order]));
8597
+ } else {
8598
+ const firstOrderColumn = orderColumns[0];
8599
+ let sortByConfs;
8600
+ // 已废弃,兼容 v2,在 v4 中废弃, sortBy 不能为数组
8601
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(firstOrderColumn.sortBy)) {
8602
+ sortByConfs = firstOrderColumn.sortBy.map(item => [item, firstOrderColumn.order]);
8603
+ }
8604
+ tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableData, sortByConfs || [firstOrderColumn].map(({
8605
+ column,
8606
+ order
8607
+ }) => [getOrderField(this, column), order]));
8590
8608
  }
8591
- tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableData, sortByConfs || [firstOrderColumn].map(({
8609
+ tableData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableData, orderColumns.map(({
8592
8610
  column,
8593
8611
  order
8594
- }) => [getOrderField(this, column), order]));
8612
+ }) => [getOrderField($xeTable, column), order]));
8595
8613
  }
8614
+ tableTree = tableData;
8596
8615
  }
8616
+ }
8617
+ } else {
8618
+ if (treeConfig && transform) {
8619
+ // 还原虚拟树
8620
+ tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, () => true, {
8621
+ original: true,
8622
+ isEvery: true,
8623
+ children: treeOpts.mapChildrenField,
8624
+ mapChildren: childrenField
8625
+ });
8626
+ tableData = tableTree;
8627
+ } else {
8628
+ tableData = treeConfig ? tableFullTreeData.slice(0) : tableFullData.slice(0);
8597
8629
  tableTree = tableData;
8598
8630
  }
8599
8631
  }
8600
- this.afterFullData = tableData;
8601
- this.afterTreeFullData = tableTree;
8632
+ internalData.afterFullData = tableData;
8633
+ internalData.afterTreeFullData = tableTree;
8602
8634
  updateAfterDataIndex($xeTable);
8603
8635
  },
8604
8636
  /**
@@ -15550,6 +15582,7 @@ function renderTdColumn(h, _vm, seq, rowid, fixedType, isOptimizeMode, rowLevel,
15550
15582
  'fixed--width': !isAutoCellWidth,
15551
15583
  'fixed--hidden': fixedHiddenColumn,
15552
15584
  'is--padding': isCellPadding,
15585
+ 'is--progress': fixedHiddenColumn && isAllOverflow || isVNPreEmptyStatus,
15553
15586
  'is--drag-cell': isRowDragCell && (isCrossDrag || isPeerDrag || !rowLevel),
15554
15587
  'is--drag-disabled': isDisabledDrag,
15555
15588
  'col--dirty': isDirty,
@@ -20230,6 +20263,15 @@ const {
20230
20263
  renderer: edit_mixin_renderer,
20231
20264
  getI18n: mixin_getI18n
20232
20265
  } = core_.VxeUI;
20266
+ function removeCellSelectedClass($xeTable) {
20267
+ const el = $xeTable.$refs.refElem;
20268
+ if (el) {
20269
+ const cell = el.querySelector('.col--selected');
20270
+ if (cell) {
20271
+ removeClass(cell, 'col--selected');
20272
+ }
20273
+ }
20274
+ }
20233
20275
  function insertTreeRow(_vm, newRecords, isAppend) {
20234
20276
  const {
20235
20277
  tableFullTreeData,
@@ -20651,7 +20693,7 @@ function handleInsertChildRowAt($xeTable, records, parentRow, targetRow, isInser
20651
20693
  const childrenField = treeOpts.children || treeOpts.childrenField;
20652
20694
  const {
20653
20695
  actived,
20654
- removeList,
20696
+ removeMaps,
20655
20697
  insertMaps
20656
20698
  } = editStore;
20657
20699
  const {
@@ -20666,7 +20708,8 @@ function handleInsertChildRowAt($xeTable, records, parentRow, targetRow, isInser
20666
20708
  // 如果是新增,则保存记录
20667
20709
  rows.forEach(row => {
20668
20710
  if (!$xeTable.isInsertByRow(row)) {
20669
- removeList.push(row);
20711
+ const rowid = getRowid($xeTable, row);
20712
+ removeMaps[rowid] = row;
20670
20713
  }
20671
20714
  });
20672
20715
  // 如果绑定了多选属性,则更新状态
@@ -20843,7 +20886,19 @@ function handleInsertChildRowAt($xeTable, records, parentRow, targetRow, isInser
20843
20886
  * 获取已删除的数据
20844
20887
  */
20845
20888
  _getRemoveRecords() {
20846
- return this.editStore.removeList;
20889
+ const $xeTable = this;
20890
+ const reactData = $xeTable;
20891
+ const {
20892
+ editStore
20893
+ } = reactData;
20894
+ const {
20895
+ removeMaps
20896
+ } = editStore;
20897
+ const removeRecords = [];
20898
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(removeMaps, row => {
20899
+ removeRecords.push(row);
20900
+ });
20901
+ return removeRecords;
20847
20902
  },
20848
20903
  /**
20849
20904
  * 获取更新数据
@@ -21310,7 +21365,7 @@ function handleInsertChildRowAt($xeTable, records, parentRow, targetRow, isInser
21310
21365
  selected.row = row;
21311
21366
  selected.column = column;
21312
21367
  if (isMouseSelected) {
21313
- this.addColSdCls();
21368
+ this.addCellSelectedClass();
21314
21369
  }
21315
21370
  this.focus();
21316
21371
  if (evnt) {
@@ -21339,13 +21394,14 @@ function handleInsertChildRowAt($xeTable, records, parentRow, targetRow, isInser
21339
21394
  * 清除所选中源状态
21340
21395
  */
21341
21396
  _clearSelected() {
21397
+ const $xeTable = this;
21342
21398
  const {
21343
21399
  selected
21344
21400
  } = this.editStore;
21345
21401
  selected.row = null;
21346
21402
  selected.column = null;
21347
21403
  this.reColTitleSdCls();
21348
- this.reColSdCls();
21404
+ removeCellSelectedClass($xeTable);
21349
21405
  return this.$nextTick();
21350
21406
  },
21351
21407
  reColTitleSdCls() {
@@ -21354,23 +21410,22 @@ function handleInsertChildRowAt($xeTable, records, parentRow, targetRow, isInser
21354
21410
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(headerElem.querySelectorAll('.col--title-selected'), elem => removeClass(elem, 'col--title-selected'));
21355
21411
  }
21356
21412
  },
21357
- reColSdCls() {
21358
- const cell = this.$el.querySelector('.col--selected');
21359
- if (cell) {
21360
- removeClass(cell, 'col--selected');
21361
- }
21362
- },
21363
- addColSdCls() {
21413
+ addCellSelectedClass() {
21414
+ const $xeTable = this;
21415
+ const reactData = $xeTable;
21416
+ const {
21417
+ editStore
21418
+ } = reactData;
21364
21419
  const {
21365
21420
  selected
21366
- } = this.editStore;
21421
+ } = editStore;
21367
21422
  const {
21368
21423
  row,
21369
21424
  column
21370
21425
  } = selected;
21371
- this.reColSdCls();
21426
+ removeCellSelectedClass($xeTable);
21372
21427
  if (row && column) {
21373
- const cell = this.getCellElement(row, column);
21428
+ const cell = $xeTable.getCellElement(row, column);
21374
21429
  if (cell) {
21375
21430
  addClass(cell, 'col--selected');
21376
21431
  }
@@ -21409,6 +21464,7 @@ function createHtmlPage(opts, content) {
21409
21464
 
21410
21465
 
21411
21466
 
21467
+
21412
21468
  const {
21413
21469
  getI18n: export_mixin_getI18n,
21414
21470
  renderer: export_mixin_renderer
@@ -21541,7 +21597,7 @@ function getBodyLabelData($xeTable, opts, columns, datas) {
21541
21597
  cellValue = htmlCellElem.innerText.trim();
21542
21598
  } else {
21543
21599
  const cell = $xeTable.getCellElement(row, column);
21544
- if (cell) {
21600
+ if (cell && !hasClass(cell, 'is--progress')) {
21545
21601
  cellValue = cell.innerText.trim();
21546
21602
  }
21547
21603
  }
@@ -21611,7 +21667,7 @@ function getBodyLabelData($xeTable, opts, columns, datas) {
21611
21667
  cellValue = htmlCellElem.innerText.trim();
21612
21668
  } else {
21613
21669
  const cell = $xeTable.getCellElement(row, column);
21614
- if (cell) {
21670
+ if (cell && !hasClass(cell, 'is--progress')) {
21615
21671
  cellValue = cell.innerText.trim();
21616
21672
  }
21617
21673
  }
@@ -23938,11 +23994,15 @@ function validErrorRuleValue(rule, val) {
23938
23994
  treeConfig
23939
23995
  } = props;
23940
23996
  const {
23997
+ editStore,
23941
23998
  pendingRowMaps
23942
23999
  } = reactData;
23943
24000
  const {
23944
24001
  afterFullData
23945
24002
  } = internalData;
24003
+ const {
24004
+ removeMaps
24005
+ } = editStore;
23946
24006
  const treeOpts = $xeTable.computeTreeOpts;
23947
24007
  const childrenField = treeOpts.children || treeOpts.childrenField;
23948
24008
  let validList;
@@ -23967,6 +24027,10 @@ function validErrorRuleValue(rule, val) {
23967
24027
  const columns = cols && cols.length ? cols : this.getColumns();
23968
24028
  const handleVaild = row => {
23969
24029
  const rowid = getRowid($xeTable, row);
24030
+ // 是否删除
24031
+ if (removeMaps[rowid]) {
24032
+ return;
24033
+ }
23970
24034
  // 是否标记删除
23971
24035
  if (pendingRowMaps[rowid]) {
23972
24036
  return;
@@ -25151,7 +25215,6 @@ function renderBody(h, $xeTable) {
25151
25215
  column: null
25152
25216
  },
25153
25217
  insertMaps: {},
25154
- removeList: [],
25155
25218
  removeMaps: {}
25156
25219
  },
25157
25220
  // 存放 tooltip 相关信息