feat: Improve auto-form layout (#7150)

This commit is contained in:
Michael Genson
2026-02-26 10:50:45 -06:00
committed by GitHub
parent 669df6bbb4
commit 8144799733
16 changed files with 313 additions and 224 deletions

View File

@@ -6,11 +6,13 @@ export type FormValidationRule = (value: any) => boolean | string;
export interface FormSelectOption {
text: string;
value?: string;
}
export interface FormField {
section?: string;
sectionDetails?: string;
cols?: number | "auto";
label?: string;
hint?: string;
varName: string;
@@ -19,7 +21,7 @@ export interface FormField {
disableUpdate?: boolean;
disableCreate?: boolean;
options?: FormSelectOption[];
selectReturnValue?: string;
selectReturnValue?: "text" | "value";
}
export type AutoFormItems = FormField[];