feat(canvas): enhance configuration node with new input handling and reference selection features

This commit is contained in:
HouYunFei
2026-06-04 17:03:48 +08:00
parent 75d5af5d8c
commit 96cca4d97c
10 changed files with 492 additions and 347 deletions
@@ -322,7 +322,7 @@ export const CanvasNode = React.memo(function CanvasNode({
<ConnectionHandleDot side="left" visible={hovered || isSelected || isConnecting} onMouseDown={(event) => onConnectStart(event, data.id, "target")} />
<ConnectionHandleDot side="right" visible={data.type !== CanvasNodeType.Config && (hovered || isSelected || isConnecting)} onMouseDown={(event) => onConnectStart(event, data.id, "source")} />
{showPanel && renderPanel && data.type !== CanvasNodeType.Config ? <div className="absolute left-1/2 top-full z-[70] w-[500px] -translate-x-1/2 pt-4">{renderPanel(data)}</div> : null}
{showPanel && renderPanel ? <div className="absolute left-1/2 top-full z-[70] w-[500px] -translate-x-1/2 pt-4">{renderPanel(data)}</div> : null}
</div>
);
});