Commit fd76d883 authored by zhangwenshuai's avatar zhangwenshuai

update

parent 4602ac10
......@@ -32,8 +32,11 @@ export default class Hide extends Component<Props, State> {
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,
});
}
}
......
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