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 (
<Col className={clsString} {...responsive[column]} {...restProps}>
{term && <div className={styles.term}>{term}</div>} {term && <div className={styles.term}>{term}</div>}
{children !== null && {children !== null && children !== undefined && <div className={styles.detail}>{children}</div>}
children !== undefined && <div className={styles.detail}>{children}</div>}
</Col> </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