fix: tool's number and secet input display issue (#16834)

This commit is contained in:
非法操作
2025-03-26 21:17:04 +08:00
committed by GitHub
parent 59a86dabee
commit 91db2207b3
3 changed files with 10 additions and 2 deletions

View File

@@ -167,7 +167,9 @@ function Form<
validated={validatedSuccess}
placeholder={placeholder?.[language] || placeholder?.en_US}
disabled={disabled}
type={formSchema.type === FormTypeEnum.textNumber ? 'number' : 'text'}
type={formSchema.type === FormTypeEnum.secretInput ? 'password'
: formSchema.type === FormTypeEnum.textNumber ? 'number'
: 'text'}
{...(formSchema.type === FormTypeEnum.textNumber ? { min: (formSchema as CredentialFormSchemaNumberInput).min, max: (formSchema as CredentialFormSchemaNumberInput).max } : {})} />
{fieldMoreInfo?.(formSchema)}
{validating && changeKey === variable && <ValidatingTip />}