From a7b2c2e34849b10a4e1151ee0d6cc32bf9690789 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Wed, 6 Jan 2016 10:21:02 +0800 Subject: [PATCH] feat: expose `closable` for Modal --- components/modal/index.jsx | 3 ++- components/modal/index.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/modal/index.jsx b/components/modal/index.jsx index 9166a13e9a..f22a5d51c2 100644 --- a/components/modal/index.jsx +++ b/components/modal/index.jsx @@ -21,7 +21,8 @@ let AntModal = React.createClass({ transitionName: 'zoom', maskAnimation: 'fade', confirmLoading: false, - visible: false + visible: false, + closable: true, }; }, diff --git a/components/modal/index.md b/components/modal/index.md index ce3a403a34..f5df5183cf 100644 --- a/components/modal/index.md +++ b/components/modal/index.md @@ -23,6 +23,7 @@ | visible | 对话框是否可见 | Boolean | 无 | | confirmLoading | 确定按钮 loading | Boolean | 无 | | title | 标题 | React.Element | 无 | +| closable | 是否显示右上角的关闭按钮 | Boolean | true | | onOk | 点击确定回调 | function | 无 | | onCancel | 点击遮罩层或右上角叉或取消按钮的回调 | function | 无 | | width | 宽度 | String or Number | 520 |