TableContext.d.ts 705 B

12345678910111213141516
  1. import type { InjectionKey } from 'vue';
  2. import type { GetComponent, TransformCellText } from '../interface';
  3. import type { FixedInfo } from '../utils/fixUtil';
  4. export interface TableContextProps {
  5. prefixCls: string;
  6. getComponent: GetComponent;
  7. scrollbarSize: number;
  8. direction: 'ltr' | 'rtl';
  9. fixedInfoList: readonly FixedInfo[];
  10. isSticky: boolean;
  11. summaryCollect: (uniKey: string, fixed: boolean | string) => void;
  12. transformCellText: TransformCellText<unknown>;
  13. }
  14. export declare const TableContextKey: InjectionKey<TableContextProps>;
  15. export declare const useProvideTable: (props: TableContextProps) => void;
  16. export declare const useInjectTable: () => TableContextProps;