Skip to content

Commit 9d656b2

Browse files
feat(module:pop-confirm): support standalone component (#8232)
1 parent 7022471 commit 9d656b2

File tree

4 files changed

+91
-97
lines changed

4 files changed

+91
-97
lines changed

components/popconfirm/doc/index.en-US.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,36 @@ import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';
1919

2020
## API
2121

22-
### [nz-popconfirm]
23-
24-
| Param | Description | Type | Default value |
25-
| ----- | ----------- | ---- | ------------- |
26-
| `[nzPopconfirmArrowPointAtCenter]` | Arrow point at center of the origin | `boolean` | `false` |
27-
| `[nzPopconfirmTitle]` | Title of the confirmation box | `string \| TemplateRef<void>` | - |
28-
| `[nzPopconfirmTrigger]` | Popconfirm trigger mode. If set to `null` it would not be triggered | `'click' \| 'focus' \| 'hover' \| null` | `'click'` |
29-
| `[nzPopconfirmPlacement]` | The position of the popconfirm relative to the target | `'top' \| 'left' \| 'right' \| 'bottom' \| 'topLeft' \| 'topRight' \| 'bottomLeft' \| 'bottomRight' \| 'leftTop' \| 'leftBottom' \| 'rightTop' \| 'rightBottom' \| Array<string>` | `'top'` |
30-
| `[nzPopconfirmOrigin]` | Origin of the popconfirm | `ElementRef` | - |
31-
| `[nzPopconfirmVisible]` | Show or hide popconfirm | `boolean` | `false` |
32-
| `[nzPopconfirmShowArrow]` | Whether popconfirm has arrow | `boolean` | `true` |
33-
| `(nzPopconfirmVisibleChange)` | Callback of hide or show | `EventEmitter<boolean>` | - |
34-
| `[nzPopconfirmMouseEnterDelay]` | Delay in seconds, before popconfirm is shown on mouse enter | `number` | `0.15` |
35-
| `[nzPopconfirmMouseLeaveDelay]` | Delay in seconds, before popconfirm is hidden on mouse leave | `number` | `0.1` |
36-
| `[nzPopconfirmOverlayClassName]` | Class name of the popconfirm card | `string` | - |
37-
| `[nzPopconfirmOverlayStyle]` | Style of the popconfirm card | `object` | - |
38-
| `[nzPopconfirmBackdrop]` | whether or not the overlay should attach a backdrop | `boolean` | `false` |
39-
40-
| Param | Description | Type | Default value | Global Config |
41-
| ----- | ----------- | ---- | ------------- | ------------ |
42-
| `[nzCancelText]` | Text of the Cancel button | `string` | `'Cancel'` | - |
43-
| `[nzOkText]` | Text of the Confirm button | `string` | `'Confirm'` | - |
44-
| `[nzOkType]` | Button `type` of the Confirm button | `'primary' \| 'ghost' \| 'dashed' \| 'danger' \| 'default'` | `'primary'` | - |
45-
| `[nzOkDanger]` | Danger status of the OK button. <i>Consistent with the `nzDanger` of the `nz-button`.</i> | `boolean` | `false` | - |
46-
| `[nzCondition]` | Whether to directly emit `onConfirm` without showing Popconfirm | `boolean` | `false` | - |
47-
| `[nzIcon]` | Customize icon of confirmation | `string \| TemplateRef<void>` | - | - |
48-
| `[nzAutoFocus]` | Autofocus a button | `null \| 'ok' \| 'cancel'` | `null` ||
49-
| `[nzBeforeConfirm]` | The hook before the confirmation operation, decides whether to continue responding to the `nzOnConfirm` callback, supports asynchronous verification. | `(() => Observable<boolean> \| Promise<boolean> \| boolean) \| null` | `null` | - |
50-
| `(nzOnCancel)` | Callback of cancel | `EventEmitter<void>` | - | - |
51-
| `(nzOnConfirm)` | Callback of confirmation | `EventEmitter<void>` | - | - |
22+
### [nz-popconfirm]:standalone
23+
24+
| Param | Description | Type | Default value |
25+
| ---------------------------------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
26+
| `[nzPopconfirmArrowPointAtCenter]` | Arrow point at center of the origin | `boolean` | `false` |
27+
| `[nzPopconfirmTitle]` | Title of the confirmation box | `string \| TemplateRef<void>` | - |
28+
| `[nzPopconfirmTrigger]` | Popconfirm trigger mode. If set to `null` it would not be triggered | `'click' \| 'focus' \| 'hover' \| null` | `'click'` |
29+
| `[nzPopconfirmPlacement]` | The position of the popconfirm relative to the target | `'top' \| 'left' \| 'right' \| 'bottom' \| 'topLeft' \| 'topRight' \| 'bottomLeft' \| 'bottomRight' \| 'leftTop' \| 'leftBottom' \| 'rightTop' \| 'rightBottom' \| Array<string>` | `'top'` |
30+
| `[nzPopconfirmOrigin]` | Origin of the popconfirm | `ElementRef` | - |
31+
| `[nzPopconfirmVisible]` | Show or hide popconfirm | `boolean` | `false` |
32+
| `[nzPopconfirmShowArrow]` | Whether popconfirm has arrow | `boolean` | `true` |
33+
| `(nzPopconfirmVisibleChange)` | Callback of hide or show | `EventEmitter<boolean>` | - |
34+
| `[nzPopconfirmMouseEnterDelay]` | Delay in seconds, before popconfirm is shown on mouse enter | `number` | `0.15` |
35+
| `[nzPopconfirmMouseLeaveDelay]` | Delay in seconds, before popconfirm is hidden on mouse leave | `number` | `0.1` |
36+
| `[nzPopconfirmOverlayClassName]` | Class name of the popconfirm card | `string` | - |
37+
| `[nzPopconfirmOverlayStyle]` | Style of the popconfirm card | `object` | - |
38+
| `[nzPopconfirmBackdrop]` | whether or not the overlay should attach a backdrop | `boolean` | `false` |
39+
40+
| Param | Description | Type | Default value | Global Config |
41+
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ------------- | ------------- |
42+
| `[nzCancelText]` | Text of the Cancel button | `string` | `'Cancel'` | - |
43+
| `[nzOkText]` | Text of the Confirm button | `string` | `'Confirm'` | - |
44+
| `[nzOkType]` | Button `type` of the Confirm button | `'primary' \| 'ghost' \| 'dashed' \| 'danger' \| 'default'` | `'primary'` | - |
45+
| `[nzOkDanger]` | Danger status of the OK button. <i>Consistent with the `nzDanger` of the `nz-button`.</i> | `boolean` | `false` | - |
46+
| `[nzCondition]` | Whether to directly emit `onConfirm` without showing Popconfirm | `boolean` | `false` | - |
47+
| `[nzIcon]` | Customize icon of confirmation | `string \| TemplateRef<void>` | - | - |
48+
| `[nzAutoFocus]` | Autofocus a button | `null \| 'ok' \| 'cancel'` | `null` | |
49+
| `[nzBeforeConfirm]` | The hook before the confirmation operation, decides whether to continue responding to the `nzOnConfirm` callback, supports asynchronous verification. | `(() => Observable<boolean> \| Promise<boolean> \| boolean) \| null` | `null` | - |
50+
| `(nzOnCancel)` | Callback of cancel | `EventEmitter<void>` | - | - |
51+
| `(nzOnConfirm)` | Callback of confirmation | `EventEmitter<void>` | - | - |
5252

5353
Consult [Tooltip's documentation](/components/tooltip/en#api) to find more APIs.
5454

0 commit comments

Comments
 (0)