From 456cea652be602db2314ef2fa96853b0a82e6c4e Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Wed, 19 Jul 2017 09:40:46 +0800 Subject: [PATCH] docs: add zIndex to docs of Modal, ref: 2aa3437 --- components/modal/index.en-US.md | 2 ++ components/modal/index.zh-CN.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/components/modal/index.en-US.md b/components/modal/index.en-US.md index dd6214e394..9b2ed0f8ae 100644 --- a/components/modal/index.en-US.md +++ b/components/modal/index.en-US.md @@ -34,6 +34,7 @@ and so on. | wrapClassName | The class name of the container of the modal dialog | string | - | | afterClose | Specify a function that will be called when modal is closed completely. | function | - | | getContainer | Return the mount node for Modal | (instance): HTMLElement | () => document.body | +| zIndex | To set the `z-index` of Modal | Number | 1000 | #### Destroy on close @@ -75,6 +76,7 @@ The properties of the object are follows: | 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` | +| 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 ab9f15aaa3..6f3791ecc1 100644 --- a/components/modal/index.zh-CN.md +++ b/components/modal/index.zh-CN.md @@ -33,6 +33,7 @@ title: Modal | wrapClassName | 对话框外层容器的类名 | string | - | | afterClose | Modal 完全关闭后的回调 | function | 无 | | getContainer | 指定 Modal 挂载的 HTML 节点 | (instance): HTMLElement | () => document.body | +| zIndex | 设置 Modal 的 `z-index` | Number | 1000 | #### 清空旧数据 @@ -73,6 +74,7 @@ title: Modal | okType | 确认按钮类型 | string | primary | | cancelText | 取消按钮文字 | string | 取消 | | maskClosable | 点击蒙层是否允许关闭 | Boolean | `false` | +| zIndex | 设置 Modal 的 `z-index` | Number | 1000 | 以上函数调用后,会返回一个引用,可以通过该引用关闭弹窗。