From c636e3fe11cf3781370973be8ee85b2e326e7ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Sat, 3 Jun 2023 23:56:47 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20fixbar=20=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=97=A0=E6=95=88=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/util.js b/src/modules/util.js index 72a55577..d645b25e 100644 --- a/src/modules/util.js +++ b/src/modules/util.js @@ -64,7 +64,7 @@ layui.define('jquery', function(exports){ // 设置 bar 相关属性 elemBar.addClass(item.icon).attr({ 'lay-type': item.type, - 'style': item.style || ('background-color: '+ options.bgcolor || '') + 'style': item.style || (options.bgcolor ? 'background-color: '+ options.bgcolor : '') }).html(item.content); // bar 点击事件 From 0a08d449f6868f68341c6ff89369bbcb1bbe7e7b Mon Sep 17 00:00:00 2001 From: sight <1453017105@qq.com> Date: Sun, 4 Jun 2023 13:36:46 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20table=20hideCol=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=AC=AC=E4=BA=8C=E4=B8=AA=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=B8=BA=E5=AF=B9=E8=B1=A1=E6=97=B6=E6=97=A0=E6=95=88=E7=9A=84?= =?UTF-8?q?=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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/table.js b/src/modules/table.js index 4a2be031..7be79f77 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -2817,6 +2817,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ } }) } else { + cols = layui.isArray(cols) ? cols : [cols]; layui.each(cols, function (i1, item1) { that.eachCols(function (i2, item2) { if (item1.field === item2.field) { From 43e30022b4c552824887b6f5e0d57529a2bc0d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Sun, 4 Jun 2023 23:53:38 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20tab=20=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/element.tab.html | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/examples/element.tab.html b/examples/element.tab.html index c1af1927..7e66f9be 100644 --- a/examples/element.tab.html +++ b/examples/element.tab.html @@ -32,7 +32,7 @@ body{padding:20px;} - +
@@ -78,16 +78,18 @@ body{padding:20px;}
- +
+ +