@uiw/react-table
Version:
Table component
26 lines (25 loc) • 792 B
TypeScript
import React, { Component } from 'react';
import { TableColumns, TableProps, LocationWidth } from './';
interface ThComponentProps<T extends {
[key: string]: V;
} = any, V = any> {
colNum: number;
rightNum: number;
item: TableColumns<T>;
prefixCls: string;
titleNode: JSX.Element;
onCellHead: TableProps<T>['onCellHead'];
rowNum: number;
locationWidth: {
[key: string]: LocationWidth;
};
updateLocation: (params: LocationWidth, index: string, key: string, colSpan?: number) => void;
}
export default class ThComponent<T extends {
[key: string]: V;
} = any, V = any> extends Component<ThComponentProps<T>> {
wrapper: React.RefObject<HTMLTableCellElement>;
componentDidMount(): void;
render(): React.JSX.Element;
}
export {};