UNPKG

hk-core-antdv

Version:

Based on Antd Vue3 custom components

103 lines (102 loc) 2.24 kB
import { JSX } from 'vue/jsx-runtime'; import { FormItem } from '../../types/DynamicFormAttr'; export declare const inputComponents: ({ name: string; text: string; component: string; defaultAttrs: { placeholder: string; type: string; style?: undefined; autoSize?: undefined; }; type?: undefined; } | { name: string; text: string; component: string; type: string; defaultAttrs: { placeholder: string; style: { width: string; }; type?: undefined; autoSize?: undefined; }; } | { name: string; text: string; component: string; defaultAttrs: { placeholder: string; autoSize: { minRows: number; maxRows: number; }; type?: undefined; style?: undefined; }; type?: undefined; } | { name: string; text: string; component: string; defaultAttrs: { placeholder: string; type?: undefined; style?: undefined; autoSize?: undefined; }; type?: undefined; })[]; export declare const selectComponents: ({ name: string; text: string; component: string; defaultAttrs: { placeholder: string; listType?: undefined; }; type?: undefined; } | { name: string; text: string; type: string; component: string; defaultAttrs: { placeholder?: undefined; listType?: undefined; }; } | { name: string; text: string; type: string; component: string; defaultAttrs: { placeholder: string; listType?: undefined; }; } | { name: string; text: string; type: string; component: string; defaultAttrs: { listType: string; placeholder?: undefined; }; })[]; /** * 生成组件 * @param item * @param formModel * @param proxy vue proxy */ export declare const generatorComponent: (item: FormItem, formModel: any, proxy: any) => JSX.Element | null | undefined; /** * 生成组件扩展属性设置 * @param name * @param options */ export declare const generatorComponentExtraAttr: (name: String, options: any) => JSX.Element | null | undefined;