tdesign-react
Version:
TDesign Component for React
12 lines (11 loc) • 497 B
TypeScript
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;
};