@aliretail/react-materials-components
Version:
35 lines (34 loc) • 1.11 kB
TypeScript
import React from 'react';
import { PaginationProps } from '@alifd/next/types/pagination';
import { TableProps } from '@alifd/next/types/table';
import { SettingProps } from './components/Setting/index';
import { IcolumnItem } from './components/Table/index';
export interface TableContainerProps extends TableProps {
settingProps?: SettingProps;
paginationProps?: PaginationProps;
columns?: IcolumnItem[];
containerId?: string;
stickyLock?: boolean;
}
export interface TableContainerState {
providerState: any;
tableState: {
containerId: string;
columns: any[];
};
}
declare class TableContainer extends React.Component<TableContainerProps, TableContainerState> {
constructor(props: any);
static propTypes: {
columns: any;
};
static defaultProps: {
primaryKey: string;
columns: any[];
dataSource: any[];
};
static getDerivedStateFromProps(nextProps: any, prevState: any): Partial<TableContainerState>;
tableStateChange: (newState: any) => void;
render(): JSX.Element;
}
export default TableContainer;