Skip to content
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

tree 默认选择的BUG问题 nzCheckedKeys #4472

Closed
victory-wu opened this issue Nov 25, 2019 · 2 comments · Fixed by #6161
Closed

tree 默认选择的BUG问题 nzCheckedKeys #4472

victory-wu opened this issue Nov 25, 2019 · 2 comments · Fixed by #6161
Assignees
Milestone

Comments

@victory-wu
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-i1h1hu?file=src/app/app.component.ts

Steps to reproduce

先设置nzCheckedKeys, 而后 nzData就会出现无法复选的问题

What is expected?

nzData nzCheckedKeys 使用无需分先后顺序,延迟加载体验不好

What is actually happening?

nzCheckedKeys 同时附加数据
nzData 同时附加数据

如果 nzCheckedKeys 速度比nzDATA快 就会导致无法成功勾选结果

Environment Info
ng-zorro-antd 8.5.1
Browser CHROME 版本 78.0.3904.70(正式版本) (64 位)

比如编辑权限时候, 所有权限列表,和已勾选的权限,需要同时加载,不应该分先后加载。节约加载时间。

@zorro-bot
Copy link

zorro-bot bot commented Nov 25, 2019

Translation of this issue:

tree selected by default BUG problem nzCheckedKeys

Reproduction link

[Https://stackblitz.com/edit/ng-zorro-antd-start-i1h1hu?file=src/app/app.component.ts](https://stackblitz.com/edit/ng-zorro-antd- start-i1h1hu? file = src / app / app.component.ts)

Steps to reproduce

First set nzCheckedKeys, then there will not be a check nzData problem

What is expected?

nzData nzCheckedKeys use without sub-order, lazy loading experience is not good

What is actually happening?

nzCheckedKeys while additional data
nzData while additional data

If nzCheckedKeys will result in faster than nzDATA unable to successfully check results

Environment Info
Ng-zorro-antd 8.5.1
Browser CHROME version 78.0.3904.70 (official version) (64)

For example, when editing permissions, all permissions list, and checked the permissions need to be loaded, points should not have loaded. Save loading time.

@simplejason
Copy link
Member

暂时设计并不会去触发重新渲染,可以通过重新赋值方式 https://stackblitz.com/edit/ng-zorro-antd-start-mgp3ia?file=src/app/app.component.ts

@hsuanxyz hsuanxyz added this to the backlog milestone Oct 22, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 9, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 14, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 16, 2020
hsuanxyz added a commit that referenced this issue Dec 16, 2020
close #5976, close #5809, close #5739, close #5736, close #5519, close #5446, close #5152, close #4694, close #4472, close #3832, close #2785, close #2744, close #6199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants