Commit 2ac5ce37 authored by zhangwenshuai's avatar zhangwenshuai

apolloTable增加id属性

parent 49d5daeb
...@@ -83,6 +83,7 @@ class AirTable extends React.Component<CommonProps, CommonState> { ...@@ -83,6 +83,7 @@ class AirTable extends React.Component<CommonProps, CommonState> {
loadComp, loadComp,
showCondition, showCondition,
canFixed, canFixed,
id,
} = this.props; } = this.props;
const sortConfig = const sortConfig =
operateConfig && operateConfig &&
...@@ -93,6 +94,7 @@ class AirTable extends React.Component<CommonProps, CommonState> { ...@@ -93,6 +94,7 @@ class AirTable extends React.Component<CommonProps, CommonState> {
return ( return (
<Provider value={{ locale: this.getContext() }}> <Provider value={{ locale: this.getContext() }}>
<div <div
id={id}
className={ className={
onScroll onScroll
? classNames(styles.container, styles.scroll, className) ? classNames(styles.container, styles.scroll, className)
......
...@@ -91,6 +91,7 @@ export interface CommonProps extends TableProps { ...@@ -91,6 +91,7 @@ export interface CommonProps extends TableProps {
locale?: any; locale?: any;
className?: string; className?: string;
showCondition?: boolean; showCondition?: boolean;
id?:string;
} }
export interface CommonState extends TableState {} export interface CommonState extends TableState {}
......
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