fix: solve form label offset not working in vertical layout issue (#43155)

This commit is contained in:
kiner-tang(文辉) 2023-06-24 13:59:33 +08:00 committed by GitHub
parent cc4277eb55
commit 5728abe94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
import type { CSSObject } from '@ant-design/cssinjs';
import { resetComponent } from '../../style';
import { genCollapseMotion, zoomIn } from '../../style/motion';
import type { AliasToken, FullToken, GenerateStyle } from '../../theme/internal';
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
import { resetComponent } from '../../style';
import genFormValidateMotionStyle from './explain';
export interface FormToken extends FullToken<'Form'> {
@ -389,7 +389,6 @@ const genInlineStyle: GenerateStyle<FormToken> = (token) => {
};
const makeVerticalLayoutLabel = (token: FormToken): CSSObject => ({
margin: 0,
padding: `0 0 ${token.paddingXS}px`,
whiteSpace: 'initial',
textAlign: 'start',