diff --git a/src/app/(dashboard)/customers/customer-form.tsx b/src/app/(dashboard)/customers/customer-form.tsx index dc1659a..86b09da 100644 --- a/src/app/(dashboard)/customers/customer-form.tsx +++ b/src/app/(dashboard)/customers/customer-form.tsx @@ -63,6 +63,24 @@ function Field({ ); } +// 表单分区:小标题 + 内容;块间靠外层 space-y-6 分隔,不加灰线(录入场景保持紧凑) +function FormSection({ + title, + children, +}: { + title: string; + children: React.ReactNode; +}) { + return ( +
+

+ {title} +

+ {children} +
+ ); +} + export function CustomerForm({ action, defaultValues, @@ -79,38 +97,40 @@ export function CustomerForm({ return (
-
- - - - - - - - - {/* 生日类型 + 生日归属,同行两个下拉框 */} -
+ +
+ + + + + + +
+
+ + +
+
- -
+ -
- -