amis-rpc-design/node_modules/antd/lib/table/util.d.ts
2023-10-07 19:42:30 +08:00

15 lines
697 B
TypeScript

/// <reference types="react" />
import type { ColumnTitle, ColumnTitleProps, ColumnType, Key } from './interface';
export declare function getColumnKey<RecordType>(column: ColumnType<RecordType>, defaultKey: string): Key;
export declare function getColumnPos(index: number, pos?: string): string;
export declare function renderColumnTitle<RecordType>(title: ColumnTitle<RecordType>, props: ColumnTitleProps<RecordType>): import("react").ReactNode;
/**
* Safe get column title
*
* Should filter [object Object]
*
* @param title
* @returns
*/
export declare function safeColumnTitle<RecordType>(title: ColumnTitle<RecordType>, props: ColumnTitleProps<RecordType>): import("react").ReactNode;