Commit 9606c039 authored by zhangwenshuai's avatar zhangwenshuai

add interface

parent 98d99938
...@@ -58,6 +58,7 @@ class AirTable extends React.Component<CommonProps, CommonState> { ...@@ -58,6 +58,7 @@ class AirTable extends React.Component<CommonProps, CommonState> {
const { columns, dataSource } = this.state; const { columns, dataSource } = this.state;
const { const {
className, className,
tableClassName,
rowStyle, rowStyle,
rowClassName, rowClassName,
distanceToLoad, distanceToLoad,
...@@ -105,7 +106,11 @@ class AirTable extends React.Component<CommonProps, CommonState> { ...@@ -105,7 +106,11 @@ class AirTable extends React.Component<CommonProps, CommonState> {
<OperateConfig columns={columns} operateConfig={operateConfig} showCondition={showCondition} /> <OperateConfig columns={columns} operateConfig={operateConfig} showCondition={showCondition} />
)} )}
<div <div
className={onScroll ? classNames(styles.tableContainer, styles.scroll) : styles.tableContainer} className={
onScroll
? classNames(styles.tableContainer, styles.scroll, tableClassName)
: classNames(styles.tableContainer, tableClassName)
}
> >
{tableOperateConfig && ( {tableOperateConfig && (
<div className={styles.tableOperateContainer}> <div className={styles.tableOperateContainer}>
......
...@@ -90,6 +90,7 @@ export interface CommonProps extends TableProps { ...@@ -90,6 +90,7 @@ export interface CommonProps extends TableProps {
paginationConfig?: any; paginationConfig?: any;
locale?: any; locale?: any;
className?: string; className?: string;
tableClassName?: string;
showCondition?: boolean; showCondition?: boolean;
id?:string; 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