UNPKG

tdesign-react

Version:
13 lines (12 loc) 551 B
import React from 'react'; import type { PrimaryTableRef } from '../interface'; import type { PrimaryTableCol, TableRowData, TdPrimaryTableProps } from '../type'; export default function useFilter(props: TdPrimaryTableProps, primaryTableRef: React.MutableRefObject<PrimaryTableRef>): { hasEmptyCondition: boolean; isTableOverflowHidden: boolean; renderFilterIcon: ({ col, colIndex }: { col: PrimaryTableCol<TableRowData>; colIndex: number; }) => React.JSX.Element; renderFirstFilterRow: () => React.JSX.Element; };