Skip to content

Commit

Permalink
🐛 fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangchu committed Mar 31, 2024
1 parent 80f44e7 commit 2ffad69
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 59 deletions.
54 changes: 0 additions & 54 deletions docs/caseShow/demos/pipeline/multiPipe/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,39 +138,6 @@ export const nodes = [
des: '未开始',
},
},
// {
// id: 'a7',
// type: 'pipeNode',
// width: nodeWidth,
// height: nodeHeight,
// data: {
// title: '同步至埋点平台',
// logo: 'https://mdn.alipayobjects.com/huamei_d2ejos/afts/img/A*Em_PQoTrMDgAAAAAAAAAAAAADvl6AQ/original',
// des: '未开始',
// },
// },
// {
// id: 'a8',
// type: 'pipeNode',
// width: nodeWidth,
// height: nodeHeight,
// data: {
// title: '同步至埋点平台',
// logo: 'https://mdn.alipayobjects.com/huamei_d2ejos/afts/img/A*Em_PQoTrMDgAAAAAAAAAAAAADvl6AQ/original',
// des: '未开始',
// },
// },
// {
// id: 'a9',
// type: 'pipeNode',
// width: nodeWidth,
// height: nodeHeight,
// data: {
// title: '同步至埋点平台',
// logo: 'https://mdn.alipayobjects.com/huamei_d2ejos/afts/img/A*Em_PQoTrMDgAAAAAAAAAAAAADvl6AQ/original',
// des: '未开始',
// },
// },
];

export const edges = [
Expand All @@ -182,27 +149,6 @@ export const edges = [
sourceHandle: 'a1',
targetHandle: 'a2',
},
// {
// id: 'e1-a7',
// source: 'a1',
// target: 'a7',
// sourceHandle: 'a1-NPM 组件初始化-source',
// targetHandle: 'a7',
// },
// {
// id: 'e1-a8',
// source: 'a1',
// target: 'a8',
// sourceHandle: 'a1-NPM 组件初始化-source',
// targetHandle: 'a8',
// },
// {
// id: 'e1-a9',
// source: 'a1',
// target: 'a9',
// sourceHandle: 'a1-NPM 组件初始化-source',
// targetHandle: 'a9',
// },
{
id: 'e2',
source: 'a2',
Expand Down
4 changes: 2 additions & 2 deletions docs/caseShow/demos/pipeline/multiPipe/pipelineDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const nodeTypes = { pipeNode: PipeNode };
function App() {
const flowViewer = useFlowViewer();
const { styles } = useStyles();
const [_nodes, setNodes, onNodesChange] = useNodesState([...nodes]);
const [_edges, setEdges, onEdgesChange] = useEdgesState([...edges]);
const [_nodes, , onNodesChange] = useNodesState([...nodes]);
const [_edges, , onEdgesChange] = useEdgesState([...edges]);

const handleClick = useCallback(
(e, n) => {
Expand Down
4 changes: 2 additions & 2 deletions docs/caseShow/demos/pipeline/techPipe/techPipeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const nodeTypes = { pipeNode: PipeNode };
function App() {
const flowViewer = useFlowViewer();
const { styles } = useStyles();
const [_nodes, setNodes, onNodesChange] = useNodesState([...nodes]);
const [_edges, setEdges, onEdgesChange] = useEdgesState([...edges]);
const [_nodes, , onNodesChange] = useNodesState([...nodes]);
const [_edges, , onEdgesChange] = useEdgesState([...edges]);

const handleClick = useCallback(
(e, n) => {
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/demos/flowViewIntro/dragableNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { nodes as _nodes, edges } from './data/data2';

function App() {
const { styles } = useStyles();
const [nodes, setNodes, onNodesChange] = useNodesState(_nodes);
const [nodes, , onNodesChange] = useNodesState(_nodes);

return (
<div className={styles.container}>
Expand Down

0 comments on commit 2ffad69

Please sign in to comment.