element-pro-components
Version:
a component library for Vue 3 base on element-plus
15 lines (14 loc) • 834 B
TypeScript
import { ComputedRef, Ref } from 'vue';
import type { UnknownObject, StringObject, MaybeRef, ExternalParam } from '../types/index';
import type { ITableEmits, TableColumnsProps, ITableExpose } from './index';
export declare function useTableDefaultBind(props: Readonly<TableColumnsProps>): ComputedRef<TableColumnsProps>;
export declare function useTableBind<T extends Record<string, ExternalParam>>(currentBind?: MaybeRef<boolean | undefined | T>, defaultBind?: MaybeRef<TableColumnsProps>): ComputedRef<StringObject>;
export declare function useTableMethods<T = UnknownObject>(): {
tableRef: Ref<ITableExpose<T>>;
tableExpose: ITableExpose<T>;
};
export declare function usePagination(emit: ITableEmits): {
sizeChange: (size: number) => void;
currentChange: (current: number) => void;
handleLoad: () => void;
};