tav-ui
Version:
17 lines (16 loc) • 722 B
TypeScript
import type { ComputedRef, Ref } from 'vue';
import type { BasicTableProps } from '../types/table';
declare type Recordable<T = any> = Record<string, T>;
declare type Nullable<T> = T | null;
interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
$el: T;
}
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
export declare function useTableFooter(propsRef: ComputedRef<BasicTableProps>, scrollRef: ComputedRef<{
x: string | number | true;
y: Nullable<number>;
scrollToFirstRowOnChange: boolean;
}>, tableElRef: Ref<ComponentRef>, getDataSourceRef: ComputedRef<Recordable>): {
getFooterProps: ComputedRef<Recordable<any> | undefined>;
};
export {};