From f61fdf2b2850ae5ee600d3306a9c531d6905231f Mon Sep 17 00:00:00 2001 From: ZLY Date: Tue, 21 Oct 2025 10:03:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(flowEditor):=20=E6=B7=BB=E5=8A=A0=20useDef?= =?UTF-8?q?ault=20=E5=B1=9E=E6=80=A7=E6=8E=A7=E5=88=B6=20actionBar=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/flowEditor/components/actionBar.tsx | 94 ++++++++++--------- 1 file changed, 50 insertions(+), 44 deletions(-) diff --git a/src/pages/flowEditor/components/actionBar.tsx b/src/pages/flowEditor/components/actionBar.tsx index 99d9c88..3ba45f9 100644 --- a/src/pages/flowEditor/components/actionBar.tsx +++ b/src/pages/flowEditor/components/actionBar.tsx @@ -7,6 +7,7 @@ import { useSelector, useDispatch } from 'react-redux'; const ButtonGroup = Button.Group; interface ActionBarProps { + useDefault: boolean; onSave?: () => void; onUndo?: () => void; onRedo?: () => void; @@ -17,6 +18,7 @@ interface ActionBarProps { } const ActionBar: React.FC = ({ + useDefault, onSave, onUndo, onRedo, @@ -39,50 +41,54 @@ const ActionBar: React.FC = ({ return (
- - - - - - - - + {useDefault && ( + <> + + + + + + + + + + )}
); };