feat(workflow): add disableVariableInsertion prop to form input and trigger components

This commit is contained in:
zhsama
2025-10-15 18:20:13 +08:00
parent c03b790888
commit 729e0e9b1e
6 changed files with 37 additions and 15 deletions

View File

@ -42,6 +42,7 @@ type Props = {
onManageInputField?: () => void
extraParams?: Record<string, any>
providerType?: string
disableVariableInsertion?: boolean
}
const FormInputItem: FC<Props> = ({
@ -57,6 +58,7 @@ const FormInputItem: FC<Props> = ({
onManageInputField,
extraParams,
providerType,
disableVariableInsertion = false,
}) => {
const language = useLanguage()
const [toolsOptions, setToolsOptions] = useState<FormOption[] | null>(null)
@ -286,6 +288,7 @@ const FormInputItem: FC<Props> = ({
availableNodes={availableNodesWithParent}
showManageInputField={showManageInputField}
onManageInputField={onManageInputField}
disableVariableInsertion={disableVariableInsertion}
/>
)}
{isNumber && isConstant && (