fantasy-ngzorro 2.2.33 → 2.2.35

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.
@@ -9425,10 +9425,11 @@ class HdTableComponent {
9425
9425
  changes["tableData"]["currentValue"]["pageNumber"] !==
9426
9426
  changes["tableData"]["previousValue"]["pageNumber"]) {
9427
9427
  this.pendingResetScrollTop = true;
9428
- if (this.virtualScroll) {
9429
- // 仅虚拟/普通模式真正切换时重建,避免排序后数据刷新把排序态清掉
9430
- this.applyTableScrollMode(false);
9431
- }
9428
+ // pageSize/pageNumber 变化也要重算 scroll / fluid。
9429
+ // 业务常把 Page.pageSize 写成 content.length(如收款编辑 toPage),
9430
+ // virtualScroll=false 时若这里跳过,空表初始化后的 fluid 不会补上,勾选列被撑开。
9431
+ // applyTableScrollMode(false) 在模式未变时只 dealScroll,不会强制重建清排序态。
9432
+ this.applyTableScrollMode(false);
9432
9433
  // 翻页/改 pageSize:主动多次复位,覆盖 CDK 异步渲染时序
9433
9434
  this.scheduleResetTableBodyScrollTop();
9434
9435
  return;
@@ -9439,10 +9440,10 @@ class HdTableComponent {
9439
9440
  }
9440
9441
  if (changes["tableData"]) {
9441
9442
  this.pendingResetScrollTop = true;
9442
- if (this.virtualScroll) {
9443
- // 数据刷新不强制重建,只在滚动模式变化时 remount
9444
- this.applyTableScrollMode(false);
9445
- }
9443
+ // 不论是否虚拟滚动都要重算 scroll / fluid。
9444
+ // 收款/付款编辑等页 [virtualScroll]=false + 异步灌数据:原先跳过会导致
9445
+ // 空表初始化后不再补宽,勾选列被均摊撑开。
9446
+ this.applyTableScrollMode(false);
9446
9447
  // 数据更新后复位纵向滚动(含虚拟滚动场景)
9447
9448
  this.scheduleResetTableBodyScrollTop();
9448
9449
  }