diff --git a/components/auto-complete/autocomplete.component.ts b/components/auto-complete/autocomplete.component.ts index f3be76710e..6b2206557e 100644 --- a/components/auto-complete/autocomplete.component.ts +++ b/components/auto-complete/autocomplete.component.ts @@ -62,7 +62,7 @@ export type AutocompleteDataSource = Array
diff --git a/components/cascader/cascader.component.ts b/components/cascader/cascader.component.ts index f89d4d8325..b25288e693 100644 --- a/components/cascader/cascader.component.ts +++ b/components/cascader/cascader.component.ts @@ -140,7 +140,7 @@ const defaultDisplayRender = (labels: string[]): string => labels.join(' / '); class="ant-select-dropdown ant-cascader-dropdown ant-select-dropdown-placement-bottomLeft" [class.ant-cascader-dropdown-rtl]="dir === 'rtl'" [@slideMotion]="'enter'" - [@.disabled]="noAnimation?.nzNoAnimation" + [@.disabled]="!!noAnimation?.nzNoAnimation" [nzNoAnimation]="noAnimation?.nzNoAnimation" (mouseenter)="onTriggerMouseEnter()" (mouseleave)="onTriggerMouseLeave($event)" diff --git a/components/collapse/collapse-panel.component.ts b/components/collapse/collapse-panel.component.ts index 3323fb1292..9e15b2a412 100644 --- a/components/collapse/collapse-panel.component.ts +++ b/components/collapse/collapse-panel.component.ts @@ -60,7 +60,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'collapsePanel';
diff --git a/components/dropdown/dropdown-menu.component.ts b/components/dropdown/dropdown-menu.component.ts index c96755f717..33f2857ef4 100644 --- a/components/dropdown/dropdown-menu.component.ts +++ b/components/dropdown/dropdown-menu.component.ts @@ -53,7 +53,7 @@ export type NzPlacementType = 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 't [ngStyle]="nzOverlayStyle" @slideMotion (@slideMotion.done)="onAnimationEvent($event)" - [@.disabled]="noAnimation?.nzNoAnimation" + [@.disabled]="!!noAnimation?.nzNoAnimation" [nzNoAnimation]="noAnimation?.nzNoAnimation" (mouseenter)="setMouseState(true)" (mouseleave)="setMouseState(false)" diff --git a/components/menu/submenu.component.ts b/components/menu/submenu.component.ts index 2a0ba8e170..eaeab32751 100644 --- a/components/menu/submenu.component.ts +++ b/components/menu/submenu.component.ts @@ -85,7 +85,7 @@ const listOfHorizontalPositions = [ nz-submenu-inline-child [mode]="mode" [nzOpen]="nzOpen" - [@.disabled]="noAnimation?.nzNoAnimation" + [@.disabled]="!!noAnimation?.nzNoAnimation" [nzNoAnimation]="noAnimation?.nzNoAnimation" [menuClass]="nzMenuClassName" [templateOutlet]="subMenuTemplate" @@ -110,7 +110,7 @@ const listOfHorizontalPositions = [ [isMenuInsideDropDown]="isMenuInsideDropDown" [templateOutlet]="subMenuTemplate" [menuClass]="nzMenuClassName" - [@.disabled]="noAnimation?.nzNoAnimation" + [@.disabled]="!!noAnimation?.nzNoAnimation" [nzNoAnimation]="noAnimation?.nzNoAnimation" (subMenuMouseState)="setMouseEnterState($event)" >
diff --git a/components/popconfirm/popconfirm.ts b/components/popconfirm/popconfirm.ts index 722f0edd60..131fb2b4c8 100644 --- a/components/popconfirm/popconfirm.ts +++ b/components/popconfirm/popconfirm.ts @@ -157,7 +157,7 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective { [ngClass]="_classMap" [class.ant-popover-rtl]="dir === 'rtl'" [ngStyle]="nzOverlayStyle" - [@.disabled]="noAnimation?.nzNoAnimation" + [@.disabled]="!!noAnimation?.nzNoAnimation" [nzNoAnimation]="noAnimation?.nzNoAnimation" [@zoomBigMotion]="'active'" > diff --git a/components/popover/popover.ts b/components/popover/popover.ts index 04476687b1..efeb489071 100644 --- a/components/popover/popover.ts +++ b/components/popover/popover.ts @@ -115,7 +115,7 @@ export class NzPopoverDirective extends NzTooltipBaseDirective { [class.ant-popover-rtl]="dir === 'rtl'" [ngClass]="_classMap" [ngStyle]="nzOverlayStyle" - [@.disabled]="noAnimation?.nzNoAnimation" + [@.disabled]="!!noAnimation?.nzNoAnimation" [nzNoAnimation]="noAnimation?.nzNoAnimation" [@zoomBigMotion]="'active'" > diff --git a/components/select/select.component.ts b/components/select/select.component.ts index 1b987f290b..e540792924 100644 --- a/components/select/select.component.ts +++ b/components/select/select.component.ts @@ -105,7 +105,7 @@ export type NzSelectSizeType = 'large' | 'default' | 'small'; [open]="nzOpen" [disabled]="nzDisabled" [mode]="nzMode" - [@.disabled]="noAnimation?.nzNoAnimation" + [@.disabled]="!!noAnimation?.nzNoAnimation" [nzNoAnimation]="noAnimation?.nzNoAnimation" [maxTagPlaceholder]="nzMaxTagPlaceholder" [removeIcon]="nzRemoveIcon" @@ -164,7 +164,7 @@ export type NzSelectSizeType = 'large' | 'default' | 'small'; [class.ant-select-dropdown-placement-bottomRight]="dropDownPosition === 'bottomRight'" [class.ant-select-dropdown-placement-topRight]="dropDownPosition === 'topRight'" [@slideMotion]="'enter'" - [@.disabled]="noAnimation?.nzNoAnimation" + [@.disabled]="!!noAnimation?.nzNoAnimation" [nzNoAnimation]="noAnimation?.nzNoAnimation" [listOfContainerItem]="listOfContainerItem" [menuItemSelectedIcon]="nzMenuItemSelectedIcon" diff --git a/components/tooltip/tooltip.ts b/components/tooltip/tooltip.ts index 1312ff2a41..47b53fe9dc 100644 --- a/components/tooltip/tooltip.ts +++ b/components/tooltip/tooltip.ts @@ -109,7 +109,7 @@ export class NzTooltipDirective extends NzTooltipBaseDirective { [class.ant-tooltip-rtl]="dir === 'rtl'" [ngClass]="_classMap" [ngStyle]="nzOverlayStyle" - [@.disabled]="noAnimation?.nzNoAnimation" + [@.disabled]="!!noAnimation?.nzNoAnimation" [nzNoAnimation]="noAnimation?.nzNoAnimation" [@zoomBigMotion]="'active'" > diff --git a/components/tree-select/tree-select.component.ts b/components/tree-select/tree-select.component.ts index ef36b333d9..1f2603e9fc 100644 --- a/components/tree-select/tree-select.component.ts +++ b/components/tree-select/tree-select.component.ts @@ -89,7 +89,7 @@ const TREE_SELECT_DEFAULT_CLASS = 'ant-select-dropdown ant-select-tree-dropdown'
diff --git a/components/tree/tree.component.ts b/components/tree/tree.component.ts index 031c64c0f4..4075a418c4 100644 --- a/components/tree/tree.component.ts +++ b/components/tree/tree.component.ts @@ -89,7 +89,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'tree'; *ngIf="!nzVirtualHeight" [class.ant-select-tree-list-holder-inner]="nzSelectMode" [class.ant-tree-list-holder-inner]="!nzSelectMode" - [@.disabled]="beforeInit || noAnimation?.nzNoAnimation" + [@.disabled]="beforeInit || !!noAnimation?.nzNoAnimation" [nzNoAnimation]="noAnimation?.nzNoAnimation" [@treeCollapseMotion]="nzFlattenNodes.length" >