From 9a4536ed6254d7a5c83e79132c0b49b4141fa64e Mon Sep 17 00:00:00 2001 From: sunxiaobin89 <470459819@qq.com> Date: Mon, 7 Nov 2022 10:08:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtable=E7=9A=84height=E9=85=8D?= =?UTF-8?q?=E7=BD=AE#divid-=E5=B7=AE=E5=80=BC=E7=9A=84=E8=AE=BE=E5=AE=9A?= =?UTF-8?q?=E4=B8=AD=E5=A6=82=E6=9E=9Cdivid=E5=87=BA=E7=8E=B0=E6=A8=AA?= =?UTF-8?q?=E6=9D=86=E7=9A=84=E8=AF=9D=E6=97=A0=E6=B3=95=E5=91=BD=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=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 74f15f33..fcb87d77 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -376,7 +376,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ if(options.height && /^full-\d+$/.test(options.height)){ that.fullHeightGap = options.height.split('-')[1]; options.height = _WIN.height() - that.fullHeightGap; - } else if (options.height && /^#\w+-{1}\d+$/.test(options.height)) { + } else if (options.height && /^#\w+\S*-\d+$/.test(options.height)) { var parentDiv = options.height.split("-"); that.parentHeightGap = parentDiv.pop(); that.parentDiv = parentDiv.join("-");