UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

24 lines (23 loc) 1.01 kB
import type { ComputedRef } from 'vue'; import type { ColumnType } from './interface'; export declare type ContextSlots = { emptyText?: (...args: any[]) => any; expandIcon?: (...args: any[]) => any; title?: (...args: any[]) => any; footer?: (...args: any[]) => any; summary?: (...args: any[]) => any; bodyCell?: (...args: any[]) => any; headerCell?: (...args: any[]) => any; customFilterIcon?: (...args: any[]) => any; customFilterDropdown?: (...args: any[]) => any; [key: string]: ((...args: any[]) => any) | undefined; }; declare type SlotsContextProps = ComputedRef<ContextSlots>; export declare const useProvideSlots: (props: SlotsContextProps) => void; export declare const useInjectSlots: () => SlotsContextProps; declare type ContextProps = { onResizeColumn: (w: number, column: ColumnType<any>) => void; }; export declare const useProvideTableContext: (props: ContextProps) => void; export declare const useInjectTableContext: () => ContextProps; export {};