diff --git a/components/modal/index.jsx b/components/modal/index.jsx index 11491c0227..9917a47912 100644 --- a/components/modal/index.jsx +++ b/components/modal/index.jsx @@ -12,7 +12,10 @@ export default React.createClass({ return { prefixCls: 'ant-modal', onOk: noop, - onCancel: noop + onCancel: noop, + width: 520, + transitionName: 'zoom', + maskAnimation: 'fade' }; }, @@ -82,8 +85,7 @@ export default React.createClass({ ]; let footer = props.footer || defaultFooter; let visible = this.state.visible; - return ; } }); diff --git a/components/modal/index.md b/components/modal/index.md index 8dffba1aa6..ea0b2ae6db 100644 --- a/components/modal/index.md +++ b/components/modal/index.md @@ -24,7 +24,7 @@ | mousePosition | 鼠标位置,设置弹窗初始位置 | {x:number,y:number} | 无 | | onOk | 点击确定回调 | function | 无 | | onCancel | 点击遮罩层或右上角叉或取消按钮的回调 | function | 无 | -| width | 宽度 | String or Number | 500 | +| width | 宽度 | String or Number | 520 | | footer | 底部内容 | React.Element | 确定取消按钮 |