Skip to content

tree-view 创建的node只会在ngOninit中别定义一次isLeaf, 如果我在下增加chlidren,并不会重新渲染 #8600

Open
@LiBoHan95

Description

@LiBoHan95

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?

只会被判断一次

Environment Info
ng-zorro-antd 17.4.1
Browser chrome 126

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions