From 16ec4f78d13c3692382200d27344d7e333a005af Mon Sep 17 00:00:00 2001 From: Treecat Date: Thu, 20 Oct 2022 14:24:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=20fix:=20=E6=94=B9=E4=B8=80?= =?UTF-8?q?=E4=B8=8Bbutton=E7=9A=84=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/button/buttons/button.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/base/single/button/buttons/button.js b/src/base/single/button/buttons/button.js index 25296c846..a8da2e32b 100644 --- a/src/base/single/button/buttons/button.js +++ b/src/base/single/button/buttons/button.js @@ -76,12 +76,10 @@ var hasBorder = false if (BI.isNumber(o.height)) { if (!isVertical(o.iconPosition)) { - if (o.clear || o.block || o.light) { - lineHeight = o.height; - } else { + if (!(o.clear && o.block && o.light)) { hasBorder = true; - lineHeight = o.height; } + lineHeight = o.height; } else { lineHeight = textHeight; }