在 Golden Layout 2.0 中不支持动态组件添加,与 1.0 中不同

作者: yansenlei创建于 2024年6月18日更新于 2026年1月17日

当前行为 在 Golden Layout 2.0 中,我遇到了一个问题,即动态添加组件不受支持,这与 Golden Layout 1.0 中的情况不同。按照 1.0 版教程中的说明(https://golden-layout.com/tutorials/dynamically-adding-components.html),在最新版本中,同样的方法不起作用。复现问题的步骤:

内容来源: golden-layout/golden-layout