NG-ZORRO / ng-zorro-antd

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

【nz-tree】在节点中的设置的checked值为true的节点不会被getCheckedNodeList()获取 #8469

Open gylove1994 opened 8 months ago

gylove1994 commented 8 months ago

Reproduction link

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

Steps to reproduce

1.传入包含checked值的节点 2.使用getCheckedNodeList()获取节点 获取异常

What is expected?

获得所有checked值为true的节点

What is actually happening?

空数组

Environment Info
ng-zorro-antd 17.3.0
Browser chrome 版本 123.0.6312.59(正式版本) (arm64)
zorro-bot[bot] commented 8 months ago

Translation of this issue:

[NZ-TREE] The check value set in the node in the node is True node will not be obtained by GetcheckedNodelist ()

REPRODUCTION LINK

[https://stackBlitz.com/edit/ng-zorro-mtd- ivy-gjt6ey?file=src%2FApp.com ivy-gjt6ey? File = src%2FAPP%2FAPP.COMPONENTS)

STEPS To Reproduce

  1. Node passed in containing checked values
  2. Use GetcheckedNodelist () to get nodes Obtain abnormalities

What is exfected?

Obtain nodes with all Checked values ​​to true

What is actually happy?

Air array

ENVIRONMENT Info
NG-Zorro-ATD 17.3.0
Browser Chrome version 123.0.6312.59 (formal version) (ARM64)
gylove1994 commented 8 months ago

相关工单:#7378

gylove1994 commented 7 months ago

Any progress?