forked from infiniflow/ragflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add PubMed operator infiniflow#918 (infiniflow#1589)
### What problem does this PR solve? feat: modify the translation of baiduDescription infiniflow#918 feat: add PubMed operator infiniflow#918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
- Loading branch information
Showing
9 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import TopNItem from '@/components/top-n-item'; | ||
import { useTranslate } from '@/hooks/common-hooks'; | ||
import { Form, Input } from 'antd'; | ||
import { IOperatorForm } from '../interface'; | ||
|
||
const PubMedForm = ({ onValuesChange, form }: IOperatorForm) => { | ||
const { t } = useTranslate('flow'); | ||
|
||
return ( | ||
<Form | ||
name="basic" | ||
labelCol={{ span: 6 }} | ||
wrapperCol={{ span: 18 }} | ||
autoComplete="off" | ||
form={form} | ||
onValuesChange={onValuesChange} | ||
> | ||
<TopNItem initialValue={10}></TopNItem> | ||
<Form.Item | ||
label={t('email')} | ||
name={'email'} | ||
tooltip={t('emailTip')} | ||
rules={[{ type: 'email' }]} | ||
> | ||
<Input></Input> | ||
</Form.Item> | ||
</Form> | ||
); | ||
}; | ||
|
||
export default PubMedForm; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters