From 617cbdccd080ff0875bc24bb49f550d3505e0bf2 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 20 Jul 2018 10:25:33 +0800 Subject: [PATCH] perf: update buttongroup style --- components/button/style/mixin.less | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/button/style/mixin.less b/components/button/style/mixin.less index 7efa2f48cf..699aa8646b 100644 --- a/components/button/style/mixin.less +++ b/components/button/style/mixin.less @@ -271,10 +271,10 @@ > span:first-child > .@{btnClassName} { margin-left: 0; } - > .@{btnClassName}:first-child:last-child { + > .@{btnClassName}:only-child { border-radius: @btn-border-radius-base; } - > span:first-child:last-child > .@{btnClassName} { + > span:only-child > .@{btnClassName} { border-radius: @btn-border-radius-base; } @@ -291,10 +291,10 @@ } &-sm { - > .@{btnClassName}:first-child:last-child { + > .@{btnClassName}:only-child { border-radius: @btn-border-radius-sm; } - > span:first-child:last-child > .@{btnClassName} { + > span:only-child > .@{btnClassName} { border-radius: @btn-border-radius-sm; } > .@{btnClassName}:first-child:not(:last-child),