vxe-table 4.21.0 → 4.21.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 (43) hide show
  1. package/dist/all.esm.js +11 -10
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/index.css +1 -1
  5. package/es/index.min.css +1 -1
  6. package/es/style.css +1 -1
  7. package/es/style.min.css +1 -1
  8. package/es/table/src/table.js +7 -6
  9. package/es/table/src/util.js +2 -2
  10. package/es/table/style.css +3 -1
  11. package/es/table/style.min.css +1 -1
  12. package/es/ui/index.js +1 -1
  13. package/es/ui/src/log.js +1 -1
  14. package/es/vxe-table/style.css +3 -1
  15. package/es/vxe-table/style.min.css +1 -1
  16. package/lib/index.css +1 -1
  17. package/lib/index.min.css +1 -1
  18. package/lib/index.umd.js +9 -9
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/style.css +1 -1
  21. package/lib/style.min.css +1 -1
  22. package/lib/table/src/table.js +5 -5
  23. package/lib/table/src/table.min.js +1 -1
  24. package/lib/table/src/util.js +2 -2
  25. package/lib/table/src/util.min.js +1 -1
  26. package/lib/table/style/style.css +3 -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 +3 -1
  33. package/lib/vxe-table/style/style.min.css +1 -1
  34. package/package.json +1 -1
  35. package/packages/table/src/table.ts +7 -6
  36. package/packages/table/src/util.ts +2 -2
  37. package/styles/components/table.scss +3 -1
  38. /package/es/{iconfont.1787473169817.ttf → iconfont.1787542597284.ttf} +0 -0
  39. /package/es/{iconfont.1787473169817.woff → iconfont.1787542597284.woff} +0 -0
  40. /package/es/{iconfont.1787473169817.woff2 → iconfont.1787542597284.woff2} +0 -0
  41. /package/lib/{iconfont.1787473169817.ttf → iconfont.1787542597284.ttf} +0 -0
  42. /package/lib/{iconfont.1787473169817.woff → iconfont.1787542597284.woff} +0 -0
  43. /package/lib/{iconfont.1787473169817.woff2 → iconfont.1787542597284.woff2} +0 -0
@@ -2033,9 +2033,10 @@ export default defineVxeComponent({
2033
2033
  if (!el || !el.clientWidth) {
2034
2034
  return;
2035
2035
  }
2036
+ const cellOpts = computeCellOpts.value;
2036
2037
  const treeOpts = computeTreeOpts.value;
2037
2038
  const defaultRowHeight = computeDefaultRowHeight.value;
2038
- if (!isAllOverflow && (scrollYLoad || scrollXLoad || (treeConfig && treeOpts.showLine))) {
2039
+ if (!isAllOverflow && (scrollYLoad || scrollXLoad || cellOpts.maxHeight || (treeConfig && treeOpts.showLine))) {
2039
2040
  const { handleGetRowId } = createHandleGetRowId($xeTable);
2040
2041
  el.setAttribute('data-calc-row', 'Y');
2041
2042
  tableData.forEach(row => {
@@ -4679,7 +4680,7 @@ export default defineVxeComponent({
4679
4680
  const rowid = handleGetRowId(row);
4680
4681
  const rowRest = fullAllDataRowIdData[rowid] || {};
4681
4682
  rowRest.oTop = offsetTop;
4682
- offsetTop += rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
4683
+ offsetTop += getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
4683
4684
  // 是否展开行
4684
4685
  if (expandColumn && rowExpandedMaps[rowid]) {
4685
4686
  offsetTop += rowRest.expandHeight || expandOpts.height || 0;
@@ -4719,7 +4720,7 @@ export default defineVxeComponent({
4719
4720
  offsetTop = trEl.offsetTop + trEl.offsetHeight;
4720
4721
  }
4721
4722
  else {
4722
- offsetTop = rowRest.oTop + (rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight);
4723
+ offsetTop = rowRest.oTop + getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
4723
4724
  }
4724
4725
  }
4725
4726
  else {
@@ -6232,7 +6233,7 @@ export default defineVxeComponent({
6232
6233
  if (rowRest) {
6233
6234
  const resizeHeight = rowRest.resizeHeight;
6234
6235
  if (resizeHeight || isFull) {
6235
- const currCellHeight = resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
6236
+ const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
6236
6237
  rest[rowid] = currCellHeight;
6237
6238
  }
6238
6239
  }
@@ -6298,7 +6299,7 @@ export default defineVxeComponent({
6298
6299
  const rowid = XEUtils.isString(rowOrId) || XEUtils.isNumber(rowOrId) ? rowOrId : getRowid($xeTable, rowOrId);
6299
6300
  const rowRest = fullAllDataRowIdData[rowid];
6300
6301
  if (rowRest) {
6301
- return rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
6302
+ return getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
6302
6303
  }
6303
6304
  return 0;
6304
6305
  },
@@ -9969,7 +9970,7 @@ export default defineVxeComponent({
9969
9970
  return;
9970
9971
  }
9971
9972
  const defaultRowHeight = computeDefaultRowHeight.value;
9972
- let currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
9973
+ let currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
9973
9974
  if (!showOverflow) {
9974
9975
  currCellHeight = tdEl.clientHeight;
9975
9976
  }
@@ -645,10 +645,10 @@ export function handleRowidOrRow($xeTable, rowidOrRow) {
645
645
  export function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) {
646
646
  const { height, minHeight, maxHeight } = cellOpts;
647
647
  let cellHeight = rowRest.resizeHeight || height || rowOpts.height || rowRest.height || defaultRowHeight;
648
- if (maxHeight && maxHeight < cellHeight) {
648
+ if (maxHeight && maxHeight <= cellHeight) {
649
649
  cellHeight = maxHeight;
650
650
  }
651
- if (minHeight && minHeight > cellHeight) {
651
+ if (minHeight && minHeight >= cellHeight) {
652
652
  cellHeight = minHeight;
653
653
  }
654
654
  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;