Browse Source
fix: label empty str line break (#43614)
* fix: label empty str line break
* chore: comment it
pull/43626/head
二货爱吃白萝卜
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
components/form/style/index.ts
|
|
@ -222,7 +222,7 @@ const genFormItemStyle: GenerateStyle<FormToken> = (token) => { |
|
|
|
}, |
|
|
|
|
|
|
|
[`&${formItemCls}-no-colon::after`]: { |
|
|
|
content: '" "', |
|
|
|
content: '"\\a0"', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -397,7 +397,8 @@ const makeVerticalLayoutLabel = (token: FormToken): CSSObject => ({ |
|
|
|
margin: 0, |
|
|
|
|
|
|
|
'&::after': { |
|
|
|
display: 'none', |
|
|
|
// https://github.com/ant-design/ant-design/issues/43538
|
|
|
|
visibility: 'hidden', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|