From 958732642cbdf3fb11b65728293c0594365b4e64 Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Fri, 3 Jul 2020 20:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=AF=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/apolloTable/component/Table.tsx | 24 ++++++++++++---------- components/apolloTable/component/index.tsx | 2 ++ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/components/apolloTable/component/Table.tsx b/components/apolloTable/component/Table.tsx index 108ba41..04a35b8 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 dcfe3bc..b1c4c51 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} />
-- 2.21.0