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