From fd76d883d08e7878b24af654e03f9f3bbda2e741 Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Mon, 7 Sep 2020 20:03:40 +0800 Subject: [PATCH] update --- components/apolloTable/component/hide/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/apolloTable/component/hide/index.tsx b/components/apolloTable/component/hide/index.tsx index a955d31..49adab2 100644 --- a/components/apolloTable/component/hide/index.tsx +++ b/components/apolloTable/component/hide/index.tsx @@ -32,8 +32,11 @@ export default class Hide extends Component { componentWillReceiveProps(nextProps) { const { columns } = this.props; if (JSON.stringify(nextProps.columns) !== JSON.stringify(columns)) { + const newCols = nextProps.columns.filter((item:any) => { + return item.enableStatus && item.hideFlag; + }); this.setState({ - columnConfig: nextProps.columns, + columnConfig: newCols, }); } } -- 2.21.0