feat: introduce useInputFieldPanel hook to manage input field panel state and refactor related components

This commit is contained in:
twwu
2025-08-06 10:32:57 +08:00
parent 6faa4b107b
commit ec6fabb222
11 changed files with 95 additions and 26 deletions

View File

@ -44,7 +44,6 @@ import {
import { CUSTOM_ITERATION_START_NODE } from '@/app/components/workflow/nodes/iteration-start/constants'
import { CUSTOM_LOOP_START_NODE } from '@/app/components/workflow/nodes/loop-start/constants'
import { basePath } from '@/utils/var'
import { canFindTool } from '@/utils'
import { MAX_PARALLEL_LIMIT } from '@/config'
import { useNodesMetaData } from '.'
@ -527,6 +526,7 @@ export const useWorkflowReadOnly = () => {
getWorkflowReadOnly,
}
}
export const useNodesReadOnly = () => {
const workflowStore = useWorkflowStore()
const workflowRunningData = useStore(s => s.workflowRunningData)