NG-ZORRO / ng-zorro-antd

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

NzModal.create()设置nzTitle的初始值,NzModalRef.updateConfig()更新nzTitle,Modal层数据更新,View层未更新 #7438

Open guanyq2022 opened 2 years ago

guanyq2022 commented 2 years ago

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-ivy-6xws57?file=src%2Fapp%2Fapp.component.ts

Steps to reproduce

NzModal.create()设置nzTitle的初始值,NzModalRef.updateConfig()更新nzTitle,Modal层数据更新,View层未更新

What is expected?

View层nzTitle更新

What is actually happening?

View层nzTitle未更新更新

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

Translation of this issue:

NZMODAL.CREATE () Set the initial value of nztitle, nzmodalref.UpdateConfig () update nztitle, modal layer data update, View layer is not updated

REPRODUCTION LINK

[https://stackblitz.com/edit/ng-zorro-nTD-IVY-6XWS57?file=src%2FApp.com Ivy-6XWS57? File = SRC%2FAPP%2FAPP.COMPONENTS)

STEPS To Reproduce

NZMODAL.CREATE () Set the initial value of nztitle, nzmodalref.UpdateConfig () update nztitle, modal layer data update, View layer is not updated

What is exfected?

View layer NZTITLE update

What is actually happy?

View layer NZTITLE is not updated and updated

ENVIRONMENT Info
NG-Zorro-ATD 13.2.2
Browser Chrome