Closed wenyanqi closed 5 years ago
@wenyanqi,你可以在Select组件上设置style={{width: '200px'}}
, 而不是使用popupStyle属性,请参考.
原因是 autoWidth属性会修改弹层的宽度。
可以先通过<Select autoWidth={false} popupStyle={{width: '200px'}}>
解决问题 @wenyanqi
@nianxiongdi 这里得改下逻辑,需要先判断popupStyle里是不是有写过width,如果写了需要以popupStyle的为优先
Component
Select
Reproduction link
http://riddle.alibaba-inc.com/riddles/b99f1b07
Steps to reproduce