mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: 修复【应用编排】判断器点击右侧+添加组件后,连线有点长,建议调整一下组件距离
This commit is contained in:
parent
2fe85bef5e
commit
4bdd64a480
|
|
@ -182,10 +182,11 @@ const resizeStepContainer = (wh: any) => {
|
|||
}
|
||||
|
||||
function clickNodes(item: any) {
|
||||
const width = item.properties.width ? item.properties.width : 214
|
||||
const nodeModel = props.nodeModel.graphModel.addNode({
|
||||
type: item.type,
|
||||
properties: item.properties,
|
||||
x: anchorData.value?.x + props.nodeModel.width + 100,
|
||||
x: anchorData.value?.x + width / 2 + 200,
|
||||
y: anchorData.value?.y - item.height
|
||||
})
|
||||
props.nodeModel.graphModel.addEdge({
|
||||
|
|
|
|||
Loading…
Reference in New Issue