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