您可以将 NgBootstrap (https://ng-bootstrap.github.io/#/getting-started) 添加到您的 Angular 应用程序中并使用折叠组件 (https://ng-bootstrap.github.io/# /组件/手风琴/概述)