import type { CSSProperties, ExtractPropTypes } from 'vue'; import type { SortOrder } from './constants'; import type { Column, ColumnCommonParams, DataGetter, KeyType, RowCommonParams, SortBy, SortState } from './types'; /** * Param types */ export declare type ColumnSortParams = { column: Column; key: KeyType; order: SortOrder; }; /** * Renderer/Getter types */ export declare type ExtraCellPropGetter = (params: ColumnCommonParams & RowCommonParams & { cellData: T; rowData: any; }) => any; export declare type ExtractHeaderPropGetter = (params: { columns: Column[]; headerIndex: number; }) => any; export declare type ExtractHeaderCellPropGetter = (params: ColumnCommonParams & { headerIndex: number; }) => any; export declare type ExtractRowPropGetter = (params: { columns: Column[]; } & RowCommonParams) => any; export declare type HeaderClassNameGetter = (params: { columns: Column[]; headerIndex: number; }) => string; export declare type RowClassNameGetter = (params: { columns: Column[]; } & RowCommonParams) => string; /** * Handler types */ export declare type ColumnSortHandler = (params: ColumnSortParams) => void; export declare type ColumnResizeHandler = (column: Column, width: number) => void; export declare type ExpandedRowsChangeHandler = (expandedRowKeys: KeyType[]) => void; export declare const tableV2Props: { readonly cache: import("element-plus/es/utils").EpPropFinalized; readonly estimatedRowHeight: { readonly default: undefined; readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; readonly __epPropKey: true; }; readonly rowKey: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => KeyType & {}) | (() => KeyType) | ((new (...args: any[]) => KeyType & {}) | (() => KeyType))[], unknown, unknown, "id", boolean>; readonly headerClass: { readonly type: import("vue").PropType (string | HeaderClassNameGetter) & {}) | (() => string | HeaderClassNameGetter) | ((new (...args: any[]) => (string | HeaderClassNameGetter) & {}) | (() => string | HeaderClassNameGetter))[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly headerProps: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly headerCellProps: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly headerHeight: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (number | number[]) & {}) | (() => number | number[]) | ((new (...args: any[]) => (number | number[]) & {}) | (() => number | number[]))[], unknown, unknown, 50, boolean>; readonly footerHeight: import("element-plus/es/utils").EpPropFinalized; readonly rowClass: { readonly type: import("vue").PropType (string | RowClassNameGetter) & {}) | (() => string | RowClassNameGetter) | ((new (...args: any[]) => (string | RowClassNameGetter) & {}) | (() => string | RowClassNameGetter))[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly rowProps: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly rowHeight: import("element-plus/es/utils").EpPropFinalized; readonly cellProps: { readonly type: import("vue").PropType Record | ExtraCellPropGetter) | (() => Record | ExtraCellPropGetter) | ((new (...args: any[]) => Record | ExtraCellPropGetter) | (() => Record | ExtraCellPropGetter))[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly columns: { readonly type: import("vue").PropType; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly data: { readonly type: import("vue").PropType; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly dataGetter: { readonly type: import("vue").PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly fixedData: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly expandColumnKey: StringConstructor; readonly expandedRowKeys: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => KeyType[]) | (() => KeyType[]) | ((new (...args: any[]) => KeyType[]) | (() => KeyType[]))[], unknown, unknown, () => never[], boolean>; readonly defaultExpandedRowKeys: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => KeyType[]) | (() => KeyType[]) | ((new (...args: any[]) => KeyType[]) | (() => KeyType[]))[], unknown, unknown, () => never[], boolean>; readonly class: StringConstructor; readonly fixed: BooleanConstructor; readonly style: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly width: { readonly type: import("vue").PropType; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly height: { readonly type: import("vue").PropType; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly maxHeight: NumberConstructor; readonly useIsScrolling: BooleanConstructor; readonly indentSize: import("element-plus/es/utils").EpPropFinalized; readonly iconSize: import("element-plus/es/utils").EpPropFinalized; readonly hScrollbarSize: import("element-plus/es/utils").EpPropFinalized; readonly vScrollbarSize: import("element-plus/es/utils").EpPropFinalized; readonly scrollbarAlwaysOn: BooleanConstructor; readonly sortBy: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => SortBy) | (() => SortBy) | ((new (...args: any[]) => SortBy) | (() => SortBy))[], unknown, unknown, () => { key: KeyType; order: SortOrder; }, boolean>; readonly sortState: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => SortState) | (() => SortState) | ((new (...args: any[]) => SortState) | (() => SortState))[], unknown, unknown, undefined, boolean>; readonly onColumnSort: { readonly type: import("vue").PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly onExpandedRowsChange: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly onEndReached: { readonly type: import("vue").PropType<(distance: number) => void>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly onRowExpand: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly onScroll: { readonly type: import("vue").PropType<(...args: any[]) => void>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly onRowsRendered: { readonly type: import("vue").PropType<(params: import("./grid").onRowRenderedParams) => void>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly rowEventHandlers: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; }; export declare type TableV2Props = ExtractPropTypes;