events-helper.d.ts 1.1 KB

123456789101112131415161718192021222324
  1. import { TableOverflowTooltipOptions } from "../util.js";
  2. import { DefaultRow } from "../table/defaults.js";
  3. import { TableBodyProps } from "./defaults.js";
  4. import * as _$vue from "vue";
  5. import * as _$lodash_unified0 from "lodash-unified";
  6. //#region ../../packages/components/table/src/table-body/events-helper.d.ts
  7. declare function useEvents<T extends DefaultRow>(props: Partial<TableBodyProps<T>>): {
  8. handleDoubleClick: (event: MouseEvent, row: T) => void;
  9. handleClick: (event: PointerEvent, row: T) => void;
  10. handleContextMenu: (event: PointerEvent, row: T) => void;
  11. handleMouseEnter: _$lodash_unified0.DebouncedFunc<(index: number) => void>;
  12. handleMouseLeave: _$lodash_unified0.DebouncedFunc<() => void>;
  13. handleCellMouseEnter: (event: MouseEvent, row: T, tooltipOptions: TableOverflowTooltipOptions) => void;
  14. handleCellMouseLeave: (event: MouseEvent) => void;
  15. tooltipContent: _$vue.Ref<string, string>;
  16. tooltipTrigger: _$vue.Ref<_$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
  17. [key: string]: any;
  18. }>, _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
  19. [key: string]: any;
  20. }>>;
  21. };
  22. //#endregion
  23. export { useEvents as default };