fix/fixed-table-rowHeight-sync
sight 2025-09-06 00:11:25 +08:00
parent 588a2f69b8
commit 1ebe1e9be7
1 changed files with 1 additions and 3 deletions

View File

@ -2965,9 +2965,7 @@ layui.define(['lay', 'i18n', 'laytpl', 'laypage', 'form', 'util'], function(expo
that.resizeObserver.observe(that.elem[0], that.resize.bind(that)); that.resizeObserver.observe(that.elem[0], that.resize.bind(that));
// 同步固定列表格和主表格高度 // 同步固定列表格和主表格高度
that.needSyncFixedColHeight = that.config.syncFixedRowHeight && that.needSyncFixedColHeight = that.config.syncFixedRowHeight && (that.layBody.length > 1)
(that.layBody.length > 1) &&
that.config.lineStyle
if(that.needSyncFixedColHeight){ if(that.needSyncFixedColHeight){
var tableElem = that.layMain.children('table'); var tableElem = that.layMain.children('table');