Merge pull request #1472 from 2betop/form

form 样式调整
This commit is contained in:
RickCole 2021-01-28 14:35:26 +08:00 committed by GitHub
commit 5efc49ffd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -630,7 +630,7 @@
);
--Form-input-placeholderColor: var(--text--muted-color);
--Form-item-gap: #{px2rem(10px)};
--Form-item-gap: #{px2rem(15px)};
--Form-label-paddingTop: calc(
(

View File

@ -76,7 +76,7 @@ $Wizard-steps-liAfterBorder: none !important;
--Page-header-paddingX: #{px2rem(20px)};
--Page-header-paddingY: #{px2rem(10px)};
--Form-item-gap: #{px2rem(10px)};
--Form-item-gap: #{px2rem(15px)};
--Form-input-height: #{px2rem(30px)};
--Form-input-onFocused-bg: var(--white);
--Form-input-borderRadius: 0;

View File

@ -1346,8 +1346,6 @@ export default class Form extends React.Component<FormProps, object> {
classPrefix
} = this.props;
console.log(store.restErrors);
const WrapperComponent =
this.props.wrapperComponent ||
(/(?:\/|^)form\//.test($path as string) ? 'div' : 'form');