vxe-table 3.12.10 → 3.12.12

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 (33) hide show
  1. package/es/style.css +1 -1
  2. package/es/table/module/keyboard/mixin.js +2 -2
  3. package/es/table/src/body.js +2 -14
  4. package/es/table/src/methods.js +6 -6
  5. package/es/table/src/util.js +4 -4
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/index.umd.js +16 -27
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/style.css +1 -1
  11. package/lib/table/module/keyboard/mixin.js +2 -2
  12. package/lib/table/module/keyboard/mixin.min.js +1 -1
  13. package/lib/table/src/body.js +2 -13
  14. package/lib/table/src/body.min.js +1 -1
  15. package/lib/table/src/methods.js +6 -6
  16. package/lib/table/src/methods.min.js +1 -1
  17. package/lib/table/src/util.js +4 -4
  18. package/lib/table/src/util.min.js +1 -1
  19. package/lib/ui/index.js +1 -1
  20. package/lib/ui/index.min.js +1 -1
  21. package/lib/ui/src/log.js +1 -1
  22. package/lib/ui/src/log.min.js +1 -1
  23. package/package.json +1 -1
  24. package/packages/table/module/keyboard/mixin.ts +2 -2
  25. package/packages/table/src/body.ts +2 -13
  26. package/packages/table/src/methods.ts +6 -6
  27. package/packages/table/src/util.ts +4 -4
  28. /package/es/{iconfont.1738985837413.ttf → iconfont.1739010705633.ttf} +0 -0
  29. /package/es/{iconfont.1738985837413.woff → iconfont.1739010705633.woff} +0 -0
  30. /package/es/{iconfont.1738985837413.woff2 → iconfont.1739010705633.woff2} +0 -0
  31. /package/lib/{iconfont.1738985837413.ttf → iconfont.1739010705633.ttf} +0 -0
  32. /package/lib/{iconfont.1738985837413.woff → iconfont.1739010705633.woff} +0 -0
  33. /package/lib/{iconfont.1738985837413.woff2 → iconfont.1739010705633.woff2} +0 -0
@@ -763,7 +763,7 @@ function handleVirtualYVisible($xeTable, currScrollTop) {
763
763
  const row = afterFullData[rIndex];
764
764
  const rowid = getRowid($xeTable, row);
765
765
  const rowRest = fullAllDataRowIdData[rowid] || {};
766
- offsetTop += rowRest.resizeHeight || rowRest.height || cellOpts.height || rowOpts.height || defaultRowHeight;
766
+ offsetTop += rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
767
767
  if (toVisibleIndex === -1 && scrollTop < offsetTop) {
768
768
  toVisibleIndex = rIndex;
769
769
  }
@@ -3826,7 +3826,7 @@ const Methods = {
3826
3826
  return;
3827
3827
  }
3828
3828
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
3829
- const currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || defaultRowHeight;
3829
+ const currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
3830
3830
  const tableRect = tableEl.getBoundingClientRect();
3831
3831
  const trRect = trEl.getBoundingClientRect();
3832
3832
  const targetOffsetY = dragClientY - trRect.y - trEl.clientHeight;
@@ -3980,7 +3980,7 @@ const Methods = {
3980
3980
  if (rowRest) {
3981
3981
  const resizeHeight = rowRest.resizeHeight;
3982
3982
  if (resizeHeight || isFull) {
3983
- const currCellHeight = resizeHeight || rowRest.height || cellOpts.height || rowOpts.height || defaultRowHeight;
3983
+ const currCellHeight = resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
3984
3984
  rest[rowid] = currCellHeight;
3985
3985
  }
3986
3986
  }
@@ -4029,7 +4029,7 @@ const Methods = {
4029
4029
  const rowid = XEUtils.isString(rowOrId) || XEUtils.isNumber(rowOrId) ? rowOrId : getRowid($xeTable, rowOrId);
4030
4030
  const rowRest = fullAllDataRowIdData[rowid];
4031
4031
  if (rowRest) {
4032
- return rowRest.resizeHeight || rowRest.height || cellOpts.height || rowOpts.height || defaultRowHeight;
4032
+ return rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
4033
4033
  }
4034
4034
  return 0;
4035
4035
  },
@@ -8134,13 +8134,13 @@ const Methods = {
8134
8134
  const row = afterFullData[i];
8135
8135
  const rowid = getRowid($xeTable, row);
8136
8136
  const rowRest = fullAllDataRowIdData[rowid] || {};
8137
- ySpaceHeight += rowRest.resizeHeight || rowRest.height || cellOpts.height || rowOpts.height || defaultRowHeight;
8137
+ ySpaceHeight += rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
8138
8138
  }
8139
8139
  for (let i = 0; i < startIndex; i++) {
8140
8140
  const row = afterFullData[i];
8141
8141
  const rowid = getRowid($xeTable, row);
8142
8142
  const rowRest = fullAllDataRowIdData[rowid] || {};
8143
- topSpaceHeight += rowRest.resizeHeight || rowRest.height || cellOpts.height || rowOpts.height || defaultRowHeight;
8143
+ topSpaceHeight += rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
8144
8144
  }
8145
8145
  }
8146
8146
  }
