tomtaw-vxe-table 3.25.19 → 3.25.20

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.
@@ -393,6 +393,7 @@ export declare const VxeGrid: import("vue/types/vue").ExtendedVue<import("vue").
393
393
  blur(): Promise<void>;
394
394
  setCustomStoreData(storeData: import("vxe-pc-ui/types/components/table").VxeTableDefines.CustomStoreData | null): Promise<void>;
395
395
  getCustomStoreData(): import("vxe-pc-ui/types/components/table").VxeTableDefines.CustomStoreData;
396
+ refreshRowContent(rows: any[]): Promise<void>;
396
397
  refreshRowExpandHeight(): Promise<void>;
397
398
  updateThumbSize(): void;
398
399
  updateThumbOffset(): void;
@@ -1024,6 +1025,7 @@ export declare const Grid: import("vue/types/vue").ExtendedVue<import("vue").def
1024
1025
  blur(): Promise<void>;
1025
1026
  setCustomStoreData(storeData: import("vxe-pc-ui/types/components/table").VxeTableDefines.CustomStoreData | null): Promise<void>;
1026
1027
  getCustomStoreData(): import("vxe-pc-ui/types/components/table").VxeTableDefines.CustomStoreData;
1028
+ refreshRowContent(rows: any[]): Promise<void>;
1027
1029
  refreshRowExpandHeight(): Promise<void>;
1028
1030
  updateThumbSize(): void;
1029
1031
  updateThumbOffset(): void;
@@ -406,6 +406,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<import("vue").defaul
406
406
  blur(): Promise<void>;
407
407
  setCustomStoreData(storeData: VxeTableDefines.CustomStoreData | null): Promise<void>;
408
408
  getCustomStoreData(): VxeTableDefines.CustomStoreData;
409
+ refreshRowContent(rows: any[]): Promise<void>;
409
410
  refreshRowExpandHeight(): Promise<void>;
410
411
  updateThumbSize(): void;
411
412
  updateThumbOffset(): void;
@@ -74,7 +74,26 @@ function renderLine(h, $xeTable, rowid, params, cellHeight) {
74
74
  }
75
75
  return [];
76
76
  }
