fix: diplay all helpfields (#23348)

Signed-off-by: jingfelix <jingfelix@outlook.com>
This commit is contained in:
Tianyi Jing
2025-08-04 14:39:54 +08:00
committed by GitHub
parent 146d870098
commit 8041808b53
3 changed files with 18 additions and 33 deletions

View File

@@ -3,6 +3,7 @@ import {
memo,
useMemo,
} from 'react'
import { RiExternalLinkLine } from '@remixicon/react'
import type { AnyFieldApi } from '@tanstack/react-form'
import { useStore } from '@tanstack/react-form'
import cn from '@/utils/classnames'
@@ -200,6 +201,22 @@ const BaseField = ({
</div>
)
}
{
formSchema.url && (
<a
className='system-xs-regular mt-4 flex items-center text-text-accent'
href={formSchema?.url}
target='_blank'
>
<span className='break-all'>
{renderI18nObject(formSchema?.help as any)}
</span>
{
<RiExternalLinkLine className='ml-1 h-3 w-3' />
}
</a>
)
}
</div>
</div>
)