From a28f41ce7ee46aa6b8921091308525fe9d9d649e Mon Sep 17 00:00:00 2001 From: treecat Date: Fri, 24 Jun 2022 17:30:03 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-74080=20fix:=20=E5=88=A0=E9=99=A4=20icon?= =?UTF-8?q?Gap=20=E9=BB=98=E8=AE=A4=E7=9A=84=E6=B0=B4=E5=B9=B3=E9=97=B4?= =?UTF-8?q?=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/button/buttons/button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/single/button/buttons/button.js b/src/base/single/button/buttons/button.js index d7f875b8f..cd3cfebd8 100644 --- a/src/base/single/button/buttons/button.js +++ b/src/base/single/button/buttons/button.js @@ -24,7 +24,7 @@ if (isVertical(props.iconPosition)) { // 图标高度和文字高度默认相等 adaptiveHeight += (props.textHeight || 16) * 2; - adaptiveHeight += props.iconGap || 4; + adaptiveHeight += props.iconGap || 0; var tGap = props.tgap || props.vgap || 2; var bGap = props.bgap || props.vgap || 2; adaptiveHeight += (tGap + bGap); @@ -58,7 +58,7 @@ bgap: 0, lgap: 0, rgap: 0, - iconGap: 4, + iconGap: 0, iconPosition: "left" }); },