UNPKG

@schema-render/search-table-react

Version:
16 lines (15 loc) 456 B
import type { ILocale, ISearchTableProps } from '../../typings/index.d'; import type { IColumnType } from '../../typings/table'; interface IParams { table: ISearchTableProps['table']; sortColumns: IColumnType<any>[]; locale: ILocale; } /** * 1、过滤未展示的列 * 2、添加序号列、操作列 */ export default function useFinalColumns({ table, sortColumns, locale }: IParams): { finalColumns: IColumnType<any>[]; }; export {};