vue-devui
Version:
DevUI components based on Vite and Vue3
11 lines (10 loc) • 436 B
TypeScript
import type { ComponentInternalInstance } from 'vue';
import type { SortDirection, SortMethod } from '../components/column/column-types';
export interface UseHorizontalScroll {
onTableScroll: (e: Event) => void;
}
export interface UseSort<T> {
thList: ComponentInternalInstance[];
collectTh: (th: ComponentInternalInstance) => void;
sortData: (direction: SortDirection, sortMethod: SortMethod<T> | undefined) => void;
}