mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 17:16:52 +08:00
### What problem does this PR solve? Feat: Add sql form #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
16
web/src/pages/agent/form/components/form-wrapper.tsx
Normal file
16
web/src/pages/agent/form/components/form-wrapper.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
type FormProps = React.ComponentProps<'form'>;
|
||||
|
||||
export function FormWrapper({ children, ...props }: FormProps) {
|
||||
return (
|
||||
<form
|
||||
className="space-y-6 p-4"
|
||||
autoComplete="off"
|
||||
onSubmit={(e) => {
|
||||
e.preventDefault();
|
||||
}}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</form>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user