@deprecated Use one of levelAccessor or childrenAccessor instead. To be removed in a future version.
我想通过阅读官方文档来替换功能,但没有运气;该文档尚不完整,评论建议将其替换为
childrenAccessor
,但是某些功能,例如
this.treeControl.expand(node);
在
childrenAccessor
中不再可用。
I无法提供源代码,但是如果有人可以提供一些Angular 19和材料组件V3的示例,我将不胜感激,这些示例显示了我们如何在Tree Component的较新版本中使用Nodes扩展的功能。
我也想要答案。 您现在解决了吗?