From 66081048f92f397241d3563b2d8ae2ac23758705 Mon Sep 17 00:00:00 2001 From: wonder Date: Fri, 17 Apr 2026 14:56:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E5=86=97=E4=BD=99=E6=8C=89=E9=92=AE=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Toolbar/index.tsx | 43 +++-------------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/frontend/src/components/Toolbar/index.tsx b/frontend/src/components/Toolbar/index.tsx index fc69eac..017f16f 100644 --- a/frontend/src/components/Toolbar/index.tsx +++ b/frontend/src/components/Toolbar/index.tsx @@ -1,19 +1,10 @@ -import { useGraphStore } from '../../store/graphStore'; +import { useGraphStore } from "../../store/graphStore"; export function Toolbar() { - const { - startCreatingNode, - loading, - refresh, - setLayoutType, - layoutType, - } = useGraphStore(); + const { startCreatingNode, loading, refresh, setLayoutType, layoutType } = + useGraphStore(); - const layouts = [ - { type: 'force' as const, label: '力导向', icon: '🕸️' }, - { type: 'circular' as const, label: '圆形', icon: '⭕' }, - { type: 'grid' as const, label: '网格', icon: '▦' }, - ]; + const layouts = [{ type: "force" as const, label: "力导向", icon: "🕸️" }]; return (
@@ -38,32 +29,6 @@ export function Toolbar() { 🔄 刷新 - -
- {layouts.map((layout) => ( - - ))} -
- -
- -
- Ctrl+N 创建节点 - Ctrl+E 编辑节点 - Delete 删除 -
); }