Browse Source

fix: should not render useless className when type is undefined (#4784)

pull/4788/head
Chikara Chan 8 years ago
committed by Benjy Cui
parent
commit
64f6a71cc9
  1. 4
      components/grid/row.tsx

4
components/grid/row.tsx

@ -31,8 +31,8 @@ export default class Row extends React.Component<RowProps, any> {
const classes = classNames({
[prefixCls]: !type,
[`${prefixCls}-${type}`]: type,
[`${prefixCls}-${type}-${justify}`]: justify,
[`${prefixCls}-${type}-${align}`]: align,
[`${prefixCls}-${type}-${justify}`]: type && justify,
[`${prefixCls}-${type}-${align}`]: type && align,
}, className);
const rowStyle = gutter > 0 ? assign({}, {
marginLeft: gutter / -2,

Loading…
Cancel
Save