Commit 9606c039 authored by zhangwenshuai's avatar zhangwenshuai

add interface

parent 98d99938
......@@ -58,6 +58,7 @@ class AirTable extends React.Component<CommonProps, CommonState> {
const { columns, dataSource } = this.state;
const {
className,
tableClassName,
rowStyle,
rowClassName,
distanceToLoad,
......@@ -105,7 +106,11 @@ class AirTable extends React.Component<CommonProps, CommonState> {
<OperateConfig columns={columns} operateConfig={operateConfig} showCondition={showCondition} />
)}
<div
className={onScroll ? classNames(styles.tableContainer, styles.scroll) : styles.tableContainer}
className={
onScroll
? classNames(styles.tableContainer, styles.scroll, tableClassName)
: classNames(styles.tableContainer, tableClassName)
}
>
{tableOperateConfig && (
<div className={styles.tableOperateContainer}>
......
......@@ -90,6 +90,7 @@ export interface CommonProps extends TableProps {
paginationConfig?: any;
locale?: any;
className?: string;
tableClassName?: string;
showCondition?: boolean;
id?:string;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment