You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
565 B
17 lines
565 B
import React from 'react';
|
|
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 && <div className={styles.detail}>{children}</div>}
|
|
</Col>
|
|
);
|
|
};
|
|
|
|
export default Description;
|
|
|