UNPKG

@schema-render/search-table-react

Version:
15 lines (14 loc) 483 B
import type { RefObject } from 'react'; import type { ISearchTableProps } from '../typings/index.d'; interface IUseScrollYParams { table: ISearchTableProps['table']; rootElemRef: RefObject<HTMLElement>; } /** * 表格高度自动适配计算方案:“一屏显示” */ export default function useScrollY({ table, rootElemRef }: IUseScrollYParams): { scrollY: number | undefined; updateScrollY: (this: any, delay?: any, checkEnabled?: any) => void; }; export {};