UNPKG

gg-editor

Version:

A visual graph editor based on G6 and React

58 lines (55 loc) 1.57 kB
import React from 'react'; import { Card } from 'antd'; import { ItemPanel, Item } from '@src'; import styles from './index.scss'; class FlowItemPanel extends React.Component { render() { return ( <ItemPanel className={styles.itemPanel}> <Card bordered={false}> <Item type="node" size="72*72" shape="flow-circle" model={{ color: '#FA8C16', label: '起止节点', }} src="https://gw.alipayobjects.com/zos/rmsportal/ZnPxbVjKYADMYxkTQXRi.svg" /> <Item type="node" size="80*48" shape="flow-rect" model={{ color: '#1890FF', label: '常规节点', }} src="https://gw.alipayobjects.com/zos/rmsportal/wHcJakkCXDrUUlNkNzSy.svg" /> <Item type="node" size="80*72" shape="flow-rhombus" model={{ color: '#13C2C2', label: '分叉节点', }} src="https://gw.alipayobjects.com/zos/rmsportal/SnWIktArriZRWdGCnGfK.svg" /> <Item type="node" size="80*48" shape="flow-capsule" model={{ color: '#722ED1', label: '模型节点', }} src="https://gw.alipayobjects.com/zos/rmsportal/rQMUhHHSqwYsPwjXxcfP.svg" /> </Card> </ItemPanel> ); } } export default FlowItemPanel;