ultraman-shop
Version:
A React component library for building e-commerce interfaces
21 lines (20 loc) • 662 B
TypeScript
import { FC } from 'react';
import { TableProps } from 'antd';
interface SortPrefixConfig {
sequence?: boolean;
title?: string;
sortPattern?: boolean;
usePrefix?: boolean;
[key: string]: any;
}
type TableChangeEvent = (pagination: any, filters: any, sorter: any, extra: any) => void;
interface IXTable<T> extends TableProps<T> {
rowClassName?: (record: T, index: number) => string;
activeKeys?: string[] | string | null;
rowKey?: string;
sortPrefixConfig?: SortPrefixConfig | null;
borderColor?: string;
onChange?: TableChangeEvent;
}
declare const XTable: FC<IXTable<any>>;
export default XTable;