|
@@ -1,4 +1,5 @@
|
|
|
import React from 'react';
|
|
import React from 'react';
|
|
|
|
|
+import PropTypes from 'prop-types';
|
|
|
import classNames from 'classnames';
|
|
import classNames from 'classnames';
|
|
|
import { Col } from 'antd';
|
|
import { Col } from 'antd';
|
|
|
import styles from './index.less';
|
|
import styles from './index.less';
|
|
@@ -14,4 +15,20 @@ const Description = ({ term, column, className, children, ...restProps }) => {
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+Description.defaultProps = {
|
|
|
|
|
+ term: '',
|
|
|
|
|
+ children: '',
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+Description.propTypes = {
|
|
|
|
|
+ term: PropTypes.oneOfType([
|
|
|
|
|
+ PropTypes.string,
|
|
|
|
|
+ PropTypes.element,
|
|
|
|
|
+ ]),
|
|
|
|
|
+ children: PropTypes.oneOfType([
|
|
|
|
|
+ PropTypes.string,
|
|
|
|
|
+ PropTypes.element,
|
|
|
|
|
+ ]),
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
export default Description;
|
|
export default Description;
|