Commit 09afe058 authored by 陈帅's avatar 陈帅

fix #2150 remove no use style

parent 608d5998
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Col } from 'antd'; import { Col } from 'antd';
import styles from './index.less'; import styles from './index.less';
import responsive from './responsive'; import responsive from './responsive';
const Description = ({ term, column, className, children, ...restProps }) => { const Description = ({ term, column, children, ...restProps }) => (
const clsString = classNames(styles.description, className); <Col {...responsive[column]} {...restProps}>
return ( {term && <div className={styles.term}>{term}</div>}
<Col className={clsString} {...responsive[column]} {...restProps}> {children !== null && children !== undefined && <div className={styles.detail}>{children}</div>}
{term && <div className={styles.term}>{term}</div>} </Col>
{children !== null && );
children !== undefined && <div className={styles.detail}>{children}</div>}
</Col>
);
};
Description.defaultProps = { Description.defaultProps = {
term: '', term: '',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment