From 3e349823fed4c844ac46b57e351ff937136b06a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Fri, 19 Aug 2022 00:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20table=20=E4=B8=80=E5=A4=84?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=A3=B0=E6=98=8E=EF=BC=8C=E4=BB=A5=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=20ie?= 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 0fabc1bb..9be8c024 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -794,7 +794,7 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){ // 如果表格内容为空(无数据 或 请求异常) if (that.layMain.find('tbody').is(":empty")) { // 将表格宽度设置为跟表头一样的宽度,使之可以出现底部滚动条,以便滚动查看所有字段 - const headerWidth = that.layHeader.first().children('table').width() + var headerWidth = that.layHeader.first().children('table').width() that.layMain.find('table').width(headerWidth); }