fix(table): 修复自动行高时固定列高度异常 (#2825)

* fix(select): select 面板大小变化时重新定位

* update

* fix(table): 修复自动行高时固定列高度异常

* feat(table): 新增 syncFixedRowHeight 选项

* update

* update

* update

* update

* update

* fix: 重复 render 时停止 onserveResize

* update

* docs: 更新 table 文档

* fix: 修复一些边缘情况

* fix: 修复边缘情况
This commit is contained in:
morning-star
2025-09-25 19:08:02 +08:00
committed by GitHub
parent 182c0bcedd
commit 1ec6c91da6
2 changed files with 150 additions and 2 deletions

View File

@@ -254,6 +254,17 @@ height: function(){
</td>
<td>string</td>
<td>-</td>
</tr>
<tr>
<td>syncFixedRowHeight <sup>2.12+ 实验性</sup></td>
<td>
是否强制计算表格主区域的行高度并同步到固定列区域。开启后会对表格性能有一定的影响,仅适用于行高度自适应的场景。
该功能使用 [ResizeObserver](https://developer.mozilla.org/zh-CN/docs/Web/API/ResizeObserver) 实现,如果你的浏览器不支持 `ResizeObserver`,可以尝试添加 [polyfill](https://github.com/que-etc/resize-observer-polyfill) 来解决兼容性问题。
</td>
<td>boolean</td>
<td>-</td>
</tr>
<tr>