import {Row, Col, Icon} from 'antd'; import './index.less' class PrjShowGroup extends React.Component { constructor(props) { super(props); this.state = { showGroup: props.showGroup ? props.showGroup : true } } render() { const {title,leftComponent=[],rightComponent=[], children,btnspace} = this.props; const {showGroup} = this.state; return (
{leftComponent}
{rightComponent} this.setState({showGroup:!showGroup})}/>
{ children }
) } } export default PrjShowGroup