Skip to content

Commit

Permalink
feat(module:notification): popup order adjustment (#8450)
Browse files Browse the repository at this point in the history
Co-authored-by: wb-gyy965916 <wb-gyy965916@alibaba-inc.com>
  • Loading branch information
OriginRing and wb-gyy965916 committed Apr 19, 2024
1 parent af1483a commit 742f14a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions components/notification/notification-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,25 +215,25 @@ export class NzNotificationContainerComponent extends NzMNContainerComponent {
const placement = m.options.nzPlacement;
switch (placement) {
case 'topLeft':
instancesMap.topLeft.push(m);
instancesMap.topLeft.unshift(m);
break;
case 'topRight':
instancesMap.topRight.push(m);
instancesMap.topRight.unshift(m);
break;
case 'bottomLeft':
instancesMap.bottomLeft.push(m);
instancesMap.bottomLeft.unshift(m);
break;
case 'bottomRight':
instancesMap.bottomRight.push(m);
instancesMap.bottomRight.unshift(m);
break;
case 'top':
instancesMap.top.push(m);
instancesMap.top.unshift(m);
break;
case 'bottom':
instancesMap.bottom.push(m);
instancesMap.bottom.unshift(m);
break;
default:
instancesMap.topRight.push(m);
instancesMap.topRight.unshift(m);
}
});
this.topLeftInstances = instancesMap.topLeft;
Expand Down

0 comments on commit 742f14a

Please sign in to comment.