vxe-table 3.13.0-beta.3 → 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 (44) 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/cell.js +3 -0
  7. package/es/table/src/methods.js +23 -12
  8. package/es/table/style.css +1 -1
  9. package/es/table/style.min.css +1 -1
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-table/style.css +1 -1
  13. package/es/vxe-table/style.min.css +1 -1
  14. package/lib/index.css +1 -1
  15. package/lib/index.min.css +1 -1
  16. package/lib/index.umd.js +26 -24
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/style.css +1 -1
  19. package/lib/style.min.css +1 -1
  20. package/lib/table/module/edit/mixin.js +1 -10
  21. package/lib/table/module/edit/mixin.min.js +1 -1
  22. package/lib/table/src/cell.js +3 -0
  23. package/lib/table/src/cell.min.js +1 -1
  24. package/lib/table/src/methods.js +20 -12
  25. package/lib/table/src/methods.min.js +1 -1
  26. package/lib/table/style/style.css +1 -1
  27. package/lib/table/style/style.min.css +1 -1
  28. package/lib/ui/index.js +1 -1
  29. package/lib/ui/index.min.js +1 -1
  30. package/lib/ui/src/log.js +1 -1
  31. package/lib/ui/src/log.min.js +1 -1
  32. package/lib/vxe-table/style/style.css +1 -1
  33. package/lib/vxe-table/style/style.min.css +1 -1
  34. package/package.json +1 -1
  35. package/packages/table/module/edit/mixin.ts +1 -8
  36. package/packages/table/src/cell.ts +4 -1
  37. package/packages/table/src/methods.ts +29 -15
  38. package/styles/components/table.scss +1 -1
  39. /package/es/{iconfont.1739513027972.ttf → iconfont.1739527648616.ttf} +0 -0
  40. /package/es/{iconfont.1739513027972.woff → iconfont.1739527648616.woff} +0 -0
  41. /package/es/{iconfont.1739513027972.woff2 → iconfont.1739527648616.woff2} +0 -0
  42. /package/lib/{iconfont.1739513027972.ttf → iconfont.1739527648616.ttf} +0 -0
  43. /package/lib/{iconfont.1739513027972.woff → iconfont.1739527648616.woff} +0 -0
  44. /package/lib/{iconfont.1739513027972.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.3";
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.3"}`;
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;
@@ -20866,11 +20877,7 @@ function handleInsertChildRowAt($xeTable, records, parentRow, targetRow, isInser
20866
20877
  });
20867
20878
  }
20868
20879
  function handleClearEdit($xeTable, evnt, targetRow) {
20869
- const props = $xeTable;
20870
20880
  const reactData = $xeTable;
20871
- const {
20872
- mouseConfig
20873
- } = props;
20874
20881
  const {
20875
20882
  editStore
20876
20883
  } = reactData;
@@ -20883,7 +20890,6 @@ function handleClearEdit($xeTable, evnt, targetRow) {
20883
20890
  column
20884
20891
  } = actived;
20885
20892
  const validOpts = $xeTable.computeValidOpts;
20886
- const mouseOpts = $xeTable.computeMouseOpts;
20887
20893
  if (row || column) {
20888
20894
  if (targetRow && getRowid($xeTable, targetRow) !== getRowid($xeTable, row)) {
20889
20895
  return $xeTable.$nextTick();
@@ -20911,11 +20917,7 @@ function handleClearEdit($xeTable, evnt, targetRow) {
20911
20917
  }
20912
20918
  }
20913
20919
  }
20914
- return $xeTable.$nextTick().then(() => {
20915
- if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
20916
- return $xeTable.handleRecalculateCellAreas();
20917
- }
20918
- });
20920
+ return $xeTable.$nextTick().then(() => $xeTable.updateCellAreas());
20919
20921
  }
20920
20922
  function handleEditActive($xeTable, params, evnt, isFocus) {
20921
20923
  const props = $xeTable;