Ng-zorro-antd: 走马灯和Tabs一起用无法渲染

Created on 2 Jul 2019  ·  3Comments  ·  Source: NG-ZORRO/ng-zorro-antd

Reproduction link

https://ng-zorro-antd-start-xzpnfa.stackblitz.io

Steps to reproduce

第一个tabs页渲染了,点击其他tabs页渲染失败

What is expected?

有什么办法在点击其他tabs页的时候渲染走马灯

What is actually happening?

实际上点击其他tabs页,没有渲染走马灯

| Environment | Info |
|---|---|
| ng-zorro-antd | 8.0.1 |
| Browser | Google Chrome V75.0.3770.100 |

FAQ Carousel Tabs

Most helpful comment

已经解决了,改成 包裹着,按需加载就没问题了

All 3 comments

Translation of this issue:

The Lantern and the Tabs cannot be rendered together.

Reproduction link

Https://ng-zorro-antd-start-xzpnfa.stackblitz.io

Steps to reproduce

The first tabs page is rendered. Clicking on other tabs page fails to render.

What is expected?

Is there any way to render the lantern when I click on other tabs?

What is actually happening?

Actually click on other tabs page, no rendering lanterns

| Environment | Info |
|---|---|
| ng-zorro-antd | 8.0.1 |
| Browser | Google Chrome V75.0.3770.100 |

已经解决了,改成 包裹着,按需加载就没问题了

<ng-template nz-tab></ng-template>

Was this page helpful?
0 / 5 - 0 ratings