From 0774356f5970eec9fa23b6e4da55cc89e6b3ed06 Mon Sep 17 00:00:00 2001 From: lengcb <649569822@qq.com> Date: Tue, 24 Nov 2020 14:59:01 +0800 Subject: [PATCH] =?UTF-8?q?style(components):=20button=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=AB=98=E5=BA=A6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit affects: @gio-design/components --- packages/components/src/components/button/style/mixin.less | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/components/src/components/button/style/mixin.less b/packages/components/src/components/button/style/mixin.less index f5322b032c..6a36e44da8 100644 --- a/packages/components/src/components/button/style/mixin.less +++ b/packages/components/src/components/button/style/mixin.less @@ -3,7 +3,7 @@ @btn-height-base: 36px; @btn-height-lg: 40px; @btn-height-sm: 30px; -@btn-square-size: 32px; +@btn-square-size: @btn-height-base; @btn-square-size-lg: @btn-height-lg; @btn-square-size-sm: @btn-height-sm; @@ -208,6 +208,11 @@ & > * { font-size: @size-font-16; } + &.@{btnClassName} { + svg { + .square(@btn-square-size - 16px); + } + } &.@{btnClassName}-large { .square(@btn-square-size-lg); .button-size(@btn-square-size-lg; 0; @size-font-18; @radius-border-small);