UNPKG

tdesign-react

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