mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-08 10:26:50 +08:00
feat: tooltip (#7634)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import Button from '../../base/button'
|
||||
import Tag from '../../base/tag'
|
||||
import Tooltip from '../../base/tooltip'
|
||||
import { getIcon } from '../common/retrieval-method-info'
|
||||
import s from './style.module.css'
|
||||
import Tooltip from '@/app/components/base/tooltip'
|
||||
import cn from '@/utils/classnames'
|
||||
import type { HitTestingResponse } from '@/models/datasets'
|
||||
import { hitTesting } from '@/service/datasets'
|
||||
@@ -74,8 +74,7 @@ const TextAreaWithButton = ({
|
||||
{t('datasetHitTesting.input.title')}
|
||||
</span>
|
||||
<Tooltip
|
||||
selector={'change-retrieval-method'}
|
||||
htmlContent={t('dataset.retrieval.changeRetrievalMethod')}
|
||||
popupContent={t('dataset.retrieval.changeRetrievalMethod')}
|
||||
>
|
||||
<div
|
||||
onClick={onClickRetrievalMethod}
|
||||
@@ -99,8 +98,7 @@ const TextAreaWithButton = ({
|
||||
{text?.length > 200
|
||||
? (
|
||||
<Tooltip
|
||||
content={t('datasetHitTesting.input.countWarning') as string}
|
||||
selector="hit-testing-warning"
|
||||
popupContent={t('datasetHitTesting.input.countWarning')}
|
||||
>
|
||||
<div>
|
||||
<Tag color="red" className="!text-red-600">
|
||||
|
||||
Reference in New Issue
Block a user