@@ -276,7 +276,7 @@ export function calcTreeLine(params, prevRow) {
276
276
  const defaultRowHeight = $table.computeDefaultRowHeight;
277
277
  const rowid = getRowid($table, row);
278
278
  const rowRest = fullAllDataRowIdData[rowid];
279
- const currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || defaultRowHeight;
279
+ const currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
280
280
  let expandSize = 1;
281
281
  if (prevRow) {
282
282
  expandSize = countTreeExpand(prevRow, params);
@@ -390,15 +390,15 @@ export function rowToVisible($xeTable, row) {
390
390
  }
391
391
  let scrollTop = 0;
392
392
  const rowRest = fullAllDataRowIdData[rowid];
393
- const rHeight = rowRest ? (rowRest.resizeHeight || cellOpts.height || rowOpts.height || defaultRowHeight) : defaultRowHeight;
393
+ const rHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
394
394
  for (let i = 0; i < afterFullData.length; i++) {
395
395
  const currRow = afterFullData[i];
396
396
  const currRowid = getRowid($xeTable, currRow);
397
397
  if (currRow === row || currRowid === rowid) {
398
398
  break;
399
399
  }
400
- const rowRest = fullAllDataRowIdData[currRowid];
401
- scrollTop += rowRest ? (rowRest.resizeHeight || cellOpts.height || rowOpts.height || defaultRowHeight) : defaultRowHeight;
400
+ const currRowRest = fullAllDataRowIdData[currRowid];
401
+ scrollTop += currRowRest.resizeHeight || cellOpts.height || rowOpts.height || currRowRest.height || defaultRowHeight;
402
402
  }
403
403
  if (scrollTop < bodyScrollTop) {
404
404
  return $xeTable.scrollTo(null, scrollTop - leftFixedWidth - 1);
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.12.10";
3
+ export const version = "3.12.12";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"3.12.10"}`;
3
+ const version = `table v${"3.12.12"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
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.10";
2223
+ const version = "3.12.12";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2840,7 +2840,7 @@ function isNodeElement(elem) {
2840
2840
  const {
2841
2841
  log: log_log
2842
2842
  } = core_.VxeUI;
2843
- const log_version = `table v${"3.12.10"}`;
2843
+ const log_version = `table v${"3.12.12"}`;
2844
2844
  const warnLog = log_log.create('warn', log_version);
2845
2845
  const errLog = log_log.create('error', log_version);
2846
2846
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -3345,7 +3345,7 @@ function calcTreeLine(params, prevRow) {
3345
3345
  const defaultRowHeight = $table.computeDefaultRowHeight;
3346
3346
  const rowid = getRowid($table, row);
3347
3347
  const rowRest = fullAllDataRowIdData[rowid];
3348
- const currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || defaultRowHeight;
3348
+ const currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
3349
3349
  let expandSize = 1;
3350
3350
  if (prevRow) {
3351
3351
  expandSize = countTreeExpand(prevRow, params);
@@ -3477,15 +3477,15 @@ function rowToVisible($xeTable, row) {
3477
3477
  }
3478
3478
  let scrollTop = 0;
3479
3479
  const rowRest = fullAllDataRowIdData[rowid];
3480
- const rHeight = rowRest ? rowRest.resizeHeight || cellOpts.height || rowOpts.height || defaultRowHeight : defaultRowHeight;
3480
+ const rHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
3481
3481
  for (let i = 0; i < afterFullData.length; i++) {
3482
3482
  const currRow = afterFullData[i];
3483
3483
  const currRowid = getRowid($xeTable, currRow);
3484
3484
  if (currRow === row || currRowid === rowid) {
3485
3485
  break;
3486
3486
  }
3487
- const rowRest = fullAllDataRowIdData[currRowid];
3488
- scrollTop += rowRest ? rowRest.resizeHeight || cellOpts.height || rowOpts.height || defaultRowHeight : defaultRowHeight;
3487
+ const currRowRest = fullAllDataRowIdData[currRowid];
3488
+ scrollTop += currRowRest.resizeHeight || cellOpts.height || rowOpts.height || currRowRest.height || defaultRowHeight;
3489
3489
  }
3490
3490
  if (scrollTop < bodyScrollTop) {
3491
3491
  return $xeTable.scrollTo(null, scrollTop - leftFixedWidth - 1);
@@ -5973,7 +5973,7 @@ function handleVirtualYVisible($xeTable, currScrollTop) {
5973
5973
  const row = afterFullData[rIndex];
5974
5974
  const rowid = getRowid($xeTable, row);
5975
5975
  const rowRest = fullAllDataRowIdData[rowid] || {};
5976
- offsetTop += rowRest.resizeHeight || rowRest.height || cellOpts.height || rowOpts.height || defaultRowHeight;
5976
+ offsetTop += rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
5977
5977
  if (toVisibleIndex === -1 && scrollTop < offsetTop) {
5978
5978
  toVisibleIndex = rIndex;
5979
5979
  }
@@ -9515,7 +9515,7 @@ const Methods = {
9515
9515
  return;
9516
9516
  }
9517
9517
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
9518
- const currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || defaultRowHeight;
9518
+ const currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
9519
9519
  const tableRect = tableEl.getBoundingClientRect();
9520
9520
  const trRect = trEl.getBoundingClientRect();
9521
9521
  const targetOffsetY = dragClientY - trRect.y - trEl.clientHeight;
@@ -9690,7 +9690,7 @@ const Methods = {
9690
9690
  if (rowRest) {
9691
9691
  const resizeHeight = rowRest.resizeHeight;
9692
9692
  if (resizeHeight || isFull) {
9693
- const currCellHeight = resizeHeight || rowRest.height || cellOpts.height || rowOpts.height || defaultRowHeight;
9693
+ const currCellHeight = resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
9694
9694
  rest[rowid] = currCellHeight;
9695
9695
  }
9696
9696
  }
@@ -9743,7 +9743,7 @@ const Methods = {
9743
9743
  const rowid = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(rowOrId) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(rowOrId) ? rowOrId : getRowid($xeTable, rowOrId);
9744
9744
  const rowRest = fullAllDataRowIdData[rowid];
9745
9745
  if (rowRest) {
9746
- return rowRest.resizeHeight || rowRest.height || cellOpts.height || rowOpts.height || defaultRowHeight;
9746
+ return rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
9747
9747
  }
9748
9748
  return 0;
9749
9749
  },
@@ -14648,13 +14648,13 @@ const Methods = {
14648
14648
  const row = afterFullData[i];
14649
14649
  const rowid = getRowid($xeTable, row);
14650
14650
  const rowRest = fullAllDataRowIdData[rowid] || {};
14651
- ySpaceHeight += rowRest.resizeHeight || rowRest.height || cellOpts.height || rowOpts.height || defaultRowHeight;
14651
+ ySpaceHeight += rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
14652
14652
  }
14653
14653
  for (let i = 0; i < startIndex; i++) {
14654
14654
  const row = afterFullData[i];
14655
14655
  const rowid = getRowid($xeTable, row);
14656
14656
  const rowRest = fullAllDataRowIdData[rowid] || {};
14657
- topSpaceHeight += rowRest.resizeHeight || rowRest.height || cellOpts.height || rowOpts.height || defaultRowHeight;
14657
+ topSpaceHeight += rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
14658
14658
  }
14659
14659
  }
14660
14660
  } else {
@@ -15249,8 +15249,7 @@ function renderTdColumn(h, _vm, seq, rowid, fixedType, isOptimizeMode, rowLevel,
15249
15249
  const rowOpts = $xeTable.computeRowOpts;
15250
15250
  const rowDragOpts = $xeTable.computeRowDragOpts;
15251
15251
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
15252
- const customCellHeight = cellOpts.height || rowOpts.height;
15253
- const currCellHeight = customCellHeight || defaultRowHeight;
15252
+ const customCellHeight = calcCellHeightFlag ? cellOpts.height || rowOpts.height : 0;
15254
15253
  const {
15255
15254
  disabledMethod: dragDisabledMethod,
15256
15255
  isCrossDrag,
@@ -15435,17 +15434,7 @@ function renderTdColumn(h, _vm, seq, rowid, fixedType, isOptimizeMode, rowLevel,
15435
15434
  isDirty = $xeTable.isUpdateByRow(row, column.field);
15436
15435
  }
15437
15436
  const isVNAutoHeight = scrollYLoad && !hasEllipsis;
15438
- let cellHeight = currCellHeight;
15439
- const vnHeight = calcCellHeightFlag ? rowRest.height : 0;
15440
- if (resizeHeight) {
15441
- cellHeight = resizeHeight;
15442
- } else {
15443
- if (scrollYLoad) {
15444
- if (!hasEllipsis) {
15445
- cellHeight = vnHeight || currCellHeight;
15446
- }
15447
- }
15448
- }
15437
+ const cellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
15449
15438
  const isLastColumn = $columnIndex === columns.length - 1;
15450
15439
  const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
15451
15440
  let isVNPreEmptyStatus = false;
@@ -23353,7 +23342,7 @@ function getCheckboxRangeRows($xeTable, evnt, params, targetTrElem, trRect, offs
23353
23342
  const item = afterFullData[i];
23354
23343
  const rowid = $xeTable.getRowid(item);
23355
23344
  const rowRest = fullAllDataRowIdData[rowid] || {};
23356
- countHeight += rowRest.resizeHeight || cellOpts.height || rowOpts.height || defaultRowHeight;
23345
+ countHeight += rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
23357
23346
  rangeRows.push(item);
23358
23347
  if (countHeight > moveSize) {
23359
23348
  return rangeRows;
@@ -23364,7 +23353,7 @@ function getCheckboxRangeRows($xeTable, evnt, params, targetTrElem, trRect, offs
23364
23353
  const item = afterFullData[len];
23365
23354
  const rowid = $xeTable.getRowid(item);
23366
23355
  const rowRest = fullAllDataRowIdData[rowid] || {};
23367
- countHeight += rowRest.resizeHeight || cellOpts.height || rowOpts.height || defaultRowHeight;
23356
+ countHeight += rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
23368
23357
  rangeRows.push(item);
23369
23358
  if (countHeight > moveSize) {
23370
23359
  return rangeRows;