tav-ui
Version:
11 lines (10 loc) • 445 B
TypeScript
import type { ComputedRef, Ref } from 'vue';
declare type Recordable<T = any> = Record<string, T>;
interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
$el: T;
}
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
export declare function useTableScrollTo(tableElRef: Ref<ComponentRef>, getDataSourceRef: ComputedRef<Recordable[]>): {
scrollTo: (pos: string) => void;
};
export {};