@ederzeel/nuxt-schema-form-nightly
Version:
A runtime form generator for nuxt
44 lines (43 loc) • 1.43 kB
text/typescript
import type { PropertiesType } from '../types/index.js';
import type { TableColumn } from '@nuxt/ui';
type Properties = {
properties?: {
[key: string]: unknown;
};
};
export type SComponentProps = {
id?: string;
title?: string;
renderer?: string;
type?: string | unknown[];
properties?: Properties;
enum?: string[];
enum_titles?: string[];
format?: string;
description?: string;
placeholder?: string;
jsonSchemaPath?: string;
required?: string[];
isRequired: boolean;
items?: PropertiesType;
edit?: boolean;
minItems?: number;
maxItems?: number;
minimum?: number;
maximum?: number;
editInline?: boolean;
columns?: TableColumn<{}>[];
validateFields?: (fields: string[]) => Promise<boolean>;
setHidden?: (value: boolean) => void;
};
type __VLS_Props = SComponentProps;
type __VLS_ModelProps = {
modelValue: unknown;
};
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
id: string;
jsonSchemaPath: string;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
declare const _default: typeof __VLS_export;
export default _default;