UNPKG

@aliretail/react-materials-components

Version:
26 lines (25 loc) 1.35 kB
/// <reference types="react" /> import { ColumnProps } from '@alifd/next/types/table'; export declare const EmptyBlock: JSX.Element; export declare const ErrorBlock: JSX.Element; export declare function getValidElement(ele: any, orElse: any): any; export declare function getColumnKey(column: any): any; /** * 从 localStorage 获取表格列配置缓存 * * @param {string} storageKey localStorage 中的 key * @return {*} 返回的普通对象,key 是表格列的 key 属性值,value 是 boolean,true 表示选中 */ export declare function getColumnConfig(storageKey: any): any; /** * 把表格列配置保存进 localStorage * @param {string} storageKey localStorage 中的 key * @param {Object} config 普通对象,key 是表格列的 key 属性值,value 是 boolean,true 表示选中 */ export declare function saveColumnConfig(storageKey: any, config?: {}): void; export declare function getSelectedColumns(columnConfig: any, columns?: any[]): any[]; export declare function filterColumns(columns: any, includeKeys: any): any; export declare function isNumeric(value: any): boolean; export declare function getColumnByKey(key: any): any; export declare function getCellRender(originalCol: any, externalConfig: any): ColumnProps; export declare function renderColumns(columns: any[], externalConfig: any): JSX.Element[];