nz-mdoal组件下使用nz-table组件,nz-table的会让width计算错误。
Author: gongziboboerCreated Oct 27, 2020Updated Jul 14, 2026
LabelsComponent: Modal
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-ivy-1ngmrz?file=src/app/app.component.ts
Steps to reproduce
点击Show Modal就可以看见
What is expected?
居中显示,计算正常
What is actually happening?
EMPTY不居中显示,nzLeft、nzRight计算错误。
| Environment | Info |
|---|---|
| ng-zorro-antd | 10.0.2 |
| Browser | 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 |
Source: NG-ZORRO/ng-zorro-antd