我想要使{productfobpricedom}组件隐藏的时候, 下面style={{ height:'49px'}}的高度去掉要怎么实现?
let msgdom = '';
if (productsubjectdom || minorderunitdom || productfobpricedom || modifiershowdom || maskmoduledom) {
msgdom = <div className={"msgbox"} style={{ backgroundColor: itemstyle.msgbgcolor, }}>
{productfobpricedom}
<div style={{ height:'49px'}}>
{minorderunitdom}
{modifiershowdom}
{productsubjectdom}
</div>
</div>
}
你可以根据控制组件隐藏与否的那个值,来绑定style啊