diff --git a/ShadowEditor.UI/src/media/SVG.jsx b/ShadowEditor.UI/src/media/SVG.jsx
index f850ba20..bd72cb82 100644
--- a/ShadowEditor.UI/src/media/SVG.jsx
+++ b/ShadowEditor.UI/src/media/SVG.jsx
@@ -5,14 +5,15 @@ import PropTypes from 'prop-types';
/**
* SVG
* @author tengge / https://github.com/tengge1
- * @property {String} className 样式类
- * @property {Object} style 样式
*/
class SVG extends React.Component {
render() {
- const { className, style } = this.props;
+ const { className, style, ...others } = this.props;
- return ;
+ return ;
}
}
@@ -21,4 +22,9 @@ SVG.propTypes = {
style: PropTypes.object,
};
+SVG.defaultProps = {
+ className: null,
+ style: null,
+};
+
export default SVG;
\ No newline at end of file