UNPKG

chowa

Version:

UI component library based on React

45 lines (44 loc) 1.62 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 { Data, Record, UpdateParams, ExpanedVisibleMap } from './table'; import { TableColumnProps, DataIndex } from './table-column'; export interface TableBodyProps { data: Data; globalAlign: 'left' | 'right' | 'center'; columns: TableColumnProps[]; dataIndexs: DataIndex[]; striped: boolean; selectable?: boolean; selectedIndexs: React.ReactText[]; onSelect?: (record: Record) => void; onDeSelect?: (record: Record) => void; accordion?: boolean; expanedVisibleMap: ExpanedVisibleMap; expandedRowRender?: (record: Record) => React.ReactNode; expandedOpenNode?: React.ReactNode; expandedCloseNode?: React.ReactNode; onExpandedVisibleChange?: (visible: boolean, record: Record) => void; updateTable: (params: UpdateParams) => void; rowAttr?: (index: React.ReactText, record: Record) => React.Attributes; highlightRow: boolean; highlightRowIndex: React.ReactText; noDataDescription?: React.ReactNode; noDataImg?: string; noDataImgStyle?: React.CSSProperties; fixed?: 'left' | 'right'; rowsHeightMap?: number[]; draggable?: boolean; rowDragSorter?: (dragIndex: number, dropIndex: number) => void; expanded: boolean; } declare class TableBody extends React.PureComponent<TableBodyProps, any> { render(): JSX.Element; } export default TableBody;