UNPKG

el-plus-crud

Version:

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

172 lines (170 loc) 5.76 kB
import { ITableConfig } from '../../../types'; declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{ tableConfig: ITableConfig; modelValue?: any[] | null | undefined; type?: string | undefined; isIndex?: boolean | undefined; indexLabel?: string | undefined; isPager?: boolean | undefined; pageSize?: number | undefined; pageSizes?: number[] | undefined; isDialog?: boolean | undefined; nullText?: string | undefined; isEmptyImg?: boolean | undefined; isShowRefresh?: boolean | undefined; rowKey?: string | undefined; isDIYMain?: boolean | undefined; selectList?: any[] | [] | undefined; colMinWidth?: string | undefined; headerAlign?: "center" | "right" | "left" | undefined; isTempId?: boolean | undefined; loading?: boolean | undefined; initLoad?: boolean | undefined; isStorePageData?: boolean | undefined; }>, { modelValue: null; type: string; isIndex: boolean; isPager: boolean; pageSize: number; isDialog: boolean; nullText: string; isShowRefresh: boolean; rowKey: string; isEmptyImg: boolean; isDIYMain: boolean; selectList: () => never[]; colMinWidth: string; isTempId: boolean; loading: boolean; initLoad: boolean; isStorePageData: boolean; }>>, { tableRef: import('vue').Ref<any, any>; reload: (isTab?: boolean) => Promise<any[]>; tableData: import('vue').Ref<any[], any[]>; changeSelect: (itemList: any[], isSelect?: boolean) => void; resetSelect: () => void; initCol: () => void; resetQuery: () => void; nextPage: () => void; hasNextPage: () => boolean; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { select: (...args: any[]) => void; "update:modelValue": (...args: any[]) => void; selection: (...args: any[]) => void; selectAll: (...args: any[]) => void; layoutChange: (...args: any[]) => void; getUrlConsumerIds: (...args: any[]) => void; tabChange: (...args: any[]) => void; queryChange: (...args: any[]) => void; expandChange: (...args: any[]) => void; inited: (...args: any[]) => void; headerReset: (...args: any[]) => void; loadDataEnd: (...args: any[]) => void; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{ tableConfig: ITableConfig; modelValue?: any[] | null | undefined; type?: string | undefined; isIndex?: boolean | undefined; indexLabel?: string | undefined; isPager?: boolean | undefined; pageSize?: number | undefined; pageSizes?: number[] | undefined; isDialog?: boolean | undefined; nullText?: string | undefined; isEmptyImg?: boolean | undefined; isShowRefresh?: boolean | undefined; rowKey?: string | undefined; isDIYMain?: boolean | undefined; selectList?: any[] | [] | undefined; colMinWidth?: string | undefined; headerAlign?: "center" | "right" | "left" | undefined; isTempId?: boolean | undefined; loading?: boolean | undefined; initLoad?: boolean | undefined; isStorePageData?: boolean | undefined; }>, { modelValue: null; type: string; isIndex: boolean; isPager: boolean; pageSize: number; isDialog: boolean; nullText: string; isShowRefresh: boolean; rowKey: string; isEmptyImg: boolean; isDIYMain: boolean; selectList: () => never[]; colMinWidth: string; isTempId: boolean; loading: boolean; initLoad: boolean; isStorePageData: boolean; }>>> & Readonly<{ onSelect?: ((...args: any[]) => any) | undefined; "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; onSelection?: ((...args: any[]) => any) | undefined; onSelectAll?: ((...args: any[]) => any) | undefined; onLayoutChange?: ((...args: any[]) => any) | undefined; onGetUrlConsumerIds?: ((...args: any[]) => any) | undefined; onTabChange?: ((...args: any[]) => any) | undefined; onQueryChange?: ((...args: any[]) => any) | undefined; onExpandChange?: ((...args: any[]) => any) | undefined; onInited?: ((...args: any[]) => any) | undefined; onHeaderReset?: ((...args: any[]) => any) | undefined; onLoadDataEnd?: ((...args: any[]) => any) | undefined; }>, { type: string; loading: boolean; modelValue: Array<any> | null; isDialog: boolean; selectList: Array<any> | [ ]; isIndex: boolean; rowKey: string; isShowRefresh: boolean; initLoad: boolean; isPager: boolean; pageSize: number; nullText: string; isEmptyImg: boolean; isDIYMain: boolean; colMinWidth: string; isTempId: boolean; isStorePageData: boolean; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, { tabTop?(_: {}): any; default?(_: {}): any; main?(_: { tableData: any[]; }): any; firstColumn?(_: {}): any; bottom?(_: { tableData: 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; }; };