| const isSelect = type === FormTypeEnum.select || type === FormTypeEnum.dynamicSelect | const isSelect = type === FormTypeEnum.select || type === FormTypeEnum.dynamicSelect | ||||
| const isAppSelector = type === FormTypeEnum.appSelector | const isAppSelector = type === FormTypeEnum.appSelector | ||||
| const isModelSelector = type === FormTypeEnum.modelSelector | const isModelSelector = type === FormTypeEnum.modelSelector | ||||
| const showTypeSwitch = isNumber || isBoolean || isObject || isArray | |||||
| const showTypeSwitch = isNumber || isBoolean || isObject || isArray || isSelect | |||||
| const isConstant = varInput?.type === VarKindType.constant || !varInput?.type | const isConstant = varInput?.type === VarKindType.constant || !varInput?.type | ||||
| const showVariableSelector = isFile || varInput?.type === VarKindType.variable | const showVariableSelector = isFile || varInput?.type === VarKindType.variable | ||||
| return VarType.arrayFile | return VarType.arrayFile | ||||
| else if (type === FormTypeEnum.file) | else if (type === FormTypeEnum.file) | ||||
| return VarType.file | return VarType.file | ||||
| // else if (isSelect) | |||||
| // return VarType.select | |||||
| else if (isSelect) | |||||
| return VarType.string | |||||
| // else if (isAppSelector) | // else if (isAppSelector) | ||||
| // return VarType.appSelector | // return VarType.appSelector | ||||
| // else if (isModelSelector) | // else if (isModelSelector) | ||||
| onChange={handleValueChange} | onChange={handleValueChange} | ||||
| /> | /> | ||||
| )} | )} | ||||
| {isSelect && ( | |||||
| {isSelect && isConstant && ( | |||||
| <SimpleSelect | <SimpleSelect | ||||
| wrapperClassName='h-8 grow' | wrapperClassName='h-8 grow' | ||||
| disabled={readOnly} | disabled={readOnly} |