嘿,大家能帮我吗?我尝试了很多次但不知道为什么它不起作用...发生的情况是,当我以编程方式打开扩展面板时,有时会打开,有时则不会。当我按Ctrl + Shift + R时,它可以正常工作。但当我关闭面板并再次导航到该组件时,它就无法工作了。但切换显示其已展开(您可以在红色高亮中看到)。我所做的是,当扩展面板具有数据时,将ingredientsExpansion设置为true。请参见下面的图像输入图像描述
请参见下面的图片 enter image description here enter image description here ```
headPanleToggle(){
this.ingredientsExpansion=true; //head panel Toggle
}
``` 但是面板在将其设置为true后没有打开。请参见下面的图片 enter image description here enter image description here ```