mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-05 17:57:47 +08:00
Feat: Modify the form styles for retrieval and conditional operators. (#13299)
### What problem does this PR solve? Feat: Modify the form styles for retrieval and conditional operators. ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import { Collapse } from '@/components/collapse';
|
||||
import { CrossLanguageFormField } from '@/components/cross-language-form-field';
|
||||
import { FormContainer } from '@/components/form-container';
|
||||
import { KnowledgeBaseFormField } from '@/components/knowledge-base-item';
|
||||
import { MemoriesFormField } from '@/components/memories-form-field';
|
||||
import {
|
||||
@ -163,7 +162,7 @@ function RetrievalForm({ node }: INextOperatorForm) {
|
||||
</RAGFlowFormItem>
|
||||
<MemoryDatasetForm></MemoryDatasetForm>
|
||||
<Collapse title={<div>{t('flow.advancedSettings')}</div>}>
|
||||
<FormContainer>
|
||||
<section className="space-y-5">
|
||||
<SimilaritySliderFormField
|
||||
vectorSimilarityWeightName="keywords_similarity_weight"
|
||||
isTooltipShown
|
||||
@ -183,7 +182,7 @@ function RetrievalForm({ node }: INextOperatorForm) {
|
||||
<TOCEnhanceFormField name="toc_enhance"></TOCEnhanceFormField>
|
||||
</>
|
||||
)}
|
||||
</FormContainer>
|
||||
</section>
|
||||
</Collapse>
|
||||
<Output list={outputList}></Output>
|
||||
</FormWrapper>
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import { FormContainer } from '@/components/form-container';
|
||||
import { BlockButton, Button } from '@/components/ui/button';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import {
|
||||
@ -198,7 +197,7 @@ function SwitchForm({ node }: IOperatorForm) {
|
||||
const conditions: Array<any> = form.getValues(`${name}.${ItemKey}`);
|
||||
const conditionLength = conditions.length;
|
||||
return (
|
||||
<FormContainer key={field.id} className="">
|
||||
<section key={field.id} className="space-y-5">
|
||||
<div className="flex justify-between items-center">
|
||||
<section>
|
||||
<span>{index === 0 ? 'IF' : 'ELSEIF'}</span>
|
||||
@ -243,7 +242,8 @@ function SwitchForm({ node }: IOperatorForm) {
|
||||
parentLength={fields.length}
|
||||
></ConditionCards>
|
||||
</section>
|
||||
</FormContainer>
|
||||
<Separator />
|
||||
</section>
|
||||
);
|
||||
})}
|
||||
<BlockButton
|
||||
|
||||
Reference in New Issue
Block a user