NG-ZORRO / ng-zorro-antd

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

当 table 在 modal 内无数据时, 无数据状态无法居中 #7081

Closed SuperRichZhao closed 2 years ago

SuperRichZhao commented 2 years ago

Reproduction link

https://stackblitz.com/edit/angular-83ge6x

Steps to reproduce

正常表格加了 y 轴滚动, 无数据状态是可以居中的, 当出现在 modal 中, 无数据状态无法居中显示

What is expected?

在 modal 中的表格, 无数据状态仍可以正常居中显示

What is actually happening?

在 modal 中的表格, 无数据状态无法正常居中显示

Environment Info
ng-zorro-antd 12.0.2
Browser chrome v98
zorro-bot[bot] commented 2 years ago

Translation of this issue:

When there is no data in MODAL, there is no data status.

reproduction link

https://stackblitz.com/edit/angular-83ge6x

steps to reproduce

The normal table adds the Y-axis scrolling, no data is available, when appearing in MODAL, no data status cannot be displayed

What is expected?

In the form of MODAL, there is still no data in normally displayed.

What is actually happens?

In the form of MODAL, there is no data status that cannot be displayed normally.

ENVIRONMENT INFO
Ng-Zorro-ANTD 12.0.2
Browser chrome v98
SuperRichZhao commented 2 years ago

已找到解决方案

SuperRichZhao commented 2 years ago

\<nz-modal nzNoAnimation>...\</nz-modal>