vxe-table 3.23.0 → 3.23.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 (40) 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/src/methods.js +7 -6
  6. package/es/table/src/util.js +2 -2
  7. package/es/table/style.css +3 -1
  8. package/es/table/style.min.css +1 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/es/vxe-table/style.css +3 -1
  12. package/es/vxe-table/style.min.css +1 -1
  13. package/lib/index.css +1 -1
  14. package/lib/index.min.css +1 -1
  15. package/lib/index.umd.js +9 -9
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/style.css +1 -1
  18. package/lib/style.min.css +1 -1
  19. package/lib/table/src/methods.js +5 -5
  20. package/lib/table/src/methods.min.js +1 -1
  21. package/lib/table/src/util.js +2 -2
  22. package/lib/table/src/util.min.js +1 -1
  23. package/lib/table/style/style.css +3 -1
  24. package/lib/table/style/style.min.css +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/lib/vxe-table/style/style.css +3 -1
  30. package/lib/vxe-table/style/style.min.css +1 -1
  31. package/package.json +1 -1
  32. package/packages/table/src/methods.ts +7 -6
  33. package/packages/table/src/util.ts +2 -2
  34. package/styles/components/table.scss +3 -1
  35. /package/es/{iconfont.1787473155426.ttf → iconfont.1787542588120.ttf} +0 -0
  36. /package/es/{iconfont.1787473155426.woff → iconfont.1787542588120.woff} +0 -0
  37. /package/es/{iconfont.1787473155426.woff2 → iconfont.1787542588120.woff2} +0 -0
  38. /package/lib/{iconfont.1787473155426.ttf → iconfont.1787542588120.ttf} +0 -0
  39. /package/lib/{iconfont.1787473155426.woff → iconfont.1787542588120.woff} +0 -0
  40. /package/lib/{iconfont.1787473155426.woff2 → iconfont.1787542588120.woff2} +0 -0
@@ -2536,9 +2536,10 @@ const calcCellHeight = ($xeTable) => {
2536
2536
  if (!el || !el.clientWidth) {
2537
2537
  return;
2538
2538
  }
2539
+ const cellOpts = $xeTable.computeCellOpts;
2539
2540
  const treeOpts = $xeTable.computeTreeOpts;
2540
2541
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
2541
- if (!isAllOverflow && (scrollYLoad || scrollXLoad || (treeConfig && treeOpts.showLine))) {
2542
+ if (!isAllOverflow && (scrollYLoad || scrollXLoad || cellOpts.maxHeight || (treeConfig && treeOpts.showLine))) {
2542
2543
  const { handleGetRowId } = createHandleGetRowId($xeTable);
2543
2544
  el.setAttribute('data-calc-row', 'Y');
2544
2545
  tableData.forEach(row => {
@@ -4283,7 +4284,7 @@ function updateRowOffsetTop($xeTable) {
4283
4284
  const rowid = handleGetRowId(row);
4284
4285
  const rowRest = fullAllDataRowIdData[rowid] || {};
4285
4286
  rowRest.oTop = offsetTop;
4286
- offsetTop += rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
4287
+ offsetTop += getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
4287
4288
  // 是否展开行
4288
4289
  if (expandColumn && rowExpandedMaps[rowid]) {
4289
4290
  offsetTop += rowRest.expandHeight || expandOpts.height || 0;
@@ -4325,7 +4326,7 @@ function updateRowExpandStyle($xeTable) {
4325
4326
  offsetTop = trEl.offsetTop + trEl.offsetHeight;
4326
4327
  }
4327
4328
  else {
4328
- offsetTop = rowRest.oTop + (rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight);
4329
+ offsetTop = rowRest.oTop + getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
4329
4330
  }
4330
4331
  }
4331
4332
  else {
@@ -7097,7 +7098,7 @@ const tableMethods = {
7097
7098
  return;
7098
7099
  }
7099
7100
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
7100
- let currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
7101
+ let currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
7101
7102
  if (!showOverflow) {
7102
7103
  currCellHeight = tdEl.clientHeight;
7103
7104
  }
@@ -7262,7 +7263,7 @@ const tableMethods = {
7262
7263
  if (rowRest) {
7263
7264
  const resizeHeight = rowRest.resizeHeight;
7264
7265
  if (resizeHeight || isFull) {
7265
- const currCellHeight = resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
7266
+ const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
7266
7267
  rest[rowid] = currCellHeight;
7267
7268
  }
7268
7269
  }
@@ -7334,7 +7335,7 @@ const tableMethods = {
7334
7335
  const rowid = XEUtils.isString(rowOrId) || XEUtils.isNumber(rowOrId) ? rowOrId : getRowid($xeTable, rowOrId);
7335
7336
  const rowRest = fullAllDataRowIdData[rowid];
7336
7337
  if (rowRest) {
7337
- return rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
7338
+ return getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
7338
7339
  }
7339
7340
  return 0;
7340
7341
  },
@@ -672,10 +672,10 @@ export function handleRowidOrRow($xeTable, rowidOrRow) {
672
672
  export function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) {
673
673
  const { height, minHeight, maxHeight } = cellOpts;
674
674
  let cellHeight = rowRest.resizeHeight || height || rowOpts.height || rowRest.height || defaultRowHeight;
675
- if (maxHeight && maxHeight < cellHeight) {
675
+ if (maxHeight && maxHeight <= cellHeight) {
676
676
  cellHeight = maxHeight;
677
677
  }
678
- if (minHeight && minHeight > cellHeight) {
678
+ if (minHeight && minHeight >= cellHeight) {
679
679
  cellHeight = minHeight;
680
680
  }
681
681
  return cellHeight;
@@ -3618,7 +3618,6 @@
3618
3618
  .vxe-table--render-default .vxe-body--column > .vxe-cell {
3619
3619
  display: flex;
3620
3620
  flex-direction: row;
3621
- align-items: center;
3622
3621
  }
3623
3622
  .vxe-table--render-default {
3624
3623
  /*溢出列*/
@@ -4020,6 +4019,9 @@
4020
4019
  .vxe-table--render-default.vxe-editable .vxe-body--column {
4021
4020
  padding: 0;
4022
4021
  }
4022
+ .vxe-table--render-default .vxe-cell--wrapper {
4023
+ margin: auto 0;
4024
+ }
4023
4025
  .vxe-table--render-default .vxe-body--row .vxe-table--column .vxe-cell .vxe-cell--wrapper > .vxe-reusekeep-control {
4024
4026
  position: absolute;
4025
4027
  width: 0;