Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vtable",
"comment": "fix: fix row update range #3468",
"type": "none"
}
],
"packageName": "@visactor/vtable"
}
9 changes: 3 additions & 6 deletions packages/vtable/src/scenegraph/layout/update-row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,9 @@ export function updateRow(
const minRow = Math.min(...addRows);
scene.proxy.rowUpdatePos = Math.min(minRow, scene.proxy.rowUpdatePos);
}
// if (addRows.length > removeRows.length) {
scene.proxy.rowUpdateDirection = 'down';
// } else {
// scene.proxy.rowUpdateDirection = 'up';
// }
console.log('rowUpdateDirection', scene.proxy.rowUpdateDirection);
// 对于列表,折叠展开时最上行(按钮行行)位置不变,为基准向下更新,所以这里配置方向为up(从上向下更新)
// 对于透视表,最上行以上以下都也可能会变,目前采区重新建立场景树方案
scene.proxy.rowUpdateDirection = 'up';
scene.proxy.updateCellGroups(scene.proxy.screenRowCount * 2);
updateBottomFrozeCellGroups();
// scene.proxy.progress();
Expand Down