UNPKG

tdesign-react

Version:
22 lines (21 loc) 856 B
import { TdBaseTableProps } from '../type'; /** * 1. 表头吸顶(普通表头吸顶 和 虚拟滚动表头吸顶) * 2. 表尾吸底 * 3. 底部滚动条吸底 * 4. 分页器吸底 */ export default function useAffix(props: TdBaseTableProps, { showElement }: { showElement: boolean; }): { showAffixHeader: boolean; showAffixFooter: boolean; showAffixPagination: boolean; affixHeaderRef: import("react").MutableRefObject<HTMLDivElement>; affixFooterRef: import("react").MutableRefObject<HTMLDivElement>; horizontalScrollbarRef: import("react").MutableRefObject<HTMLDivElement>; paginationRef: import("react").MutableRefObject<HTMLDivElement>; onHorizontalScroll: (scrollElement?: HTMLElement) => void; setTableContentRef: (tableContent: HTMLDivElement) => void; updateAffixHeaderOrFooter: () => void; };