Browse Source

fix #2150 remove no use style

pull/2314/head
陈帅 8 years ago
parent
commit
09afe05835
  1. 17
      src/components/DescriptionList/Description.js

17
src/components/DescriptionList/Description.js

@ -1,20 +1,15 @@
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Col } from 'antd';
import styles from './index.less';
import responsive from './responsive';
const Description = ({ term, column, className, children, ...restProps }) => {
const clsString = classNames(styles.description, className);
return (
<Col className={clsString} {...responsive[column]} {...restProps}>
{term && <div className={styles.term}>{term}</div>}
{children !== null &&
children !== undefined && <div className={styles.detail}>{children}</div>}
</Col>
);
};
const Description = ({ term, column, children, ...restProps }) => (
<Col {...responsive[column]} {...restProps}>
{term && <div className={styles.term}>{term}</div>}
{children !== null && children !== undefined && <div className={styles.detail}>{children}</div>}
</Col>
);
Description.defaultProps = {
term: '',

Loading…
Cancel
Save