这是我的简化组件图:
@startuml
component TopLeft
component TopRight
component BottomStretch {
'portin port_test
}
TopLeft -[hidden]r- TopRight
TopLeft -[hidden]d- BottomStretch
TopRight -[hidden]d- BottomStretch
@enduml
,只要 BottomStretch 为空,每个组件都会按预期分配。
但是如果我们在 BottomStretch 组件中放入一些东西(在本例中删除注释),它就会弹出到右上角:
有没有办法控制组件的相对位置?
还有一个问题:是否可以拉伸底部组件,使其左侧与 TopLeft 的左侧重合,右侧与 TopRight 的右侧重合?
预先感谢所有意见和建议