Browse Source

update code style

pull/8125/head
afc163 7 years ago
parent
commit
1c8fbb8899
  1. 7
      components/grid/row.tsx

7
components/grid/row.tsx

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

Loading…
Cancel
Save