mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 20:17:29 +08:00
Merge remote-tracking branch 'origin/feat/rag-2' into feat/rag-2
This commit is contained in:
commit
a8cd1e2483
@ -14,7 +14,7 @@ export enum FormTypeEnum {
|
|||||||
secretInput = 'secret-input',
|
secretInput = 'secret-input',
|
||||||
select = 'select',
|
select = 'select',
|
||||||
radio = 'radio',
|
radio = 'radio',
|
||||||
boolean = 'boolean',
|
boolean = 'checkbox',
|
||||||
files = 'files',
|
files = 'files',
|
||||||
file = 'file',
|
file = 'file',
|
||||||
modelSelector = 'model-selector',
|
modelSelector = 'model-selector',
|
||||||
|
|||||||
@ -94,8 +94,8 @@ const FormInputItem: FC<Props> = ({
|
|||||||
// return VarType.appSelector
|
// return VarType.appSelector
|
||||||
// else if (isModelSelector)
|
// else if (isModelSelector)
|
||||||
// return VarType.modelSelector
|
// return VarType.modelSelector
|
||||||
// else if (isBoolean)
|
else if (isBoolean)
|
||||||
// return VarType.boolean
|
return VarType.boolean
|
||||||
else if (isObject)
|
else if (isObject)
|
||||||
return VarType.object
|
return VarType.object
|
||||||
else if (isArray)
|
else if (isArray)
|
||||||
@ -187,7 +187,7 @@ const FormInputItem: FC<Props> = ({
|
|||||||
return (
|
return (
|
||||||
<div className={cn('gap-1', !(isShowJSONEditor && isConstant) && 'flex')}>
|
<div className={cn('gap-1', !(isShowJSONEditor && isConstant) && 'flex')}>
|
||||||
{showTypeSwitch && (
|
{showTypeSwitch && (
|
||||||
<FormInputTypeSwitch value={varInput?.type || VarKindType.constant} onChange={handleTypeChange}/>
|
<FormInputTypeSwitch value={varInput?.type || VarKindType.constant} onChange={handleTypeChange} />
|
||||||
)}
|
)}
|
||||||
{isString && (
|
{isString && (
|
||||||
<MixedVariableTextInput
|
<MixedVariableTextInput
|
||||||
@ -209,7 +209,7 @@ const FormInputItem: FC<Props> = ({
|
|||||||
placeholder={placeholder?.[language] || placeholder?.en_US}
|
placeholder={placeholder?.[language] || placeholder?.en_US}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{isBoolean && (
|
{isBoolean && isConstant && (
|
||||||
<FormInputBoolean
|
<FormInputBoolean
|
||||||
value={varInput?.value as boolean}
|
value={varInput?.value as boolean}
|
||||||
onChange={handleValueChange}
|
onChange={handleValueChange}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user