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 = { 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,

Loading…
Cancel
Save