UNPKG

roninz-form

Version:

基于element-plus的数据驱动表单组件,常用于可视化项目或表单较多的中台项目

44 lines (43 loc) 2.05 kB
import type { RFormItemProps, RFormProps } from './type'; declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RFormProps>, { readonly: boolean; }>, { validate?: (() => Promise<any> | undefined) | undefined; scrollToField?: ((key: string) => void) | undefined; resetFields?: (() => void) | undefined; getFieldConfigByKey?: ((key: string) => RFormItemProps | undefined) | undefined; getFieldValueByKey?: ((key: string) => ModelValue) | undefined; getFieldsConfig?: (<T extends string[]>(keys?: T | undefined) => { [key in T[number]]: RFormItemProps; }) | undefined; getFieldsValue?: (<T_1 extends string[]>(keys?: T_1 | undefined) => { [key_1 in T_1[number]]: ModelValue; }) | undefined; setFieldValue?: ((key: string | AnyObject, value?: ModelValue | undefined) => void) | undefined; setField?: ((key: string | { [key: string]: Partial<RFormItemProps>; }, config?: Partial<RFormItemProps> | undefined) => void) | undefined; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RFormProps>, { readonly: boolean; }>>>, { readonly: boolean; }, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };