form 水平排版cxd 主题label 不换行

This commit is contained in:
liaoxuezhi 2019-11-13 10:48:20 +08:00
parent 4048bb1ed1
commit c9b3d6f862
3 changed files with 4 additions and 1 deletions

View File

@ -604,6 +604,7 @@ $Form-group--xs-gutterWidth: px2rem(10px) !default;
$Form-row-gutterWidth: px2rem(10px) !default;
$Form--horizontal-label-whiteSpace: "normal" !default;
$Form--horizontal-label-align: right !default;
$Form--horizontal-label-widthXs: px2rem(60px) !default;
$Form--horizontal-label-widthSm: px2rem(90px) !default;

View File

@ -82,6 +82,7 @@
&--horizontal {
>.#{$ns}Form-label {
text-align: $Form--horizontal-label-align;
white-space: $Form--horizontal-label-whiteSpace;
}
}

View File

@ -75,10 +75,11 @@ $Form-description-color: #999;
$Form-input-onError-bg: #fffbfb;
$Form-input-onDisabled-bg: #f5f5f5;
$Form-input-onDisabled-borderColor: #ebebeb;
$Form--horizontal-label-widthBase: px2rem(90px);
$Form--horizontal-label-whiteSpace: nowrap;
$Form--horizontal-label-align: left;
$Form--horizontal-label-widthXs: px2rem(50px);
$Form--horizontal-label-widthSm: px2rem(70px);
$Form--horizontal-label-widthBase: px2rem(100px);
$Form--horizontal-label-widthMd: px2rem(140px);
$Form--horizontal-label-widthLg: px2rem(190px);
$Form-input-addOnBg: $white;