style(Field): label width adjusted to 84px (#6583)

This commit is contained in:
neverland
2020-06-20 16:56:25 +08:00
committed by GitHub
parent f10a97b692
commit e1f67fa898
7 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ Use `input-align` prop to align the input value
| format-trigger `v2.8.7` | When to format valuecan be set to `onBlur` | _string_ | `onChange` |
| arrow-direction `v2.0.4` | Can be set to `left` `up` `down` | _string_ | `right` |
| label-class | Label className | _any_ | - |
| label-width | Label width | _number \| string_ | `90px` |
| label-width | Label width | _number \| string_ | `84px` |
| label-align | Label align, can be set to `center` `right` | _string_ | `left` |
| input-align | Input align, can be set to `center` `right` | _string_ | `left` |
| error-message-align | Error message align, can be set to `center` `right` | _string_ | `left` |
+1 -1
View File
@@ -266,7 +266,7 @@ export default {
| format-trigger `v2.8.7` | 格式化函数触发的时机,可选值为 `onBlur` | _string_ | `onChange` |
| arrow-direction `v2.0.4` | 箭头方向,可选值为 `left` `up` `down` | _string_ | `right` |
| label-class | 左侧文本额外类名 | _any_ | - |
| label-width | 左侧文本宽度,默认单位为`px` | _number \| string_ | `90px` |
| label-width | 左侧文本宽度,默认单位为`px` | _number \| string_ | `84px` |
| label-align | 左侧文本对齐方式,可选值为 `center` `right` | _string_ | `left` |
| input-align | 输入框对齐方式,可选值为 `center` `right` | _string_ | `left` |
| error-message-align | 错误提示文案对齐方式,可选值为 `center` `right` | _string_ | `left` |
+1
View File
@@ -5,6 +5,7 @@
flex: none;
box-sizing: border-box;
width: @field-label-width;
margin-right: @field-label-margin-right;
color: @field-label-color;
text-align: left;