chowa
Version:
UI component library based on React
53 lines (52 loc) • 1.85 kB
TypeScript
/**
* @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 { Record, UpdateParams, ExpanedVisibleMap } from './table';
import { TableColumnProps, DataIndex } from './table-column';
export interface TableBodyRowProps {
index: React.ReactText;
renderDataIndex: number;
record: Record;
globalAlign: 'left' | 'right' | 'center';
columns: TableColumnProps[];
dataIndexs: DataIndex[];
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;
fixed?: 'left' | 'right';
height?: number;
draggable?: boolean;
rowDragSorter?: (dragIndex: number, dropIndex: number) => void;
expanded: boolean;
striped: boolean;
}
export interface TableBodyRowState {
expandedInAnim: boolean;
}
declare class TableBodyRow extends React.PureComponent<TableBodyRowProps, TableBodyRowState> {
constructor(props: TableBodyRowProps);
private onExpandedHide;
private onSelectionChange;
private updateExpandedVisible;
private onMouseEnterHandler;
private onMouseLeaveHandler;
render(): any[];
}
export default TableBodyRow;