tdesign-vue-next
Version:
TDesign Component for vue-next
13 lines (12 loc) • 567 B
TypeScript
import { SetupContext } from 'vue';
import { TdPrimaryTableProps, PrimaryTableCol, TableRowData } from '../type';
export default function useFilter(props: TdPrimaryTableProps, context: SetupContext): {
hasEmptyCondition: import("vue").ComputedRef<boolean>;
isTableOverflowHidden: import("vue").Ref<boolean>;
renderFilterIcon: ({ col, colIndex }: {
col: PrimaryTableCol<TableRowData>;
colIndex: number;
}) => JSX.Element;
renderFirstFilterRow: () => JSX.Element;
setFilterPrimaryTableRef: (primaryTableElement: any) => void;
};