Skip to content

Commit

Permalink
feat(module:popconfirm): make nzOkDanger coerce to boolean (#7720)
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperLife1119 committed Nov 15, 2022
1 parent 754ded6 commit f6a8044
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/popconfirm/popconfirm.ts
Expand Up @@ -51,6 +51,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'popconfirm';
})
export class NzPopconfirmDirective extends NzTooltipBaseDirective {
readonly _nzModuleName: NzConfigKey = NZ_CONFIG_MODULE_NAME;
static ngAcceptInputType_nzOkDanger: BooleanInput;
static ngAcceptInputType_nzCondition: BooleanInput;
static ngAcceptInputType_nzPopconfirmShowArrow: BooleanInput;
static ngAcceptInputType_nzPopconfirmArrowPointAtCenter: BooleanInput;
Expand All @@ -68,7 +69,7 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective {
@Input('nzPopconfirmVisible') override visible?: boolean;
@Input() nzOkText?: string;
@Input() nzOkType?: string;
@Input() nzOkDanger?: boolean;
@Input() @InputBoolean() nzOkDanger?: boolean;
@Input() nzCancelText?: string;
@Input() nzBeforeConfirm?: () => Observable<boolean> | Promise<boolean> | boolean;
@Input() nzIcon?: string | TemplateRef<void>;
Expand Down

0 comments on commit f6a8044

Please sign in to comment.