tomtaw-vxe-table 3.25.16 → 3.25.17
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.
- package/es/table/src/methods.js +53 -9
- package/es/table/src/table.js +1 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +56 -11
- package/lib/index.umd.min.js +3 -3
- package/lib/table/src/methods.js +53 -9
- package/lib/table/src/table.js +1 -0
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/package.json +1 -1
- package/packages/table/src/methods.ts +81 -9
- package/packages/table/src/table.ts +1 -0
- /package/es/{iconfont.1794808854279.ttf → iconfont.1794996774715.ttf} +0 -0
- /package/es/{iconfont.1794808854279.woff → iconfont.1794996774715.woff} +0 -0
- /package/es/{iconfont.1794808854279.woff2 → iconfont.1794996774715.woff2} +0 -0
- /package/lib/{iconfont.1794808854279.ttf → iconfont.1794996774715.ttf} +0 -0
- /package/lib/{iconfont.1794808854279.woff → iconfont.1794996774715.woff} +0 -0
- /package/lib/{iconfont.1794808854279.woff2 → iconfont.1794996774715.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -2834,12 +2834,20 @@ const calcCellHeight = ($xeTable) => {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
const rowWrapperMaps = collectRowCellWrappers(el);
|
|
2836
2836
|
let changed = false;
|
|
2837
|
+
const previous = rowOffsetIndexes.get($xeTable);
|
|
2838
|
+
const trackOffsets = previous && !reactData.expandColumn && previous.heightFlag === reactData.calcCellHeightFlag;
|
|
2839
|
+
let firstChangedIndex = previous ? previous.firstChangedIndex : Infinity;
|
|
2837
2840
|
withRowHeightMeasurement(el, () => {
|
|
2838
2841
|
const heights = isBatch ? calcCellsAutoHeight($xeTable, rows, el, rowWrapperMaps) : rows.map(({ rowid, rowRest }) => calcCellAutoHeight($xeTable, rowid, rowRest, el, rowWrapperMaps));
|
|
2839
2842
|
rows.forEach(({ rowRest }, index) => {
|
|
2840
2843
|
const height = Math.max(defaultRowHeight, heights[index]);
|
|
2841
2844
|
if (rowRest.height !== height) {
|
|
2845
|
+
const oldHeight = trackOffsets ? getCellRestHeight(rowRest, $xeTable.computeCellOpts, $xeTable.computeRowOpts, defaultRowHeight) : 0;
|
|
2842
2846
|
rowRest.height = height;
|
|
2847
|
+
if (trackOffsets && oldHeight !== getCellRestHeight(rowRest, $xeTable.computeCellOpts, $xeTable.computeRowOpts, defaultRowHeight)) {
|
|
2848
|
+
const rowIndex = rowRest._index;
|
|
2849
|
+
firstChangedIndex = Math.min(firstChangedIndex, internalData.afterFullData[rowIndex] === rowRest.row && rowIndex >= 0 ? rowIndex : 0);
|
|
2850
|
+
}
|
|
2843
2851
|
changed = true;
|
|
2844
2852
|
}
|
|
2845
2853
|
});
|
|
@@ -2847,6 +2855,10 @@ const calcCellHeight = ($xeTable) => {
|
|
|
2847
2855
|
if (changed || !isBatch) {
|
|
2848
2856
|
reactData.calcCellHeightFlag++;
|
|
2849
2857
|
}
|
|
2858
|
+
if (trackOffsets) {
|
|
2859
|
+
previous.firstChangedIndex = firstChangedIndex;
|
|
2860
|
+
previous.heightFlag = reactData.calcCellHeightFlag;
|
|
2861
|
+
}
|
|
2850
2862
|
}
|
|
2851
2863
|
};
|
|
2852
2864
|
function getOrderField($xeTable, column) {
|
|
@@ -3959,7 +3971,10 @@ function loadScrollXData($xeTable) {
|
|
|
3959
3971
|
};
|
|
3960
3972
|
scrollXStore.visibleStartIndex = toVisibleIndex - 1;
|
|
3961
3973
|
scrollXStore.visibleEndIndex = toVisibleIndex + visibleSize + 1;
|
|
3962
|
-
|
|
3974
|
+
if (mergeBodyList.length || mergeFooterList.length) {
|
|
3975
|
+
const merges = mergeFooterList.length ? mergeBodyList.concat(mergeFooterList) : mergeBodyList;
|
|
3976
|
+
calculateMergerOffsetIndex(merges, mergeBodyColMaps, offsetItem, "col");
|
|
3977
|
+
}
|
|
3963
3978
|
const { startIndex: offsetStartIndex, endIndex: offsetEndIndex } = offsetItem;
|
|
3964
3979
|
if (toVisibleIndex <= startIndex || toVisibleIndex >= endIndex - visibleSize - 1) {
|
|
3965
3980
|
if (startIndex !== offsetStartIndex || endIndex !== offsetEndIndex) {
|
|
@@ -4164,7 +4179,9 @@ function loadScrollYData($xeTable) {
|
|
|
4164
4179
|
};
|
|
4165
4180
|
scrollYStore.visibleStartIndex = toVisibleIndex - 1;
|
|
4166
4181
|
scrollYStore.visibleEndIndex = toVisibleIndex + visibleSize + 1;
|
|
4167
|
-
|
|
4182
|
+
if (mergeBodyList.length) {
|
|
4183
|
+
calculateMergerOffsetIndex(mergeBodyList, mergeBodyRowMaps, offsetItem, "row");
|
|
4184
|
+
}
|
|
4168
4185
|
const { startIndex: offsetStartIndex, endIndex: offsetEndIndex } = offsetItem;
|
|
4169
4186
|
if (toVisibleIndex <= startIndex || toVisibleIndex >= endIndex - visibleSize - 1) {
|
|
4170
4187
|
if (startIndex !== offsetStartIndex || endIndex !== offsetEndIndex) {
|
|
@@ -4239,6 +4256,16 @@ function lazyScrollYData($xeTable) {
|
|
|
4239
4256
|
loadScrollYData($xeTable);
|
|
4240
4257
|
}, fpsTime);
|
|
4241
4258
|
}
|
|
4259
|
+
function measureScrollRowOffsets($xeTable) {
|
|
4260
|
+
const internalData = $xeTable;
|
|
4261
|
+
const reactData = $xeTable;
|
|
4262
|
+
calcCellHeight($xeTable);
|
|
4263
|
+
const previous = rowOffsetIndexes.get($xeTable);
|
|
4264
|
+
const reuse = previous && !reactData.expandColumn && !previous.hasExpandColumn && previous.rows === internalData.afterFullData && previous.length === internalData.afterFullData.length && previous.cache === internalData.fullAllDataRowIdData && previous.rowOrder === internalData.afterFullRowMaps && previous.cellOpts === $xeTable.computeCellOpts && previous.rowOpts === $xeTable.computeRowOpts && previous.defaultRowHeight === $xeTable.computeDefaultRowHeight && previous.heightFlag === reactData.calcCellHeightFlag && previous.resizeFlag === reactData.resizeHeightFlag;
|
|
4265
|
+
if (!reuse || previous.firstChangedIndex !== Infinity) {
|
|
4266
|
+
updateRowOffsetTop($xeTable, reuse ? previous.firstChangedIndex : 0);
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4242
4269
|
function handleSyncScroll($xeTable, isRollX, isRollY, syncGuard) {
|
|
4243
4270
|
const reactData = $xeTable;
|
|
4244
4271
|
const internalData = $xeTable;
|
|
@@ -4263,8 +4290,7 @@ function handleSyncScroll($xeTable, isRollX, isRollY, syncGuard) {
|
|
|
4263
4290
|
let xRest = null;
|
|
4264
4291
|
let yRest = null;
|
|
4265
4292
|
if (!isAllOverflow) {
|
|
4266
|
-
|
|
4267
|
-
updateRowOffsetTop($xeTable);
|
|
4293
|
+
measureScrollRowOffsets($xeTable);
|
|
4268
4294
|
}
|
|
4269
4295
|
if (syncGuard) syncGuard.markMeasured();
|
|
4270
4296
|
if (isRollX && scrollXLoad) {
|
|
@@ -4281,8 +4307,7 @@ function handleSyncScroll($xeTable, isRollX, isRollY, syncGuard) {
|
|
|
4281
4307
|
autoCellWidth($xeTable);
|
|
4282
4308
|
}
|
|
4283
4309
|
if (!isAllOverflow) {
|
|
4284
|
-
|
|
4285
|
-
updateRowOffsetTop($xeTable);
|
|
4310
|
+
measureScrollRowOffsets($xeTable);
|
|
4286
4311
|
}
|
|
4287
4312
|
if (syncGuard) syncGuard.markMeasured();
|
|
4288
4313
|
return $xeTable.updateScrollYSpace();
|
|
@@ -4567,7 +4592,20 @@ function updateRowOffsetTop($xeTable, dirtyIndex = 0) {
|
|
|
4567
4592
|
offsetTop += getRowExpandHeight($xeTable, row, rowRest);
|
|
4568
4593
|
}
|
|
4569
4594
|
}
|
|
4570
|
-
rowOffsetIndexes.set($xeTable, {
|
|
4595
|
+
rowOffsetIndexes.set($xeTable, {
|
|
4596
|
+
rows: afterFullData,
|
|
4597
|
+
cache: fullAllDataRowIdData,
|
|
4598
|
+
indexes,
|
|
4599
|
+
rowOrder: internalData.afterFullRowMaps,
|
|
4600
|
+
length: afterFullData.length,
|
|
4601
|
+
rowOpts,
|
|
4602
|
+
cellOpts,
|
|
4603
|
+
defaultRowHeight,
|
|
4604
|
+
hasExpandColumn: !!expandColumn,
|
|
4605
|
+
heightFlag: reactData.calcCellHeightFlag,
|
|
4606
|
+
firstChangedIndex: Infinity,
|
|
4607
|
+
resizeFlag: reactData.resizeHeightFlag
|
|
4608
|
+
});
|
|
4571
4609
|
pendingExpandOffsetUpdates.delete($xeTable);
|
|
4572
4610
|
}
|
|
4573
4611
|
function updateRowExpandStyle($xeTable, forceMeasure = false, reuseMeasurements = false) {
|
|
@@ -8364,6 +8402,7 @@ const tableMethods = {
|
|
|
8364
8402
|
const { mergeMaps, mergeRowMaps, mergeColMaps } = buildMergeData(mergeFooterList);
|
|
8365
8403
|
internalData.mergeFooterCellMaps = mergeMaps;
|
|
8366
8404
|
internalData.mergeFooterRowMaps = mergeRowMaps;
|
|
8405
|
+
internalData.mergeBodyColMaps = {};
|
|
8367
8406
|
internalData.mergeFooterColMaps = mergeColMaps;
|
|
8368
8407
|
reactData.mergeFootFlag++;
|
|
8369
8408
|
},
|
|
@@ -12864,7 +12903,7 @@ const tableMethods = {
|
|
|
12864
12903
|
updateScrollYData() {
|
|
12865
12904
|
const $xeTable = this;
|
|
12866
12905
|
$xeTable.handleTableData();
|
|
12867
|
-
$xeTable.updateScrollYSpace();
|
|
12906
|
+
$xeTable.updateScrollYSpace(true);
|
|
12868
12907
|
return $xeTable.$nextTick().then(() => {
|
|
12869
12908
|
$xeTable.handleTableData(false, true);
|
|
12870
12909
|
$xeTable.updateScrollYSpace();
|
|
@@ -12881,7 +12920,7 @@ const tableMethods = {
|
|
|
12881
12920
|
}
|
|
12882
12921
|
},
|
|
12883
12922
|
// 更新纵向 Y 可视渲染上下剩余空间大小
|
|
12884
|
-
updateScrollYSpace() {
|
|
12923
|
+
updateScrollYSpace(beforeWindowCommit = false) {
|
|
12885
12924
|
const $xeTable = this;
|
|
12886
12925
|
const reactData = $xeTable;
|
|
12887
12926
|
const internalData = $xeTable;
|
|
@@ -12977,6 +13016,10 @@ const tableMethods = {
|
|
|
12977
13016
|
rightbodyTableElem.style.transform = `translate(0px, ${scrollYTop}px)`;
|
|
12978
13017
|
}
|
|
12979
13018
|
}
|
|
13019
|
+
if (beforeWindowCommit && scrollYLoad && overflowY && isAllOverflow && !expandColumn && !isResizeCellHeight && !$xeTable.treeConfig && !$xeGanttView && !isScrollYBig && !reactData.isScrollYBig && scrollYHeight === ySpaceHeight && bodyTableElem && clientHeight > 0 && sYHeight > clientHeight) {
|
|
13020
|
+
reactData.scrollYTop = scrollYTop;
|
|
13021
|
+
return;
|
|
13022
|
+
}
|
|
12980
13023
|
containerList.forEach((name) => {
|
|
12981
13024
|
const layoutList = ["header", "body", "footer"];
|
|
12982
13025
|
layoutList.forEach((layout) => {
|
|
@@ -13446,6 +13489,7 @@ const tableMethods = {
|
|
|
13446
13489
|
internalData.mergeFooterMaps = {};
|
|
13447
13490
|
internalData.mergeFooterCellMaps = {};
|
|
13448
13491
|
internalData.mergeFooterRowMaps = {};
|
|
13492
|
+
internalData.mergeBodyColMaps = {};
|
|
13449
13493
|
internalData.mergeFooterColMaps = {};
|
|
13450
13494
|
reactData.mergeFootFlag++;
|
|
13451
13495
|
return $xeTable.$nextTick().then(() => {
|
package/es/table/src/table.js
CHANGED
|
@@ -109,6 +109,7 @@ function updateColumnAllOverflow($xeTable) {
|
|
|
109
109
|
XEUtils.each(fullAllDataRowIdData, (rowRest) => {
|
|
110
110
|
rowRest.height = 0;
|
|
111
111
|
});
|
|
112
|
+
reactData.calcCellHeightFlag++;
|
|
112
113
|
reactData.isAllOverflow = isAllOverflow;
|
|
113
114
|
}
|
|
114
115
|
function renderViewFixed(h, $xeTable, fixedType) {
|
package/es/ui/index.js
CHANGED
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.
|
|
3
|
+
const tableVersion = `table v${"3.25.17"}`;
|
|
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}` : "";
|
package/lib/index.umd.js
CHANGED
|
@@ -323,7 +323,7 @@ function getDefaultConfig(val1, def1) {
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
// packages_temp/ui/index.ts
|
|
326
|
-
var version = "3.25.
|
|
326
|
+
var version = "3.25.17";
|
|
327
327
|
import_core2.VxeUI.version = version;
|
|
328
328
|
import_core2.VxeUI.tableVersion = version;
|
|
329
329
|
import_core2.VxeUI.setConfig({
|
|
@@ -1167,7 +1167,7 @@ function getPopupAppendElement(appendTo) {
|
|
|
1167
1167
|
// packages_temp/ui/src/log.ts
|
|
1168
1168
|
var import_core3 = require("@vxe-ui/core");
|
|
1169
1169
|
var { log } = import_core3.VxeUI;
|
|
1170
|
-
var tableVersion = `table v${"3.25.
|
|
1170
|
+
var tableVersion = `table v${"3.25.17"}`;
|
|
1171
1171
|
function createComponentLog(name) {
|
|
1172
1172
|
const uiVersion = import_core3.VxeUI.uiVersion ? `ui v${import_core3.VxeUI.uiVersion}` : "";
|
|
1173
1173
|
const ganttVersion = import_core3.VxeUI.ganttVersion ? `gantt v${import_core3.VxeUI.ganttVersion}` : "";
|
|
@@ -7731,12 +7731,20 @@ var calcCellHeight = ($xeTable) => {
|
|
|
7731
7731
|
}
|
|
7732
7732
|
const rowWrapperMaps = collectRowCellWrappers(el);
|
|
7733
7733
|
let changed = false;
|
|
7734
|
+
const previous = rowOffsetIndexes.get($xeTable);
|
|
7735
|
+
const trackOffsets = previous && !reactData.expandColumn && previous.heightFlag === reactData.calcCellHeightFlag;
|
|
7736
|
+
let firstChangedIndex = previous ? previous.firstChangedIndex : Infinity;
|
|
7734
7737
|
withRowHeightMeasurement(el, () => {
|
|
7735
7738
|
const heights = isBatch ? calcCellsAutoHeight($xeTable, rows, el, rowWrapperMaps) : rows.map(({ rowid, rowRest }) => calcCellAutoHeight($xeTable, rowid, rowRest, el, rowWrapperMaps));
|
|
7736
7739
|
rows.forEach(({ rowRest }, index) => {
|
|
7737
7740
|
const height = Math.max(defaultRowHeight, heights[index]);
|
|
7738
7741
|
if (rowRest.height !== height) {
|
|
7742
|
+
const oldHeight = trackOffsets ? getCellRestHeight(rowRest, $xeTable.computeCellOpts, $xeTable.computeRowOpts, defaultRowHeight) : 0;
|
|
7739
7743
|
rowRest.height = height;
|
|
7744
|
+
if (trackOffsets && oldHeight !== getCellRestHeight(rowRest, $xeTable.computeCellOpts, $xeTable.computeRowOpts, defaultRowHeight)) {
|
|
7745
|
+
const rowIndex = rowRest._index;
|
|
7746
|
+
firstChangedIndex = Math.min(firstChangedIndex, internalData.afterFullData[rowIndex] === rowRest.row && rowIndex >= 0 ? rowIndex : 0);
|
|
7747
|
+
}
|
|
7740
7748
|
changed = true;
|
|
7741
7749
|
}
|
|
7742
7750
|
});
|
|
@@ -7744,6 +7752,10 @@ var calcCellHeight = ($xeTable) => {
|
|
|
7744
7752
|
if (changed || !isBatch) {
|
|
7745
7753
|
reactData.calcCellHeightFlag++;
|
|
7746
7754
|
}
|
|
7755
|
+
if (trackOffsets) {
|
|
7756
|
+
previous.firstChangedIndex = firstChangedIndex;
|
|
7757
|
+
previous.heightFlag = reactData.calcCellHeightFlag;
|
|
7758
|
+
}
|
|
7747
7759
|
}
|
|
7748
7760
|
};
|
|
7749
7761
|
function getOrderField($xeTable, column) {
|
|
@@ -8856,7 +8868,10 @@ function loadScrollXData($xeTable) {
|
|
|
8856
8868
|
};
|
|
8857
8869
|
scrollXStore.visibleStartIndex = toVisibleIndex - 1;
|
|
8858
8870
|
scrollXStore.visibleEndIndex = toVisibleIndex + visibleSize + 1;
|
|
8859
|
-
|
|
8871
|
+
if (mergeBodyList.length || mergeFooterList.length) {
|
|
8872
|
+
const merges = mergeFooterList.length ? mergeBodyList.concat(mergeFooterList) : mergeBodyList;
|
|
8873
|
+
calculateMergerOffsetIndex(merges, mergeBodyColMaps, offsetItem, "col");
|
|
8874
|
+
}
|
|
8860
8875
|
const { startIndex: offsetStartIndex, endIndex: offsetEndIndex } = offsetItem;
|
|
8861
8876
|
if (toVisibleIndex <= startIndex || toVisibleIndex >= endIndex - visibleSize - 1) {
|
|
8862
8877
|
if (startIndex !== offsetStartIndex || endIndex !== offsetEndIndex) {
|
|
@@ -9061,7 +9076,9 @@ function loadScrollYData($xeTable) {
|
|
|
9061
9076
|
};
|
|
9062
9077
|
scrollYStore.visibleStartIndex = toVisibleIndex - 1;
|
|
9063
9078
|
scrollYStore.visibleEndIndex = toVisibleIndex + visibleSize + 1;
|
|
9064
|
-
|
|
9079
|
+
if (mergeBodyList.length) {
|
|
9080
|
+
calculateMergerOffsetIndex(mergeBodyList, mergeBodyRowMaps, offsetItem, "row");
|
|
9081
|
+
}
|
|
9065
9082
|
const { startIndex: offsetStartIndex, endIndex: offsetEndIndex } = offsetItem;
|
|
9066
9083
|
if (toVisibleIndex <= startIndex || toVisibleIndex >= endIndex - visibleSize - 1) {
|
|
9067
9084
|
if (startIndex !== offsetStartIndex || endIndex !== offsetEndIndex) {
|
|
@@ -9136,6 +9153,16 @@ function lazyScrollYData($xeTable) {
|
|
|
9136
9153
|
loadScrollYData($xeTable);
|
|
9137
9154
|
}, fpsTime);
|
|
9138
9155
|
}
|
|
9156
|
+
function measureScrollRowOffsets($xeTable) {
|
|
9157
|
+
const internalData = $xeTable;
|
|
9158
|
+
const reactData = $xeTable;
|
|
9159
|
+
calcCellHeight($xeTable);
|
|
9160
|
+
const previous = rowOffsetIndexes.get($xeTable);
|
|
9161
|
+
const reuse = previous && !reactData.expandColumn && !previous.hasExpandColumn && previous.rows === internalData.afterFullData && previous.length === internalData.afterFullData.length && previous.cache === internalData.fullAllDataRowIdData && previous.rowOrder === internalData.afterFullRowMaps && previous.cellOpts === $xeTable.computeCellOpts && previous.rowOpts === $xeTable.computeRowOpts && previous.defaultRowHeight === $xeTable.computeDefaultRowHeight && previous.heightFlag === reactData.calcCellHeightFlag && previous.resizeFlag === reactData.resizeHeightFlag;
|
|
9162
|
+
if (!reuse || previous.firstChangedIndex !== Infinity) {
|
|
9163
|
+
updateRowOffsetTop($xeTable, reuse ? previous.firstChangedIndex : 0);
|
|
9164
|
+
}
|
|
9165
|
+
}
|
|
9139
9166
|
function handleSyncScroll($xeTable, isRollX, isRollY, syncGuard) {
|
|
9140
9167
|
const reactData = $xeTable;
|
|
9141
9168
|
const internalData = $xeTable;
|
|
@@ -9160,8 +9187,7 @@ function handleSyncScroll($xeTable, isRollX, isRollY, syncGuard) {
|
|
|
9160
9187
|
let xRest = null;
|
|
9161
9188
|
let yRest = null;
|
|
9162
9189
|
if (!isAllOverflow) {
|
|
9163
|
-
|
|
9164
|
-
updateRowOffsetTop($xeTable);
|
|
9190
|
+
measureScrollRowOffsets($xeTable);
|
|
9165
9191
|
}
|
|
9166
9192
|
if (syncGuard) syncGuard.markMeasured();
|
|
9167
9193
|
if (isRollX && scrollXLoad) {
|
|
@@ -9178,8 +9204,7 @@ function handleSyncScroll($xeTable, isRollX, isRollY, syncGuard) {
|
|
|
9178
9204
|
autoCellWidth($xeTable);
|
|
9179
9205
|
}
|
|
9180
9206
|
if (!isAllOverflow) {
|
|
9181
|
-
|
|
9182
|
-
updateRowOffsetTop($xeTable);
|
|
9207
|
+
measureScrollRowOffsets($xeTable);
|
|
9183
9208
|
}
|
|
9184
9209
|
if (syncGuard) syncGuard.markMeasured();
|
|
9185
9210
|
return $xeTable.updateScrollYSpace();
|
|
@@ -9464,7 +9489,20 @@ function updateRowOffsetTop($xeTable, dirtyIndex = 0) {
|
|
|
9464
9489
|
offsetTop += getRowExpandHeight($xeTable, row, rowRest);
|
|
9465
9490
|
}
|
|
9466
9491
|
}
|
|
9467
|
-
rowOffsetIndexes.set($xeTable, {
|
|
9492
|
+
rowOffsetIndexes.set($xeTable, {
|
|
9493
|
+
rows: afterFullData,
|
|
9494
|
+
cache: fullAllDataRowIdData,
|
|
9495
|
+
indexes,
|
|
9496
|
+
rowOrder: internalData.afterFullRowMaps,
|
|
9497
|
+
length: afterFullData.length,
|
|
9498
|
+
rowOpts,
|
|
9499
|
+
cellOpts,
|
|
9500
|
+
defaultRowHeight,
|
|
9501
|
+
hasExpandColumn: !!expandColumn,
|
|
9502
|
+
heightFlag: reactData.calcCellHeightFlag,
|
|
9503
|
+
firstChangedIndex: Infinity,
|
|
9504
|
+
resizeFlag: reactData.resizeHeightFlag
|
|
9505
|
+
});
|
|
9468
9506
|
pendingExpandOffsetUpdates.delete($xeTable);
|
|
9469
9507
|
}
|
|
9470
9508
|
function updateRowExpandStyle($xeTable, forceMeasure = false, reuseMeasurements = false) {
|
|
@@ -13261,6 +13299,7 @@ var tableMethods = {
|
|
|
13261
13299
|
const { mergeMaps, mergeRowMaps, mergeColMaps } = buildMergeData(mergeFooterList);
|
|
13262
13300
|
internalData.mergeFooterCellMaps = mergeMaps;
|
|
13263
13301
|
internalData.mergeFooterRowMaps = mergeRowMaps;
|
|
13302
|
+
internalData.mergeBodyColMaps = {};
|
|
13264
13303
|
internalData.mergeFooterColMaps = mergeColMaps;
|
|
13265
13304
|
reactData.mergeFootFlag++;
|
|
13266
13305
|
},
|
|
@@ -17761,7 +17800,7 @@ var tableMethods = {
|
|
|
17761
17800
|
updateScrollYData() {
|
|
17762
17801
|
const $xeTable = this;
|
|
17763
17802
|
$xeTable.handleTableData();
|
|
17764
|
-
$xeTable.updateScrollYSpace();
|
|
17803
|
+
$xeTable.updateScrollYSpace(true);
|
|
17765
17804
|
return $xeTable.$nextTick().then(() => {
|
|
17766
17805
|
$xeTable.handleTableData(false, true);
|
|
17767
17806
|
$xeTable.updateScrollYSpace();
|
|
@@ -17778,7 +17817,7 @@ var tableMethods = {
|
|
|
17778
17817
|
}
|
|
17779
17818
|
},
|
|
17780
17819
|
// 更新纵向 Y 可视渲染上下剩余空间大小
|
|
17781
|
-
updateScrollYSpace() {
|
|
17820
|
+
updateScrollYSpace(beforeWindowCommit = false) {
|
|
17782
17821
|
const $xeTable = this;
|
|
17783
17822
|
const reactData = $xeTable;
|
|
17784
17823
|
const internalData = $xeTable;
|
|
@@ -17874,6 +17913,10 @@ var tableMethods = {
|
|
|
17874
17913
|
rightbodyTableElem.style.transform = `translate(0px, ${scrollYTop}px)`;
|
|
17875
17914
|
}
|
|
17876
17915
|
}
|
|
17916
|
+
if (beforeWindowCommit && scrollYLoad && overflowY && isAllOverflow && !expandColumn && !isResizeCellHeight && !$xeTable.treeConfig && !$xeGanttView && !isScrollYBig && !reactData.isScrollYBig && scrollYHeight === ySpaceHeight && bodyTableElem && clientHeight > 0 && sYHeight > clientHeight) {
|
|
17917
|
+
reactData.scrollYTop = scrollYTop;
|
|
17918
|
+
return;
|
|
17919
|
+
}
|
|
17877
17920
|
containerList.forEach((name) => {
|
|
17878
17921
|
const layoutList = ["header", "body", "footer"];
|
|
17879
17922
|
layoutList.forEach((layout) => {
|
|
@@ -18343,6 +18386,7 @@ var tableMethods = {
|
|
|
18343
18386
|
internalData.mergeFooterMaps = {};
|
|
18344
18387
|
internalData.mergeFooterCellMaps = {};
|
|
18345
18388
|
internalData.mergeFooterRowMaps = {};
|
|
18389
|
+
internalData.mergeBodyColMaps = {};
|
|
18346
18390
|
internalData.mergeFooterColMaps = {};
|
|
18347
18391
|
reactData.mergeFootFlag++;
|
|
18348
18392
|
return $xeTable.$nextTick().then(() => {
|
|
@@ -29848,6 +29892,7 @@ function updateColumnAllOverflow($xeTable) {
|
|
|
29848
29892
|
import_xe_utils23.default.each(fullAllDataRowIdData, (rowRest) => {
|
|
29849
29893
|
rowRest.height = 0;
|
|
29850
29894
|
});
|
|
29895
|
+
reactData.calcCellHeightFlag++;
|
|
29851
29896
|
reactData.isAllOverflow = isAllOverflow;
|
|
29852
29897
|
}
|
|
29853
29898
|
function renderViewFixed(h, $xeTable, fixedType) {
|