vxe-table 3.13.0-beta.2 → 3.13.0-beta.4

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 (60) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table/module/edit/mixin.js +1 -8
  6. package/es/table/src/body.js +4 -2
  7. package/es/table/src/cell.js +3 -0
  8. package/es/table/src/footer.js +4 -2
  9. package/es/table/src/header.js +4 -2
  10. package/es/table/src/methods.js +23 -12
  11. package/es/table/src/table.js +6 -0
  12. package/es/table/style.css +1 -1
  13. package/es/table/style.min.css +1 -1
  14. package/es/ui/index.js +1 -1
  15. package/es/ui/src/log.js +1 -1
  16. package/es/vxe-table/style.css +1 -1
  17. package/es/vxe-table/style.min.css +1 -1
  18. package/lib/index.css +1 -1
  19. package/lib/index.min.css +1 -1
  20. package/lib/index.umd.js +44 -27
  21. package/lib/index.umd.min.js +1 -1
  22. package/lib/style.css +1 -1
  23. package/lib/style.min.css +1 -1
  24. package/lib/table/module/edit/mixin.js +1 -10
  25. package/lib/table/module/edit/mixin.min.js +1 -1
  26. package/lib/table/src/body.js +4 -1
  27. package/lib/table/src/body.min.js +1 -1
  28. package/lib/table/src/cell.js +3 -0
  29. package/lib/table/src/cell.min.js +1 -1
  30. package/lib/table/src/footer.js +4 -1
  31. package/lib/table/src/footer.min.js +1 -1
  32. package/lib/table/src/header.js +4 -1
  33. package/lib/table/src/header.min.js +1 -1
  34. package/lib/table/src/methods.js +20 -12
  35. package/lib/table/src/methods.min.js +1 -1
  36. package/lib/table/src/table.js +6 -0
  37. package/lib/table/src/table.min.js +1 -1
  38. package/lib/table/style/style.css +1 -1
  39. package/lib/table/style/style.min.css +1 -1
  40. package/lib/ui/index.js +1 -1
  41. package/lib/ui/index.min.js +1 -1
  42. package/lib/ui/src/log.js +1 -1
  43. package/lib/ui/src/log.min.js +1 -1
  44. package/lib/vxe-table/style/style.css +1 -1
  45. package/lib/vxe-table/style/style.min.css +1 -1
  46. package/package.json +1 -1
  47. package/packages/table/module/edit/mixin.ts +1 -8
  48. package/packages/table/src/body.ts +5 -2
  49. package/packages/table/src/cell.ts +4 -1
  50. package/packages/table/src/footer.ts +5 -2
  51. package/packages/table/src/header.ts +5 -2
  52. package/packages/table/src/methods.ts +29 -15
  53. package/packages/table/src/table.ts +6 -0
  54. package/styles/components/table.scss +1 -1
  55. /package/es/{iconfont.1739506361723.ttf → iconfont.1739527648616.ttf} +0 -0
  56. /package/es/{iconfont.1739506361723.woff → iconfont.1739527648616.woff} +0 -0
  57. /package/es/{iconfont.1739506361723.woff2 → iconfont.1739527648616.woff2} +0 -0
  58. /package/lib/{iconfont.1739506361723.ttf → iconfont.1739527648616.ttf} +0 -0
  59. /package/lib/{iconfont.1739506361723.woff → iconfont.1739527648616.woff} +0 -0
  60. /package/lib/{iconfont.1739506361723.woff2 → iconfont.1739527648616.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.13.0-beta.2";
2223
+ const version = "3.13.0-beta.4";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2843,7 +2843,7 @@ function isNodeElement(elem) {
2843
2843
  const {
2844
2844
  log: log_log
2845
2845
  } = core_.VxeUI;
2846
- const log_version = `table v${"3.13.0-beta.2"}`;
2846
+ const log_version = `table v${"3.13.0-beta.4"}`;
2847
2847
  const warnLog = log_log.create('warn', log_version);
2848
2848
  const errLog = log_log.create('error', log_version);
2849
2849
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -4535,6 +4535,9 @@ const Cell = {
4535
4535
  'is--active': isActive
4536
4536
  }],
4537
4537
  on: {
4538
+ mousedown(evnt) {
4539
+ evnt.stopPropagation();
4540
+ },
4538
4541
  click(evnt) {
4539
4542
  $table.triggerRowExpandEvent(evnt, params);
4540
4543
  }
@@ -5287,7 +5290,7 @@ function cacheColumnMap($xeTable) {
5287
5290
  } = internalData;
5288
5291
  const fullColumnIdData = internalData.fullColumnIdData = {};
5289
5292
  const fullColumnFieldData = internalData.fullColumnFieldData = {};
5290
- const mouseOpts = $xeTable.computeMouseOpts;
5293
+ // const mouseOpts = $xeTable.computeMouseOpts
5291
5294
  const columnOpts = $xeTable.computeColumnOpts;
5292
5295
  const columnDragOpts = $xeTable.computeColumnDragOpts;
5293
5296
  const {
@@ -5393,11 +5396,11 @@ function cacheColumnMap($xeTable) {
5393
5396
  } else {
5394
5397
  tableFullColumn.forEach(handleFunc);
5395
5398
  }
5396
- if (true) {
5397
- if (expandColumn && mouseOpts.area) {
5398
- errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
5399
- }
5400
- }
5399
+ // if (process.env.VUE_APP_VXE_ENV === 'development') {
5400
+ // if (expandColumn && mouseOpts.area) {
5401
+ // errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand'])
5402
+ // }
5403
+ // }
5401
5404
  if (false) {}
5402
5405
  reactData.isGroup = isGroup;
5403
5406
  reactData.treeNodeColumn = treeNodeColumn;
@@ -13610,7 +13613,7 @@ const Methods = {
13610
13613
  delete rExpandLazyLoadedMaps[rowid];
13611
13614
  }
13612
13615
  reactData.rowExpandLazyLoadedMaps = rExpandLazyLoadedMaps;
13613
- $xeTable.$nextTick().then(() => $xeTable.recalculate()).then(() => resolve());
13616
+ $xeTable.$nextTick().then(() => $xeTable.recalculate()).then(() => $xeTable.updateCellAreas()).then(() => resolve());
13614
13617
  });
13615
13618
  } else {
13616
13619
  resolve();
@@ -13625,6 +13628,7 @@ const Methods = {
13625
13628
  * @param {Boolean} expanded 是否展开
13626
13629
  */
13627
13630
  setRowExpand(rows, expanded) {
13631
+ const $xeTable = this;
13628
13632
  const {
13629
13633
  rowExpandedMaps,
13630
13634
  fullAllDataRowIdData,
@@ -13688,7 +13692,7 @@ const Methods = {
13688
13692
  }
13689
13693
  }
13690
13694
  this.rowExpandedMaps = rExpandedMaps;
13691
- return Promise.all(lazyRests).then(this.recalculate);
13695
+ return Promise.all(lazyRests).then(() => $xeTable.recalculate()).then(() => $xeTable.updateCellAreas());
13692
13696
  },
13693
13697
  /**
13694
13698
  * 判断行是否为展开状态
@@ -13712,6 +13716,7 @@ const Methods = {
13712
13716
  * 手动清空展开行状态,数据会恢复成未展开的状态
13713
13717
  */
13714
13718
  clearRowExpand() {
13719
+ const $xeTable = this;
13715
13720
  const {
13716
13721
  expandOpts,
13717
13722
  tableFullData
@@ -13728,7 +13733,7 @@ const Methods = {
13728
13733
  if (expList.length) {
13729
13734
  this.recalculate();
13730
13735
  }
13731
- });
13736
+ }).then(() => $xeTable.updateCellAreas());
13732
13737
  },
