diff --git a/components/modal/index.jsx b/components/modal/index.jsx index 8d4831cb1e..9e6ecc9965 100644 --- a/components/modal/index.jsx +++ b/components/modal/index.jsx @@ -13,6 +13,7 @@ module.exports = function (props) { props.animation = 'zoom'; props.maskAnimation = 'fade'; + props.width = props.width || 500; props.onClose = props.onCancel || noop; @@ -45,6 +46,5 @@ module.exports = function (props) { props.visible = true; props.children = props.content; props.footer = footer; - var d = React.render(, div); - return d; -}; \ No newline at end of file + return React.render(, div); +};