1
This commit is contained in:
parent
5c88430ebc
commit
7a44697c56
@ -286,9 +286,25 @@ const WorkflowDesign: React.FC = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: '24px' }}>
|
<div>
|
||||||
|
<Row gutter={16}>
|
||||||
|
<Col span={4}>
|
||||||
|
<NodePanel
|
||||||
|
nodeDefinitions={nodeDefinitions}
|
||||||
|
onNodeDragStart={handleNodeDragStart}
|
||||||
|
/>
|
||||||
|
</Col>
|
||||||
|
<Col span={20}>
|
||||||
<Card
|
<Card
|
||||||
title={title}
|
styles={{
|
||||||
|
body: {
|
||||||
|
padding: 0,
|
||||||
|
height: 'calc(100vh - 250px)',
|
||||||
|
background: '#f5f5f5',
|
||||||
|
border: '1px solid #d9d9d9',
|
||||||
|
borderRadius: '4px',
|
||||||
|
}
|
||||||
|
}}
|
||||||
extra={
|
extra={
|
||||||
<Space>
|
<Space>
|
||||||
<Button
|
<Button
|
||||||
@ -306,26 +322,6 @@ const WorkflowDesign: React.FC = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
</Space>
|
</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
|
<div
|
||||||
ref={graphContainerRef}
|
ref={graphContainerRef}
|
||||||
@ -339,8 +335,6 @@ const WorkflowDesign: React.FC = () => {
|
|||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</Card>
|
|
||||||
|
|
||||||
<NodeConfigDrawer
|
<NodeConfigDrawer
|
||||||
visible={configModalVisible}
|
visible={configModalVisible}
|
||||||
node={selectedNode}
|
node={selectedNode}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user