|
@ -17,7 +17,6 @@ export default class Row extends React.Component<RowProps, {}> { |
|
|
static defaultProps = { |
|
|
static defaultProps = { |
|
|
gutter: 0, |
|
|
gutter: 0, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
static propTypes = { |
|
|
static propTypes = { |
|
|
type: PropTypes.string, |
|
|
type: PropTypes.string, |
|
|
align: PropTypes.string, |
|
|
align: PropTypes.string, |
|
@ -28,8 +27,10 @@ export default class Row extends React.Component<RowProps, {}> { |
|
|
prefixCls: PropTypes.string, |
|
|
prefixCls: PropTypes.string, |
|
|
}; |
|
|
}; |
|
|
render() { |
|
|
render() { |
|
|
const { type, justify, align, className, gutter, style, children, |
|
|
const { |
|
|
prefixCls = 'ant-row', ...others } = this.props; |
|
|
type, justify, align, className, gutter, style, children, |
|
|
|
|
|
prefixCls = 'ant-row', ...others, |
|
|
|
|
|
} = this.props; |
|
|
const classes = classNames({ |
|
|
const classes = classNames({ |
|
|
[prefixCls]: !type, |
|
|
[prefixCls]: !type, |
|
|
[`${prefixCls}-${type}`]: type, |
|
|
[`${prefixCls}-${type}`]: type, |
|
|