generated from arvinxx/npm-template
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jiangchu
committed
Mar 31, 2024
1 parent
c0dba39
commit 639caee
Showing
8 changed files
with
256 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 17 additions & 3 deletions
20
docs/caseShow/demos/pipeline/taskPipeline/nodes/stageNode.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
import { FlowViewNode } from '@ant-design/pro-flow'; | ||
import { FC, useState } from 'react'; | ||
import { FC } from 'react'; | ||
import useStyles from './styled'; | ||
import TaskNode from './taskNode'; | ||
|
||
const StageNode: FC<FlowViewNode> = (node) => { | ||
const [open, setOpen] = useState(false); | ||
// const [open, setOpen] = useState(false); | ||
const { styles } = useStyles(); | ||
const { data } = node; | ||
const taskNodes = data.children; | ||
|
||
return <div className={styles.stageNode}></div>; | ||
return ( | ||
<div className={styles.stageNode}> | ||
<div className="wrap"> | ||
<div className="title">{data.title}</div> | ||
{data.extra} | ||
</div> | ||
<div className="taskNodes"> | ||
{taskNodes.map((taskNode: any) => { | ||
return <TaskNode data={taskNode} />; | ||
})} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default StageNode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.