2017-08-06 22 views

回答

0

他們仍在製作hoverColor,這在列表項中是可行的。 但暫時可以使用這些道具

<MenuItem 
    primaryText="MenuItem" 
    onMouseEnter={(e) => e.target.style.backgroundColor= 'red'} 
    onMouseLeave={(e) => e.target.style.backgroundColor = '#ffffff'}/> 

這可能會暫時解決您的問題。