diff --git a/components/modal/doc/index.en-US.md b/components/modal/doc/index.en-US.md index 516991ee7c9..578a3d8017f 100644 --- a/components/modal/doc/index.en-US.md +++ b/components/modal/doc/index.en-US.md @@ -23,8 +23,8 @@ import { NzModalModule } from 'ng-zorro-antd/modal'; The dialog is currently divided into 2 modes, `normal mode` and `confirm box mode` (for instance, the `Confirm` dialog, which is called by `confirm/info/success/error/warning`). The degree of API support for the two modes is slightly different. -| Property | Description | Type | Default | -| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | --------------------- | --- | +| Property | Description | Type | Default | Global Config | +| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | --------------------- | ------------- | | `nzAfterOpen` | Specify a EventEmitter that will be emitted when modal opened | EventEmitter | - | | `nzAfterClose` | Specify a EventEmitter that will be emitted when modal is closed completely (Can listen for parameters passed in the close/destroy method) | EventEmitter | - | | `nzBodyStyle` | Body style for modal body element. Such as height, padding etc. | `object` | - | @@ -37,10 +37,10 @@ The dialog is currently divided into 2 modes, `normal mode` and `confirm box mod | `nzCancelDisabled` | Whether to disable Cancel button or not | `boolean` | `false` | | `nzFooter` | Footer content, set as footer=null when you don't need default buttons. 1. Only valid in normal mode.
2. You can customize the buttons to the maximum extent by passing a `ModalButtonOptions` configuration (see the case or the instructions below).
| string
TemplateRef
ModalButtonOptions | OK and Cancel buttons | | `nzKeyboard` | Whether support press esc to close | `boolean` | `true` | -| `nzMask` | Whether show mask or not. | `boolean` | `true` | ✅ | -| `nzMaskClosable` | Whether to close the modal dialog when the mask (area outside the modal) is clicked | `boolean` | `true` | ✅ | -| `nzCloseOnNavigation` | Whether to close the modal when the user goes backwards/forwards in history. Note that this usually doesn't include clicking on links (unless the user is using the HashLocationStrategy). | `boolean` | `true` | ✅ | -| `nzDirection` | Direction of the text in the modal | `'ltr' \| 'rtl'` | - | ✅ | +| `nzMask` | Whether show mask or not. | `boolean` | `true` | ✅ | +| `nzMaskClosable` | Whether to close the modal dialog when the mask (area outside the modal) is clicked | `boolean` | `true` | ✅ | +| `nzCloseOnNavigation` | Whether to close the modal when the user goes backwards/forwards in history. Note that this usually doesn't include clicking on links (unless the user is using the HashLocationStrategy). | `boolean` | `true` | ✅ | +| `nzDirection` | Direction of the text in the modal | `'ltr' \| 'rtl'` | - | ✅ | | `nzMaskStyle` | Style for modal's mask element. | `object` | - | | `nzOkText` | Text of the OK button. Set to null to show no ok button (this value is invalid if the nzFooter parameter is used in normal mode) | `string` | OK | | `nzOkType` | Button type of the OK button. Consistent with the `nzType` of the `nz-button`. | `string` | `primary` |