mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
fix: form input value type & default form & ui (#2802)
* fix: form input value type & default form & ui * variables form ui
This commit is contained in:
@@ -215,9 +215,9 @@ const RenderUserFormInteractive = React.memo(function RenderFormInput({
|
||||
<Flex flexDirection={'column'} gap={2} w={'250px'}>
|
||||
{interactive.params.inputForm?.map((input) => (
|
||||
<Box key={input.label}>
|
||||
<Flex mb={1}>
|
||||
<Flex mb={1} alignItems={'center'}>
|
||||
<FormLabel required={input.required}>{input.label}</FormLabel>
|
||||
<QuestionTip ml={1} label={input.description} />
|
||||
{input.description && <QuestionTip ml={1} label={input.description} />}
|
||||
</Flex>
|
||||
{input.type === FlowNodeInputTypeEnum.input && (
|
||||
<Input
|
||||
@@ -247,6 +247,7 @@ const RenderUserFormInteractive = React.memo(function RenderFormInput({
|
||||
max={input.max}
|
||||
isDisabled={interactive.params.submitted}
|
||||
bg={'white'}
|
||||
rounded={'md'}
|
||||
>
|
||||
<NumberInputField
|
||||
bg={'white'}
|
||||
|
Reference in New Issue
Block a user