@datametria/vue-components
Version:
DATAMETRIA Vue.js 3 Component Library with Multi-Brand Theming - 51 components + 10 composables with theming support, WCAG 2.2 AA, dark mode, responsive system
41 lines (40 loc) • 1.52 kB
TypeScript
interface Props {
model?: Record<string, any>;
rules?: Record<string, any>;
labelWidth?: string;
labelPosition?: 'left' | 'right' | 'top';
inline?: boolean;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
default?(_: {}): any;
};
refs: {};
rootEl: HTMLFormElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<Props, {
validate: () => Promise<boolean>;
validateField: (prop: string) => Promise<boolean>;
resetFields: () => void;
clearValidate: (props?: string | string[]) => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
submit: (model: Record<string, any>) => any;
validate: (valid: boolean, errors: Record<string, string[]>) => any;
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
onSubmit?: ((model: Record<string, any>) => any) | undefined;
onValidate?: ((valid: boolean, errors: Record<string, string[]>) => any) | undefined;
}>, {
model: Record<string, any>;
rules: Record<string, any>;
labelPosition: "left" | "right" | "top";
inline: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};