alibaba-fusion / next

🦍 A configurable component library for web built on React.
https://fusion.design
MIT License
4.58k stars 584 forks source link

[Select]Select组件popupstyle失效问题 #1075

Closed wenyanqi closed 5 years ago

wenyanqi commented 5 years ago

Component

Select

Reproduction link

http://riddle.alibaba-inc.com/riddles/b99f1b07

Steps to reproduce

nianxiongdi commented 5 years ago

@wenyanqi,你可以在Select组件上设置style={{width: '200px'}}, 而不是使用popupStyle属性,请参考.

youluna commented 5 years ago

原因是 autoWidth属性会修改弹层的宽度。 可以先通过<Select autoWidth={false} popupStyle={{width: '200px'}}>解决问题 @wenyanqi

@nianxiongdi 这里得改下逻辑,需要先判断popupStyle里是不是有写过width,如果写了需要以popupStyle的为优先