Skip to content

Commit

Permalink
Revert "feat(module:popconfirm): support popconfirm template context"
Browse files Browse the repository at this point in the history
This reverts commit 11dd880.
  • Loading branch information
YuhengZhou authored and YuhengZhou committed Nov 17, 2023
1 parent 1360ac0 commit 391811e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/popconfirm/popconfirm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective {

@Input('nzPopconfirmArrowPointAtCenter') @InputBoolean() override arrowPointAtCenter?: boolean;
@Input('nzPopconfirmTitle') override title?: NzTSType;
@Input('nzPopconfirmTitleContext') titleContext?: Object | null = null;
@Input('nz-popconfirm') override directiveTitle?: NzTSType | null;
@Input('nzPopconfirmTrigger') override trigger?: NzTooltipTrigger = 'click';
@Input('nzPopconfirmPlacement') override placement?: string | string[] = 'top';
Expand Down Expand Up @@ -98,7 +97,6 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective {
nzIcon: ['nzIcon', () => this.nzIcon],
nzPopconfirmShowArrow: ['nzPopconfirmShowArrow', () => this.nzPopconfirmShowArrow],
nzPopconfirmBackdrop: ['nzBackdrop', () => this.nzPopconfirmBackdrop],
nzPopconfirmContext: ['nzTitleContext', () => this.titleContext],
nzAutoFocus: ['nzAutoFocus', () => this.nzAutofocus],
...super.getProxyPropertyMap()
};
Expand Down Expand Up @@ -171,7 +169,7 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective {
<div>
<div class="ant-popover-inner-content">
<div class="ant-popover-message">
<ng-container *nzStringTemplateOutlet="nzTitle; context: nzTitleContext">
<ng-container *nzStringTemplateOutlet="nzTitle">
<ng-container *nzStringTemplateOutlet="nzIcon; let icon">
<span nz-icon [nzType]="icon || 'exclamation-circle'" nzTheme="fill"></span>
</ng-container>
Expand Down

0 comments on commit 391811e

Please sign in to comment.