Skip to content

fix: refresh table sticky offsets when visible columns change - #21543

Open
lanqing431 wants to merge 1 commit into
baidu:masterfrom
lanqing431:fix/amis-21220-refresh-sticky-columns
Open

lanqing431 wants to merge 1 commit into
baidu:masterfrom
lanqing431:fix/amis-21220-refresh-sticky-columns

Conversation

@lanqing431

Copy link
Copy Markdown

关联 #21220。

表格正文单元格之前只按可见列数量缓存冻结样式。用同一次数据更新切换两列的可见性时,列数量可以保持不变,保留的冻结列就会沿用旧偏移和旧边界样式。正文现在沿用表头使用的现有计算,按当前可见列生成冻结样式。

新增渲染回归,覆盖可见列总数不变时的列切换,并断言正文冻结列的偏移与边界更新。用例在原版失败,修复后 Table 与 CRUD 相关的 55 项测试及 18 个快照全部通过。格式检查通过,ESLint 未新增问题,使用指向内部工作区源码的本地配置完成了类型检查。

@github-actions github-actions Bot added the fix label Nov 29, 2026
@github-actions

Copy link
Copy Markdown

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant