修复 table 多级表头在某些缩放比例的情况下出现表头跟表体错位问题

This commit is contained in:
sunxiaobin89
2023-06-02 17:15:34 +08:00
parent a9c271501e
commit 2e1cbb6073

View File

@@ -686,7 +686,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
});
// 给组合表头赋值最大宽度
if(maxWidth) othis.css('max-width', maxWidth);
if(maxWidth) othis.css('max-width', maxWidth - 1);
// 若当前活动的组合表头仍存在上级,则继续向上设置
if(th && othis.parent().data('parentkey')){