UNPKG

react-admin-kit

Version:

A react based UI components for admin system

24 lines (23 loc) 1.1 kB
import { TableColumnType } from '../types'; /** * 根据 dataIndex 获取嵌套对象的值 * @param record 数据记录 * @param dataIndex 字段索引,可以是字符串或字符串数组 * @returns 对应的值 */ export declare function _getValueByDataIndex(record: Record<string, any>, dataIndex: string | string[]): any; export declare function getFieldVisibility(field: TableColumnType, defaultHideInSearch?: boolean): { search: boolean; table: boolean; form: boolean; }; export declare function getAreaFields(fields: TableColumnType[], area: 'search' | 'table' | 'form' | 'export', options?: { defaultHideInSearch: boolean; }): TableColumnType[]; export declare function _formatDateTypeData(text: any, format?: string): string | number; export declare function _getTextByOptions(text: any, _col: TableColumnType): any; /** * 获取导出的值 */ export declare function _getExportValue(record: Record<string, any>, col: TableColumnType, index?: number): any; export declare const exportTable: (exportColumns: any, rows: any, ExcelJS: any, options: any) => Promise<void>;