NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.86k stars 3.91k forks source link

Can't use nzMaxStack option #6617

Closed Jbz797 closed 3 years ago

Jbz797 commented 3 years ago

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-ivy-ztft3p?file=src/app/app.component.ts

Steps to reproduce

Use nzMaxStack option in NzNotificationDataOptions

What is expected?

No error and 15 notifications that can be displayed at the same time

What is actually happening?

Type error : "Object literal may only specify known properties, and 'nzMaxStack' does not exist in type 'NzNotificationDataOptions<{}>'.(2345)"

Environment Info
ng-zorro-antd 11.4.0
Browser Firefox
stygian-desolator commented 3 years ago

you can set nzMaxStack in global config doc: https://ng.ant.design/docs/global-config/en demo: https://stackblitz.com/edit/ng-zorro-antd-ivy-z5tvop?file=src%2Fapp%2Fapp.module.ts