feat: 添加左侧面板选项卡状态管理,更新流程节点数据结构

This commit is contained in:
catlog22
2026-02-06 11:38:20 +08:00
parent a9b9ec48f1
commit c8f9bc7994
4 changed files with 171 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ const initialState = {
// UI state
isPaletteOpen: true,
isPropertyPanelOpen: true,
leftPanelTab: 'nodes' as const,
};
export const useFlowStore = create<FlowStore>()(
@@ -429,6 +430,10 @@ export const useFlowStore = create<FlowStore>()(
set({ isPropertyPanelOpen: open }, false, 'setIsPropertyPanelOpen');
},
setLeftPanelTab: (tab) => {
set({ leftPanelTab: tab }, false, 'setLeftPanelTab');
},
// ========== Utility ==========
resetFlow: () => {