(type: string)
| 42 | |
| 43 | // 获取节点类型图标 |
| 44 | const getNodeIcon = (type: string) => { |
| 45 | switch (type) { |
| 46 | case 'entity': |
| 47 | return <FileTextOutlined /> |
| 48 | case 'event': |
| 49 | return <CalendarOutlined /> |
| 50 | case 'relation': |
| 51 | return <ApiOutlined /> |
| 52 | default: |
| 53 | return <FileTextOutlined /> |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // 获取节点类型颜色 |
| 58 | const getNodeTypeColor = (type: string) => { |