feat: add civital model install
This commit is contained in:
@@ -37,7 +37,7 @@ export default function AutoFormObject<
|
||||
const { shape } = getBaseSchema<SchemaType>(schema);
|
||||
|
||||
return (
|
||||
<Accordion type="multiple" className="space-y-5">
|
||||
<Accordion type="multiple" className="space-y-5 py-1">
|
||||
{Object.keys(shape).map((name) => {
|
||||
const item = shape[name] as z.ZodAny;
|
||||
const zodBaseType = getBaseType(item);
|
||||
|
||||
@@ -70,7 +70,7 @@ function AutoForm<SchemaType extends ZodObjectOrWrapped>({
|
||||
className={cn("space-y-5", className)}
|
||||
>
|
||||
<ScrollArea>
|
||||
<div className="max-h-[400px] px-1 py-1 w-full">
|
||||
<div className="max-h-[400px] px-1 w-full">
|
||||
<AutoFormObject
|
||||
schema={objectFormSchema}
|
||||
form={form}
|
||||
|
||||
Reference in New Issue
Block a user