diff --git a/components/apolloTable/component/hide/index.tsx b/components/apolloTable/component/hide/index.tsx index a955d3143714ceaeea517a275c379e645854f8a7..49adab2e16f941750469de7258e4e96200880665 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, }); } }