Feat: Wrap DynamicVariableForm with Collapsible. #3221 (#5440)

### What problem does this PR solve?

Feat: Wrap DynamicVariableForm with Collapsible. #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-02-27 16:09:12 +08:00
committed by GitHub
parent 230865c4f7
commit 7a6e70d6b3
6 changed files with 61 additions and 19 deletions

View File

@ -190,7 +190,8 @@ type RAGFlowSelectProps = Partial<ControllerRenderProps> & {
FormControlComponent?: typeof FormControl;
options?: (RAGFlowSelectOptionType | RAGFlowSelectGroupOptionType)[];
allowClear?: boolean;
};
placeholder?: React.ReactNode;
} & SelectPrimitive.SelectProps;
/**
*
@ -218,6 +219,7 @@ export const RAGFlowSelect = forwardRef<
FormControlComponent,
options = [],
allowClear,
placeholder,
},
ref,
) {
@ -260,7 +262,7 @@ export const RAGFlowSelect = forwardRef<
allowClear={allowClear}
ref={ref}
>
<SelectValue placeholder="Select a verified email to display" />
<SelectValue placeholder={placeholder} />
</SelectTrigger>
</FormControlWidget>
<SelectContent>
@ -292,3 +294,5 @@ export const RAGFlowSelect = forwardRef<
</Select>
);
});
RAGFlowSelect.displayName = 'RAGFlowSelect';