chowa
Version:
UI component library based on React
59 lines (58 loc) • 2.04 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 { Data, Record, ColumnsWidthMap, FilterInfo, SorterInfo, ExpanedVisibleMap, UpdateParams } from './table';
import { TableColumnProps, DataIndex } from './table-column';
export interface TablefFixedProps {
fixed: 'left' | 'right';
fixedHeader: boolean;
footerHeight: number;
headerHeight: number;
scrollTop: number;
striped: boolean;
expanded: boolean;
selectable: boolean;
columns: TableColumnProps[];
columnsWidthMap: ColumnsWidthMap;
showHeader: boolean;
dataIndexs: DataIndex[];
data: Data;
globalAlign: 'left' | 'right' | 'center';
resizeable: boolean;
headerRowAttr: (rowIndex: number) => React.Attributes;
filterInfo: FilterInfo;
sorterInfo: SorterInfo;
onSelect: (record: Record) => void;
onDeSelect: (record: Record) => void;
onSelectAll: () => void;
onDeSelectAll: () => void;
selectedIndexs: DataIndex[];
expanedVisibleMap: ExpanedVisibleMap;
accordion: boolean;
expandedRowRender: (record: Record) => React.ReactNode;
expandedOpenNode: React.ReactNode;
expandedCloseNode: React.ReactNode;
onExpandedVisibleChange: (visible: boolean, record: Record) => void;
rowAttr: (rowIndex: React.ReactText, record: Record) => React.Attributes;
highlightRow: boolean;
highlightRowIndex: React.ReactText;
updateTable: (params: UpdateParams) => void;
withFooter: boolean;
scrollHeight: number;
active: boolean;
rowsHeightMap: number[];
}
declare class TablefFixed extends React.PureComponent<TablefFixedProps, any> {
private bodyEle;
constructor(props: TablefFixedProps);
componentDidUpdate(preProps: TablefFixedProps): void;
private onContentScroll;
render(): JSX.Element;
}
export default TablefFixed;