From 9667ec17bd5de9a1e659ac3d0bc30ef82786dde9 Mon Sep 17 00:00:00 2001 From: kuang Date: Tue, 5 Sep 2017 19:07:57 +0800 Subject: [PATCH] Patch 1 (#7471) * default value error https://github.com/react-component/dialog/blob/f10a2abbd82af40e9cc664bcb5e18f4e2ec30810/src/Modal.tsx#L53 * default value error --- components/modal/index.en-US.md | 2 +- components/modal/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/modal/index.en-US.md b/components/modal/index.en-US.md index 9e3226837b..2780bf043e 100644 --- a/components/modal/index.en-US.md +++ b/components/modal/index.en-US.md @@ -65,7 +65,7 @@ The properties of the object are follows: | okText | Text of OK button | string | OK | | okType | type of the confirmation button | string | primary | | cancelText | Text of cancel button | string | Cancel | -| maskClosable | Determine whether to close the modal dialog when clicked mask of it. | Boolean | `false` | +| maskClosable | Determine whether to close the modal dialog when clicked mask of it. | Boolean | `true` | | zIndex | To set the `z-index` of Modal | Number | 1000 | All the `Modal.method`s will return a reference, and then we can close the popup by the reference. diff --git a/components/modal/index.zh-CN.md b/components/modal/index.zh-CN.md index 9abaab5f12..790c8d7910 100644 --- a/components/modal/index.zh-CN.md +++ b/components/modal/index.zh-CN.md @@ -63,7 +63,7 @@ title: Modal | okText | 确认按钮文字 | string | 确定 | | okType | 确认按钮类型 | string | primary | | cancelText | 取消按钮文字 | string | 取消 | -| maskClosable | 点击蒙层是否允许关闭 | Boolean | `false` | +| maskClosable | 点击蒙层是否允许关闭 | Boolean | `true` | | zIndex | 设置 Modal 的 `z-index` | Number | 1000 | 以上函数调用后,会返回一个引用,可以通过该引用关闭弹窗。