From 6ca3fd55bb96a9bf1390345abae8dcfdc3fb775a Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 5 Jun 2015 10:47:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4width?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/modal/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); +};