import type { UnwrapRef } from 'vue'; import type { GridDefaultSlotParams, GridScrollOptions, ResetAfterIndex, Alignment as ScrollStrategy } from '@hd-front-end/element-plus/es/components/virtual-list'; import type { TableV2GridProps } from './grid'; declare const TableGrid: any; export default TableGrid; export type TableGridRowSlotParams = { columns: TableV2GridProps['columns']; rowData: any; } & GridDefaultSlotParams; export type TableGridInstance = InstanceType & UnwrapRef<{ forceUpdate: () => void; /** * @description fetch total height */ totalHeight: number; /** * @description scrollTo a position * @param { number | ScrollToOptions } arg1 * @param { number } arg2 */ scrollTo(leftOrOptions: number | GridScrollOptions, top?: number): void; /** * @description scroll vertically to position y */ scrollToTop(scrollTop: number): void; /** * @description scroll to a given row * @params row {Number} which row to scroll to * @params @optional strategy {ScrollStrategy} use what strategy to scroll to */ scrollToRow(row: number, strategy: ScrollStrategy): void; /** * @description reset rendered state after row index * @param { number } rowIndex * @param { boolean } forceUpdate */ resetAfterRowIndex: ResetAfterIndex; }>;