From 17c63e52bf8680c8ed832495afaf37e8118f3178 Mon Sep 17 00:00:00 2001 From: Amumu Date: Tue, 21 Apr 2020 17:48:15 +0800 Subject: [PATCH] chore: improve less variable @form-item-margin-bottom (#23436) * improve @formItemMarginBottom * Revert "improve @formItemMarginBottom" This reverts commit 6d8da5bdb9483d8fba443793737026a8514519c8. * update style --- components/form/style/index.less | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/form/style/index.less b/components/form/style/index.less index 6484956267..51fa0a93ee 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -44,11 +44,13 @@ } } -.explainAndExtraDistance(@num) when (@num>=0) { +.explainAndExtraDistance(@num) when (@num >= 0) { padding-top: floor(@num); } -.explainAndExtraDistance(@num) when (@num<0) { + +.explainAndExtraDistance(@num) when (@num < 0) { margin-top: floor(@num); + margin-bottom: floor(@num); } // ================================================================