diff --git a/frontend/src/components/ui/Controls.tsx b/frontend/src/components/ui/Controls.tsx index 39c9743..4eae9f6 100644 --- a/frontend/src/components/ui/Controls.tsx +++ b/frontend/src/components/ui/Controls.tsx @@ -55,12 +55,16 @@ const WIDTHS: Record = { full: 'basis-full grow shrink' } -/** 行内标签字段:`…`;stack 场景交给 统一翻向 */ -export function Field({ label, required, children, width = 'default', className, hint }: { +/** + * 行内标签字段:`…`;stack 场景交给 统一翻向。 + * title 挂在外层 label 上:整块(标签 + 控件)都是悬停热区,和旧站 .fld[title] 一致。 + */ +export function Field({ label, required, children, width = 'default', className, hint, title }: { label?: ReactNode; required?: boolean; children: ReactNode; width?: FieldWidth; className?: string; hint?: ReactNode + title?: string }) { return ( -