Skip to content

Commit

Permalink
fix(form): Form 中 button 位置偏右 #158
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczj committed Jan 25, 2019
1 parent 81cd5a5 commit da3d0fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/components/form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@ export default class AtForm extends AtComponent {
className,
reportSubmit
} = this.props
const rootCls = classNames('at-form', className)

return <Form
className={
classNames(
'at-form',
className
)
}
className={rootCls}
style={customStyle}
onSubmit={this.onSubmit.bind(this)}
reportSubmit={reportSubmit}
Expand Down
1 change: 0 additions & 1 deletion src/style/components/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ $at-form-bg-color: $color-bg;

.at-form {
display: block;
padding-left: $spacing-h-xl;
background-color: $at-form-bg-color;
@include hairline-top-bottom();
}
1 change: 1 addition & 0 deletions src/style/components/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
padding: $spacing-v-lg 0;
color: $at-input-label-color;
background-color: $color-bg;
margin-left: $spacing-h-xl;

/* 修复底线隐藏问题 */
margin-bottom: 1PX;
Expand Down

0 comments on commit da3d0fd

Please sign in to comment.