UNPKG

chowa

Version:

UI component library based on React

25 lines (24 loc) 1.6 kB
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as React from 'react'; import { TableColumnProps, DataIndex } from './table-column'; import { ColumnsWidthMap, Data } from './table'; export declare function perfectDataIndex(data: Data): Data; export declare function perfectPropsColumns(columns?: TableColumnProps[]): TableColumnProps[]; export declare function transformReactNodeToColumns(children: React.ReactElement<any>): TableColumnProps[]; export declare function compileColumnsDataIndexs(columns: TableColumnProps[]): DataIndex[]; export declare function compileLeftFixedColumns(columns: TableColumnProps[]): TableColumnProps[]; export declare function compileRightFixedColumns(columns: TableColumnProps[]): TableColumnProps[]; export declare function getColumnByDataIndex(columns: TableColumnProps[], dataIndex: DataIndex): TableColumnProps; export declare const columnMinSize = 80; export declare function compileColumnsWidthMap(columns: TableColumnProps[], dataIndexs: DataIndex[]): ColumnsWidthMap; export declare function computedColumnTier(column: TableColumnProps, nextTier?: number): number; export declare function computedColumnAmountCell(column: TableColumnProps): number; export declare function attrMerge(attr: React.Attributes, className?: string, style?: React.CSSProperties): React.Attributes; export declare function cloneColumns(cloumns: TableColumnProps[]): TableColumnProps[];