13733
13738
  clearRowExpandReserve() {
13734
13739
  this.rowExpandedReserveRowMap = {};
@@ -15227,10 +15232,16 @@ const Methods = {
15227
15232
  }
15228
15233
  },
15229
15234
  updateCellAreas() {
15230
- if (this.mouseConfig && this.mouseOpts.area && this.handleRecalculateCellAreas) {
15231
- return this.handleRecalculateCellAreas();
15235
+ const $xeTable = this;
15236
+ const props = $xeTable;
15237
+ const {
15238
+ mouseConfig
15239
+ } = props;
15240
+ const mouseOpts = $xeTable.computeMouseOpts;
15241
+ if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreaEvent) {
15242
+ return $xeTable.handleRecalculateCellAreaEvent();
15232
15243
  }
15233
- return this.$nextTick();
15244
+ return $xeTable.$nextTick();
15234
15245
  },
15235
15246
  dispatchEvent(type, params, evnt) {
15236
15247
  const $xeTable = this;
@@ -16059,6 +16070,7 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
16059
16070
  tableData,
16060
16071
  isRowLoading,
16061
16072
  isColLoading,
16073
+ overflowX,
16062
16074
  scrollXLoad,
16063
16075
  scrollYLoad,
16064
16076
  isAllOverflow,
@@ -16088,8 +16100,10 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
16088
16100
  isOptimizeMode = true;
16089
16101
  }
