Open Libohan12 opened 1 week ago
[https://stackBlitz.com/run?file=src%2FAPPAPP.CONENENT.TS> //stackBlitz.com/run?file=src%2FAPPPPONENENTS)
File TREE-VIEW/Node.TS NGONINIT This.isLeaf =! This.Tree.TreeControl.isexpandable (this.data); Will only be judged once
If the data changes, you need to redefine whether it can be expanded
Will only be judged once
ENVIRONMENT | Info |
---|---|
NG-Zorro-ATD | 17.4.1 |
Browser | Chrome 126 |
Reproduction link
https://stackblitz.com/run?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce
在文件 tree-view/node.ts ngOninit中 this.isLeaf = !this.tree.treeControl.isExpandable(this.data); 只会被判断一次
What is expected?
如果数据发生变更,需要重新定义是否可以展开
What is actually happening?
只会被判断一次