mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-26 09:43:19 -05:00
chore: refactor data management pages (#7107)
This commit is contained in:
@@ -2,6 +2,8 @@ import type { VForm as VuetifyForm } from "vuetify/components/VForm";
|
||||
|
||||
type FormFieldType = "text" | "textarea" | "list" | "select" | "object" | "boolean" | "color" | "password";
|
||||
|
||||
export type FormValidationRule = (value: any) => boolean | string;
|
||||
|
||||
export interface FormSelectOption {
|
||||
text: string;
|
||||
}
|
||||
@@ -13,10 +15,11 @@ export interface FormField {
|
||||
hint?: string;
|
||||
varName: string;
|
||||
type: FormFieldType;
|
||||
rules?: string[];
|
||||
rules?: FormValidationRule[];
|
||||
disableUpdate?: boolean;
|
||||
disableCreate?: boolean;
|
||||
options?: FormSelectOption[];
|
||||
selectReturnValue?: string;
|
||||
}
|
||||
|
||||
export type AutoFormItems = FormField[];
|
||||
|
||||
Reference in New Issue
Block a user