|
|
|
@ -9,7 +9,7 @@ class Form extends React.Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
const { prefixCls, className } = this.props;
|
|
|
|
|
const { prefixCls, className, style } = this.props;
|
|
|
|
|
const formClassName = classNames({
|
|
|
|
|
[`${prefixCls}-horizontal`]: this.props.horizontal,
|
|
|
|
|
[`${prefixCls}-inline`]: this.props.inline,
|
|
|
|
@ -17,7 +17,7 @@ class Form extends React.Component {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<form {...this.props} className={formClassName}>
|
|
|
|
|
<form {...this.props} className={formClassName} style={style}>
|
|
|
|
|
{this.props.children}
|
|
|
|
|
</form>
|
|
|
|
|
);
|
|
|
|
|