Closed cparkinsonMYCM closed 4 years ago
cc @wendellhu95 it seems that the nzGutter is not supported in the globalconfig yet.
@vthinkxie OMG. grid
is even not a key of NzConfig
. There must be a 👻
It was there at the time when I opened the issue 😢
@cparkinsonMYCM Maybe we accidentally leak it into the config.ts file... Actually we didn't plan to support the Grid component in the configuration system, because you may have to write the layout just once or twice in one application.
@cparkinsonMYCM Maybe we accidentally leak it into the config.ts file... Actually we didn't plan to support the Grid component in the configuration system, because you may have to write the layout once or twice in one application.
Hi @cparkinsonMYCM we are going to close this issue now, thanks for your reporting.
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-js3xtj?file=src/app/app.module.ts
Steps to reproduce
Set Grid's nzGutter property in Global Config with object as defined in documentation here e.g.
results in
However type should likely be
What is expected?
Type that is specified in documentation to be accepted as correct when setting global config for Grid Gutter
What is actually happening?
Typings are incorrect and wrong type is expected for Grid Gutter global config.