首先,你的问题&样品不是你想达到什么说清楚,所以我的答案可能是缺少了这一点:)
你基本上要一个2列布局与conditionnal显示为混合第一列。
列显示将由bootstrap完全处理(并且实际上你在这里与你的列混淆了很多),条件显示应该通过你的组件状态进行管理。
首先你的版面应该像这样的财产以后:
<div className='row'>
<div className='col-sm-7'>
<div> [your chart here] </div>
</div>
<div className='col-sm-5'>
<div> [your first block here] </div>
<div> [your second block here] </div>
</div>
</div>
然后,你需要你的组件状态里面一个布尔值,将决定图表中是否应该显示。让我们假设你存储在this.state.showChart
<div className='row'>
{this.state.showChart ?
<div className='col-sm-7'>
<div> [your chart here] </div>
</div>
: '' }
<div className='col-sm-5'>
<div> [your first block here] </div>
<div> [your second block here] </div>
</div>
</div>
此信息。如果这是insuffisant,尽量提高你的解释了一下,我可以在你的沙箱样品直接工作:)