refactor(web): 优化节点展现
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
import type {NodeProps} from '@xyflow/react'
|
||||
import React from 'react'
|
||||
import React, {useCallback} from 'react'
|
||||
import AmisNode, {EndNodeHandler, outputsFormColumns} from './AmisNode.tsx'
|
||||
|
||||
const OutputNode = (props: NodeProps) => {
|
||||
const columnsSchema = useCallback(() => outputsFormColumns(true), [props.id])
|
||||
|
||||
return (
|
||||
<AmisNode
|
||||
nodeProps={props}
|
||||
defaultNodeName="输出节点"
|
||||
defaultNodeDescription="定义输出变量"
|
||||
columnSchema={() => outputsFormColumns(true)}
|
||||
columnSchema={columnsSchema}
|
||||
handler={<EndNodeHandler/>}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user