From f0a4332b89992e173985b51d422f856176f375c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B4=AB=E5=8D=87?= Date: Wed, 4 Dec 2024 10:08:23 +0800 Subject: [PATCH 01/10] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=20zoomIn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/x-flow/src/operator/ZoomInOut/index.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/x-flow/src/operator/ZoomInOut/index.tsx b/packages/x-flow/src/operator/ZoomInOut/index.tsx index 4c56c2d54..4c1ed8e89 100644 --- a/packages/x-flow/src/operator/ZoomInOut/index.tsx +++ b/packages/x-flow/src/operator/ZoomInOut/index.tsx @@ -99,7 +99,7 @@ const ZoomInOut: FC = () => { } = useReactFlow(); const { zoom } = useViewport(); - + const handleZoom = (type: string) => { if (type === ZoomType.zoomToFit) fitView() @@ -123,23 +123,23 @@ const ZoomInOut: FC = () => { return (
-
- ) + ); }; export default memo(Control); diff --git a/packages/x-flow/src/operator/UndoRedo/index.tsx b/packages/x-flow/src/operator/UndoRedo/index.tsx index 2404b01b4..392cf27ac 100644 --- a/packages/x-flow/src/operator/UndoRedo/index.tsx +++ b/packages/x-flow/src/operator/UndoRedo/index.tsx @@ -16,7 +16,7 @@ export default memo(({ handleUndo, handleRedo, pastStates, futureStates }: UndoR