diff --git a/components/apolloTable/component/Table.tsx b/components/apolloTable/component/Table.tsx index 108ba41310d67e0f53d94ff9dd4e64266a10d66e..04a35b81d8cd39e15b1e3be32a71101a1eb27cf9 100644 --- a/components/apolloTable/component/Table.tsx +++ b/components/apolloTable/component/Table.tsx @@ -433,7 +433,7 @@ export default class AirTable extends Component { }; render() { - const { loading, noDataPlaceholder, loadComp } = this.props; + const { loading, noDataPlaceholder, loadComp, canFixed } = this.props; const { columns, dataSource, tableWidth = 0, tableHeight = 0 } = this.state; const { overscanColumnCount, overscanRowCount, rowHeight, headerHeight, columnWidth } = this.config; const scrollbarWidth = scrollbarSize() || 0; @@ -559,16 +559,18 @@ export default class AirTable extends Component { } )} - + {canFixed && ( + + )}
{({ width, height }: any) => { diff --git a/components/apolloTable/component/index.tsx b/components/apolloTable/component/index.tsx index dcfe3bcc15e91a90376a2ba18d100d836fa49bc2..b1c4c514a9917eaf415b4c4340a389c58454abc3 100644 --- a/components/apolloTable/component/index.tsx +++ b/components/apolloTable/component/index.tsx @@ -82,6 +82,7 @@ class AirTable extends React.Component { onScroll, loadComp, showCondition, + canFixed, } = this.props; const sortConfig = operateConfig && @@ -135,6 +136,7 @@ class AirTable extends React.Component { noDataPlaceholder={noDataPlaceholder} contentMenu={contentMenu} loadComp={loadComp} + canFixed={canFixed} />