context.d.ts 1010 B

1234567891011121314151617181920212223
  1. import type { ComputedRef } from 'vue';
  2. import type { ColumnType } from './interface';
  3. export declare type ContextSlots = {
  4. emptyText?: (...args: any[]) => any;
  5. expandIcon?: (...args: any[]) => any;
  6. title?: (...args: any[]) => any;
  7. footer?: (...args: any[]) => any;
  8. summary?: (...args: any[]) => any;
  9. bodyCell?: (...args: any[]) => any;
  10. headerCell?: (...args: any[]) => any;
  11. customFilterIcon?: (...args: any[]) => any;
  12. customFilterDropdown?: (...args: any[]) => any;
  13. [key: string]: ((...args: any[]) => any) | undefined;
  14. };
  15. declare type SlotsContextProps = ComputedRef<ContextSlots>;
  16. export declare const useProvideSlots: (props: SlotsContextProps) => void;
  17. export declare const useInjectSlots: () => SlotsContextProps;
  18. declare type ContextProps = {
  19. onResizeColumn: (w: number, column: ColumnType<any>) => void;
  20. };
  21. export declare const useProvideTableContext: (props: ContextProps) => void;
  22. export declare const useInjectTableContext: () => ContextProps;
  23. export {};