diff --git a/ShadowEditor.UI/src/icon/Icon.jsx b/ShadowEditor.UI/src/icon/Icon.jsx index 525474e0..7e115da4 100644 --- a/ShadowEditor.UI/src/icon/Icon.jsx +++ b/ShadowEditor.UI/src/icon/Icon.jsx @@ -1,19 +1,34 @@ import './css/Icon.css'; import classNames from 'classnames/bind'; +import PropTypes from 'prop-types'; /** * 图标 * @author tengge / https://github.com/tengge1 - * @property {String} className 样式类 - * @property {Object} style 样式 - * @property {String} children 内容 */ class Icon extends React.Component { render() { - const { icon, className, style, children } = this.props; + const { className, style, icon, ...others } = this.props; - return