提交 320aa8e8 编写于 作者: A afc163

update Description propTypes

上级 b97547ef
......@@ -17,18 +17,10 @@ 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,
]),
term: PropTypes.node,
};
export default Description;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册