@uiw/react-table
Version:
Table component
20 lines (19 loc) • 747 B
TypeScript
import React from 'react';
import { IProps } from '@uiw/utils';
import { TableProps, TableColumns, LocationWidth } from './';
import './style/index.less';
export interface TheadProps<T extends {
[key: string]: V;
}, V = any> extends IProps {
data?: TableColumns<T>[][];
onCellHead?: TableProps<T, V>['onCellHead'];
align?: TableColumns['align'];
className?: TableColumns['className'];
locationWidth?: {
[key: string]: LocationWidth;
};
updateLocation?: (params: LocationWidth, index: string, key: string, colSpan?: number) => void;
}
export default function TheadComponent<T extends {
[key: string]: V;
}, V>(props?: TheadProps<T, V> & React.HTMLAttributes<HTMLTableSectionElement>): React.JSX.Element;