quarkd
Version:
Mobile UI Components built on Web Components.
27 lines (26 loc) • 833 B
TypeScript
import { QuarkElement } from "quarkc";
import "./form-item";
import { Rules, labelPosition } from "./type";
declare class QuarkForm extends QuarkElement {
validatefirst: false;
hidemessage: false;
hideasterisk: false;
labelwidth: "";
labelsuffix: "";
labelposition: labelPosition;
formRef: any;
slotRef: any;
formItems: any[];
model: Record<string, any> | null;
rules: Rules | null;
onSlotChange: () => void;
validate: (callback: any) => Promise<boolean> | void;
validateField: (props: string | string[], callback: any) => void;
clearValidate(props?: string[] | string): void;
resetFields(): void;
setRules(rules: Rules): void;
setModel: (model: Record<string, any>) => void;
getValues(): Record<string, any>;
render(): any;
}
export default QuarkForm;