feat(web): 完成分支节点动态改变handle

This commit is contained in:
v-zhangjc9
2025-07-16 19:54:48 +08:00
parent 91e6f49342
commit a3c2250285
11 changed files with 138 additions and 105 deletions

View File

@@ -1,5 +1,5 @@
import type {NodeProps} from '@xyflow/react'
import React, {useCallback} from 'react'
import React, {useMemo} from 'react'
import {generateAllIncomerOutputVariablesFormOptions} from '../Helper.tsx'
import {useContextStore} from '../store/ContextStore.ts'
import {useDataStore} from '../store/DataStore.ts'
@@ -11,7 +11,7 @@ const OutputNode = (props: NodeProps) => {
const {getData} = useDataStore()
const {getInputSchema} = useContextStore()
const columnsSchema = useCallback(
const columnsSchema = useMemo(
() => [
{
type: 'select',