16090
16102
  }
16091
- if (fixedType) {
16103
+ if (fixedType || !overflowX) {
16092
16104
  renderColumnList = visibleColumn;
16105
+ }
16106
+ if (fixedType) {
16093
16107
  if (isOptimizeMode) {
16094
16108
  renderColumnList = fixedColumn || [];
16095
16109
  }
@@ -16573,6 +16587,7 @@ function renderHeads(h, _vm, isGroup, isOptimizeMode, headerGroups) {
16573
16587
  } = tableProps;
16574
16588
  const {
16575
16589
  isGroup,
16590
+ overflowX,
16576
16591
  scrollXLoad,
16577
16592
  scrollYLoad,
16578
16593
  dragCol
@@ -16596,8 +16611,10 @@ function renderHeads(h, _vm, isGroup, isOptimizeMode, headerGroups) {
16596
16611
  isOptimizeMode = true;
16597
16612
  }
16598
16613
  }
16599
- if (fixedType) {
16614
+ if (fixedType || !overflowX) {
16600
16615
  renderColumnList = visibleColumn;
16616
+ }
16617
+ if (fixedType) {
16601
16618
  // 如果是使用优化模式
16602
16619
  if (isOptimizeMode) {
16603
16620
  renderColumnList = fixedColumn || [];
@@ -17070,6 +17087,7 @@ function footer_renderHeads(h, _vm, renderColumnList) {
17070
17087
  } = tableInternalData;
17071
17088
  const {
17072
17089
  isGroup,
17090
+ overflowX,
17073
17091
  scrollXLoad,
17074
17092
  scrollYLoad,
17075
17093
  dragCol
@@ -17084,8 +17102,10 @@ function footer_renderHeads(h, _vm, renderColumnList) {
17084
17102
  isOptimizeMode = true;
17085
17103
  }
17086
17104
  }
17087
- if (fixedType) {
17105
+ if (fixedType || !overflowX) {
17088
17106
  renderColumnList = visibleColumn;
17107
+ }
17108
+ if (fixedType) {
17089
17109
  if (isOptimizeMode) {
17090
17110
  renderColumnList = fixedColumn || [];
17091
17111
  }
@@ -20857,11 +20877,7 @@ function handleInsertChildRowAt($xeTable, records, parentRow, targetRow, isInser
20857
20877
  });
20858
20878
  }
20859
20879
  function handleClearEdit($xeTable, evnt, targetRow) {
20860
- const props = $xeTable;
20861
20880
  const reactData = $xeTable;
20862
- const {
20863
- mouseConfig
20864
- } = props;
20865
20881
  const {
20866
20882
  editStore
20867
20883
  } = reactData;
@@ -20874,7 +20890,6 @@ function handleClearEdit($xeTable, evnt, targetRow) {
20874
20890
  column
20875
20891
  } = actived;
20876
20892
  const validOpts = $xeTable.computeValidOpts;
20877
- const mouseOpts = $xeTable.computeMouseOpts;
20878
20893
  if (row || column) {
20879
20894
  if (targetRow && getRowid($xeTable, targetRow) !== getRowid($xeTable, row)) {
20880
20895
  return $xeTable.$nextTick();
@@ -20902,11 +20917,7 @@ function handleClearEdit($xeTable, evnt, targetRow) {
20902
20917
  }
20903
20918
  }
20904
20919
  }
20905
- return $xeTable.$nextTick().then(() => {
20906
- if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
20907
- return $xeTable.handleRecalculateCellAreas();
20908
- }
20909
- });
20920
+ return $xeTable.$nextTick().then(() => $xeTable.updateCellAreas());
20910
20921
  }
20911
20922
  function handleEditActive($xeTable, params, evnt, isFocus) {
20912
20923
  const props = $xeTable;
@@ -26251,6 +26262,12 @@ function renderBody(h, $xeTable) {
26251
26262
  showFooter() {
26252
26263
  this.reScrollFlag++;
26253
26264
  },
26265
+ overflowX() {
26266
+ this.reScrollFlag++;
26267
+ },
26268
+ overflowY() {
26269
+ this.reScrollFlag++;
26270
+ },
26254
26271
  reScrollFlag() {
26255
26272
  const $xeTable = this;
26256
26273
  $xeTable.$nextTick(() => {