-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
抽屉重新打开如何避免重复渲染? #7122
Comments
Translation of this issue:How does the drawer re-open content do not re-rendeavado, use the previous rendering?reproduction linkhttps://stackblitz.com/edit/angular-omojih steps to reproduceThe content entered on the drawer, the expanded tree, disappeared after reopen the drawer, and returned to the first time. What is expected?Drawer close does not cancel DOM, reopen or previous interface status What is actually happens?Re-opening the drawer re-rendering the content
|
申请不使用nzDrawerContent 模板来渲染,使用 @hsuanxyz |
@Cyclone77 将内容投影移动到弹窗内会产生很多意外的问题,因此我从 v12 开始不再支持。直到 angular/angular#8563 得到解决。 另外从开发角度上来说所有的输入内容应该都保存在 viewmodel 中,而不是在 view 中。 |
Reproduction link
https://stackblitz.com/edit/angular-omojih
Steps to reproduce
抽屉上输入的内容,展开的树,重新打开抽屉后消失了,恢复到第一次打开的状态了。
What is expected?
抽屉关闭不注销dom,重新打开还是之前的界面状态
What is actually happening?
重新打开抽屉重新渲染了内容
The text was updated successfully, but these errors were encountered: