mirror of
https://gitee.com/layui/layui.git
synced 2025-10-07 15:14:31 +08:00
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user