|
@ -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. |
|
|
|
|
|
|
|
|