77
- function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, columns, items) {
77
+ function getBodyCellOptions($xeTable) {
78
+ return {
79
+ cellOpts: $xeTable.computeCellOpts,
80
+ validOpts: $xeTable.computeValidOpts,
81
+ checkboxOpts: $xeTable.computeCheckboxOpts,
82
+ editOpts: $xeTable.computeEditOpts,
83
+ tooltipOpts: $xeTable.computeTooltipOpts,
84
+ virtualXOpts: $xeTable.computeVirtualXOpts,
85
+ virtualYOpts: $xeTable.computeVirtualYOpts,
86
+ rendererOpts: $xeTable.computeRendererOpts,
87
+ rowOpts: $xeTable.computeRowOpts,
88
+ rowDragOpts: $xeTable.computeRowDragOpts,
89
+ columnOpts: $xeTable.computeColumnOpts,
90
+ mouseOpts: $xeTable.computeMouseOpts,
91
+ areaOpts: $xeTable.computeAreaOpts,
92
+ defaultRowHeight: $xeTable.computeDefaultRowHeight,
93
+ cellOffsetWidth: $xeTable.computeCellOffsetWidth
94
+ };
95
+ }
96
+ function renderTdColumn(h, $xeTable, options, rowRest, seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, columns, items) {
78
97
  const tableProps = $xeTable;
79
98
  const tableReactData = $xeTable;
80
99
  const tableInternalData = $xeTable;
@@ -83,29 +102,14 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
83
102
  const { columnKey, resizable: allResizable, showOverflow: allShowOverflow, border, height, treeConfig, cellClassName: allCellClassName, cellStyle, align: allAlign, spanMethod, mouseConfig, editConfig, editRules, tooltipConfig, padding: allPadding } = tableProps;
84
103
  const { tableData, tableColumn, dragRow, overflowX, overflowY, scrollXLoad, scrollYLoad, mergeBodyFlag, calcCellHeightFlag, resizeHeightFlag, resizeWidthFlag, editStore, isAllOverflow, validErrorMaps, currColFlag } = tableReactData;
85
104
  const { fullAllDataRowIdData, fullColumnIdData, mergeBodyCellMaps, visibleColumn, afterFullData, mergeBodyList, scrollXStore, scrollYStore, keepUpdateFieldMaps, currentCol } = tableInternalData;
86
- const cellOpts = $xeTable.computeCellOpts;
87
- const validOpts = $xeTable.computeValidOpts;
88
- const checkboxOpts = $xeTable.computeCheckboxOpts;
89
- const editOpts = $xeTable.computeEditOpts;
90
- const tooltipOpts = $xeTable.computeTooltipOpts;
91
- const virtualXOpts = $xeTable.computeVirtualXOpts;
92
- const virtualYOpts = $xeTable.computeVirtualYOpts;
93
- const rendererOpts = $xeTable.computeRendererOpts;
105
+ const { cellOpts, validOpts, checkboxOpts, editOpts, tooltipOpts, virtualXOpts, virtualYOpts, rendererOpts, rowOpts, rowDragOpts, columnOpts, mouseOpts, areaOpts, defaultRowHeight, cellOffsetWidth } = options;
94
106
  const { isAllColumnDrag, isAllRowDrag } = $xeTable.resizableOpts;
95
- const rowOpts = $xeTable.computeRowOpts;
96
- const rowDragOpts = $xeTable.computeRowDragOpts;
97
- const defaultRowHeight = $xeTable.computeDefaultRowHeight;
98
107
  const customCellHeight = calcCellHeightFlag ? cellOpts.height || rowOpts.height : 0;
99
108
  const { disabledMethod: dragDisabledMethod, isCrossDrag, isPeerDrag } = rowDragOpts;
100
- const columnOpts = $xeTable.computeColumnOpts;
101
- const mouseOpts = $xeTable.computeMouseOpts;
102
- const areaOpts = $xeTable.computeAreaOpts;
103
- const cellOffsetWidth = $xeTable.computeCellOffsetWidth;
104
109
  const { selectCellToRow } = areaOpts;
105
110
  const { field, type, cellRender, editRender, align, showOverflow, className, treeNode, rowResize, padding, verticalAlign, slots } = column;
106
111
  const { verticalAlign: allVerticalAlign, minHeight, maxHeight } = cellOpts;
107
112
  const { actived } = editStore;
108
- const rowRest = fullAllDataRowIdData[rowid] || {};
109
113
  const colid = column.id;
110
114
  const colRest = fullColumnIdData[colid] || {};
111
115
  const renderOpts = editRender || cellRender;
@@ -487,12 +491,11 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
487
491
  const { stripe, rowKey, highlightHoverRow, rowClassName, rowStyle, editConfig, treeConfig } = tableProps;
488
492
  const { hasFixedColumn, treeExpandedFlag, scrollYLoad, isAllOverflow, rowExpandedFlag, expandColumn, selectRadioRow, pendingRowFlag, rowExpandHeightFlag, isRowGroupStatus } = tableReactData;
489
493
  const { fullAllDataRowIdData, fullColumnIdData, treeExpandedMaps, pendingRowMaps, rowExpandedMaps, currentRow } = tableInternalData;
490
- const checkboxOpts = $xeTable.computeCheckboxOpts;
494
+ const options = getBodyCellOptions($xeTable);
495
+ const { checkboxOpts, editOpts, rowOpts, columnOpts } = options;
491
496
  const radioOpts = $xeTable.computeRadioOpts;
492
497
  const treeOpts = $xeTable.computeTreeOpts;
493
- const editOpts = $xeTable.computeEditOpts;
494
- const rowOpts = $xeTable.computeRowOpts;
495
- const columnOpts = $xeTable.computeColumnOpts;
498
+ const currentRowId = currentRow && (rowOpts.isCurrent || tableProps.highlightCurrentRow) ? getRowid($xeTable, currentRow) : null;
496
499
  const { transform, seqMode } = treeOpts;
497
500
  const childrenField = treeOpts.children || treeOpts.childrenField;
498
501
  const rows = [];
@@ -573,12 +576,12 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
573
576
  "row--checked": checkboxOpts.highlight && $xeTable.isCheckedByCheckboxRow(row),
574
577
  "row--pending": !!pendingRowFlag && !!pendingRowMaps[rowid],
575
578
  "row--group": hasRowGroupAggregate,
576
- "row--current": currentRow && rowid === getRowid($xeTable, currentRow)
579
+ "row--current": rowid === currentRowId
577
580
  },
578
581
  rowClassName ? XEUtils.isFunction(rowClassName) ? rowClassName(params) : rowClassName : ""
579
582
  ];
