arthub-table 0.2.72 → 0.2.73

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.
@@ -1130,6 +1130,7 @@ declare class DataGrid {
1130
1130
  _configHeight?: number | string;
1131
1131
  private _baseColumnWidths;
1132
1132
  private _lastRawColumns;
1133
+ private _frozenDegradedKeys;
1133
1134
  private _columnsChangedSinceLastLoad;
1134
1135
  fixedLeftWidth: number;
1135
1136
  fixedRightWidth: number;
@@ -1664,6 +1665,27 @@ declare class DataGrid {
1664
1665
  /**
1665
1666
  * 事件相关------------------------------------------------------->
1666
1667
  */
1668
+ /**
1669
+ * 冻结预算:计算当前视口下应被降级的 fixedLeft 列 key 集合。
1670
+ * 预算口径 = this.width - originFixedWidth(行头区) - 右冻结区(含 SCROLLER_TRACK_SIZE),
1671
+ * 与原 loadColumns 超宽校验口径严格一致;从左到右保留放得下的冻结列。
1672
+ * this.width <= 0(构造早期/隐藏态)返回空集,交给 getTableSize cap 兜底。
1673
+ */
1674
+ private _computeDegradedKeys;
1675
+ /** 列宽口径与 _baseColumnWidths 快照一致:嵌套列取子列宽之和 */
1676
+ private _frozenBudgetColWidth;
1677
+ /**
1678
+ * 冻结预算降级:放不下的 fixedLeft 列克隆并去除冻结标记(不污染外部列配置),
1679
+ * 本次渲染作为普通列参与横向滚动——能显示多少显示多少。
1680
+ * 降级集合变化且非空时触发 onFrozenColumnOverflow,通知业务修正持久化配置。
1681
+ */
1682
+ private _applyFrozenBudget;
1683
+ /**
1684
+ * resize 链路:容器宽度变化后重新评估冻结预算。
1685
+ * 降级集合有变化(变宽恢复冻结 / 变窄降级更多)时从原始列配置重建列,
1686
+ * 调用方(resize / 构造)随后会 header.paint(),无需在此重绘。
1687
+ */
1688
+ private _reevaluateFrozenBudget;
1667
1689
  updateColumns(columns: Column[]): void;
1668
1690
  loadColumns(columns: Column[]): void;
1669
1691
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arthub-table",
3
- "version": "0.2.72",
3
+ "version": "0.2.73",
4
4
  "description": "High-performance canvas-based table/grid component for Vue 3 with TypeScript support, featuring virtual scrolling, cell viewers, grouped rows, and nested grids.",
5
5
  "main": "dist/arthub-table.common.js",
6
6
  "module": "dist/arthub-table.umd.min.js",