mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add a form with data operations operators #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -23,7 +23,7 @@ import { ChevronDownIcon, XIcon } from 'lucide-react';
|
||||
import * as React from 'react';
|
||||
import { useCallback } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { VariableType } from '../../constant';
|
||||
import { JsonSchemaDataType } from '../../constant';
|
||||
import {
|
||||
useFindAgentStructuredOutputLabel,
|
||||
useShowSecondaryMenu,
|
||||
@ -52,7 +52,7 @@ interface GroupedSelectWithSecondaryMenuProps {
|
||||
value?: string;
|
||||
onChange?: (value: string) => void;
|
||||
placeholder?: string;
|
||||
type?: VariableType;
|
||||
types?: JsonSchemaDataType[];
|
||||
}
|
||||
|
||||
export function GroupedSelectWithSecondaryMenu({
|
||||
@ -60,7 +60,7 @@ export function GroupedSelectWithSecondaryMenu({
|
||||
value,
|
||||
onChange,
|
||||
placeholder,
|
||||
type,
|
||||
types,
|
||||
}: GroupedSelectWithSecondaryMenuProps) {
|
||||
const { t } = useTranslation();
|
||||
const [open, setOpen] = React.useState(false);
|
||||
@ -157,7 +157,7 @@ export function GroupedSelectWithSecondaryMenu({
|
||||
key={option.value}
|
||||
data={option}
|
||||
click={handleSecondaryMenuClick}
|
||||
type={type}
|
||||
types={types}
|
||||
></StructuredOutputSecondaryMenu>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user