UNPKG

el-plus-crud

Version:

采用Vue3 + TS,封装的element-plus数据驱动表单、列表组件

61 lines (59 loc) 2.57 kB
import { IFormGroupConfig } from '../../../types'; declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{ modelValue: {} | { [key: string]: any; }; formGroup: IFormGroupConfig; isLoading?: boolean | undefined; disabledTab?: boolean | undefined; }>>, { validate: () => Promise<PromiseSettledResult<any>[]>; getData: () => any; clearValid: () => Promise<any[]>; clear: () => Promise<any[]>; init: () => Promise<any[]>; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { cancel: (...args: any[]) => void; request: (...args: any[]) => void; "update:show": (...args: any[]) => void; "update:modelValue": (...args: any[]) => void; "before-validate": (...args: any[]) => void; "before-request": (...args: any[]) => void; "request-success": (...args: any[]) => void; "request-error": (...args: any[]) => void; "request-end": (...args: any[]) => void; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{ modelValue: {} | { [key: string]: any; }; formGroup: IFormGroupConfig; isLoading?: boolean | undefined; disabledTab?: boolean | undefined; }>>> & Readonly<{ onCancel?: ((...args: any[]) => any) | undefined; onRequest?: ((...args: any[]) => any) | undefined; "onUpdate:show"?: ((...args: any[]) => any) | undefined; "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; "onBefore-validate"?: ((...args: any[]) => any) | undefined; "onBefore-request"?: ((...args: any[]) => any) | undefined; "onRequest-success"?: ((...args: any[]) => any) | undefined; "onRequest-error"?: ((...args: any[]) => any) | undefined; "onRequest-end"?: ((...args: any[]) => any) | undefined; }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {}) => any>> & { default?(_: {}): 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_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };