From 74b113c39acf0dc2be81fd5d87f9fb8bbf73a9f5 Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Sun, 26 May 2019 09:44:18 +0800 Subject: [PATCH] SVG --- ShadowEditor.UI/src/media/SVG.jsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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