This commit is contained in:
asp_ly 2024-12-13 22:14:37 +08:00
parent 5c88430ebc
commit 7a44697c56

View File

@ -286,9 +286,25 @@ const WorkflowDesign: React.FC = () => {
};
return (
<div style={{ padding: '24px' }}>
<div>
<Row gutter={16}>
<Col span={4}>
<NodePanel
nodeDefinitions={nodeDefinitions}
onNodeDragStart={handleNodeDragStart}
/>
</Col>
<Col span={20}>
<Card
title={title}
styles={{
body: {
padding: 0,
height: 'calc(100vh - 250px)',
background: '#f5f5f5',
border: '1px solid #d9d9d9',
borderRadius: '4px',
}
}}
extra={
<Space>
<Button
@ -306,26 +322,6 @@ const WorkflowDesign: React.FC = () => {
</Button>
</Space>
}
>
<Row gutter={16}>
<Col span={6}>
<NodePanel
nodeDefinitions={nodeDefinitions}
onNodeDragStart={handleNodeDragStart}
/>
</Col>
<Col span={18}>
<Card
size="small"
styles={{
body: {
padding: 0,
height: 'calc(100vh - 250px)',
background: '#f5f5f5',
border: '1px solid #d9d9d9',
borderRadius: '4px',
}
}}
>
<div
ref={graphContainerRef}
@ -339,8 +335,6 @@ const WorkflowDesign: React.FC = () => {
</Card>
</Col>
</Row>
</Card>
<NodeConfigDrawer
visible={configModalVisible}
node={selectedNode}