From 2e1cbb607313bb3752f79fd22f1a6e3fe09396af Mon Sep 17 00:00:00 2001 From: sunxiaobin89 <285584806@qq.com> Date: Fri, 2 Jun 2023 17:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20table=20=E5=A4=9A=E7=BA=A7?= =?UTF-8?q?=E8=A1=A8=E5=A4=B4=E5=9C=A8=E6=9F=90=E4=BA=9B=E7=BC=A9=E6=94=BE?= =?UTF-8?q?=E6=AF=94=E4=BE=8B=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E8=A1=A8=E5=A4=B4=E8=B7=9F=E8=A1=A8=E4=BD=93=E9=94=99?= =?UTF-8?q?=E4=BD=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/table.js b/src/modules/table.js index 4a2be031..a3b2c277 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -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')){