Browse Source

docs: add zIndex to docs of Modal, ref: 2aa3437

pull/7129/merge
Benjy Cui 7 years ago
committed by 乐仪
parent
commit
456cea652b
  1. 2
      components/modal/index.en-US.md
  2. 2
      components/modal/index.zh-CN.md

2
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 | - | | 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 | - | | 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 | | getContainer | Return the mount node for Modal | (instance): HTMLElement | () => document.body |
| zIndex | To set the `z-index` of Modal | Number | 1000 |
#### Destroy on close #### Destroy on close
@ -75,6 +76,7 @@ The properties of the object are follows:
| okType | type of the confirmation button | string | primary | | okType | type of the confirmation button | string | primary |
| cancelText | Text of cancel button | string | Cancel | | 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 | `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. All the `Modal.method`s will return a reference, and then we can close the popup by the reference.

2
components/modal/index.zh-CN.md

@ -33,6 +33,7 @@ title: Modal
| wrapClassName | 对话框外层容器的类名 | string | - | | wrapClassName | 对话框外层容器的类名 | string | - |
| afterClose | Modal 完全关闭后的回调 | function | 无 | | afterClose | Modal 完全关闭后的回调 | function | 无 |
| getContainer | 指定 Modal 挂载的 HTML 节点 | (instance): HTMLElement | () => document.body | | getContainer | 指定 Modal 挂载的 HTML 节点 | (instance): HTMLElement | () => document.body |
| zIndex | 设置 Modal 的 `z-index` | Number | 1000 |
#### 清空旧数据 #### 清空旧数据
@ -73,6 +74,7 @@ title: Modal
| okType | 确认按钮类型 | string | primary | | okType | 确认按钮类型 | string | primary |
| cancelText | 取消按钮文字 | string | 取消 | | cancelText | 取消按钮文字 | string | 取消 |
| maskClosable | 点击蒙层是否允许关闭 | Boolean | `false` | | maskClosable | 点击蒙层是否允许关闭 | Boolean | `false` |
| zIndex | 设置 Modal 的 `z-index` | Number | 1000 |
以上函数调用后,会返回一个引用,可以通过该引用关闭弹窗。 以上函数调用后,会返回一个引用,可以通过该引用关闭弹窗。

Loading…
Cancel
Save