antd的select組件,選項位置會偏移
首先官方文檔
所以可以設置
getPopupContainer={trigger => trigger.parentNode}
如果這個樣子還是有偏移~,那么,再設置一下
.ant-select-dropdown {
position: relative;
left: 0 !important;
top:0 !important;
}
就是硬性的把他的偏移設置為0,看看這樣有沒有效果~