580
583
  const tdVNs = tableColumn.map((column, $columnIndex) => {
581
- return renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData);
584
+ return renderTdColumn(h, $xeTable, options, rowRest, seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData);
582
585
  });
583
586
  rows.push(
584
587
  h(
@@ -26,6 +26,8 @@ import {
26
26
  createHandleGetRowId,
27
27
  getRefElem,
28
28
  getCellRestHeight,
29
+ getUniformRowHeight,
30
+ maxYHeight,
29
31
  getLastChildColumn,
30
32
  getRowMaxHeight,
31
33
  handleCustomStoreConfig,
@@ -47,7 +49,6 @@ function isTableDestroyed($xeTable) {
47
49
  const { getConfig, getI18n, renderer, formats, interceptor, createEvent, globalEvents, GLOBAL_EVENT_KEYS } = VxeUI;
48
50
  const supportMaxRow = 5e6;
49
51
  const customStorageKey = "VXE_CUSTOM_STORE";
50
- const maxYHeight = 5e6;
51
52
  const maxXWidth = 5e6;
52
53
  const sourceType = "table";
53
54
  const customStorageQueues = /* @__PURE__ */ new WeakMap();
@@ -952,6 +953,18 @@ function updateAfterFullData($xeTable) {
952
953
  internalData.afterGroupFullData = tableTree;
953
954
  updateAfterDataIndex($xeTable);
954
955
  }
956
+ function syncReusedCurrentRows($xeTable, root, currentRow) {
957
+ const internalData = $xeTable;
958
+ const rowid = $xeTable.computeRowOpts.isCurrent || $xeTable.highlightCurrentRow ? getRowid($xeTable, currentRow) : null;
959
+ const marked = root.querySelectorAll(".row--current[rowid]");
960
+ for (let i = 0; i < marked.length; i++) {
961
+ if (marked[i].getAttribute("rowid") !== rowid) removeClass(marked[i], "row--current");
962
+ }
963
+ if (rowid !== null && internalData.visibleDataRowIdData[rowid]) {
964
+ const matches = root.querySelectorAll(`[rowid="${rowid}"]`);
965
+ for (let i = 0; i < matches.length; i++) addClass(matches[i], "row--current");
966
+ }
967
+ }
955
968
  function updateStyle($xeTable) {
956
969
  const props = $xeTable;
957
970
  const reactData = $xeTable;
@@ -2110,11 +2123,8 @@ function computeRowHeight($xeTable) {
2110
2123
  function handleVirtualYVisible($xeTable) {
2111
2124
  const reactData = $xeTable;
2112
2125
  const internalData = $xeTable;
2113
- const { isAllOverflow, expandColumn, isScrollYBig, scrollYHeight } = reactData;
2114
- const { elemStore, isResizeCellHeight, afterFullData, fullAllDataRowIdData } = internalData;
2115
- const rowOpts = $xeTable.computeRowOpts;
2116
- const cellOpts = $xeTable.computeCellOpts;
2117
- const defaultRowHeight = $xeTable.computeDefaultRowHeight;
2126
+ const { isScrollYBig, scrollYHeight } = reactData;
2127
+ const { elemStore, afterFullData, fullAllDataRowIdData } = internalData;
2118
2128
  const bodyScrollElem = getRefElem(elemStore["main-body-scroll"]);
2119
2129
  if (bodyScrollElem) {
2120
2130
  const clientHeight = bodyScrollElem.clientHeight;
@@ -2126,10 +2136,10 @@ function handleVirtualYVisible($xeTable) {
2126
2136
  const endTop = scrollTop + clientHeight;
2127
2137
  let toVisibleIndex = -1;
2128
2138
  let visibleSize = 0;
2129
- const isCustomCellHeight = isResizeCellHeight || cellOpts.height || rowOpts.height;
2130
- if (!isCustomCellHeight && !expandColumn && isAllOverflow) {
2131
- toVisibleIndex = Math.floor(startTop / defaultRowHeight) - 1;
2132
- visibleSize = Math.ceil(clientHeight / defaultRowHeight) + 1;
2139
+ const uniformHeight = getUniformRowHeight($xeTable);
2140
+ if (uniformHeight) {
2141
+ toVisibleIndex = Math.max(0, Math.floor(startTop / uniformHeight) - 1);
2142
+ visibleSize = $xeTable.computeCellOpts.height || $xeTable.computeRowOpts.height ? Math.min(afterFullData.length - toVisibleIndex, Math.floor(endTop / uniformHeight) + 2 - toVisibleIndex) : Math.ceil(clientHeight / uniformHeight) + 1;
2133
2143
  } else {
2134
2144
  const { handleGetRowId } = createHandleGetRowId($xeTable);
2135
2145
  let leftIndex = 0;
@@ -5110,6 +5120,39 @@ const tableMethods = {
5110
5120
  return $xeTable.$nextTick().then(() => loadTableData($xeTable, internalData.tableFullData, true, true));
5111
5121
  });
5112
5122
  },
5123
+ /** 只改变现有行的展示内容。数据模型或尺寸依赖行值时,沿用完整更新。 */
5124
+ refreshRowContent(rows) {
5125
+ const $xeTable = this;
5126
+ const internalData = $xeTable;
5127
+ const reactData = $xeTable;
5128
+ if (!rows.length) return $xeTable.$nextTick();
5129
+ const { fullDataRowIdData, visibleDataRowIdData, tableFullColumn } = internalData;
5130
+ const { handleGetRowId } = createHandleGetRowId($xeTable);
5131
+ let hasVisibleRow = false;
5132
+ let staleRow = false;
5133
+ for (const row of rows) {
5134
+ const id = handleGetRowId(row);
5135
+ const rest = fullDataRowIdData[id];
5136
+ if (rest && rest.row === row) {
5137
+ rest.formatData = void 0;
5138
+ if (visibleDataRowIdData[id] === row) hasVisibleRow = true;
5139
+ } else {
5140
+ staleRow = true;
5141
+ }
5142
+ }
5143
+ const remoteFilter = $xeTable.computeFilterOpts.remote;
5144
+ const remoteSort = $xeTable.computeSortOpts.remote;
5145
+ if (staleRow || !reactData.isAllOverflow || internalData.isResizeCellHeight || $xeTable.treeConfig || reactData.isRowGroupStatus || reactData.expandColumn || $xeTable.showFooter || $xeTable.spanMethod || internalData.mergeBodyList.length || internalData.xeGanttView || $xeTable.computeAutoWidthColumnList.length || tableFullColumn.some((column) => !remoteSort && column.sortable && column.order || !remoteFilter && column.filters && column.filters.some((item) => item.checked))) {
5146
+ return $xeTable.updateData();
5147
+ }
5148
+ if (hasVisibleRow) {
5149
+ for (const ref of ["refTableBody", "leftBody", "rightBody"]) {
5150
+ const body = $xeTable.$refs[ref];
5151
+ if (body) body.$forceUpdate();
5152
+ }
5153
+ }
5154
+ return $xeTable.$nextTick();
5155
+ },
5113
5156
  /**
5114
5157
  * 手动处理数据,用于手动排序与筛选
5115
5158
  * 对于手动更改了排序、筛选...等条件后需要重新处理数据时可能会用到
@@ -12961,13 +13004,13 @@ const tableMethods = {
12961
13004
  let sYHeight = scrollYHeight;
12962
13005
  let isScrollYBig = false;
12963
13006
  if (scrollYLoad) {
12964
- const isCustomCellHeight = isResizeCellHeight || cellOpts.height || rowOpts.height;
12965
- if (!isCustomCellHeight && !expandColumn && isAllOverflow) {
12966
- sYHeight = afterFullData.length * defaultRowHeight;
13007
+ const uniformHeight = getUniformRowHeight($xeTable);
13008
+ if (uniformHeight) {
13009
+ sYHeight = afterFullData.length * uniformHeight;
12967
13010
  if (sYHeight > maxYHeight) {
12968
13011
  isScrollYBig = true;
12969
13012
  }
12970
- ySpaceTop = Math.max(0, startIndex * defaultRowHeight);
13013
+ ySpaceTop = Math.max(0, startIndex * uniformHeight);
12971
13014
  } else {
12972
13015
  const firstRow = afterFullData[startIndex];
12973
13016
  if (firstRow) {
@@ -13042,7 +13085,7 @@ const tableMethods = {
13042
13085
  return;
13043
13086
  }
13044
13087
  const root = $xeTable.$refs.refElem;
13045
- if (stableSpace && fromScroll && root && bodyScrollElem && (cellOpts.height || rowOpts.height) && internalData.customHeight > 0 && !$xeTable.computeAutoWidthColumnList.length && !$xeTable.spanMethod && !internalData.mergeBodyList.length && !internalData.currentRow && !($xeTable.mouseConfig && mouseOpts.selected)) {
13088
+ if (stableSpace && fromScroll && root && bodyScrollElem && (cellOpts.height || rowOpts.height) && internalData.customHeight > 0 && !$xeTable.computeAutoWidthColumnList.length && !$xeTable.spanMethod && !internalData.mergeBodyList.length && !($xeTable.mouseConfig && mouseOpts.selected)) {
13046
13089
  const header = getRefElem(elemStore["main-header-table"]);
13047
13090
  const footer = getRefElem(elemStore["main-footer-table"]);
13048
13091
  const layout = [
@@ -13070,6 +13113,9 @@ const tableMethods = {
13070
13113
  ];
13071
13114
  const previous = scrollYWindowLayouts.get($xeTable);
13072
13115
  if (previous && layout.every((value, index) => value === previous[index])) {
13116
+ if (internalData.currentRow && !$xeTable.rowKey && !rowOpts.useKey) {
13117
+ syncReusedCurrentRows($xeTable, root, internalData.currentRow);
13118
+ }
13073
13119
  reactData.scrollYTop = scrollYTop;
13074
13120
  return;
13075
13121
  }
@@ -1345,13 +1345,13 @@ var table_default = {
1345
1345
  const $xeTable = this;
1346
1346
  const props = $xeTable;
1347
1347
  const reactData = $xeTable;
1348
- const { spanMethod, footerSpanMethod } = props;
1348
+ const { spanMethod } = props;
1349
1349
  const { scrollXLoad, scrollYLoad, isAllOverflow, expandColumn } = reactData;
1350
1350
  const bodyMergeCoverFixed = $xeTable.computeBodyMergeCoverFixed;
1351
1351
  const expandOpts = $xeTable.computeExpandOpts;
1352
1352
  let isOptimizeMode = false;
1353
1353
  if (scrollXLoad || scrollYLoad || isAllOverflow) {
1354
- if (expandColumn && expandOpts.mode !== "fixed" || bodyMergeCoverFixed || spanMethod || footerSpanMethod) {
1354
+ if (expandColumn && expandOpts.mode !== "fixed" || bodyMergeCoverFixed || spanMethod) {
1355
1355
  } else {
1356
1356
  isOptimizeMode = true;
1357
1357
  }
@@ -27,7 +27,9 @@ export declare function encodeRowid(rowVal: string | number): string;
27
27
  export declare function getCalcHeight(height: number | 'unset' | undefined | null): number;
28
28
  export declare function handleFieldOrColumn($xeTable: VxeTableConstructor, fieldOrColumn: any): any;
29
29
  export declare function handleRowidOrRow($xeTable: VxeTableConstructor, rowidOrRow: any): any;
30
- export declare function getCellRestHeight(rowRest: VxeTableDefines.RowCacheItem, cellOpts: VxeTablePropTypes.CellConfig, rowOpts: VxeTablePropTypes.RowConfig, defaultRowHeight: number): number;
30
+ export declare function getCellRestHeight(rowRest: Pick<VxeTableDefines.RowCacheItem, 'height' | 'resizeHeight'>, cellOpts: VxeTablePropTypes.CellConfig, rowOpts: VxeTablePropTypes.RowConfig, defaultRowHeight: number): number;
31
+ export declare const maxYHeight = 5000000;
32
+ export declare function getUniformRowHeight($xeTable: VxeTableConstructor): number;
31
33
  export declare function assembleColumn(_vm: any): void;
32
34
  export declare function destroyColumn(_vm: any): void;
33
35
  export declare function getRootColumn($xeTable: VxeTableConstructor & VxeTablePrivateMethods, column: any): any;
@@ -704,6 +704,14 @@ function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) {
704
704
  }
705
705
  return cellHeight;
706
706
  }
707
+ const maxYHeight = 5e6;
708
+ function getUniformRowHeight($xeTable) {
709
+ const reactData = $xeTable;
710
+ const internalData = $xeTable;
711
+ if (!reactData.isAllOverflow || reactData.expandColumn || internalData.isResizeCellHeight) return 0;
712
+ const height = getCellRestHeight({ height: 0, resizeHeight: 0 }, $xeTable.computeCellOpts, $xeTable.computeRowOpts, $xeTable.computeDefaultRowHeight);
713
+ return Number.isFinite(height) && height > 0 ? height : 0;
714
+ }
707
715
  function assembleColumn(_vm) {
708
716
  const $xeTable = _vm.$xeTable;
709
717
  const reactData = $xeTable;
@@ -929,8 +937,8 @@ function createColumn($xeTable, options, renderOptions) {
929
937
  function rowToVisible($xeTable, row) {
930
938
  const reactData = $xeTable;
931
939
  const internalData = $xeTable;
932
- const { scrollYLoad, scrollYTop, isAllOverflow } = reactData;
933
- const { elemStore, afterFullData, fullAllDataRowIdData, isResizeCellHeight } = internalData;
940
+ const { scrollYLoad, scrollYTop, isScrollYBig, scrollYHeight } = reactData;
941
+ const { elemStore, afterFullData, fullAllDataRowIdData } = internalData;
934
942
  const rowOpts = $xeTable.computeRowOpts;
935
943
  const cellOpts = $xeTable.computeCellOpts;
936
944
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
@@ -952,17 +960,21 @@ function rowToVisible($xeTable, row) {
952
960
  }
953
961
  } else {
954
962
  if (scrollYLoad) {
955
- const isCustomCellHeight = isResizeCellHeight || cellOpts.height || rowOpts.height;
956
- if (!isCustomCellHeight && isAllOverflow) {
957
- return $xeTable.scrollTo(null, ($xeTable.findRowIndexOf(afterFullData, row) - 1) * defaultRowHeight);
958
- }
959
- const rowRest = fullAllDataRowIdData[rowid] || {};
960
- const rHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
961
- const scrollTop = rowRest.oTop;
962
- if (scrollTop < bodyScrollTop) {
963
- return $xeTable.scrollTo(null, scrollTop - leftFixedWidth - 1);
963
+ const rowRest = fullAllDataRowIdData[rowid];
964
+ if (!rowRest) return Promise.resolve();
965
+ const uniformHeight = getUniformRowHeight($xeTable);
966
+ const rHeight = uniformHeight || getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
967
+ const index = rowRest._index;
968
+ if (uniformHeight && afterFullData[index] !== rowRest.row) return Promise.resolve();
969
+ const rowTop = uniformHeight ? index * rHeight : rowRest.oTop;
970
+ const scale = isScrollYBig ? (maxYHeight - bodyHeight) / (scrollYHeight - bodyHeight) : 1;
971
+ let target = rowTop + rHeight - (bodyHeight - rightFixedWidth - 1);
972
+ if (uniformHeight && !cellOpts.height && !rowOpts.height) {
973
+ target = rowTop - rHeight;
974
+ } else if (rowTop < bodyScrollTop / scale) {
975
+ target = rowTop - leftFixedWidth - 1;
964
976
  }
965
- return $xeTable.scrollTo(null, scrollTop + rHeight - (bodyHeight - rightFixedWidth - 1));
977
+ return $xeTable.scrollTo(null, isScrollYBig ? Math.round(target * scale) : target);
966
978
  }
967
979
  }
968
980
  }
@@ -1082,11 +1094,13 @@ export {
1082
1094
  getRowUniqueId,
1083
1095
  getRowid,
1084
1096
  getRowkey,
1097
+ getUniformRowHeight,
1085
1098
  handleCustomStoreConfig,
1086
1099
  handleFieldOrColumn,
1087
1100
  handleRowidOrRow,
1088
1101
  hasDeepKey,
1089
1102
  isColumnInfo,
1103
+ maxYHeight,
1090
1104
  restoreScrollLocation,
1091
1105
  rowToVisible,
1092
1106
  setCellValue,
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
- const version = "3.25.19";
3
+ const version = "3.25.20";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from "@vxe-ui/core";
2
2
  const { log } = VxeUI;
3
- const tableVersion = `table v${"3.25.19"}`;
3
+ const tableVersion = `table v${"3.25.20"}`;
4
4
  function createComponentLog(name) {
5
5
  const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : "";
6
6
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : "";