import { TableLikeRef } from './useTableDragScroll'; import { Ref } from 'vue'; /** useTableScrollbarTooltip 配置项 */ export interface UseTableScrollbarTooltipOptions { /** 是否启用,默认 true */ enabled?: Ref | boolean; /** Tooltip 文案,默认「左右滚动:Shift + 滚轮上下」 */ content?: string; /** 横向滚动条选择器,默认 .el-scrollbar__bar.is-horizontal */ horizontalBarSelector?: string; } /** useTableScrollbarTooltip 返回值 */ export interface UseTableScrollbarTooltipReturn { /** virtual-triggering 绑定的 DOM 元素 */ triggerRef: Ref; /** Tooltip 文案 */ tooltipContent: Ref; /** Tooltip 显隐(由滚动条 mouseenter/leave 控制) */ tooltipVisible: Ref; /** 手动刷新滚动条引用(异步渲染或列变更后可用) */ refresh: () => void; } /** * 表格横向滚动条 hover 提示 Hook * @param tableRef Element Plus el-table 的 ref * @param options 可选配置 */ export declare function useTableScrollbarTooltip(tableRef: Ref, options?: UseTableScrollbarTooltipOptions): UseTableScrollbarTooltipReturn;